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
6
#ifndef REOPENEDITORLISTVIEW_H
7
#define REOPENEDITORLISTVIEW_H
16
class ReopenEditorListView : public wxPanel
19
ReopenEditorListView(const wxArrayString& titles, const wxArrayInt& widths);
20
~ReopenEditorListView();
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;
31
wxListCtrl* m_pListControl;
32
wxArrayString mTitles;
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);
52
#endif // REOPENEDITORLISTVIEW_H