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

TortoiseSVN plugin

<< < (3/7) > >>

Pecan:
For those who would like to append the CBTortoiseSVN menu onto the Tools menu (taking up less real estate) changing the code after the "else" will do so.
See "CBTortoiseSVN::BuildMenu(wxMenuBar *menuBar)".



--- Code: ---int ToolsPos = menuBar->FindMenu(_("&Tools"));

 if ( ToolsPos == wxNOT_FOUND )
 menuBar->Append(TortoiseSVN_submenu,_("TortoiseSVN"));
 else
 { //menuBar->Insert(ToolsPos,TortoiseSVN_submenu,_("TortoiseSVN"));
    wxMenu* pToolsMenu = menuBar->GetMenu(ToolsPos);
    pToolsMenu->Append(idCBTortoiseSVN, _("TortoiseSVN"), TortoiseSVN_submenu, _("TortoiseSVN"));
 }

}

//******************************************************************************

void CBTortoiseSVN::RemoveMenu(wxMenuBar *menuBar)
{
    //(pecan 2006/10/04)
    // It is not necessary to remove menu items and can cause a 3 to 10
    // second delay durling program termination
    return;

 wxMenu *menu = 0;


--- End code ---

mandrav:

--- Quote from: Pecan on October 05, 2006, 01:25:07 am ---For those who would like to append the CBTortoiseSVN menu onto the Tools menu (taking up less real estate) changing the code after the "else" will do so.

--- End quote ---

Keep in mind though that the Tools menu is recreated from scratch each time you modify the tools...

orel:
Thanks everyone

I'm going to try that at the moment i'm at home...!

Pecan:
This plugin is trying to execute something called TortoiseProc which I don't have in my TortoiseSVN distribution (XP).

What is it. And why is the plugin trying to execute it?

Edit: Found it.
It seems I have two TortoiseSVNs on my system. Now how did that happen?

Edit: Evidently this plugin requires both the TortoiseSVN gui *and* the command line Subversion version available on the system path.

orel:
Soory guys to bother you but...

It seems that i can not make it work. I don't know what i am missing but nowhere i can see something about the plugin, i'm sure it's not even loaded.

However, i did all these things :

_ put CBTortoiseSVN.dll in \share\CodeBlocks\plugins of the freshly downloaded nightly build version. (that is revsion 3004)
_ created a zip file with the manifest.xml you guys have just post

And nothing appeared anywhere about the plugin, and the Code::Blocks debug message pane doesn't notice about it having been loaded or failed or ... existing

I must have missed a very big point, but which?

 :cry::cry::cry::cry:
it may helps :

WinXP SP2 on Centrino Duo : 1,6 gHz x 2

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version