#include <wx/persist/dataview.h>
Inheritance diagram for wxPersistentDataViewCtrl:Persistence adapter for wxDataViewCtrl.
This adapter handles wxDataViewCtrl column widths and sort order.
Public Member Functions | |
| wxPersistentDataViewCtrl (wxDataViewCtrl *control) | |
| Constructor. More... | |
| void | Save () const override |
| Save the current column widths and sort order. More... | |
| bool | Restore () override |
| Restore the column widths and sort order. More... | |
Public Member Functions inherited from wxPersistentWindow< wxDataViewCtrl > | |
| wxPersistentWindow (WindowType *win) | |
| Constructor for a persistent window object. More... | |
| WindowType * | Get () const |
| virtual wxString | GetName () const |
| Implements the base class pure virtual method using wxWindow::GetName(). More... | |
Public Member Functions inherited from wxPersistentObject | |
| wxPersistentObject (void *obj) | |
| Constructor takes the object which we're associated with. More... | |
| virtual | ~wxPersistentObject () |
| Trivial but virtual destructor. More... | |
| void * | GetObject () const |
| Return the associated object. More... | |
| virtual wxString | GetKind () const =0 |
| Returns the string uniquely identifying the objects supported by this adapter. More... | |
Additional Inherited Members | |
Public Types inherited from wxPersistentWindow< wxDataViewCtrl > | |
| typedef wxDataViewCtrl | WindowType |
| The type of the associated window. More... | |
Protected Member Functions inherited from wxPersistentObject | |
| template<typename T > | |
| bool | SaveValue (const wxString &name, T value) const |
| Save the specified value using the given name. More... | |
| template<typename T > | |
| bool | RestoreValue (const wxString &name, T *value) |
| Restore a value saved by SaveValue(). More... | |
| 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.