Hello,
I have updated the svn repository (revision 64).
IMPROVEMENT: 1 - catch events when environment settings are updated (to update wxAUI colors)
2 - added some tooltips and help text (only in code. Not displayed yet). Work is still in progress.
3 - SVN repository cleanup (removed the compiled files XPMEditor.cbplugin, XPMEditor.dll, XMPEditor.zip, test.bmp)
QUESTION FOR THE CODE::BLOCKS TEAM:I am using wxAUI in my plugin. Since there are some Code::Blocks settings for wxAUI (menu Settings / environment / Docking system), I think it is better if the plugin uses the same settings as the IDE.
There are, at my knowledge, no events indicating that settings have been updated.
The only way I have found to know when settings are updated is to use a hack. I am using this notification update in Codeblocks/src/main.cpp
void MainFrame::OnSettingsEnvironment()
{
...
Manager::Get()->GetLogManager()->NotifyUpdate();
}
I have therefore created a fake logger: it derives from the class
, but if does not create a control. It implements the UpdateSettings virtual methods, but none others. The result is that it works as expected, and it does not add an additionnal Tab in the log window.
In short, it does what I want.
However, I keep thinking it is a hack. Is it possible to add a Code::Blocks event when some settings are updated ?
Sebastien