23 #include "wx/spinctrl.h"
40 #define ID_A2DCAMCREATE 10013
41 #define ID__CamNameText 10000
42 #define ID_CamName 10014
43 #define ID_NrPortsText 10015
44 #define ID_NrPorts 10016
45 #define ID_InstSymbol 10017
46 #define ID__InstDiagram 10018
47 #define ID_InstGui 10019
48 #define ID_RADIOBUTTON 10020
49 #define ID_RADIOBUTTON1 10021
50 #define ID_RADIOBUTTON2 10022
51 #define ID_CamCreateOke 10023
52 #define ID_CamCreateCancel 10024
53 #define SYMBOL_A2DCAMCREATE_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
54 #define SYMBOL_A2DCAMCREATE_TITLE _("camcreate")
55 #define SYMBOL_A2DCAMCREATE_IDNAME ID_A2DCAMCREATE
56 #define SYMBOL_A2DCAMCREATE_SIZE wxSize(400, 300)
57 #define SYMBOL_A2DCAMCREATE_POSITION wxDefaultPosition
73 a2dCamCreate( wxWindow* parent,
a2dHabitat* habitat = NULL, wxWindowID
id = SYMBOL_A2DCAMCREATE_IDNAME,
const wxString& caption = SYMBOL_A2DCAMCREATE_TITLE,
const wxPoint& pos = SYMBOL_A2DCAMCREATE_POSITION,
const wxSize& size = SYMBOL_A2DCAMCREATE_SIZE,
long style = SYMBOL_A2DCAMCREATE_STYLE );
76 bool Create( wxWindow* parent,
a2dHabitat* habitat = NULL, wxWindowID
id = SYMBOL_A2DCAMCREATE_IDNAME,
const wxString& caption = SYMBOL_A2DCAMCREATE_TITLE,
const wxPoint& pos = SYMBOL_A2DCAMCREATE_POSITION,
const wxSize& size = SYMBOL_A2DCAMCREATE_SIZE,
long style = SYMBOL_A2DCAMCREATE_STYLE );
93 void OnCancel( wxCommandEvent& event );
111 wxTextCtrl* m_camName;
112 wxSpinCtrl* m_NrPorts;
113 wxCheckBox* m_symbol;
114 wxCheckBox* m_diagram;
116 wxRadioButton* m_instanceSymbol;
117 wxRadioButton* m_instanceDiagram;
118 wxRadioButton* m_noInst;
~a2dCamCreate()
Destructor.
void OnCamCreateOkeClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CamCreateOke
static bool ShowToolTips()
Should we show tooltips?
void Init()
Initialises member variables.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
defines common settinsg for a habitat for a set of a2dCameleons.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
special a2dCanvasObject to make a multi view hierachy.
bool Create(wxWindow *parent, a2dHabitat *habitat=NULL, wxWindowID id=SYMBOL_A2DCAMCREATE_IDNAME, const wxString &caption=SYMBOL_A2DCAMCREATE_TITLE, const wxPoint &pos=SYMBOL_A2DCAMCREATE_POSITION, const wxSize &size=SYMBOL_A2DCAMCREATE_SIZE, long style=SYMBOL_A2DCAMCREATE_STYLE)
Creation.
void OnCancel(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CamCreateCancel
void CreateControls()
Creates the controls and sizers.
a2dCamCreate()
Constructors.