added wxXmlResourceHandler::GetDimension for 1D values that may be in dialog units

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2000-08-15 21:46:26 +00:00
parent b6b0af42a0
commit bebb14d53d
16 changed files with 142 additions and 32 deletions

View File

@@ -24,6 +24,8 @@ class WXDLLEXPORT wxWindow;
#include "wx/xml/xml.h"
#include "wx/dynarray.h"
/* ADD NEW PROPERTY TYPES HERE
(search for other occurences of this comment in _all_ files) */
enum PropertyType
{
PROP_TEXT = 0,
@@ -32,9 +34,10 @@ enum PropertyType
PROP_BOOL = 3,
PROP_INTEGER = 4,
PROP_COORD = 5,
PROP_NOT_IMPLEMENTED = 6,
PROP_DIMENSION = 6,
PROP_NOT_IMPLEMENTED = 7,
};
#define PROP_TYPES_CNT 7
#define PROP_TYPES_CNT 8
class PropertyInfo
{
@@ -97,6 +100,14 @@ class CoordPropertyHandler : public PropertyHandler
};
class DimensionPropertyHandler : public PropertyHandler
{
public:
DimensionPropertyHandler() {}
virtual wxPanel *CreateEditPanel(wxWindow *parent, PropsListInfo *pli);
};
class BoolPropertyHandler : public PropertyHandler
{
public: