24 #define wxCLOSE_BOX 0x1000
26 #ifndef wxFIXED_MINSIZE
27 #define wxFIXED_MINSIZE 0
31 #include "wx/canvas/eval.h"
35 #define SYMBOL_A2DSNAPSETTINGS_TITLE _("Dialog")
36 #define SYMBOL_A2DSNAPSETTINGS_POSITION wxDefaultPosition
37 #define SYMBOL_A2DSNAPSETTINGS_IDNAME ID_SNAP
38 #define SYMBOL_A2DSNAPSETTINGS_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
39 #define SYMBOL_A2DSNAPSETTINGS_SIZE wxSize(400, 300)
54 a2dSnapSettings(
a2dHabitat* habitat, wxWindow* parent, wxWindowID
id = SYMBOL_A2DSNAPSETTINGS_IDNAME,
const wxString& caption = SYMBOL_A2DSNAPSETTINGS_TITLE,
const wxPoint& pos = SYMBOL_A2DSNAPSETTINGS_POSITION,
const wxSize& size = SYMBOL_A2DSNAPSETTINGS_SIZE,
long style = SYMBOL_A2DSNAPSETTINGS_STYLE );
57 bool Create( wxWindow* parent, wxWindowID
id = SYMBOL_A2DSNAPSETTINGS_IDNAME,
const wxString& caption = SYMBOL_A2DSNAPSETTINGS_TITLE,
const wxPoint& pos = SYMBOL_A2DSNAPSETTINGS_POSITION,
const wxSize& size = SYMBOL_A2DSNAPSETTINGS_SIZE,
long style = SYMBOL_A2DSNAPSETTINGS_STYLE );
68 void OnIdle( wxIdleEvent& event );
211 wxCheckBox* m_snapEnabled;
212 wxCheckBox* m_visibleOnly;
216 wxCheckBox* m_pinsConn;
217 wxCheckBox* m_bboxvertexes;
218 wxCheckBox* m_vertexes;
219 wxCheckBox* m_objPosX;
220 wxCheckBox* m_objPosY;
221 wxCheckBox* m_pointPosX;
222 wxCheckBox* m_pointPosY;
223 wxCheckBox* m_pointPosXY;
224 wxTextCtrl* m_gridDistX;
225 wxTextCtrl* m_gridDistY;
228 wxTextCtrl* m_rotation;
229 wxTextCtrl* m_threshold;
230 wxTextCtrl* m_snapPointX;
231 wxTextCtrl* m_snapPointY;
void OnPosPinUnconnClick(wxCommandEvent &event)
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_POS_PIN_UNCONN
void OnSnappointyEnter(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_ENTER event handler for ID_snapPointY
void OnBboxvertexesUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_BBOXVERTEXES
void OnSnaporiginYUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_SnapOrigin_Y
void OnPosYClick(wxCommandEvent &event)
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_POS_Y
void OnPosYObjClick(wxCommandEvent &event)
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_POS_Y_OBJ
void OnPosPinUnconnUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_POS_PIN_UNCONN
void OnIdle(wxIdleEvent &event)
wxEVT_IDLE event handler for ID_SNAP
void OnSnaporiginYEnter(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_ENTER event handler for ID_SnapOrigin_Y
void OnPosPinUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_POS_PIN
void OnVertexesClick(wxCommandEvent &event)
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_VERTEXES
void OnSnaporiginXEnter(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_ENTER event handler for ID_SnapOrigin_X
void OnPosXClick(wxCommandEvent &event)
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_POS_X
void OnPosPinClick(wxCommandEvent &event)
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_POS_PIN
void OnSnappointxEnter(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_ENTER event handler for ID_snapPointX
void OnPosXObjClick(wxCommandEvent &event)
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_POS_X_OBJ
void OnBboxvertexesClick(wxCommandEvent &event)
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_BBOXVERTEXES
void OnSnapgridXUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_SnapGrid_X
void OnCloseWindow(wxCloseEvent &event)
wxEVT_CLOSE_WINDOW event handler for ID_SNAP
void OnVertexesUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_VERTEXES
void CreateControls()
Creates the controls and sizers.
void OnPosYObjUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_POS_Y_OBJ
void OnSnapallClick(wxCommandEvent &event)
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_SNAPALL
void OnPosPointXyUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_POS_POINT_XY
Restriction engine for editing restrictions like snapping.
void OnPosXObjUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_POS_X_OBJ
void OnSnapgridXEnter(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_ENTER event handler for ID_SnapGrid_X
void OnPosPointXyClick(wxCommandEvent &event)
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_POS_POINT_XY
defines common settinsg for a habitat for a set of a2dCameleons.
void OnVisibleonlyUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_VisibleOnly
void OnSnaporiginXUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_SnapOrigin_X
void OnPosPointXUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_POS_POINT_X
void OnPosPointYUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_POS_POINT_Y
the settings used by all other include files are stored here.
static bool ShowToolTips()
Should we show tooltips?
void OnRotsnapangleEnter(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_ENTER event handler for ID_RotSnapAngle
bool Create(wxWindow *parent, wxWindowID id=SYMBOL_A2DSNAPSETTINGS_IDNAME, const wxString &caption=SYMBOL_A2DSNAPSETTINGS_TITLE, const wxPoint &pos=SYMBOL_A2DSNAPSETTINGS_POSITION, const wxSize &size=SYMBOL_A2DSNAPSETTINGS_SIZE, long style=SYMBOL_A2DSNAPSETTINGS_STYLE)
Creation.
void OnPosXUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_POS_X
void OnSnappointyUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_snapPointY
void OnSnappointxUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_snapPointX
void OnSnapgridYUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_SnapGrid_Y
a2dSnapSettings()
Constructors.
void OnPosPointXClick(wxCommandEvent &event)
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_POS_POINT_X
void OnSnapthresholdEnter(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_ENTER event handler for ID_SnapThreshold
void OnSnapallUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_SNAPALL
void OnVisibleonlyClick(wxCommandEvent &event)
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_VisibleOnly
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void OnSnapgridYEnter(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_ENTER event handler for ID_SnapGrid_Y
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void OnPosPointYClick(wxCommandEvent &event)
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_POS_POINT_Y
void OnPosYUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_POS_Y
void OnRotsnapangleUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_RotSnapAngle
general canvas module declarations and classes
void OnSnapthresholdUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_SnapThreshold