]> git.saurik.com Git - wxWidgets.git/blob - contrib/utils/wxrcedit/pe_basic.h
change MSW libs directories so that libraries are shared by builds
[wxWidgets.git] / contrib / utils / wxrcedit / pe_basic.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Purpose: XML resources editor
3 // Author: Vaclav Slavik
4 // Created: 2000/05/05
5 // RCS-ID: $Id$
6 // Copyright: (c) 2000 Vaclav Slavik
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #if defined(__GNUG__) && !defined(__APPLE__)
11 #pragma interface "pe_basic.h"
12 #endif
13
14 #ifndef _PE_BASIC_H_
15 #define _PE_BASIC_H_
16
17 #include "propedit.h"
18
19 class WXDLLEXPORT wxChoice;
20
21
22
23 class PropEditCtrlNull : public PropEditCtrl
24 {
25 public:
26 PropEditCtrlNull(PropertiesFrame *propFrame)
27 : PropEditCtrl(propFrame) {}
28
29 virtual void BeginEdit(const wxRect& rect, wxTreeItemId ti) {}
30 virtual void EndEdit() {}
31
32 virtual wxWindow* CreateEditCtrl() {return NULL;}
33
34 virtual void ReadValue() {}
35 virtual void WriteValue() {}
36 };
37
38
39
40 class PropEditCtrlTxt : public PropEditCtrl
41 {
42 public:
43 PropEditCtrlTxt(PropertiesFrame *propFrame)
44 : PropEditCtrl(propFrame) {}
45
46 virtual wxWindow* CreateEditCtrl();
47
48 virtual void ReadValue();
49 virtual void WriteValue();
50
51 protected:
52 wxTextCtrl *m_TextCtrl;
53
54 private:
55 DECLARE_EVENT_TABLE()
56 void OnText(wxCommandEvent& event);
57 };
58
59
60
61 class PropEditCtrlInt : public PropEditCtrlTxt
62 {
63 public:
64 PropEditCtrlInt(PropertiesFrame *propFrame)
65 : PropEditCtrlTxt(propFrame) {}
66
67 virtual wxWindow* CreateEditCtrl();
68 };
69
70
71
72 class PropEditCtrlBool : public PropEditCtrl
73 {
74 public:
75 PropEditCtrlBool(PropertiesFrame *propFrame)
76 : PropEditCtrl(propFrame) {}
77
78 virtual wxWindow* CreateEditCtrl();
79
80 virtual void ReadValue();
81 virtual void WriteValue();
82 virtual wxString GetValueAsText(wxTreeItemId ti);
83
84 protected:
85 wxChoice *m_Choice;
86
87 DECLARE_EVENT_TABLE()
88 void OnChoice(wxCommandEvent& event);
89 };
90
91
92 class PropEditCtrlCoord : public PropEditCtrlTxt
93 {
94 public:
95 PropEditCtrlCoord(PropertiesFrame *propFrame);
96 ~PropEditCtrlCoord();
97
98 virtual wxTreeItemId CreateTreeEntry(wxTreeItemId parent, const PropertyInfo& pinfo);
99
100 private:
101 PropEditCtrl *m_CtrlX, *m_CtrlY, *m_CtrlDlg;
102 };
103
104
105 class PropEditCtrlDim : public PropEditCtrlTxt
106 {
107 public:
108 PropEditCtrlDim(PropertiesFrame *propFrame);
109 ~PropEditCtrlDim();
110
111 virtual wxTreeItemId CreateTreeEntry(wxTreeItemId parent, const PropertyInfo& pinfo);
112
113 private:
114 PropEditCtrl *m_CtrlX, *m_CtrlDlg;
115 };
116
117
118
119 class PropEditCtrlXRCID : public PropEditCtrlTxt
120 {
121 public:
122 PropEditCtrlXRCID(PropertiesFrame *propFrame)
123 : PropEditCtrlTxt(propFrame) {}
124
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);
132 };
133
134
135
136
137
138
139 #endif