7 #ifndef CAFU_TOOL_OPTIONS_BARS_HPP_INCLUDED
8 #define CAFU_TOOL_OPTIONS_BARS_HPP_INCLUDED
17 #if defined(_WIN32) && defined(_MSC_VER)
19 #pragma warning(disable:6011)
23 #include "wx/spinctrl.h"
44 wxCheckBox* m_AutoGroupEntities;
66 unsigned long NrOfFaces;
67 unsigned long NrOfFacesMin;
68 unsigned long NrOfFacesMax;
74 const int GetNrOfFaces ()
const {
return m_NrOfFacesSpinControl->GetValue(); }
75 const int GetBrushIndex()
const {
return m_BrushPrimitiveChoice->GetSelection(); }
80 wxChoice* m_BrushPrimitiveChoice;
81 wxSpinCtrl* m_NrOfFacesSpinControl;
84 void OnSelChangeBrushPrimitives(wxCommandEvent& Event);
85 void OnSpinCtrlNrOfFaces (wxSpinEvent& Event);
90 ID_CHOICE_BRUSH_PRIMITIVES=wxID_HIGHEST+1,
91 ID_SPINCTRL_NR_OF_FACES
118 unsigned long GetPatchResX()
const;
119 unsigned long GetPatchResY()
const;
120 bool WithConvexEndCaps()
const {
return m_CheckConvex ->GetValue(); }
121 bool WithConcaveEndCaps()
const {
return m_CheckConcave->GetValue(); }
123 wxChoice* m_ChoicePatchType;
124 wxSpinCtrl* m_SpinCtrlSubdivsHorz;
125 wxSpinCtrl* m_SpinCtrlSubdivsVert;
132 wxChoice* m_ChoicePatchResX;
133 wxChoice* m_ChoicePatchResY;
136 wxCheckBox* m_CheckConvex;
137 wxCheckBox* m_CheckConcave;
139 void OnPatchTypeChoice(wxCommandEvent& Event);
149 DECLARE_EVENT_TABLE()
161 wxComboBox* m_ComboBoxHeightmapName;
172 void OnButtonBrowse(wxCommandEvent& Event);
177 ID_BUTTON_BROWSE=wxID_HIGHEST+1,
180 DECLARE_EVENT_TABLE()
228 wxRadioButton* m_RB_ClipModeKeepFront;
229 wxRadioButton* m_RB_ClipModeKeepBack;
230 wxRadioButton* m_RB_ClipModeKeepBoth;
233 void OnSelChangeClipMode(wxCommandEvent& CE);
238 ID_RB_CLIPMODE_KEEP_FRONT=wxID_HIGHEST+1,
239 ID_RB_CLIPMODE_KEEP_BACK,
240 ID_RB_CLIPMODE_KEEP_BOTH
243 DECLARE_EVENT_TABLE()
252 enum EditModeT { EditVertices, EditEdges, EditBoth };
276 wxRadioButton* m_RB_EditModeVertices;
277 wxRadioButton* m_RB_EditModeEdges;
278 wxRadioButton* m_RB_EditModeBoth;
281 void OnSelChangeEditMode(wxCommandEvent& CE);
284 void OnButtonInsertVertex(wxCommandEvent& Event);
289 ID_RB_EDITMODE_VERTICES=wxID_HIGHEST+1,
290 ID_RB_EDITMODE_EDGES,
292 ID_BUTTON_INSERT_VERTEX
295 DECLARE_EVENT_TABLE()
This class represents a CaWE "map" document.
Definition: MapDocument.hpp:45