// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_PROP_H_
#define wxPROPERTY_VERSION 2.0
// A storable sheet of values
-class WXDLLEXPORT wxPropertySheet: public wxObject
+class WXDLLIMPEXP_DEPRECATED wxPropertySheet: public wxObject
{
public:
wxPropertySheet(const wxString& name = wxT(""));
// Set the name of the sheet
inline virtual void SetName(const wxString& name) { m_name=name; }
inline virtual wxString GetName() const { return m_name; }
-
+
// Does this sheet contain a property with this name
virtual bool HasProperty(const wxString& name) const;
virtual void UpdateAllViews(wxPropertyView *thisView = NULL);
inline virtual wxList& GetProperties() const { return (wxList&) m_properties; }
-
+
// Sets/clears the modified flag for each property value
- virtual void SetAllModified(bool flag = TRUE);
+ virtual void SetAllModified(bool flag = true);
protected:
wxObject* m_viewedObject;
wxList m_properties;
wxPropertyView* m_propertyView;
- wxString m_name;
-
+ wxString m_name;
+
private:
DECLARE_DYNAMIC_CLASS(wxPropertySheet)
};
// Base class for property sheet views. There are currently two directly derived
// classes: wxPropertyListView, and wxPropertyFormView.
-class WXDLLEXPORT wxPropertyView: public wxEvtHandler
+class WXDLLIMPEXP_DEPRECATED wxPropertyView: public wxEvtHandler
{
public:
wxPropertyView(long flags = 0);
// Update this view of the viewed object, called e.g. by
// the object itself.
- virtual bool OnUpdateView() {return FALSE;};
+ virtual bool OnUpdateView() {return false;};
// Override this to do something as soon as the property changed,
// if the view and validators support it.
inline virtual void SetPropertySheet(wxPropertySheet *sheet) { m_propertySheet = sheet; }
inline virtual wxPropertySheet *GetPropertySheet() const { return m_propertySheet; }
- inline virtual bool OnClose() { return FALSE; }
+ inline virtual bool OnClose() { return false; }
inline long GetFlags(void) { return m_buttonFlags; }
protected:
wxProperty* m_currentProperty;
wxList m_validatorRegistryList;
wxPropertyValidator* m_currentValidator;
-
+
private:
DECLARE_DYNAMIC_CLASS(wxPropertyView)
};
-class WXDLLEXPORT wxPropertyValidator: public wxEvtHandler
+class WXDLLIMPEXP_DEPRECATED wxPropertyValidator: public wxEvtHandler
{
public:
wxPropertyValidator(long flags = 0);
protected:
long m_validatorFlags;
wxProperty* m_validatorProperty;
-
+
private:
DECLARE_DYNAMIC_CLASS(wxPropertyValidator)
};
// extern wxPropertyValidator *wxDefaultPropertyValidator;
-class WXDLLEXPORT wxPropertyValidatorRegistry: public wxHashTable
+class WXDLLIMPEXP_DEPRECATED wxPropertyValidatorRegistry: public wxHashTable
{
public:
wxPropertyValidatorRegistry();
virtual void RegisterValidator(const wxString& roleName, wxPropertyValidator *validator);
virtual wxPropertyValidator *GetValidator(const wxString& roleName);
void ClearRegistry();
-
+
private:
DECLARE_DYNAMIC_CLASS(wxPropertyValidatorRegistry)
};
wxPropertyValueStringPtr
} wxPropertyValueType;
-class WXDLLEXPORT wxPropertyValue: public wxObject
+class WXDLLIMPEXP_DEPRECATED wxPropertyValue: public wxObject
{
DECLARE_DYNAMIC_CLASS(wxPropertyValue)
// Get last expr in list
virtual inline wxPropertyValue *GetLast(void) const
{ return ((m_type == wxPropertyValueList) ? m_last : (wxPropertyValue*)NULL); }
-
+
// Delete this node from the list
virtual void Delete(wxPropertyValue *node);
virtual inline wxObject *GetClientData(void) { return m_clientData; }
virtual wxString GetStringRepresentation(void);
-
- inline void SetModified(bool flag = TRUE) { m_modifiedFlag = flag; }
+
+ inline void SetModified(bool flag = true) { m_modifiedFlag = flag; }
inline bool GetModified(void) { return m_modifiedFlag; }
// Operators
* Property class: contains a name and a value.
*/
-class WXDLLEXPORT wxProperty: public wxObject
+class WXDLLIMPEXP_DEPRECATED wxProperty: public wxObject
{
DECLARE_DYNAMIC_CLASS(wxProperty)
protected:
void operator=(const wxPropertyValue& val);
virtual inline void SetWindow(wxWindow *win) { m_propertyWindow = win; }
virtual inline wxWindow *GetWindow(void) const { return m_propertyWindow; }
-
+
inline void Enable(bool en) { m_enabled = en; }
inline bool IsEnabled(void) const { return m_enabled; }
};