Vlaxicon

universaltool.h

00001 #ifndef __UNIVERSALTOOL__
00002 #define __UNIVERSALTOOL__
00003 #ifndef WX_PRECOMP
00004     #include <wx/wx.h>
00005 #endif //WX_PRECOMP
00006 #include "objectbase.h"
00007 class UniversalTool:public ObjectBase
00008 {
00009 public:
00013         UniversalTool(wxWindow* parent, ObjectBaseShape* parentShape);
00014         
00017         void SetCom(wxString sCom);
00018         
00021         void SetOutType(wxString sType);
00022 protected:
00023         enum
00024     {
00025                 ID_CLICK = wxID_HIGHEST + 1,
00026                 ID_TEXT_COM = wxID_HIGHEST + 1,
00027                 ID_CHOICE_OUTTYPE = wxID_HIGHEST + 1
00028         };
00029         
00031         void OnButtonOKClick(wxCommandEvent &event);
00032         
00034         void OnChangeCom(wxCommandEvent &event);
00035         
00037         void OnChangeOutType(wxCommandEvent &event);
00038         wxButton* m_buttonOK;
00039         wxTextCtrl* m_textCtrlInput;
00040         wxTextCtrl* m_textCtrlOutput;
00041         wxStaticText* m_staticTextInput;
00042         wxStaticText* m_staticTextOutput;
00043         wxStaticText* m_staticTextOutputType;
00044         wxChoice* m_choiceOutputType;
00045 };
00046 #endif //__UNIVERSALTOOL__
 All Classes Functions