#include </cygdrive/c/Users/Hamis/Cygwin-packaging/wxWidgets3.1/wxWidgets3.1-3.1.5-2.x86_64/src/wxWidgets-3.1.5/interface/wx/persist/dataview.h>
Persistence adapter for wxDataViewCtrl.
This adapter handles wxDataViewCtrl column widths and sort order.
Public Member Functions | |
wxPersistentDataViewCtrl (wxDataViewCtrl *control) | |
Constructor. | |
void | Save () const override |
Save the current column widths and sort order. | |
bool | Restore () override |
Restore the column widths and sort order. | |
![]() | |
wxPersistentWindow (WindowType *win) | |
Constructor for a persistent window object. | |
WindowType * | Get () const |
virtual wxString | GetName () const |
Implements the base class pure virtual method using wxWindow::GetName(). | |
![]() | |
wxPersistentObject (void *obj) | |
Constructor takes the object which we're associated with. | |
virtual | ~wxPersistentObject () |
Trivial but virtual destructor. | |
virtual wxString | GetKind () const =0 |
Returns the string uniquely identifying the objects supported by this adapter. | |
void * | GetObject () const |
Return the associated object. | |
Additional Inherited Members | |
![]() | |
typedef wxDataViewCtrl | WindowType |
The type of the associated window. | |
![]() | |
template<typename T > | |
bool | SaveValue (const wxString &name, T value) const |
Save the specified value using the given name. | |
template<typename T > | |
bool | RestoreValue (const wxString &name, T *value) |
Restore a value saved by SaveValue(). | |
wxPersistentDataViewCtrl::wxPersistentDataViewCtrl | ( | wxDataViewCtrl * | control | ) |
Constructor.
control | The associated control. |
|
overridevirtual |
Restore the column widths and sort order.
The wxDataViewCtrl must be initialized before calling this function, i.e. all of its columns should be already added to it – otherwise restoring their width would have no effect.
Implements wxPersistentObject.
|
overridevirtual |
Save the current column widths and sort order.
Implements wxPersistentObject.