Menu

#102 4.9.8.0 Classes tree collapses after saving

open
nobody
None
5
2012-09-26
2003-04-16
No

Classes tree is collapsed after saving a source file (^S).
Would be best if it kept track of expanded nodes, must
be a trivial task.

Discussion

  • Yiannis Mandravellos

    Logged In: YES
    user_id=210587

    It's not as trivial as you think it is...
    All the internal data the class-browser relies upon to display
    the tree, are deleted and recreated when you hit save
    (because re-parsing happens so everything is invalidated).

    So, there is no actual reference to re-expand the previously
    expanded nodes.

    Anyway, I 'm still looking into it. Any ideas are welcome of
    course ;)

     
  • Marek Januszewski

    Logged In: YES
    user_id=609236

    please try this build:
    http://www.castlesofpoland.com/devcpp.exe
    and see if it's still happening. if not please close this
    bug report.

     
  • Reijo Tomperi

    Reijo Tomperi - 2005-01-18

    Logged In: YES
    user_id=625452

    To developers:

    If there is no good solution, then use simple solution.
    Simple and perhaps ugly solution in this case would be that
    you save the names of expanded nodes before destroying it,
    for example in a list of strings like this:
    "leaf1"
    "leaf2"
    "leaf1/subleaf1"

    And after you have recreated it, check the list and open
    those with similar names. If there is possibility of having
    duplicate names, you should have something else to identify
    the correct leafs.

    This has been reported about 8 months ago, and it is still
    undone.

     
  • Marek Januszewski

    Logged In: YES
    user_id=609236

    wasn't it fixed in cvs? I remember working on it. what
    version are you using?

     
  • Reijo Tomperi

    Reijo Tomperi - 2005-01-19

    Logged In: YES
    user_id=625452

    The link you gave here seems not to work, but I downloaded
    the version 2005-01-19 from here:
    http://www.castlesofpoland.com/dev-cpp/devcpp.exe

    That link was in your message in the forums.

    And when I tested with it, the error remains. However I
    notined that if you edit the .cpp file and save it, the tree
    stays open. If you edit the .h file and save, the tree
    collapses.

    But that worked already in the original version.

     

Log in to post a comment.