I have been trying a while to get the QTWorkbench plugin to work for me. Actually the one shot timer in qtworkbench seemed never to trigger and the menu remained grayed out after each compile. The only way to reset (That I could find) was to restart CB.
Anyway, I added the line
m_Timer.SetOwner(this,idQtWbTimer); just before starting the timer in the OnProcessTerminated method. It actually made things work.
See excerpt below. I could submit a patch but it is really only one line to add.
When reading the wxWidgets documentation it seem like that line has to be called in order to direct the timer message.
void QtWorkbench::OnProcessTerminated(CodeBlocksEvent& event)
{
......
......
......
wxMenuBar* mbar = Manager::Get()->GetAppWindow()->GetMenuBar();
if (mbar)
{
mbar->Enable(idQtWbMenuCompile,false);
mbar->Enable(idQtWbMenuClean,false);
mbar->Enable(idQtWbMenuRebuild,false);
mbar->Enable(idQtWbMenuDistClean,false);
mbar->Enable(idQtWbMenuCompileWorkspace,false);
mbar->Enable(idQtWbMenuRebuildWorkspace,false);
mbar->Enable(idQtWbMenuCleanWorkspace,false);
}
m_Timer.SetOwner(this,idQtWbTimer); m_Timer.Start(500,wxTIMER_ONE_SHOT);
}
Br Joachim