User forums > General (but related to Code::Blocks)
Suggestions for File Tabs
Mr. Awesome:
There are a couple things that I liked about Dev-C++'s environment that are not included in CodeBlocks. They have to do with the functionality of the file tabs above the general coding workspace. Here they are:
1. It should be possible to rearrange the file tabs' order by left-clicking and dragging.
2. It should be possible to right-click on the tabs and get the same options as right-clicking on the file name in the project management area (i.e. Close, Save, Properties, etc.).
Just a thought.
Michael:
--- Quote from: Mr. Awesome on December 27, 2005, 10:42:10 am ---There are a couple things that I liked about Dev-C++'s environment that are not included in CodeBlocks.
--- End quote ---
C::B is undergoing several changes. But I will not be surprised if useful features would be added to the environment in a near future :).
--- Quote from: Mr. Awesome on December 27, 2005, 10:42:10 am ---1. It should be possible to rearrange the file tabs' order by left-clicking and dragging.
--- End quote ---
IMHO, this could be useful for medium-larger projects. For small projects usually closing and re-opening the files is ok :).
--- Quote from: Mr. Awesome on December 27, 2005, 10:42:10 am ---2. It should be possible to right-click on the tabs and get the same options as right-clicking on the file name in the project management area (i.e. Close, Save, Properties, etc.).
--- End quote ---
Some options are already available (at least with the latest SVN binary snapshot).
Michael
thomas:
--- Quote from: Michael on December 27, 2005, 04:17:43 pm ---IMHO, this could be useful for medium-larger projects. For small projects usually closing and re-opening the files is ok :).
--- End quote ---
Above all, it is painful to implement. wxWidgets has no function to rearrange tabs. Therefore, unless you want to write your own subclass, you have to delete the current page and add it again at a different index. This is not only clumsy, but it will likely flicker, too.
Subclassing wxNotebook is of course possible, but in the present situation, we have to deal with many other issues already.
Having said that, it is unlikely that this feature will make it into Code::Blocks any time soon.
killerbot:
The second request seems feasible. I will have look at it, and maybe I'll post a patch for it, but rearranging tabs, not for me (as far as implementing it, no objections against the feature itself : but as Thomas explained : not soo easy).
Cheers,
Lieven
killerbot:
correction :
with the head (svn) version :
1) right click on tab :
-> (if changed) : save, save all
-> close
2) right click on the editor (that's where the contents is, the code ,...)
-> properties (as in the projectmanager)
So it's already been don, no ned fo me to find out.
Though I have a suggestion : an extra tab with file properties :
- date modified
- full path name
- relative name
- size
- ...
I'll take a look at my own suggestion for implementation ;-)
Lieven
Navigation
[0] Message Index
[#] Next page
Go to full version