15 #ifndef __A2DMEASURE_H__
16 #define __A2DMEASURE_H__
26 #define SYMBOL_A2DMEASUREDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
27 #define SYMBOL_A2DMEASUREDLG_TITLE _("Measure")
28 #define SYMBOL_A2DMEASUREDLG_SIZE wxSize(400, 300)
29 #define SYMBOL_A2DMEASUREDLG_POSITION wxDefaultPosition
37 #define wxCLOSE_BOX 0x1000
39 #ifndef wxFIXED_MINSIZE
40 #define wxFIXED_MINSIZE 0
56 a2dMeasureDlg(
a2dHabitat* habitat, wxWindow* parent, wxWindowID
id = -1,
const wxString& caption = SYMBOL_A2DMEASUREDLG_TITLE,
const wxPoint& pos = SYMBOL_A2DMEASUREDLG_POSITION,
const wxSize& size = SYMBOL_A2DMEASUREDLG_SIZE,
long style = SYMBOL_A2DMEASUREDLG_STYLE );
59 bool Create( wxWindow* parent, wxWindowID
id = -1,
const wxString& caption = SYMBOL_A2DMEASUREDLG_TITLE,
const wxPoint& pos = SYMBOL_A2DMEASUREDLG_POSITION,
const wxSize& size = SYMBOL_A2DMEASUREDLG_SIZE,
long style = SYMBOL_A2DMEASUREDLG_STYLE );
70 void OnIdle( wxIdleEvent& event );
73 void OnXEnter( wxCommandEvent& event );
79 void OnYEnter( wxCommandEvent& event );
113 void AppendMeasure(
double x,
double y );
162 void OnChar( wxKeyEvent& event );
164 void OnMouseEvent( wxMouseEvent& event );
171 DECLARE_EVENT_TABLE()
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
a2dMeasureDlg()
Constructors.
static bool ShowToolTips()
Should we show tooltips?
bool Create(wxWindow *parent, wxWindowID id=-1, const wxString &caption=SYMBOL_A2DMEASUREDLG_TITLE, const wxPoint &pos=SYMBOL_A2DMEASUREDLG_POSITION, const wxSize &size=SYMBOL_A2DMEASUREDLG_SIZE, long style=SYMBOL_A2DMEASUREDLG_STYLE)
Creation.
void OnClearClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CLEAR
void OnSumUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_SUM
vertex list of line and arc segments.
void OnCloseWindow(wxCloseEvent &event)
wxEVT_CLOSE_WINDOW event handler for ID_DIALOG
void OnListboxSelected(wxCommandEvent &event)
wxEVT_COMMAND_LISTBOX_SELECTED event handler for ID_LISTBOX
void OnXEnter(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_ENTER event handler for ID_X
void OnYUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_Y
static const a2dCommandId COMID_PushTool_Measure
push this tool on the tools stack
void CreateControls()
Creates the controls and sizers.
Each a2dCommand is given a command id at construction.
defines common settinsg for a habitat for a set of a2dCameleons.
void OnYEnter(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_ENTER event handler for ID_Y
void OnIdle(wxIdleEvent &event)
wxEVT_IDLE event handler for ID_DIALOG
void OnListboxUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_LISTBOX
void OnHideClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_HIDE
Event sent to a2dCommandProcessor.
void OnXUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_X
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.