ToolMap
Loading...
Searching...
No Matches
tmclosefile_dlg.h
1/***************************************************************************
2 tmclosefile.h
3 -------------------
4 copyright : (C) 2013 CREALP Lucien Schreiber
5 ***************************************************************************/
6
7/***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef _TM_CLOSE_FILE_DLG_H_
17#define _TM_CLOSE_FILE_DLG_H_
18
19#include <wx/wxprec.h>
20
21#ifndef WX_PRECOMP
22#include <wx/wx.h>
23#endif
24
25const int ID_BTN_ALL = wxID_HIGHEST + 14;
26const int ID_BTN_NONE = wxID_HIGHEST + 15;
27const int ID_BTN_INVERT = wxID_HIGHEST + 16;
28
29class tmCloseFile_DLG : public wxDialog {
30 private:
31 wxCheckListBox* m_FileListCtrl;
32 wxButton* m_BtnAllCtrl;
33 wxButton* m_BtnInvertCtrl;
34 wxButton* m_BtnNoneCtrl;
35
36 void _CreateControls();
37
38 void OnBtnAll(wxCommandEvent& event);
39
40 void OnUpdateUIAll(wxUpdateUIEvent& event);
41
42 void OnBtnInvert(wxCommandEvent& event);
43
44 void OnBtnNone(wxCommandEvent& event);
45
46 void OnUpdateUINone(wxUpdateUIEvent& event);
47
48 DECLARE_EVENT_TABLE()
49
50 public:
51 tmCloseFile_DLG(wxWindow* parent, const wxArrayString& choices, wxWindowID id = wxID_ANY,
52 const wxString& title = _("Unlink data"), const wxPoint& pos = wxDefaultPosition,
53 const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER);
54
56
57 wxArrayInt GetSelections();
58};
59
60#endif
Definition tmclosefile_dlg.h:29