Game Develop Core: ChooseObjectTypeDialog.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
ChooseObjectTypeDialog.h
Go to the documentation of this file.
1
5 #if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
6 #ifndef ChooseObjectTypeDialog_H
7 #define ChooseObjectTypeDialog_H
8
9 //(*Headers(ChooseObjectTypeDialog)
10 #include <wx/listctrl.h>
11 #include <wx/sizer.h>
12 #include <wx/stattext.h>
13 #include <wx/statline.h>
14 #include <wx/hyperlink.h>
15 #include <wx/choice.h>
16 #include <wx/statbmp.h>
17 #include <wx/button.h>
18 #include <wx/dialog.h>
19 //*)
20 #include <string>
21 namespace gd { class Project; }
22
23 namespace gd
24 {
25
31 class GD_CORE_API ChooseObjectTypeDialog: public wxDialog
32 {
33 public:
34
41 ChooseObjectTypeDialog(wxWindow* parent, gd::Project & project);
42 virtual ~ChooseObjectTypeDialog();
43
47 const std::string & GetSelectedObjectType() const { return selectedObjectType; }
48
49 //(*Declarations(ChooseObjectTypeDialog)
50 wxStaticBitmap* StaticBitmap2;
51 wxChoice* platformChoice;
52 wxStaticText* StaticText2;
53 wxStaticText* StaticText1;
54 wxButton* cancelBt;
55 wxStaticLine* StaticLine2;
56 wxHyperlinkCtrl* helpBt;
57 wxButton* okBt;
58 wxListCtrl* objectsList;
59 //*)
60
61
62 protected:
63
64 //(*Identifiers(ChooseObjectTypeDialog)
65 static const long ID_STATICTEXT2;
66 static const long ID_LISTCTRL1;
67 static const long ID_STATICTEXT1;
68 static const long ID_STATICLINE2;
69 static const long ID_CHOICE1;
70 static const long ID_STATICBITMAP5;
71 static const long ID_HYPERLINKCTRL2;
72 static const long ID_BUTTON1;
73 static const long ID_BUTTON2;
74 //*)
75
76 private:
77
78 //(*Handlers(ChooseObjectTypeDialog)
79 void OnobjectsListItemSelect(wxListEvent& event);
80 void OnobjectsListItemActivated(wxListEvent& event);
81 void OncancelBtClick(wxCommandEvent& event);
82 void OnokBtClick(wxCommandEvent& event);
83 void OnClose(wxCloseEvent& event);
84 void OnmoreObjectsBtClick(wxCommandEvent& event);
85 void OnhelpBtClick(wxCommandEvent& event);
86 void OnResize(wxSizeEvent& event);
87 void OnobjectsListItemSelect1(wxListEvent& event);
88 void OnplatformChoiceSelect(wxCommandEvent& event);
89 //*)
90
91 void UpdateListColumnsWidth();
92 void RefreshList();
93
94 gd::Project & project;
95 std::string selectedObjectType;
96
97 DECLARE_EVENT_TABLE()
98 };
99
100 }
101
102 #endif
103 #endif