Author Topic: expand/collapse the body of function/class  (Read 13363 times)

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
expand/collapse the body of function/class
« on: January 09, 2006, 05:07:51 pm »
Hello,

Since sometimes, I have remarked that when I open a project file, e.g., a cpp file, the function/class body is collapsed (there is the + symbol at the left). This is may be a design choice, but IMHO it would be preferably to have the body of the functions/classes expanded and not collapsed.

Moreover, I think that the addition of two new options, (1) expand all and (2) collapse all, would be useful especially for file with several functions/classes.

Michael

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: expand/collapse the body of function/class
« Reply #1 on: January 09, 2006, 05:36:39 pm »
Are you sure you did not accidentially enable "Fold all on open"?
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: expand/collapse the body of function/class
« Reply #2 on: January 09, 2006, 05:50:17 pm »
Yes, you are right :oops:. Unselected again and all is as before :). Thank you very much.

Anyway, it could not be useful to add two options for collapse all and expand all. For example, if I would like to have a fast look at the implemented functions/classes, I select collapse all (instead of having to collapse each function/class separately). Expand all would be useful if you would like to revert from the previous situation. Naturally, you can also allow selecting just some of funtions/classes that you would like to expand or collapse.

Michael
 

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: expand/collapse the body of function/class
« Reply #3 on: January 09, 2006, 06:06:31 pm »
Two options similar to those you get when right-clicking onto an editor and going to the menu "Folding"? ;)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: expand/collapse the body of function/class
« Reply #4 on: January 09, 2006, 06:09:16 pm »
Oops, I have spoken too early :oops:. The two options I have in mind are already there :D.

But, sorry for my stupidity, what do they mean "Toggle all folds" and "Toggle current block"? I have played a bit with them, but did not remark anything particularly :?.

May be I am wrong, but actually you cannot fold/unfold a group of functions, but just all or the current function. Is this correct?

Thank you very much.

Michael

[EDIT] Yes, thomas. You are right. You posted when I was still writing :).
« Last Edit: January 09, 2006, 06:10:51 pm by Michael »