Source cleaning: whitespaces, tabs, -1/wxID_ANY/wxDefaultCoord/wxNOT_FOUND, TRUE/true, FALSE/false.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
// Created: 01/02/97
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c)
|
||||
// Licence: wxWindows licence
|
||||
// Licence: wxWindows licence
|
||||
////////////////////////////////////////////////////////////////////////// */
|
||||
|
||||
#ifndef _WX_EXPRH__
|
||||
@@ -65,4 +65,4 @@ void syntax_error();
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/* _WX_EXPRH__ */
|
||||
/* _WX_EXPRH__ */
|
||||
|
@@ -6,7 +6,7 @@
|
||||
// Created: 04/01/98
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Julian Smart
|
||||
// Licence: wxWindows licence
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_PROP_H_
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
// 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;
|
||||
|
||||
@@ -74,16 +74,16 @@ public:
|
||||
|
||||
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)
|
||||
};
|
||||
@@ -102,7 +102,7 @@ public:
|
||||
|
||||
// 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.
|
||||
@@ -116,7 +116,7 @@ public:
|
||||
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:
|
||||
@@ -125,7 +125,7 @@ protected:
|
||||
wxProperty* m_currentProperty;
|
||||
wxList m_validatorRegistryList;
|
||||
wxPropertyValidator* m_currentValidator;
|
||||
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxPropertyView)
|
||||
};
|
||||
@@ -153,7 +153,7 @@ public:
|
||||
protected:
|
||||
long m_validatorFlags;
|
||||
wxProperty* m_validatorProperty;
|
||||
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxPropertyValidator)
|
||||
};
|
||||
@@ -170,7 +170,7 @@ public:
|
||||
virtual void RegisterValidator(const wxString& roleName, wxPropertyValidator *validator);
|
||||
virtual wxPropertyValidator *GetValidator(const wxString& roleName);
|
||||
void ClearRegistry();
|
||||
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxPropertyValidatorRegistry)
|
||||
};
|
||||
@@ -255,7 +255,7 @@ class WXDLLIMPEXP_DEPRECATED wxPropertyValue: public wxObject
|
||||
// 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);
|
||||
|
||||
@@ -266,8 +266,8 @@ class WXDLLIMPEXP_DEPRECATED wxPropertyValue: public wxObject
|
||||
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
|
||||
@@ -336,7 +336,7 @@ class WXDLLIMPEXP_DEPRECATED wxProperty: public wxObject
|
||||
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; }
|
||||
};
|
||||
|
@@ -6,7 +6,7 @@
|
||||
// Created: 04/01/98
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Julian Smart
|
||||
// Licence: wxWindows licence
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_PROPFORM_H_
|
||||
@@ -129,7 +129,7 @@ class WXDLLIMPEXP_DEPRECATED wxPropertyFormValidator: public wxPropertyValidator
|
||||
~wxPropertyFormValidator(void) {}
|
||||
|
||||
// Called to check value is OK (e.g. when OK is pressed)
|
||||
// Return FALSE if value didn't check out; signal to restore old value.
|
||||
// Return false if value didn't check out; signal to restore old value.
|
||||
virtual bool OnCheckValue( wxProperty *WXUNUSED(property), wxPropertyFormView *WXUNUSED(view),
|
||||
wxWindow *WXUNUSED(parentWindow) ) { return true; }
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
// Created: 04/01/98
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Julian Smart
|
||||
// Licence: wxWindows licence
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/*
|
||||
@@ -190,7 +190,7 @@ public:
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxPropertyListView)
|
||||
DECLARE_EVENT_TABLE()
|
||||
|
||||
|
||||
virtual void ShowView(wxPropertySheet *propertySheet, wxWindow *window)
|
||||
{ wxPropertyView::ShowView(propertySheet, window); };
|
||||
};
|
||||
@@ -265,7 +265,7 @@ public:
|
||||
virtual void OnEdit(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
|
||||
|
||||
// Called when TICK is pressed or focus is lost.
|
||||
// Return FALSE if value didn't check out; signal to restore old value.
|
||||
// Return false if value didn't check out; signal to restore old value.
|
||||
inline virtual bool OnCheckValue(
|
||||
wxProperty *WXUNUSED(property), wxPropertyListView *WXUNUSED(view), wxWindow *WXUNUSED(parentWindow) )
|
||||
{ return true; }
|
||||
@@ -276,7 +276,7 @@ public:
|
||||
virtual bool OnRetrieveValue(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
|
||||
|
||||
virtual bool OnDisplayValue(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
|
||||
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxPropertyListValidator)
|
||||
};
|
||||
@@ -399,7 +399,7 @@ public:
|
||||
bool OnPrepareControls(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
|
||||
|
||||
// Called when TICK is pressed or focus is lost.
|
||||
// Return FALSE if value didn't check out; signal to restore old value.
|
||||
// Return false if value didn't check out; signal to restore old value.
|
||||
bool OnCheckValue(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
|
||||
|
||||
// Called when TICK is pressed or focus is lost or view wants to update
|
||||
@@ -410,7 +410,7 @@ public:
|
||||
protected:
|
||||
float m_realMin;
|
||||
float m_realMax;
|
||||
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxRealListValidator)
|
||||
};
|
||||
@@ -428,7 +428,7 @@ public:
|
||||
bool OnPrepareControls(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
|
||||
|
||||
// Called when TICK is pressed or focus is lost.
|
||||
// Return FALSE if value didn't check out; signal to restore old value.
|
||||
// Return false if value didn't check out; signal to restore old value.
|
||||
bool OnCheckValue(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
|
||||
|
||||
// Called when TICK is pressed or focus is lost or view wants to update
|
||||
@@ -439,7 +439,7 @@ public:
|
||||
protected:
|
||||
long m_integerMin;
|
||||
long m_integerMax;
|
||||
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxIntegerListValidator)
|
||||
};
|
||||
@@ -455,7 +455,7 @@ public:
|
||||
bool OnClearDetailControls(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
|
||||
|
||||
// Called when TICK is pressed or focus is lost.
|
||||
// Return FALSE if value didn't check out; signal to restore old value.
|
||||
// Return false if value didn't check out; signal to restore old value.
|
||||
bool OnCheckValue(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
|
||||
|
||||
// Called when TICK is pressed or focus is lost or view wants to update
|
||||
@@ -467,7 +467,7 @@ public:
|
||||
// Called when the property is double clicked. Extra functionality can be provided,
|
||||
// cycling through possible values.
|
||||
virtual bool OnDoubleClick(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
|
||||
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxBoolListValidator)
|
||||
};
|
||||
@@ -488,7 +488,7 @@ public:
|
||||
bool OnClearDetailControls(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
|
||||
|
||||
// Called when TICK is pressed or focus is lost.
|
||||
// Return FALSE if value didn't check out; signal to restore old value.
|
||||
// Return false if value didn't check out; signal to restore old value.
|
||||
bool OnCheckValue(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
|
||||
|
||||
// Called when TICK is pressed or focus is lost or view wants to update
|
||||
@@ -503,7 +503,7 @@ public:
|
||||
|
||||
protected:
|
||||
wxStringList* m_strings;
|
||||
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxStringListValidator)
|
||||
};
|
||||
@@ -515,7 +515,7 @@ public:
|
||||
~wxFilenameListValidator();
|
||||
|
||||
// Called when TICK is pressed or focus is lost.
|
||||
// Return FALSE if value didn't check out; signal to restore old value.
|
||||
// Return false if value didn't check out; signal to restore old value.
|
||||
bool OnCheckValue(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
|
||||
|
||||
// Called when TICK is pressed or focus is lost or view wants to update
|
||||
@@ -555,7 +555,7 @@ public:
|
||||
|
||||
// Called when the edit (...) button is pressed.
|
||||
void OnEdit(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
|
||||
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxColourListValidator)
|
||||
};
|
||||
@@ -569,7 +569,7 @@ public:
|
||||
bool OnPrepareControls(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
|
||||
|
||||
// Called when TICK is pressed or focus is lost.
|
||||
// Return FALSE if value didn't check out; signal to restore old value.
|
||||
// Return false if value didn't check out; signal to restore old value.
|
||||
bool OnCheckValue(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
|
||||
|
||||
// Called when TICK is pressed or focus is lost or view wants to update
|
||||
@@ -585,7 +585,7 @@ public:
|
||||
|
||||
// Called when the edit (...) button is pressed.
|
||||
void OnEdit(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
|
||||
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxListOfStringsListValidator)
|
||||
};
|
||||
|
@@ -108,7 +108,7 @@ class WXDLLIMPEXP_DEPRECATED wxItemResource: public wxObject
|
||||
inline void SetBackgroundColour(const wxColour& col) { m_backgroundColour = col; }
|
||||
inline void SetLabelColour(const wxColour& col) { m_labelColour = col; }
|
||||
inline void SetButtonColour(const wxColour& col) { m_buttonColour = col; }
|
||||
|
||||
|
||||
inline wxColour& GetBackgroundColour() const { return (wxColour&) m_backgroundColour; }
|
||||
inline wxColour& GetLabelColour() const { return (wxColour&) m_labelColour; }
|
||||
inline wxColour& GetButtonColour() const { return (wxColour&) m_buttonColour; }
|
||||
@@ -138,16 +138,16 @@ class WXDLLIMPEXP_DEPRECATED wxItemResource: public wxObject
|
||||
/*
|
||||
* Resource table (normally only one of these)
|
||||
*/
|
||||
|
||||
|
||||
class WXDLLIMPEXP_DEPRECATED wxResourceTable: public wxHashTable
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxResourceTable)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
public:
|
||||
wxHashTable identifiers;
|
||||
|
||||
|
||||
wxResourceTable();
|
||||
~wxResourceTable();
|
||||
|
||||
|
@@ -118,8 +118,8 @@ protected:
|
||||
const wxString& shortHelp = wxEmptyString,
|
||||
const wxString& longHelp = wxEmptyString,
|
||||
wxObject *clientData = NULL,
|
||||
wxCoord xPos = -1,
|
||||
wxCoord yPos = -1
|
||||
wxCoord xPos = wxDefaultCoord,
|
||||
wxCoord yPos = wxDefaultCoord
|
||||
);
|
||||
|
||||
virtual bool DoInsertTool(size_t pos, wxToolBarToolBase *tool);
|
||||
|
@@ -84,7 +84,7 @@ protected:
|
||||
long m_topMargin;
|
||||
long m_leftMargin;
|
||||
bool m_orientation; // true for top-to-bottom, false for left-to-right
|
||||
|
||||
|
||||
private:
|
||||
DECLARE_ABSTRACT_CLASS(wxTreeLayout)
|
||||
};
|
||||
@@ -138,7 +138,7 @@ private:
|
||||
wxStoredNode* m_nodes;
|
||||
int m_num;
|
||||
int m_maxNodes;
|
||||
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxTreeLayoutStored)
|
||||
DECLARE_NO_COPY_CLASS(wxTreeLayoutStored)
|
||||
|
@@ -48,7 +48,7 @@
|
||||
#define WXEXPR_ERROR_GENERAL 1
|
||||
#define WXEXPR_ERROR_SYNTAX 2
|
||||
|
||||
// Error handler function definition. If app returns TRUE,
|
||||
// Error handler function definition. If app returns true,
|
||||
// carry on processing.
|
||||
typedef bool (*wxExprErrorHandler) (int errorType, char *msg);
|
||||
|
||||
|
Reference in New Issue
Block a user