X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/29efc6e4a478652d6f59fb3f5ca7990d78a8ead4..d8a7829312e4fa8e67950f68eafa5d507b4e9826:/include/wx/generic/grideditors.h diff --git a/include/wx/generic/grideditors.h b/include/wx/generic/grideditors.h index 073d62662b..cc3ff67757 100644 --- a/include/wx/generic/grideditors.h +++ b/include/wx/generic/grideditors.h @@ -42,7 +42,7 @@ private: DECLARE_EVENT_TABLE() DECLARE_DYNAMIC_CLASS(wxGridCellEditorEvtHandler) - DECLARE_NO_COPY_CLASS(wxGridCellEditorEvtHandler) + wxDECLARE_NO_COPY_CLASS(wxGridCellEditorEvtHandler); }; @@ -63,7 +63,8 @@ public: virtual bool IsAcceptedKey(wxKeyEvent& event); virtual void BeginEdit(int row, int col, wxGrid* grid); - virtual bool EndEdit(const wxString& oldval, wxString *newval); + virtual bool EndEdit(int row, int col, const wxGrid* grid, + const wxString& oldval, wxString *newval); virtual void ApplyEdit(int row, int col, wxGrid* grid); virtual void Reset(); @@ -92,7 +93,7 @@ private: size_t m_maxChars; // max number of chars allowed wxString m_value; - DECLARE_NO_COPY_CLASS(wxGridCellTextEditor) + wxDECLARE_NO_COPY_CLASS(wxGridCellTextEditor); }; // the editor for numeric (long) data @@ -109,7 +110,8 @@ public: virtual bool IsAcceptedKey(wxKeyEvent& event); virtual void BeginEdit(int row, int col, wxGrid* grid); - virtual bool EndEdit(const wxString& oldval, wxString *newval); + virtual bool EndEdit(int row, int col, const wxGrid* grid, + const wxString& oldval, wxString *newval); virtual void ApplyEdit(int row, int col, wxGrid* grid); virtual void Reset(); @@ -149,7 +151,7 @@ private: long m_value; - DECLARE_NO_COPY_CLASS(wxGridCellNumberEditor) + wxDECLARE_NO_COPY_CLASS(wxGridCellNumberEditor); }; // the editor for floating point numbers (double) data @@ -164,7 +166,8 @@ public: virtual bool IsAcceptedKey(wxKeyEvent& event); virtual void BeginEdit(int row, int col, wxGrid* grid); - virtual bool EndEdit(const wxString& oldval, wxString *newval); + virtual bool EndEdit(int row, int col, const wxGrid* grid, + const wxString& oldval, wxString *newval); virtual void ApplyEdit(int row, int col, wxGrid* grid); virtual void Reset(); @@ -185,7 +188,7 @@ private: m_precision; double m_value; - DECLARE_NO_COPY_CLASS(wxGridCellFloatEditor) + wxDECLARE_NO_COPY_CLASS(wxGridCellFloatEditor); }; #endif // wxUSE_TEXTCTRL @@ -207,7 +210,8 @@ public: virtual bool IsAcceptedKey(wxKeyEvent& event); virtual void BeginEdit(int row, int col, wxGrid* grid); - virtual bool EndEdit(const wxString& oldval, wxString *newval); + virtual bool EndEdit(int row, int col, const wxGrid* grid, + const wxString& oldval, wxString *newval); virtual void ApplyEdit(int row, int col, wxGrid* grid); virtual void Reset(); @@ -238,7 +242,7 @@ private: static wxString ms_stringValues[2]; - DECLARE_NO_COPY_CLASS(wxGridCellBoolEditor) + wxDECLARE_NO_COPY_CLASS(wxGridCellBoolEditor); }; #endif // wxUSE_CHECKBOX @@ -263,7 +267,8 @@ public: virtual void PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr); virtual void BeginEdit(int row, int col, wxGrid* grid); - virtual bool EndEdit(const wxString& oldval, wxString *newval); + virtual bool EndEdit(int row, int col, const wxGrid* grid, + const wxString& oldval, wxString *newval); virtual void ApplyEdit(int row, int col, wxGrid* grid); virtual void Reset(); @@ -283,7 +288,7 @@ protected: wxArrayString m_choices; bool m_allowOthers; - DECLARE_NO_COPY_CLASS(wxGridCellChoiceEditor) + wxDECLARE_NO_COPY_CLASS(wxGridCellChoiceEditor); }; #endif // wxUSE_COMBOBOX @@ -299,13 +304,14 @@ public: virtual wxGridCellEditor* Clone() const; virtual void BeginEdit(int row, int col, wxGrid* grid); - virtual bool EndEdit(const wxString& oldval, wxString *newval); + virtual bool EndEdit(int row, int col, const wxGrid* grid, + const wxString& oldval, wxString *newval); virtual void ApplyEdit(int row, int col, wxGrid* grid); private: long m_index; - DECLARE_NO_COPY_CLASS(wxGridCellEnumEditor) + wxDECLARE_NO_COPY_CLASS(wxGridCellEnumEditor); }; #endif // wxUSE_COMBOBOX @@ -321,8 +327,9 @@ public: virtual wxGridCellEditor *Clone() const { return new wxGridCellAutoWrapStringEditor; } - DECLARE_NO_COPY_CLASS(wxGridCellAutoWrapStringEditor) + wxDECLARE_NO_COPY_CLASS(wxGridCellAutoWrapStringEditor); }; #endif // wxUSE_GRID + #endif // _WX_GENERIC_GRID_EDITORS_H_