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

Workspace loading and Active Project

<< < (4/5) > >>

daniloz:

--- Quote from: Alpha on October 27, 2011, 11:49:07 pm ---
--- Quote from: MortenMacFly on October 27, 2011, 07:26:14 pm ---
--- Quote from: nausea on October 27, 2011, 05:45:14 pm ---you mentioned a plugin you use for developement: "DisplayEvents-plugin". Where do I find this one to use it myself?

--- End quote ---
Search the forums. ;-)

--- End quote ---
I also indexed it in the plugins page about a month ago.

--- End quote ---

And here is the patch for the DisplayEvents plugin, so we also see the new event...
(sorry about the "hardcoded" paths, I don't know how to do it better - suggestions are welcome)

oBFusCATed:
You're mixing tabs and spaces, C::B source is all spaces and you've not increased the SDK version numbers,
but you've changed the API/ABI for the ProjectManager. The SDK version numbers are in cbplugin.h.


Edit:
For the patch generation, goto the root of the working copy and execute "svn diff > my.patch".
This is the most robust way to generate patches. I've seen tortoisesvn mess up the patches it creates.

MortenMacFly:
If you do what I said here:


--- Quote from: MortenMacFly on October 27, 2011, 04:15:01 pm ---If you really need an event for the case "workspace completely loaded", provide a patch accordingly. It should be really simple to implement. Create an event in sdk_events{.cpp/.h} and instrument the method "ProjectManager::LoadWorkspace" accordingly.

--- End quote ---

You wouldn't even need to change the API interface. I think putting this event in WorkspaceChanged is the wrong place.

daniloz:

--- Quote from: MortenMacFly on October 28, 2011, 10:18:39 am ---If you do what I said here:


--- Quote from: MortenMacFly on October 27, 2011, 04:15:01 pm ---If you really need an event for the case "workspace completely loaded", provide a patch accordingly. It should be really simple to implement. Create an event in sdk_events{.cpp/.h} and instrument the method "ProjectManager::LoadWorkspace" accordingly.

--- End quote ---

You wouldn't even need to change the API interface. I think putting this event in WorkspaceChanged is the wrong place.

--- End quote ---

Hey, Morten, sorry.... I haven't really understood what you've suggested. Now I do...
I'll change my implementation on Monday (hopefully) and provide a new patch as soon as available...
And maybe I'll change the event name to cbEVT_WORKSPACE_LOADING_COMPLETE, that would be more uniform with the other events names...

MortenMacFly:

--- Quote from: daniloz on October 28, 2011, 04:37:10 pm ---And maybe I'll change the event name to cbEVT_WORKSPACE_LOADING_COMPLETE, that would be more uniform with the other events names...

--- End quote ---
True... I'll wait patiently...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version