wxArt2D
pathsettings.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: a2dPathSettings.h
3 // Purpose:
4 // Author: Klaas Holwerda
5 // Modified by:
6 // Created: 10/04/2008 17:02:58
7 // RCS-ID:
8 // Copyright: Klaas Holwerda
9 // Licence:
10 /////////////////////////////////////////////////////////////////////////////
11 
12 #ifndef _a2dPathSettings_H_
13 #define _a2dPathSettings_H_
14 
15 #include "wx/artbase/artmod.h"
16 #include "wx/canvas/canglob.h"
17 
18 /*!
19  * Includes
20  */
21 
22 ////@begin includes
23 ////@end includes
24 
25 /*!
26  * Forward declarations
27  */
28 
29 ////@begin forward declarations
30 ////@end forward declarations
31 
32 /*!
33  * Control identifiers
34  */
35 
36 ////@begin control identifiers
37 #define ID_a2dPathSettings 10000
38 #define SYMBOL_a2dPathSettings_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
39 #define SYMBOL_a2dPathSettings_TITLE _("Path Settings")
40 #define SYMBOL_a2dPathSettings_IDNAME ID_a2dPathSettings
41 #define SYMBOL_a2dPathSettings_SIZE wxSize(400, 300)
42 #define SYMBOL_a2dPathSettings_POSITION wxDefaultPosition
43 ////@end control identifiers
44 
45 
46 /*!
47  * a2dPathSettings class declaration
48  */
49 
50 class a2dPathSettings: public wxDialog
51 {
52  DECLARE_DYNAMIC_CLASS( a2dPathSettings )
53  DECLARE_EVENT_TABLE()
54 
55 public:
56  /// Constructors
58  a2dPathSettings( a2dHabitat* habitat, wxWindow* parent, wxWindowID id = SYMBOL_a2dPathSettings_IDNAME, const wxString& caption = SYMBOL_a2dPathSettings_TITLE, const wxPoint& pos = SYMBOL_a2dPathSettings_POSITION, const wxSize& size = SYMBOL_a2dPathSettings_SIZE, long style = SYMBOL_a2dPathSettings_STYLE );
59 
60  /// Creation
61  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_a2dPathSettings_IDNAME, const wxString& caption = SYMBOL_a2dPathSettings_TITLE, const wxPoint& pos = SYMBOL_a2dPathSettings_POSITION, const wxSize& size = SYMBOL_a2dPathSettings_SIZE, long style = SYMBOL_a2dPathSettings_STYLE );
62 
63  /// Destructor
65 
66  /// Initialises member variables
67  void Init();
68 
69  /// Creates the controls and sizers
70  void CreateControls();
71 
72  /// Should we show tooltips?
73  static bool ShowToolTips();
74 
75 private:
76 
77 ////@begin a2dPathSettings event handler declarations
78 
79  /// wxEVT_COMMAND_TEXT_ENTER event handler for ID_WIDTH
80  void OnWidthEnter( wxCommandEvent& event );
81 
82  /// wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_UNITS
83  void OnUnitsSelected( wxCommandEvent& event );
84 
85  /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_Rounded
86  void OnRoundedSelected( wxCommandEvent& event );
87 
88  /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_Rectangle
89  void OnRectangleSelected( wxCommandEvent& event );
90 
91  /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RectangleExt
92  void OnRectangleExtSelected( wxCommandEvent& event );
93 
94  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_HIDE
95  void OnHideClick( wxCommandEvent& event );
96 
97  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_APPLY
98  void OnApplyClick( wxCommandEvent& event );
99 
100  void OnComEvent( a2dComEvent& event );
101 
102  wxTextCtrl* m_width;
103  wxChoice* m_units;
104  wxRadioButton* m_rounded;
105  wxRadioButton* m_rectangular;
106  wxRadioButton* m_extRectangular;
107  wxButton* m_hide;
108  wxButton* m_apply;
109 
110  a2dPATH_END_TYPE m_pathtype;
111  a2dDoMu m_contourWidth;
112  wxArrayString m_unitsStrings;
113 
114  a2dHabitat* m_habitat;
115 };
116 
117 #endif
118 // _a2dPathSettings_H_
a2dPATH_END_TYPE
defines the way a polyline with a contour width is ended.
Definition: polyver.h:31
bool Create(wxWindow *parent, wxWindowID id=SYMBOL_a2dPathSettings_IDNAME, const wxString &caption=SYMBOL_a2dPathSettings_TITLE, const wxPoint &pos=SYMBOL_a2dPathSettings_POSITION, const wxSize &size=SYMBOL_a2dPathSettings_SIZE, long style=SYMBOL_a2dPathSettings_STYLE)
Creation.
store and convert number to number with unit and visa versa. e.g. 1.23e-6 => 1.23 * 1e-6 ...
Definition: artglob.h:208
a2dPathSettings()
Constructors.
void Init()
Initialises member variables.
defines common settinsg for a habitat for a set of a2dCameleons.
Definition: canglob.h:439
~a2dPathSettings()
Destructor.
void CreateControls()
Creates the controls and sizers.
see a2dComEvent
Definition: gen.h:371
all headers of the artbase module in one.
static bool ShowToolTips()
Should we show tooltips?
general canvas module declarations and classes
pathsettings.h Source File -- Sun Oct 12 2014 17:04:23 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation