Fix using WXWIN_COMPATIBILITY_3_0 in conditional blocks in wxPG code.
Check the value of WXWIN_COMPATIBILITY_3_0 instead of checking whether it is defined. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -157,7 +157,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
void SetSplitterPosition( int splitterPos, int col = 0 );
|
void SetSplitterPosition( int splitterPos, int col = 0 );
|
||||||
|
|
||||||
#ifdef WXWIN_COMPATIBILITY_3_0
|
#if WXWIN_COMPATIBILITY_3_0
|
||||||
// To avoid ambiguity between functions inherited
|
// To avoid ambiguity between functions inherited
|
||||||
// from both wxPropertyGridInterface and wxPropertyGridPageState
|
// from both wxPropertyGridInterface and wxPropertyGridPageState
|
||||||
using wxPropertyGridInterface::GetPropertyByLabel;
|
using wxPropertyGridInterface::GetPropertyByLabel;
|
||||||
|
@@ -2295,7 +2295,7 @@ public:
|
|||||||
wxPGProperty* GetPropertyByName( const wxString& name ) const;
|
wxPGProperty* GetPropertyByName( const wxString& name ) const;
|
||||||
|
|
||||||
// Returns various display-related information for given column
|
// Returns various display-related information for given column
|
||||||
#ifdef WXWIN_COMPATIBILITY_3_0
|
#if WXWIN_COMPATIBILITY_3_0
|
||||||
wxDEPRECATED_MSG("don't use GetDisplayInfo function with argument of 'const wxPGCell**' type. Use 'wxPGCell*' argument instead")
|
wxDEPRECATED_MSG("don't use GetDisplayInfo function with argument of 'const wxPGCell**' type. Use 'wxPGCell*' argument instead")
|
||||||
void GetDisplayInfo( unsigned int column,
|
void GetDisplayInfo( unsigned int column,
|
||||||
int choiceIndex,
|
int choiceIndex,
|
||||||
|
@@ -556,7 +556,7 @@ public:
|
|||||||
|
|
||||||
wxPropertyCategory* GetPropertyCategory( const wxPGProperty* p ) const;
|
wxPropertyCategory* GetPropertyCategory( const wxPGProperty* p ) const;
|
||||||
|
|
||||||
#ifdef WXWIN_COMPATIBILITY_3_0
|
#if WXWIN_COMPATIBILITY_3_0
|
||||||
wxDEPRECATED_MSG("don't refer directly to wxPropertyGridPageState::GetPropertyByLabel")
|
wxDEPRECATED_MSG("don't refer directly to wxPropertyGridPageState::GetPropertyByLabel")
|
||||||
wxPGProperty* GetPropertyByLabel( const wxString& name,
|
wxPGProperty* GetPropertyByLabel( const wxString& name,
|
||||||
wxPGProperty* parent = NULL ) const;
|
wxPGProperty* parent = NULL ) const;
|
||||||
|
@@ -754,7 +754,7 @@ void wxPGProperty::OnValidationFailure( wxVariant& WXUNUSED(pendingValue) )
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WXWIN_COMPATIBILITY_3_0
|
#if WXWIN_COMPATIBILITY_3_0
|
||||||
void wxPGProperty::GetDisplayInfo( unsigned int column,
|
void wxPGProperty::GetDisplayInfo( unsigned int column,
|
||||||
int choiceIndex,
|
int choiceIndex,
|
||||||
int flags,
|
int flags,
|
||||||
|
@@ -459,7 +459,7 @@ wxPropertyCategory* wxPropertyGridPageState::GetPropertyCategory( const wxPGProp
|
|||||||
// wxPropertyGridPageState GetPropertyXXX methods
|
// wxPropertyGridPageState GetPropertyXXX methods
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
#ifdef WXWIN_COMPATIBILITY_3_0
|
#if WXWIN_COMPATIBILITY_3_0
|
||||||
wxPGProperty* wxPropertyGridPageState::GetPropertyByLabel
|
wxPGProperty* wxPropertyGridPageState::GetPropertyByLabel
|
||||||
( const wxString& label, wxPGProperty* parent ) const
|
( const wxString& label, wxPGProperty* parent ) const
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user