/*************************************************************** * Name: todolist.h * Purpose: Code::Blocks plugin * Author: Yiannis Mandravellos * Created: 11/21/03 14:01:50 * Copyright: (c) Yiannis Mandravellos * License: GPL **************************************************************/ #ifndef TODOLIST_H #define TODOLIST_H #if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "todolist.h" #endif // For compilers that support precompilation, includes #include #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include #include #endif #include // much of the SDK is here #include #include // the base class we 're inheriting #include #include "todolistview.h" class ToDoList : public cbPlugin { public: ToDoList(); ~ToDoList(); int Configure(); void BuildMenu(wxMenuBar* menuBar); void BuildModuleMenu(const ModuleType type, wxMenu* menu, const wxString& arg); bool BuildToolBar(wxToolBar* toolBar); void OnAttach(); // fires when the plugin is attached to the application void OnRelease(bool appShutDown); // fires when the plugin is released from the application protected: void OnAddItem(wxCommandEvent& event); void OnReparse(CodeBlocksEvent& event); private: void LoadTypes(); void SaveTypes(); ToDoListView* m_pListLog; int m_ListPageIndex; bool m_AutoRefresh; wxArrayString m_Types; DECLARE_EVENT_TABLE() }; CB_DECLARE_PLUGIN(); #endif // TODOLIST_H