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

Code snippet plugin

<< < (12/12)

Pecan:

--- Quote from: dmoore on July 20, 2007, 03:48:50 pm ---PS: All you need to do to implement yop's request is to create the dockable in the plugin's OnAttach and remove it in OnRelease. Layout manager will automatically record its state. Don't add/remove the dockable outside of these places or you will just confuse the layout manager. To control display of Codesnippets, just use show/hide events in CodeBlocksDockEvents.

--- End quote ---

Unfortunately, that's what it looks like I have to do.

It also means that all that data (the whole xml file) will be kept in memory when the window is hidden, even tho it isn't being referenced or used.

I'm getting more and more disappointed in wxAUI. It provides very little info (events) for the window owner, and forces awful inefficient use of resources by the programmer.


dmoore:
i think the version of AUI in wx2.8 offers more events. (I was under the impression you could at least receive close button notification for the dockables even under wx2.6)

Pecan:

--- Quote from: yop on July 17, 2007, 11:14:04 pm ---Can the positioning of the tool be saved in a layout? I have a "Debug view" and a "Code view" and I save the "Code view" with the Snippets window docked where I want it to be. When I start a debugging session the "Debug view" is automatically started and when the debug session ends and the "Code view" is up again the Code Snippets window disappears. Such a beautiful little tool shouldn't be that shy ;-)

--- End quote ---

fixed SVN 4288

Thanks for the report.

yop:
Just updated, it's perfect.

Deschamps:
Sorry for bumping a really old thread, but I suppose that this is the correct place to post it.

I'm not sure if this issue is related to installing Code::Blocks in my box after building it, or (I bet for this last) launching C::B as a privileged user (yes, I started X as root, I know it's stupid), but the fact is that after that I've noted the existence of a /codeblocks folder in my root directory, only containing the standard codesnippets.ini. I suppose that this behavior is related to this plugin, and should be corrected.

My environment: Archlinux i686, gcc 4.5.0, wxGTK 2.8.11, C::B from svn repository (currently rev.6332).

Thanks.

Navigation

[0] Message Index

[*] Previous page

Go to full version