User forums > Using Code::Blocks
[feature request]Display a read-only icon next to filename in the tab
teto:
Hi,
I am not sure if it is "waf" (fork of Scons https://code.google.com/p/waf/wiki/FAQ) specific but it copies all headers from all files in a read-only directory. So often codeblocks will open such a file (on "Find declaration" for instance). So I have two identical headers open and often I find myself typing in a read only file.
This would be nice if in the tab of a read-only file, there were the same read-only icon as in te "Open files" window next to the filename.
This may look as a specific usecase (may also occurs when you work on libc or kernel sources, coeblocks open readonyl header instead of the one of the current project maybe ?) so I would understand if that would get turned down.
Cheers
oBFusCATed:
It might be a usefull feature, but I'm not sure if it will be possible because of limitations in the api of wxaui notebook.
teto:
This does not need to be an icon, it could be a character (like the "*" prepended when a file has been modified) or the font (bold to show readonly).
oBFusCATed:
The API supports icons, so it will be an icon... will try to do it in the next couple of days...
SteelRat:
Found by google pics:
Is this implemented on Mac OS only?
From documentation:
--- Code: ---virtual bool wxAuiNotebook::SetPageImage(size_t n, int imageId)
Sets the image index for the given page.
image is an index into the image list which was set with SetImageList().
>>> Since 2.9.3
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version