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 ;)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 ;)
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.
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.
Logged In: YES
user_id=609236
wasn't it fixed in cvs? I remember working on it. what
version are you using?
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.