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

FileTabMenu Plugin

(1/4) > >>

Florianx:
Hi,
I downloaded Code::Blocks a few days ago, and I really love it  :D
Before CB, i used Visual C++ Express 8. There, it was possible to close a file thru the context menu of a file tab.
Because thats not possible with cb, i tried to write a plugin.

Its not exacty working, like I want, but here's a first version:
[edit]link removed[/edit]

When you right click on the files tab row, there will be an menu, where you can: Save current file, Save all files, Close current file, Close all files, Close all files exept current.

What does not work: the menu should only open, when you really hit a tab, not the empty space at the right. When you right click on an inactive tab, it should get active before the menu gets popped up.

I know its a very small plugin, but it was my first time using wxWidgets, which can get very confusing  :roll:

rickg22:
You might want to help working on the tabbed interface modification posted elsewhere on these forums, it's a modification of the notebook wxwidgets control...

Florianx:
Hi,
a new version of my plugin is ready.
It's working really good now.
But it doesn't support wx2.4 and wxGTK anymore.
I've also added an action for the middle mouse button and a settings dialog.

[attachment deleted by admin]

DaKaLKa:
Cool Plugin,
but you should add

--- Code: ---CB_IMPLEMENT_PLUGIN(FileTabMenu);

--- End code ---
and remove

--- Code: ---cbPlugin* GetPlugin()
{
return new FileTabMenu;
}

--- End code ---
from TabMenu.cpp
and add

--- Code: ---CB_DECLARE_PLUGIN();

--- End code ---
to FileTabMenu.cpp, so that the plugin is useable with current CVS-Build off C::B (and also the comming RC2-Release)

Just look in the file attached, the compiled plugin in this archive should work with current CVS

Thx a lot for this plugin!  :lol:



[attachment deleted by admin]

Florianx:
thx, I should update my cvs more often :)
I've added some new futures (v0.3 now).
You can now choose the actions, which happen on right or middle mouse button click, as well as choose the options of the context menu.
Possible actions: Close, Close All, Close All Except Current, Save, Save All, Swap Header/Source.

[attachment deleted by admin]

Navigation

[0] Message Index

[#] Next page

Go to full version