Main Page   Class Hierarchy   Compound List   File List   Compound Members  

propedit.h

00001 #ifndef _PROPEDIT
00002 #define _PROPEDIT
00003 
00004 #ifdef __GNUG__
00005 #pragma interface
00006 #endif
00007 
00008 
00009 
00010 #include "wx/proplist.h"
00011 
00012 #include "wxwin.h"
00013 class   MywxPropertyListView: public wxPropertyListView
00014 {
00015    public:
00016                 MywxPropertyListView(wxPanel *propPanel, long flags);
00017       wxProperty* GetSelected();
00018 };
00019 
00020 class PropEditDialog: public wxDialog
00021 {
00022 
00023    public:
00024 
00025                 PropEditDialog(wxWindow*,const wxString&,long style ,const wxString& name,wxPropertySheet* wxpropsheet);
00026 
00027                 ~PropEditDialog();
00028 
00029       void                              OnCloseWindow(wxCloseEvent& event);
00030 
00031       void                              Add();
00032       void                              Remove();
00033 
00034       void                              Ok();
00035 
00036       void                              Cancel();
00037 
00038 
00039 
00040       void RegisterValidators(void);
00041 
00042 
00043 
00044         protected:
00045 
00046 
00047 
00048            bool Register;
00049 
00050            wxPropertySheet* m_sheet;
00051 
00052                 MywxPropertyListView* view;
00053 
00054                 wxWindow*               _parent;
00055 
00056                 wxPanel*                        _panel;
00057 
00058                 wxButton*               _addButton;
00059                 wxButton*               _okButton;
00060                 wxButton*               _cancelButton;
00061                 wxButton*               _removeButton;
00062 
00063       DECLARE_EVENT_TABLE()
00064 
00065 
00066 };
00067 
00068 
00069 
00070 
00071 
00072 class PropAddDialog: public wxDialog
00073 
00074 {
00075 
00076    public:
00077 
00078                 PropAddDialog(wxWindow*,char*,long style ,char *name);
00079 
00080                 ~PropAddDialog();
00081 
00082       void                              OnCloseWindow(wxCloseEvent& event);
00083 
00084       wxString                  GetName();
00085       wxString                  GetType();
00086       wxString          GetValue();
00087 
00088 
00089         protected:
00090 
00091 
00092 
00093       void                              Ok();
00094 
00095       void                              Cancel();
00096 
00097 
00098 
00099            bool Register;
00100 
00101 
00102 
00103                 wxWindow*               _parent;
00104 
00105                 wxPanel*                        _panel;
00106 
00107                 wxStaticText*  _tname;
00108                 wxStaticText*  _ttype;
00109                 wxStaticText*  _tvalue;
00110                 wxTextCtrl*             _name;
00111                 wxChoice*               _type;
00112                 wxTextCtrl*             _value;
00113                 wxButton*               _okButton;
00114                 wxButton*               _cancelButton;
00115 
00116       DECLARE_EVENT_TABLE()
00117 
00118 };
00119 
00120 
00121 
00122 
00123 
00124 #endif
propedit.h Source File -- Thu Nov 28 21:24:56 2002 -- 28 Nov 2002 -- 1.2.18 -- -- . -- Main Page