Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Version Control Plugin

<< < (2/2)

MortenMacFly:

--- Quote from: daniloz on August 17, 2011, 04:45:09 pm ---Hmmm... I completely missed that... where?  :shock: please!  :P

--- End quote ---
Ok - I checked back and shame on me! :oops:
It's a ClearCase plugin, not SourceSafe. So please ignore what I've said. :oops: :oops: :oops:

daniloz:
Back to my original question:

--- Quote from: daniloz on August 17, 2011, 01:20:27 pm ---- What's the best way to deal with the File States within a plugin?

I've seen that the enum FileVisualState defines states for version control (vc) and that it can be set using the SetFileState() method from the ProjectFile class, but I still have two questions:

- What's the cleanest way to get a pointer to the project manager or the actual project?
- Even if I set the File State in my plugin, it gets overwritten by the cbEditor::SetModified() method (cbeditor.cpp, line 850) when a file read-only property is changed (I've tried it and it really does).

--- End quote ---

Anyone? I don't know the structure of codeblock so well and the only way I found to do it was as described above, but the File Status get overwritten...

Or maybe I'm posting on the wrong place here? :-o

Navigation

[0] Message Index

[*] Previous page

Go to full version