]> git.saurik.com Git - wxWidgets.git/blame - contrib/utils/wxrcedit/pe_basic.h
compilation fix: only us-ascii is safe in sources
[wxWidgets.git] / contrib / utils / wxrcedit / pe_basic.h
CommitLineData
12d9e308
VS
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
ab7ce33c 10#if defined(__GNUG__) && !defined(__APPLE__)
12d9e308
VS
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
19class WXDLLEXPORT wxChoice;
20
21
22
23class PropEditCtrlNull : public PropEditCtrl
24{
25 public:
26 PropEditCtrlNull(PropertiesFrame *propFrame)
27 : PropEditCtrl(propFrame) {}
f80ea77b 28
d1f47235 29 virtual void BeginEdit(const wxRect& WXUNUSED(rect), wxTreeItemId WXUNUSED(ti)) {}
12d9e308 30 virtual void EndEdit() {}
f80ea77b 31
12d9e308 32 virtual wxWindow* CreateEditCtrl() {return NULL;}
f80ea77b 33
12d9e308
VS
34 virtual void ReadValue() {}
35 virtual void WriteValue() {}
36};
37
38
39
40class PropEditCtrlTxt : public PropEditCtrl
41{
42 public:
43 PropEditCtrlTxt(PropertiesFrame *propFrame)
44 : PropEditCtrl(propFrame) {}
f80ea77b 45
12d9e308 46 virtual wxWindow* CreateEditCtrl();
f80ea77b 47
12d9e308
VS
48 virtual void ReadValue();
49 virtual void WriteValue();
f80ea77b 50
12d9e308
VS
51 protected:
52 wxTextCtrl *m_TextCtrl;
53
54 private:
55 DECLARE_EVENT_TABLE()
56 void OnText(wxCommandEvent& event);
57};
58
59
60
61class PropEditCtrlInt : public PropEditCtrlTxt
62{
63 public:
64 PropEditCtrlInt(PropertiesFrame *propFrame)
65 : PropEditCtrlTxt(propFrame) {}
f80ea77b 66
12d9e308
VS
67 virtual wxWindow* CreateEditCtrl();
68};
69
70
71
72class PropEditCtrlBool : public PropEditCtrl
73{
74 public:
75 PropEditCtrlBool(PropertiesFrame *propFrame)
76 : PropEditCtrl(propFrame) {}
f80ea77b 77
12d9e308 78 virtual wxWindow* CreateEditCtrl();
f80ea77b 79
12d9e308
VS
80 virtual void ReadValue();
81 virtual void WriteValue();
82 virtual wxString GetValueAsText(wxTreeItemId ti);
f80ea77b 83
12d9e308
VS
84 protected:
85 wxChoice *m_Choice;
86
87 DECLARE_EVENT_TABLE()
88 void OnChoice(wxCommandEvent& event);
89};
90
91
92class PropEditCtrlCoord : public PropEditCtrlTxt
93{
94 public:
95 PropEditCtrlCoord(PropertiesFrame *propFrame);
96 ~PropEditCtrlCoord();
f80ea77b 97
12d9e308 98 virtual wxTreeItemId CreateTreeEntry(wxTreeItemId parent, const PropertyInfo& pinfo);
f80ea77b 99
12d9e308
VS
100 private:
101 PropEditCtrl *m_CtrlX, *m_CtrlY, *m_CtrlDlg;
102};
103
104
105class PropEditCtrlDim : public PropEditCtrlTxt
106{
107 public:
108 PropEditCtrlDim(PropertiesFrame *propFrame);
109 ~PropEditCtrlDim();
f80ea77b 110
12d9e308 111 virtual wxTreeItemId CreateTreeEntry(wxTreeItemId parent, const PropertyInfo& pinfo);
f80ea77b 112
12d9e308
VS
113 private:
114 PropEditCtrl *m_CtrlX, *m_CtrlDlg;
115};
116
117
118
5ed345b7 119class PropEditCtrlXRCID : public PropEditCtrlTxt
12d9e308
VS
120{
121 public:
5ed345b7 122 PropEditCtrlXRCID(PropertiesFrame *propFrame)
12d9e308 123 : PropEditCtrlTxt(propFrame) {}
f80ea77b 124
12d9e308
VS
125 virtual void ReadValue();
126 virtual void WriteValue();
127 virtual void Clear();
f80ea77b 128 virtual bool HasDetails() { return true; }
12d9e308
VS
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