00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef _WX_EXECDLGH__
00014 #define _WX_EXECDLGH__
00015
00016 #include "wx/editor/editmod.h"
00017
00018
00019 class A2DEDITORDLLEXP CopywxListBox: public wxListBox
00020
00021 {
00022
00023 public:
00024
00025 CopywxListBox(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size,
00026 int n,const wxString choices[],long style);
00027
00028 void OnMouseRightDown(class wxMouseEvent &);
00029 void CopySel(class wxCommandEvent &event);
00030 void CopyAll(class wxCommandEvent &event);
00031
00032 wxMenu* m_mousemenu;
00033
00034
00035 DECLARE_EVENT_TABLE()
00036
00037 };
00038
00039
00040
00041 #define IDEntry_DIALOG 10004
00042 #define SYMBOL_A2DCOORDINATEENTRY_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
00043 #define SYMBOL_A2DCOORDINATEENTRY_TITLE _("SetCursor")
00044 #define SYMBOL_A2DCOORDINATEENTRY_IDNAME IDEntry_DIALOG
00045 #define SYMBOL_A2DCOORDINATEENTRY_SIZE wxSize(400, 300)
00046 #define SYMBOL_A2DCOORDINATEENTRY_POSITION wxDefaultPosition
00047 #define IDentry_X 10000
00048 #define IDentry_Y 10001
00049 #define IDentry_CalcCoord 10002
00050 #define IDentry_CartPolar 10003
00051 #define IDentry_AbsRel 10005
00052 #define IDentry_Snap 10006
00053 #define IDentry_Hide 10007
00054 #define IDentry_Apply 10008
00055 #define IDentry_Cancel 10009
00056
00057
00058
00059
00060
00061
00062 #ifndef wxCLOSE_BOX
00063 #define wxCLOSE_BOX 0x1000
00064 #endif
00065 #ifndef wxFIXED_MINSIZE
00066 #define wxFIXED_MINSIZE 0
00067 #endif
00068
00069
00070
00071
00072
00073 class a2dCoordinateEntry: public wxDialog
00074 {
00075 DECLARE_DYNAMIC_CLASS( a2dCoordinateEntry )
00076 DECLARE_EVENT_TABLE()
00077
00078 public:
00079
00080 a2dCoordinateEntry( );
00081 a2dCoordinateEntry( wxWindow* parent, wxWindowID id = SYMBOL_A2DCOORDINATEENTRY_IDNAME, bool modal = false, const wxString& caption = SYMBOL_A2DCOORDINATEENTRY_TITLE, const wxPoint& pos = SYMBOL_A2DCOORDINATEENTRY_POSITION, const wxSize& size = SYMBOL_A2DCOORDINATEENTRY_SIZE, long style = SYMBOL_A2DCOORDINATEENTRY_STYLE );
00082
00083
00084 bool Create( wxWindow* parent, wxWindowID id = SYMBOL_A2DCOORDINATEENTRY_IDNAME, const wxString& caption = SYMBOL_A2DCOORDINATEENTRY_TITLE, const wxPoint& pos = SYMBOL_A2DCOORDINATEENTRY_POSITION, const wxSize& size = SYMBOL_A2DCOORDINATEENTRY_SIZE, long style = SYMBOL_A2DCOORDINATEENTRY_STYLE );
00085
00086
00087 void CreateControls( long style );
00088
00089
00090 void OnEntryXEnter( wxCommandEvent& event );
00091
00092
00093 void OnEntryYEnter( wxCommandEvent& event );
00094
00095
00096 void OnEntryCalccoordEnter( wxCommandEvent& event );
00097
00098
00099 void OnEntryCartpolarSelected( wxCommandEvent& event );
00100
00101
00102 void OnEntryAbsrelSelected( wxCommandEvent& event );
00103
00104
00105 void OnEntrySnapClick( wxCommandEvent& event );
00106
00107
00108 void OnEntryHideClick( wxCommandEvent& event );
00109
00110
00111 void OnEntryApplyClick( wxCommandEvent& event );
00112
00113
00114 void OnEntryCancelClick( wxCommandEvent& event );
00115
00116
00117 wxBitmap GetBitmapResource( const wxString& name );
00118
00119
00120 wxIcon GetIconResource( const wxString& name );
00121
00122
00123 static bool ShowToolTips();
00124
00125
00126 void CalcCoordinate();
00127
00128 wxTextCtrl* m_x;
00129 wxTextCtrl* m_y;
00130 wxTextCtrl* m_calcCoord;
00131 wxRadioBox* m_cartPolar;
00132 wxRadioBox* m_absRel;
00133 wxCheckBox* m_snap;
00134 wxButton* m_hide;
00135 wxButton* m_apply;
00136 wxButton* m_cancel;
00137
00138 wxStaticText* m_xText;
00139 wxStaticText* m_yText;
00140
00141 double m_xcalc;
00142 double m_ycalc;
00143
00144 bool m_modal;
00145 };
00146
00147
00148
00149 #endif