1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3  * http://www.gnu.org/licenses/lgpl-3.0.html
4  */
5 
6 #ifndef PROJECTSFILEMASKSDLG_H
7 #define PROJECTSFILEMASKSDLG_H
8 
9 #include "scrollingdialog.h"
10 #include "filegroupsandmasks.h"
11 
12 class DLLIMPORT ProjectsFileMasksDlg : public wxScrollingDialog
13 {
14     public:
15         ProjectsFileMasksDlg(wxWindow* parent, FilesGroupsAndMasks* fgam);
16         ~ProjectsFileMasksDlg() override;
17 
18         void OnUpdateUI(wxUpdateUIEvent& event);
19         void OnAdd(wxCommandEvent& event);
20         void OnEdit(wxCommandEvent& event);
21         void OnDelete(wxCommandEvent& event);
22         void OnSetDefault(wxCommandEvent& event);
23         void OnListChanged(wxCommandEvent& event);
24     protected:
25     private:
26         void RebuildList();
27         void ListChange();
28 
29         void EndModal(int retCode) override;
30 
31         FilesGroupsAndMasks  m_FileGroupsAndMasksCopy;
32         FilesGroupsAndMasks* m_pFileGroupsAndMasks;
33         int                  m_LastListSelection;
34 
35         DECLARE_EVENT_TABLE();
36 };
37 
38 #endif // PROJECTSFILEMASKSDLG_H
39