User forums > Using Code::Blocks

[feature request]Display a read-only icon next to filename in the tab

<< < (2/4) > >>

Jenna:
As you can see in the "Logs and others" it's supported on all platforms (at least all we support with C::B).

@oBFusCATed:
I already started to work on it.
The problem is to find a point to implement it, where it works all the time (if changed from inside C::B and from outside C::B).

teto:
Great news ! Thanks for taking my proposition into consideration.

oBFusCATed:

--- Quote from: jens on August 27, 2014, 11:17:59 am ---The problem is to find a point to implement it, where it works all the time (if changed from inside C::B and from outside C::B).

--- End quote ---
I'm not so sure we need to make this as robust as you've described.
Can't you use the code for detecting if an opened file has changed to detect if the read-only attribute has been changed, too?

Jenna:
I attach two patches and a png-file for test.
Both need to be applied and the png has to be copied into src/src/resources/images/

MortenMacFly:

--- Quote from: jens on August 28, 2014, 12:22:07 am ---I attach two patches and a png-file for test.

--- End quote ---
Within your patch: Probably you are missing that an editor case have an read-only state, too -> ed->IsReadOnly(). This should be pout into the computation of the readOnly var...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version