00001
00002
00003
00004
00005
00006
00007 #ifndef CIRCLEDIT_H
00008 #define CIRCLEDIT_H
00009 #ifdef __GNUG__
00010 #pragma interface
00011 #endif
00012
00015
00016
00020
00021
00022 class CircleditDialog: public wxDialog
00023 {
00024 public:
00025
00026 CircleditDialog(EditCircleTool* tool,GDSMainWindow* parent, long style = (wxTHICK_FRAME | wxCAPTION));
00027
00028
00029 void SetupWindow();
00030
00031
00032 double GetRadius();
00033
00034
00035 char* GetUnit();
00036
00037
00038 void SetUnit(char* buf);
00039
00040
00041 void CmOk();
00042
00043
00044 void CmApply();
00045
00046
00047 void OnCloseWindow(wxCloseEvent& event);
00048
00049 void Update();
00050 void FocusSet();
00051 void FocusKill();
00052 void OnActivate(wxActivateEvent& event);
00053
00054 protected:
00055
00056
00057 GDSMainWindow* _parent;
00058
00059
00060 wxPanel* _panel;
00061
00062
00063 wxButton* _ok;
00064
00065
00066 wxButton* _apply;
00067
00068
00069 wxStaticBox* _widthbox;
00070
00071
00072 wxTextCtrl* _width;
00073
00074
00075 wxChoice* _settings_list;
00076
00077
00078 wxString _choices[9];
00079
00080
00081 char _acc[10];
00082
00083
00084 char _unit[10];
00085
00086 EditCircleTool* _tool;
00087
00088 bool _focus;
00089
00090
00091 DECLARE_EVENT_TABLE()
00092 };
00093
00094 #endif
circleditdlg.h Source File -- Thu Nov 28 21:24:56 2002 -- 28 Nov 2002 -- 1.2.18 -- -- . --