wxArt2D
camcreate.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: camcreate.h
3 // Purpose:
4 // Author: K
5 // Modified by:
6 // Created: 27/10/2013 15:43:45
7 // RCS-ID:
8 // Copyright: H
9 // Licence:
10 /////////////////////////////////////////////////////////////////////////////
11 
12 // Generated by DialogBlocks (unregistered), 27/10/2013 15:43:45
13 
14 #ifndef _CAMCREATE_H_
15 #define _CAMCREATE_H_
16 
17 
18 /*!
19  * Includes
20  */
21 
22 ////@begin includes
23 #include "wx/spinctrl.h"
24 #include "wx/canvas/cameleon.h"
25 ////@end includes
26 
27 /*!
28  * Forward declarations
29  */
30 
31 ////@begin forward declarations
32 class wxSpinCtrl;
33 ////@end forward declarations
34 
35 /*!
36  * Control identifiers
37  */
38 
39 ////@begin control identifiers
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
58 ////@end control identifiers
59 
60 
61 /*!
62  * a2dCamCreate class declaration
63  */
64 
65 class a2dCamCreate: public wxDialog
66 {
67  DECLARE_DYNAMIC_CLASS( a2dCamCreate )
68  DECLARE_EVENT_TABLE()
69 
70 public:
71  /// Constructors
72  a2dCamCreate();
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 );
74 
75  /// Creation
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 );
77 
78  /// Destructor
79  ~a2dCamCreate();
80 
81  /// Initialises member variables
82  void Init();
83 
84  /// Creates the controls and sizers
85  void CreateControls();
86 
87 ////@begin a2dCamCreate event handler declarations
88 
89  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CamCreateOke
90  void OnCamCreateOkeClick( wxCommandEvent& event );
91 
92  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CamCreateCancel
93  void OnCancel( wxCommandEvent& event );
94 
95 ////@end a2dCamCreate event handler declarations
96 
97 ////@begin a2dCamCreate member function declarations
98 
99  /// Retrieves bitmap resources
100  wxBitmap GetBitmapResource( const wxString& name );
101 
102  /// Retrieves icon resources
103  wxIcon GetIconResource( const wxString& name );
104 ////@end a2dCamCreate member function declarations
105 
106  /// Should we show tooltips?
107  static bool ShowToolTips();
108 
109 ////@begin a2dCamCreate member variables
110  a2dHabitat* m_habitat;
111  wxTextCtrl* m_camName;
112  wxSpinCtrl* m_NrPorts;
113  wxCheckBox* m_symbol;
114  wxCheckBox* m_diagram;
115  wxCheckBox* m_gui;
116  wxRadioButton* m_instanceSymbol;
117  wxRadioButton* m_instanceDiagram;
118  wxRadioButton* m_noInst;
119  wxButton* m_oke;
120  wxButton* m_cancel;
121 
122  a2dCameleonPtr m_cameleon;
123 ////@end a2dCamCreate member variables
124 };
125 
126 #endif
127  // _CAMCREATE_H_
~a2dCamCreate()
Destructor.
Definition: camcreate.cpp:94
void OnCamCreateOkeClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CamCreateOke
Definition: camcreate.cpp:270
static bool ShowToolTips()
Should we show tooltips?
Definition: camcreate.cpp:234
void Init()
Initialises member variables.
Definition: camcreate.cpp:105
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
Definition: camcreate.cpp:256
defines common settinsg for a habitat for a set of a2dCameleons.
Definition: canglob.h:439
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
Definition: camcreate.cpp:243
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.
Definition: camcreate.cpp:72
void OnCancel(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CamCreateCancel
Definition: camcreate.cpp:326
void CreateControls()
Creates the controls and sizers.
Definition: camcreate.cpp:127
a2dCamCreate()
Constructors.
Definition: camcreate.cpp:56
camcreate.h Source File -- Sun Oct 12 2014 17:04:12 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation