User forums > General (but related to Code::Blocks)

About the project explorer sidebar

<< < (3/4) > >>

MortenMacFly:

--- Quote from: dmoore on February 26, 2011, 10:42:22 pm ---updated patch. sorts by filename instead of full path if "show filename only" is selected.

--- End quote ---
Hi dmoore,
please don't go for it any further. I have a patch pending for a while now that does that. It works slightly different than your approach, but it recognises / handles virtual folders and alike better.
I'll try to extract a single "stand-alone" patch though, as it is combined with a some other modifications...

MortenMacFly:
...patch for trunk is here (attached).

Please give it a try!

dmoore:
Morten: your patch works as advertised. You should probably grab the sorting part of my patch. It looks weird to have identical names show up in different places on the tree. Also, I didn't see an easy way to provide tooltips that give the full path that works on non MSW. Is there an easy fix?


--- Quote from: MortenMacFly on February 27, 2011, 10:24:31 am ---but it recognises / handles virtual folders and alike better.

--- End quote ---

I thought my version left them alone the same way your patch does, but I guess I might have missed some important cases. No worries on the wasted duplication of effort.

MortenMacFly:

--- Quote from: dmoore on February 28, 2011, 02:56:10 am ---You should probably grab the sorting part of my patch.

--- End quote ---
Yes, I'll take care.


--- Quote from: dmoore on February 28, 2011, 02:56:10 am ---Also, I didn't see an easy way to provide tooltips that give the full path that works on non MSW. Is there an easy fix?

--- End quote ---
I'll try...


--- Quote from: dmoore on February 28, 2011, 02:56:10 am ---No worries on the wasted duplication of effort.

--- End quote ---
A pity anyways... There is still something to come like drag/dropping multiple file (e.g. between /into virtual folders). So be careful when touching projectmanager / cbproject. ;-)

daniloz:
@morten:
After updating to rev.7030, which includes your patch to "* allow to hide the folder name in project tree (in "flat view" mode)", I cannot compile anymore, it seems something (filesSortNameOnly) is still missing...  :shock:

--- Code: ---Compiling: sdk\cbproject.cpp
C:\Work\codeblocks_trunk\src\sdk\cbproject.cpp: In member function 'void cbProject::BuildTree(wxTreeCtrl*, const wxTreeItemId&, int, FilesGroupsAndMasks*)':
C:\Work\codeblocks_trunk\src\sdk\cbproject.cpp:845:22: error: 'filesSortNameOnly' was not declared in this scope

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version