~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/plugins/contrib/ReopenEditor/ReopenEditorListView.h

  • Committer: damienlmoore at gmail
  • Date: 2016-02-02 02:43:22 UTC
  • Revision ID: damienlmoore@gmail.com-20160202024322-yql5qmtbwdyamdwd
Code::BlocksĀ 16.01

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 REOPENEDITORLISTVIEW_H
 
7
#define REOPENEDITORLISTVIEW_H
 
8
 
 
9
#include "loggers.h"
 
10
 
 
11
 
 
12
class wxListEvent;
 
13
class cbProject;
 
14
class wxPanel;
 
15
 
 
16
class ReopenEditorListView : public wxPanel
 
17
{
 
18
    public:
 
19
        ReopenEditorListView(const wxArrayString& titles, const wxArrayInt& widths);
 
20
        ~ReopenEditorListView();
 
21
 
 
22
        virtual size_t GetItemsCount() const;
 
23
        virtual void Prepend(const wxString& msg, Logger::level lv = Logger::info);
 
24
        virtual void Prepend(const wxArrayString& colValues, Logger::level lv = Logger::info);
 
25
        virtual void RemoveAt(size_t i);
 
26
        virtual wxArrayString GetItemAsArray(long item) const;
 
27
        virtual wxString GetFilename(long item) const;
 
28
        virtual cbProject* GetProject(long item) const;
 
29
        virtual void SetProject(long item, cbProject* prj) const;
 
30
    private:
 
31
        wxListCtrl* m_pListControl;
 
32
        wxArrayString mTitles;
 
33
        struct ListStyles
 
34
        {
 
35
            wxFont font;
 
36
            wxColour colour;
 
37
        };
 
38
        ListStyles style[Logger::num_levels];
 
39
        void OnDoubleClick(wxListEvent& event);
 
40
        void OnContextMenu(wxContextMenuEvent& /*event*/);
 
41
        void OnReopenItems(wxCommandEvent& event);
 
42
        void OnRemoveItems(wxCommandEvent& event);
 
43
        void OnReopenAll(wxCommandEvent& /*event*/);
 
44
        void OnRemoveAll(wxCommandEvent& /*event*/);
 
45
        void DoShowContextMenu();
 
46
        void DoOpen(wxString fname);
 
47
        void DoOpen(wxArrayString fnames);
 
48
 
 
49
        DECLARE_EVENT_TABLE()
 
50
};
 
51
 
 
52
#endif // REOPENEDITORLISTVIEW_H