Game Develop Core: ChooseLayerDialog.h Source File

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
ChooseLayerDialog.h
Go to the documentation of this file.
1
5 #if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
6 #ifndef CHOIXLAYER_H
7 #define CHOIXLAYER_H
8
9 //(*Headers(ChooseLayerDialog)
10 #include <wx/sizer.h>
11 #include <wx/listbox.h>
12 #include <wx/statline.h>
13 #include <wx/button.h>
14 #include <wx/dialog.h>
15 //*)
16 #include "GDCore/PlatformDefinition/Layout.h"
17 #include <string>
18 #include <vector>
19
20 namespace gd
21 {
22
28 class GD_CORE_API ChooseLayerDialog: public wxDialog
29 {
30 public:
31
35 ChooseLayerDialog(wxWindow* parent, const gd::Layout & layout, bool addQuotes_ = true);
36 virtual ~ChooseLayerDialog();
37
41 const std::string & GetChosenLayer() const { return chosenLayer; }
42
43 //(*Declarations(ChooseLayerDialog)
44 wxButton* cancelBt;
45 wxListBox* layersList;
46 wxStaticLine* StaticLine1;
47 wxButton* okBt;
48 //*)
49
50
51 protected:
52
53 //(*Identifiers(ChooseLayerDialog)
54 static const long ID_LISTBOX1;
55 static const long ID_STATICLINE1;
56 static const long ID_BUTTON2;
57 static const long ID_BUTTON1;
58 //*)
59
60 private:
61
62 //(*Handlers(ChooseLayerDialog)
63 void OnokBtClick(wxCommandEvent& event);
64 void OncancelBtClick(wxCommandEvent& event);
65 void OnlayersListDClick(wxCommandEvent& event);
66 //*)
67
68 bool addQuotes;
69 std::string chosenLayer;
70
71 DECLARE_EVENT_TABLE()
72 };
73
74
75 }
76 #endif
77 #endif