00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef _a2dPathSettings_H_
00013 #define _a2dPathSettings_H_
00014
00015 #include "wx/artbase/artmod.h"
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #define ID_a2dPathSettings 10000
00037 #define SYMBOL_a2dPathSettings_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
00038 #define SYMBOL_a2dPathSettings_TITLE _("Path Settings")
00039 #define SYMBOL_a2dPathSettings_IDNAME ID_a2dPathSettings
00040 #define SYMBOL_a2dPathSettings_SIZE wxSize(400, 300)
00041 #define SYMBOL_a2dPathSettings_POSITION wxDefaultPosition
00042
00043
00044
00045
00046
00047
00048
00049 class a2dPathSettings: public wxDialog
00050 {
00051 DECLARE_DYNAMIC_CLASS( a2dPathSettings )
00052 DECLARE_EVENT_TABLE()
00053
00054 public:
00055
00056 a2dPathSettings();
00057 a2dPathSettings( 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 );
00058
00059
00060 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 );
00061
00062
00063 ~a2dPathSettings();
00064
00065
00066 void Init();
00067
00068
00069 void CreateControls();
00070
00071
00072 static bool ShowToolTips();
00073
00074 private:
00075
00076
00077
00078
00079 void OnWidthEnter( wxCommandEvent& event );
00080
00081
00082 void OnUnitsSelected( wxCommandEvent& event );
00083
00084
00085 void OnRoundedSelected( wxCommandEvent& event );
00086
00087
00088 void OnRectangleSelected( wxCommandEvent& event );
00089
00090
00091 void OnRectangleExtSelected( wxCommandEvent& event );
00092
00093
00094 void OnHideClick( wxCommandEvent& event );
00095
00096
00097 void OnApplyClick( wxCommandEvent& event );
00098
00099 void OnComEvent( a2dComEvent& event );
00100
00101 wxTextCtrl* m_width;
00102 wxChoice* m_units;
00103 wxRadioButton* m_rounded;
00104 wxRadioButton* m_rectangular;
00105 wxRadioButton* m_extRectangular;
00106 wxButton* m_hide;
00107 wxButton* m_apply;
00108
00109 a2dPATH_END_TYPE m_pathtype;
00110 a2dDoMu m_contourWidth;
00111 wxArrayString m_unitsStrings;
00112
00113 };
00114
00115 #endif
00116