???
you want to make a script, what 1) exprots the changelog, and the calls tortoise?
i would make something like this:
// Script plugins must extend cbScriptPlugin
class TestPlugin extends cbScriptPlugin
{
// mandatory to setup the plugin's info
constructor()
{
info = PluginInfo();
info.name = _T("exportPlugin");
info.title = _T("exportPlugin");
info.version = _T("0.1a");
info.license = _T("GPL");
}
// optional to create menubar items
function GetMenu()
{
local entries = ::wxArrayString();
entries.Add(_T("My Tools/Export"), 1);
return entries;
}
// optional to create context menu entries
function GetModuleMenu(who, data)
{
local entries = ::wxArrayString();
return entries;
}
// optional to support ExecutePlugin(pluginNameString)
function Execute()
{
::ShowMessage(_T("Start export"));
CallMenu(_("path to the menu entry for exporting the changelog"));
Execute(_("The tortoirs command"))
return 0;
}
// optional calback for menubar items clicking
function OnMenuClicked(index)
{
if (index == 0)
Execute();
}
// optional calback for context menu items clicking
function OnModuleMenuClicked(index)
{
}
}
// this call actually registers the script plugin with Code::Blocks
RegisterPlugin(TestPlugin());
// if you want to call this plugin's Execute() function, use this in a script:
// ExecutePlugin(_T("TestPlugin"));
greetings
Hi!
I fixed this bug in my sqrat port (at least for wx2.8 on Windows). I could not test it under linux, but it should work also there.
Here a "patch"
src/sdk/scripting/bindings/sc_globals.cpp
@@ -164,7 +164,8 @@ namespace ScriptBindings
#if wxCHECK_VERSION(2, 9, 0)
mbar->GetEventHandler()->ProcessEvent(evt);
#else
- if ( !mbar->ProcessEvent(evt) )
+ if(!Manager::Get()->GetAppWindow()->ProcessEvent(evt))
+ //if ( !mbar->ProcessEvent(evt) )
{
(simply change the line 167 in file sdk/scripting/sc_globals.cpp from if ( !mbar->ProcessEvent(evt) )
to if(!Manager::Get()->GetAppWindow()->ProcessEvent(evt))
)
greetings and good night
Hello @BlueHazard
with which version of C :: B?
I just tested quickly with svn 8778 and the result is negative!
///-----------------------------------------------------------------------------
/// ===> no work on VISTA pack2 !!! <====
///-----------------------------------------------------------------------------
///8- start building the project
local menu = _("/&Build/Build")
Mes = Lf + Tab + _T("--> ") + _("Execute menu entrie") + _T(" ")
Mes += Quote + _("Build->Build") + Quote
/// launches the menu
local id
// #if PATCH_CALLMENU
///------------- patch 'int CallMenu(const wxString& menuPath)' ------------
// id = CallMenu(menu)
///-------------------------------------------------------------------------
// #else
CallMenu(menu)
id = _T("??")
// #endif
/// display
Mes += _T(", ") + _("identifier") + _T(" = ") + _T(id.tostring())
::print( Mes )
To morrow I take with basic test...