I have submitted a patch to BerliOS for your consideration.
http://developer.berlios.de/patch/?func=detailpatch&patch_id=2423&group_id=5358This patch lets the TODO List remember the scope that was last being used.
Currently, when Code::Blocks is started, the TODO List will always be using the "Current File" scope. This patch will set it to whatever it was at when Code::Blocks was last used.
I've always used it at Project scope, and would often forget to reset it when I reload Code::Blocks.
Files affected:src/plugins/todo/todolistview.cpp
The patch:Index: src/plugins/todo/todolistview.cpp
===================================================================
--- src/plugins/todo/todolistview.cpp (revision 4978)
+++ src/plugins/todo/todolistview.cpp (working copy)
@@ -95,7 +95,8 @@
hbs->Add(new wxStaticText(panel, wxID_ANY, _("Scope:")), 0, wxTOP, 4);
m_pSource = new wxComboBox(panel, idSource, wxEmptyString, wxDefaultPosition, wxDefaultSize, 3, &choices[0], wxCB_READONLY);
- m_pSource->SetSelection(0);
+ int source = Manager::Get()->GetConfigManager(_T("todo_list"))->ReadInt(_T("source"), 0);
+ m_pSource->SetSelection(source);
hbs->Add(m_pSource, 0, wxLEFT | wxRIGHT, 8);
hbs->Add(new wxStaticText(panel, wxID_ANY, _("User:")), 0, wxTOP, 4);
@@ -451,6 +452,7 @@
void ToDoListView::OnComboChange(wxCommandEvent& event)
{
+ Manager::Get()->GetConfigManager(_T("todo_list"))->Write(_T("source"), m_pSource->GetSelection() );
Parse();
}