/***************************************************************
* Name: todolist.h
* Purpose: Code::Blocks plugin
* Author: Yiannis Mandravellos <mandrav@codeblocks.org>
* 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 <wx/wx.h>
#include <wx/wxprec.h>
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include <wx/menu.h>
#include <wx/toolbar.h>
#endif
#include <settings.h> // much of the SDK is here
#include <sdk_events.h>
#include <cbplugin.h> // the base class we 're inheriting
#include <wx/dynarray.h>
#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
syntax highlighted by Code2HTML, v. 0.9.1