wxArt2D
transdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: a2dTransDlg.h
3 // Purpose:
4 // Author: Klaas Holwerda
5 // Modified by:
6 // Created: 15/04/2008 10:44:52
7 // RCS-ID:
8 // Copyright: Klaas Holwerda
9 // Licence:
10 /////////////////////////////////////////////////////////////////////////////
11 
12 #ifndef _TRANSFORM_H_
13 #define _TRANSFORM_H_
14 
15 #include "wx/artbase/afmatrix.h"
16 
17 #define ID_TRANSFORM 10008
18 #define SYMBOL_TRANSFORM_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
19 #define SYMBOL_TRANSFORM_TITLE _("transform")
20 #define SYMBOL_TRANSFORM_IDNAME ID_TRANSFORM
21 #define SYMBOL_TRANSFORM_SIZE wxSize(400, 300)
22 #define SYMBOL_TRANSFORM_POSITION wxDefaultPosition
23 
24 
25 /*!
26  * transform class declaration
27  */
28 
29 class a2dTransDlg: public wxDialog
30 {
31  DECLARE_DYNAMIC_CLASS( a2dTransDlg )
32  DECLARE_EVENT_TABLE()
33 
34 public:
35  /// Constructors
36  a2dTransDlg();
37  a2dTransDlg( wxWindow* parent, bool modal = false, wxWindowID id = SYMBOL_TRANSFORM_IDNAME, const wxString& caption = SYMBOL_TRANSFORM_TITLE, const wxPoint& pos = SYMBOL_TRANSFORM_POSITION, const wxSize& size = SYMBOL_TRANSFORM_SIZE, long style = SYMBOL_TRANSFORM_STYLE );
38 
39  /// Creation
40  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_TRANSFORM_IDNAME, const wxString& caption = SYMBOL_TRANSFORM_TITLE, const wxPoint& pos = SYMBOL_TRANSFORM_POSITION, const wxSize& size = SYMBOL_TRANSFORM_SIZE, long style = SYMBOL_TRANSFORM_STYLE );
41 
42  /// Destructor
43  ~a2dTransDlg();
44 
45  /// Initialises member variables
46  void Init();
47 
48  /// Creates the controls and sizers
49  void CreateControls();
50 
51  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_hide
52  void OnHideClick( wxCommandEvent& event );
53 
54  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_apply
55  void OnApplyClick( wxCommandEvent& event );
56 
57  /// Should we show tooltips?
58  static bool ShowToolTips();
59 
60  wxTextCtrl* m_x;
61  wxTextCtrl* m_y;
62  wxTextCtrl* m_scalex;
63  wxTextCtrl* m_scaley;
64  wxCheckBox* m_vertical;
65  wxCheckBox* m_horizontal;
66  wxTextCtrl* m_rotateangle;
67  wxRadioButton* m_clockwise;
68  wxRadioButton* m_counterclockwise;
69  wxButton* m_hide;
70  wxButton* m_apply;
71 
72  a2dAffineMatrix m_lworld;
73 
74  bool m_modal;
75 };
76 
77 #endif
78 // _TRANSFORM_H_
void OnApplyClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_apply
Definition: transdlg.cpp:265
~a2dTransDlg()
Destructor.
Definition: transdlg.cpp:91
void Init()
Initialises member variables.
Definition: transdlg.cpp:99
bool Create(wxWindow *parent, wxWindowID id=SYMBOL_TRANSFORM_IDNAME, const wxString &caption=SYMBOL_TRANSFORM_TITLE, const wxPoint &pos=SYMBOL_TRANSFORM_POSITION, const wxSize &size=SYMBOL_TRANSFORM_SIZE, long style=SYMBOL_TRANSFORM_STYLE)
Creation.
Definition: transdlg.cpp:73
void OnHideClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_hide
Definition: transdlg.cpp:252
A 2x3 affine matrix class for 2D transformations.
Definition: afmatrix.h:53
static bool ShowToolTips()
Should we show tooltips?
Definition: transdlg.cpp:244
void CreateControls()
Creates the controls and sizers.
Definition: transdlg.cpp:114
a2dTransDlg()
Constructors.
Definition: transdlg.cpp:57
affine matrix class
transdlg.h Source File -- Sun Oct 12 2014 17:04:26 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation