GetValue is pure virtual
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -771,7 +771,6 @@ public:
|
|||||||
virtual void HandleReturn(wxKeyEvent& event);
|
virtual void HandleReturn(wxKeyEvent& event);
|
||||||
virtual void Destroy();
|
virtual void Destroy();
|
||||||
|
|
||||||
virtual wxString GetValue();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -884,7 +883,7 @@ public:
|
|||||||
DEC_PYCALLBACK__(StartingClick);
|
DEC_PYCALLBACK__(StartingClick);
|
||||||
DEC_PYCALLBACK__(Destroy);
|
DEC_PYCALLBACK__(Destroy);
|
||||||
DEC_PYCALLBACK__STRING(SetParameters);
|
DEC_PYCALLBACK__STRING(SetParameters);
|
||||||
DEC_PYCALLBACK_STRING__const(GetValue);
|
DEC_PYCALLBACK_STRING__constpure(GetValue);
|
||||||
|
|
||||||
PYPRIVATE;
|
PYPRIVATE;
|
||||||
};
|
};
|
||||||
@@ -898,7 +897,7 @@ IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, StartingKey, wxKeyEven
|
|||||||
IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, HandleReturn, wxKeyEvent);
|
IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, HandleReturn, wxKeyEvent);
|
||||||
IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, StartingClick);
|
IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, StartingClick);
|
||||||
IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, Destroy);
|
IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, Destroy);
|
||||||
IMP_PYCALLBACK_STRING__const(wxPyGridCellEditor, wxGridCellEditor, GetValue);
|
IMP_PYCALLBACK_STRING__constpure(wxPyGridCellEditor, wxGridCellEditor, GetValue);
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
@@ -920,7 +919,6 @@ public:
|
|||||||
void base_HandleReturn(wxKeyEvent& event);
|
void base_HandleReturn(wxKeyEvent& event);
|
||||||
void base_Destroy();
|
void base_Destroy();
|
||||||
void base_SetParameters(const wxString& params);
|
void base_SetParameters(const wxString& params);
|
||||||
wxString base_GetValue();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
@@ -931,6 +929,7 @@ class wxGridCellTextEditor : public wxGridCellEditor
|
|||||||
public:
|
public:
|
||||||
wxGridCellTextEditor();
|
wxGridCellTextEditor();
|
||||||
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
||||||
|
virtual wxString GetValue();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -939,6 +938,7 @@ class wxGridCellNumberEditor : public wxGridCellTextEditor
|
|||||||
public:
|
public:
|
||||||
wxGridCellNumberEditor(int min = -1, int max = -1);
|
wxGridCellNumberEditor(int min = -1, int max = -1);
|
||||||
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
||||||
|
virtual wxString GetValue();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -947,6 +947,7 @@ class wxGridCellFloatEditor : public wxGridCellTextEditor
|
|||||||
public:
|
public:
|
||||||
wxGridCellFloatEditor();
|
wxGridCellFloatEditor();
|
||||||
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
||||||
|
virtual wxString GetValue();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -955,6 +956,7 @@ class wxGridCellBoolEditor : public wxGridCellEditor
|
|||||||
public:
|
public:
|
||||||
wxGridCellBoolEditor();
|
wxGridCellBoolEditor();
|
||||||
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
||||||
|
virtual wxString GetValue();
|
||||||
};
|
};
|
||||||
|
|
||||||
class wxGridCellChoiceEditor : public wxGridCellEditor
|
class wxGridCellChoiceEditor : public wxGridCellEditor
|
||||||
@@ -964,6 +966,7 @@ public:
|
|||||||
const wxString* choices = NULL,
|
const wxString* choices = NULL,
|
||||||
bool allowOthers = FALSE);
|
bool allowOthers = FALSE);
|
||||||
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
||||||
|
virtual wxString GetValue();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -972,6 +975,7 @@ class wxGridCellEnumEditor : public wxGridCellChoiceEditor
|
|||||||
public:
|
public:
|
||||||
wxGridCellEnumEditor( const wxString& choices = wxPyEmptyString );
|
wxGridCellEnumEditor( const wxString& choices = wxPyEmptyString );
|
||||||
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
||||||
|
virtual wxString GetValue();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -980,6 +984,7 @@ class wxGridCellAutoWrapStringEditor : public wxGridCellTextEditor
|
|||||||
public:
|
public:
|
||||||
wxGridCellAutoWrapStringEditor();
|
wxGridCellAutoWrapStringEditor();
|
||||||
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
||||||
|
virtual wxString GetValue();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1288,6 +1288,27 @@ extern wxPyApp *wxPythonApp;
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#define DEC_PYCALLBACK_STRING__constpure(CBNAME) \
|
||||||
|
wxString CBNAME() const;
|
||||||
|
|
||||||
|
#define IMP_PYCALLBACK_STRING__constpure(CLASS, PCLASS, CBNAME) \
|
||||||
|
wxString CLASS::CBNAME() const { \
|
||||||
|
wxString rval; \
|
||||||
|
wxPyBeginBlockThreads(); \
|
||||||
|
if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \
|
||||||
|
PyObject* ro; \
|
||||||
|
ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); \
|
||||||
|
if (ro) { \
|
||||||
|
rval = Py2wxString(ro); \
|
||||||
|
Py_DECREF(ro); \
|
||||||
|
} \
|
||||||
|
} \
|
||||||
|
wxPyEndBlockThreads(); \
|
||||||
|
return rval; \
|
||||||
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
#define DEC_PYCALLBACK_BOOL_TAG_pure(CBNAME) \
|
#define DEC_PYCALLBACK_BOOL_TAG_pure(CBNAME) \
|
||||||
bool CBNAME(const wxHtmlTag& a); \
|
bool CBNAME(const wxHtmlTag& a); \
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user