~ubuntu-branches/ubuntu/hardy/codeblocks/hardy-backports

« back to all changes in this revision

Viewing changes to src/plugins/todo/todolist.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-17 04:39:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080717043923-gmsy5cwkdjswghkm
Tags: upstream-8.02
ImportĀ upstreamĀ versionĀ 8.02

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
 
3
 * http://www.gnu.org/licenses/gpl-3.0.html
 
4
 */
 
5
 
 
6
#ifndef TODOLIST_H
 
7
#define TODOLIST_H
 
8
 
 
9
#ifdef __BORLANDC__
 
10
    #pragma hdrstop
 
11
#endif
 
12
 
 
13
#include <wx/arrstr.h>
 
14
#include "cbplugin.h" // the base class we 're inheriting
 
15
#include "globals.h"
 
16
 
 
17
class wxMenuBar;
 
18
class wxMenu;
 
19
class wxToolBar;
 
20
class FileTreeData;
 
21
class wxCommandEvent;
 
22
class wxUpdateUIEvent;
 
23
class CodeBlocksEvent;
 
24
class ToDoListView;
 
25
class FileTreeData;
 
26
 
 
27
class ToDoList : public cbPlugin
 
28
{
 
29
    public:
 
30
        ToDoList();
 
31
        ~ToDoList();
 
32
        virtual cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
 
33
        int Configure();
 
34
        void BuildMenu(wxMenuBar* menuBar);
 
35
        void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0);
 
36
        bool BuildToolBar(wxToolBar* toolBar);
 
37
        void OnAttach(); // fires when the plugin is attached to the application
 
38
        void OnRelease(bool appShutDown); // fires when the plugin is released from the application
 
39
    private:
 
40
        void OnAppDoneStartup(CodeBlocksEvent& event);
 
41
        void OnViewList(wxCommandEvent& event);
 
42
        void OnAddItem(wxCommandEvent& event);
 
43
        void OnReparse(CodeBlocksEvent& event);
 
44
        void OnReparseCurrent(CodeBlocksEvent& event);
 
45
        void OnUpdateUI(wxUpdateUIEvent& event);
 
46
        void OnStartParsingProjects(wxTimerEvent& event);
 
47
        void LoadTypes();
 
48
        void SaveTypes();
 
49
        void ParseCurrent(bool forced = false);
 
50
        void Parse();
 
51
 
 
52
        ToDoListView* m_pListLog;
 
53
        int m_ListPageIndex;
 
54
        bool m_AutoRefresh;
 
55
        bool m_InitDone;
 
56
        bool m_ParsePending;
 
57
        bool m_StandAlone;
 
58
        wxArrayString m_Types;
 
59
        wxTimer m_timer;
 
60
 
 
61
        DECLARE_EVENT_TABLE()
 
62
};
 
63
 
 
64
#endif // TODOLIST_H
 
65