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

Code snippet plugin

<< < (11/12) > >>

Wahooney:
I don't know if the pipe and macro functionality were there before or if you added it after, either way, thanks!!! It's such a kick ass tool now!

yop:
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 ;-)

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 ---

I'm have trouble picturing what you're describing.
Could you give me a "step-by-step" to recreate the problem so I can  test it myself?

yop:
Gladly:

1. Make sure that Code Snippets dialog is visible
2. View->Layouts->Save Current->test (or whatever)
3. View->Layouts->Code::Blocks default
4. View->Layouts->test

In step 4. I would expect that the Code Snippets dialog would come up again but it doesn't. My main problem is what I described that I have registered a different layout for my debugging sessions that falls back to another one when the debugger finishes and I would like to have the Code Snippets dialog in my "default" layout.

dmoore:
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.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version