Bug #12842 2008-01-03 22:46

dje

Bad CodeBlocksLogEvent processing

Use ThreadSearch plugin v1.1 and enable it in Messages notebook (default behaviour).

To-do and Script console tabs are just after ThreadSearch tab.

Select the ThreadSearch tab.

Click on View/ThreadSearch. The panel is removed from Messages notebook with this code:

CodeBlocksLogEvent evt(cbEVT_REMOVE_LOG_WINDOW, m_pThreadSearchView);

Manager::Get()->ProcessEvent(evt);

m_pThreadSearchView->Reparent(Manager::Get()->GetAppWindow());

m_pThreadSearchView->Show(false);

Click on View/ThreadSearch. The panel is added to Messages notebook with this code:

wxBitmap bmp;

wxString prefix = ConfigManager::GetDataFolder() + _T("/images/16x16/");

bmp = cbLoadBitmap(prefix + _T("filefind.png"), wxBITMAP_TYPE_PNG);

// Adds log to C::B Messages notebook

CodeBlocksLogEvent evtShow(cbEVT_ADD_LOG_WINDOW, m_pThreadSearchView, wxString(_T("Thread search")), &bmp);

Manager::Get()->ProcessEvent(evtShow);

CodeBlocksLogEvent evtSwitch(cbEVT_SWITCH_TO_LOG_WINDOW, m_pThreadSearchView);

Manager::Get()->ProcessEvent(evtSwitch);

The ThreadSearch tab appears in last position.

I want to set the ThreadSearch tab with the following code

CodeBlocksLogEvent evtShow(cbEVT_SHOW_LOG_MANAGER);

Manager::Get()->ProcessEvent(evtShow);

CodeBlocksLogEvent evtSwitch(cbEVT_SWITCH_TO_LOG_WINDOW, m_pThreadSearchView);

Manager::Get()->ProcessEvent(evtSwitch);

and at this time, the To-Do tab is activated. Note that it was ThreadSearch tab first position.

Category
Application::Interface
Group
 
Status
Closed
Close date
2008-01-10 11:04
Assigned to
 
mandrav 2008-01-10 11:04

This bug is now fixed in HEAD.

Thank you for reporting it.