wxAutomationInstance_SilentIfNone flag to prevent the error message if no
currently running instances of this object are available.
+- Signatures of wxDataViewCustomRenderer::Activate(), LeftClick() and
+ StartDrag() virtual methods changed. You will need to change them in your
+ derived renderer class too if you override them.
+
Changes in behaviour which may result in compilation errors
-----------------------------------------------------------
wxScrolled<T>::GetSizeAvailableForScrollTarget() method to compute the size
available for the scroll target as function of the main window size, please
see the documentation of this method for more details.
+
+- Signatures of wxDataViewCustomRenderer::Activate(),
+ wxDataViewCustomRenderer::LeftClick() and
+ wxDataViewCustomRenderer::StartDrag() virtual methods changed. You will need
+ to change them in your derived renderer class too if you override them.
+
*/
// to drag it: by default they all simply return false indicating that the
// events are not handled
- virtual bool Activate(wxRect WXUNUSED(cell),
+ virtual bool Activate(const wxRect& WXUNUSED(cell),
wxDataViewModel *WXUNUSED(model),
const wxDataViewItem & WXUNUSED(item),
unsigned int WXUNUSED(col))
{ return false; }
- virtual bool LeftClick(wxPoint WXUNUSED(cursor),
- wxRect WXUNUSED(cell),
+ virtual bool LeftClick(const wxPoint& WXUNUSED(cursor),
+ const wxRect& WXUNUSED(cell),
wxDataViewModel *WXUNUSED(model),
const wxDataViewItem & WXUNUSED(item),
unsigned int WXUNUSED(col) )
{ return false; }
- virtual bool StartDrag(wxPoint WXUNUSED(cursor),
- wxRect WXUNUSED(cell),
+ virtual bool StartDrag(const wxPoint& WXUNUSED(cursor),
+ const wxRect& WXUNUSED(cell),
wxDataViewModel *WXUNUSED(model),
const wxDataViewItem & WXUNUSED(item),
unsigned int WXUNUSED(col) )
// generic implementation uses these ones for all of them, including the
// standard ones.
- virtual bool WXOnActivate(wxRect WXUNUSED(cell),
+ virtual bool WXOnActivate(const wxRect& WXUNUSED(cell),
wxDataViewModel *WXUNUSED(model),
const wxDataViewItem & WXUNUSED(item),
unsigned int WXUNUSED(col))
{ return false; }
- virtual bool WXOnLeftClick(wxPoint WXUNUSED(cursor),
- wxRect WXUNUSED(cell),
+ virtual bool WXOnLeftClick(const wxPoint& WXUNUSED(cursor),
+ const wxRect& WXUNUSED(cell),
wxDataViewModel *WXUNUSED(model),
const wxDataViewItem & WXUNUSED(item),
unsigned int WXUNUSED(col) )
// see the explanation of the following WXOnXXX() methods in wx/generic/dvrenderer.h
- virtual bool WXOnActivate(wxRect cell,
+ virtual bool WXOnActivate(const wxRect& cell,
wxDataViewModel *model,
const wxDataViewItem& item,
unsigned int col)
return Activate(cell, model, item, col);
}
- virtual bool WXOnLeftClick(wxPoint cursor,
- wxRect cell,
+ virtual bool WXOnLeftClick(const wxPoint& cursor,
+ const wxRect& cell,
wxDataViewModel *model,
const wxDataViewItem &item,
unsigned int col)
wxSize GetSize() const;
// Implementation only, don't use nor override
- virtual bool WXOnLeftClick(wxPoint cursor,
- wxRect cell,
+ virtual bool WXOnLeftClick(const wxPoint& cursor,
+ const wxRect& cell,
wxDataViewModel *model,
const wxDataViewItem& item,
unsigned int col);
virtual wxSize GetSize() const;
// Implementation only, don't use nor override
- virtual bool WXOnActivate(wxRect cell,
+ virtual bool WXOnActivate(const wxRect& cell,
wxDataViewModel *model,
const wxDataViewItem& item,
unsigned int col);
Override this to react to double clicks or ENTER.
This method will only be called in wxDATAVIEW_CELL_ACTIVATABLE mode.
*/
- virtual bool Activate( wxRect cell,
+ virtual bool Activate( const wxRect& cell,
wxDataViewModel* model,
const wxDataViewItem & item,
unsigned int col );
Override this to react to a left click.
This method will only be called in @c wxDATAVIEW_CELL_ACTIVATABLE mode.
*/
- virtual bool LeftClick( wxPoint cursor,
- wxRect cell,
+ virtual bool LeftClick( const wxPoint& cursor,
+ const wxRect& cell,
wxDataViewModel * model,
const wxDataViewItem & item,
unsigned int col );
/**
Override this to start a drag operation. Not yet supported.
*/
- virtual bool StartDrag(wxPoint cursor, wxRect cell,
+ virtual bool StartDrag(const wxPoint& cursor,
+ const wxRect& cell,
wxDataViewModel* model,
const wxDataViewItem & item,
unsigned int col);
return true;
}
- virtual bool Activate( wxRect WXUNUSED(cell),
+ virtual bool Activate( const wxRect& WXUNUSED(cell),
wxDataViewModel *WXUNUSED(model),
const wxDataViewItem &WXUNUSED(item),
unsigned int WXUNUSED(col) )
return false;
}
- virtual bool LeftClick( wxPoint cursor, wxRect WXUNUSED(cell),
+ virtual bool LeftClick(const wxPoint& cursor,
+ const wxRect& WXUNUSED(cell),
wxDataViewModel *WXUNUSED(model),
const wxDataViewItem &WXUNUSED(item),
unsigned int WXUNUSED(col) )
return true;
}
-bool wxDataViewToggleRenderer::WXOnLeftClick(wxPoint WXUNUSED(cursor),
- wxRect WXUNUSED(cell),
+bool wxDataViewToggleRenderer::WXOnLeftClick(const wxPoint& WXUNUSED(cursor),
+ const wxRect& WXUNUSED(cell),
wxDataViewModel *model,
const wxDataViewItem& item,
unsigned int col)
return GetTextExtent(m_date.FormatDate());
}
-bool wxDataViewDateRenderer::WXOnActivate(wxRect WXUNUSED(cell),
+bool wxDataViewDateRenderer::WXOnActivate(const wxRect& WXUNUSED(cell),
wxDataViewModel *model,
const wxDataViewItem& item,
unsigned int col)