00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef _TRANSFORM_H_
00013 #define _TRANSFORM_H_
00014
00015 #include "wx/artbase/afmatrix.h"
00016
00017 #define ID_TRANSFORM 10008
00018 #define SYMBOL_TRANSFORM_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
00019 #define SYMBOL_TRANSFORM_TITLE _("transform")
00020 #define SYMBOL_TRANSFORM_IDNAME ID_TRANSFORM
00021 #define SYMBOL_TRANSFORM_SIZE wxSize(400, 300)
00022 #define SYMBOL_TRANSFORM_POSITION wxDefaultPosition
00023
00024
00025
00026
00027
00028
00029 class a2dTransDlg: public wxDialog
00030 {
00031 DECLARE_DYNAMIC_CLASS( a2dTransDlg )
00032 DECLARE_EVENT_TABLE()
00033
00034 public:
00035
00036 a2dTransDlg();
00037 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 );
00038
00039
00040 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 );
00041
00042
00043 ~a2dTransDlg();
00044
00045
00046 void Init();
00047
00048
00049 void CreateControls();
00050
00051
00052 void OnHideClick( wxCommandEvent& event );
00053
00054
00055 void OnApplyClick( wxCommandEvent& event );
00056
00057
00058 static bool ShowToolTips();
00059
00060 wxTextCtrl* m_x;
00061 wxTextCtrl* m_y;
00062 wxTextCtrl* m_scalex;
00063 wxTextCtrl* m_scaley;
00064 wxCheckBox* m_vertical;
00065 wxCheckBox* m_horizontal;
00066 wxTextCtrl* m_rotateangle;
00067 wxRadioButton* m_clockwise;
00068 wxRadioButton* m_counterclockwise;
00069 wxButton* m_hide;
00070 wxButton* m_apply;
00071
00072 a2dAffineMatrix m_lworld;
00073
00074 bool m_modal;
00075 };
00076
00077 #endif
00078