]>
git.saurik.com Git - wxWidgets.git/blob - contrib/utils/wxrcedit/pe_basic.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Purpose: XML resources editor
3 // Author: Vaclav Slavik
6 // Copyright: (c) 2000 Vaclav Slavik
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #pragma interface "pe_basic.h"
19 class WXDLLEXPORT wxChoice
;
23 class PropEditCtrlNull
: public PropEditCtrl
26 PropEditCtrlNull(PropertiesFrame
*propFrame
)
27 : PropEditCtrl(propFrame
) {}
29 virtual void BeginEdit(const wxRect
& rect
, wxTreeItemId ti
) {}
30 virtual void EndEdit() {}
32 virtual wxWindow
* CreateEditCtrl() {return NULL
;}
34 virtual void ReadValue() {}
35 virtual void WriteValue() {}
40 class PropEditCtrlTxt
: public PropEditCtrl
43 PropEditCtrlTxt(PropertiesFrame
*propFrame
)
44 : PropEditCtrl(propFrame
) {}
46 virtual wxWindow
* CreateEditCtrl();
48 virtual void ReadValue();
49 virtual void WriteValue();
52 wxTextCtrl
*m_TextCtrl
;
56 void OnText(wxCommandEvent
& event
);
61 class PropEditCtrlInt
: public PropEditCtrlTxt
64 PropEditCtrlInt(PropertiesFrame
*propFrame
)
65 : PropEditCtrlTxt(propFrame
) {}
67 virtual wxWindow
* CreateEditCtrl();
72 class PropEditCtrlBool
: public PropEditCtrl
75 PropEditCtrlBool(PropertiesFrame
*propFrame
)
76 : PropEditCtrl(propFrame
) {}
78 virtual wxWindow
* CreateEditCtrl();
80 virtual void ReadValue();
81 virtual void WriteValue();
82 virtual wxString
GetValueAsText(wxTreeItemId ti
);
88 void OnChoice(wxCommandEvent
& event
);
92 class PropEditCtrlCoord
: public PropEditCtrlTxt
95 PropEditCtrlCoord(PropertiesFrame
*propFrame
);
98 virtual wxTreeItemId
CreateTreeEntry(wxTreeItemId parent
, const PropertyInfo
& pinfo
);
101 PropEditCtrl
*m_CtrlX
, *m_CtrlY
, *m_CtrlDlg
;
105 class PropEditCtrlDim
: public PropEditCtrlTxt
108 PropEditCtrlDim(PropertiesFrame
*propFrame
);
111 virtual wxTreeItemId
CreateTreeEntry(wxTreeItemId parent
, const PropertyInfo
& pinfo
);
114 PropEditCtrl
*m_CtrlX
, *m_CtrlDlg
;
119 class PropEditCtrlXRCID
: public PropEditCtrlTxt
122 PropEditCtrlXRCID(PropertiesFrame
*propFrame
)
123 : PropEditCtrlTxt(propFrame
) {}
125 virtual void ReadValue();
126 virtual void WriteValue();
127 virtual void Clear();
128 virtual bool HasDetails() { return TRUE
; }
129 virtual void OnDetails();
130 virtual wxString
GetValueAsText(wxTreeItemId ti
);
131 virtual bool IsPresent(const PropertyInfo
& pinfo
);