]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/persist/treebook.h
9d57fd26632ad4aa3acc5c9d9789aef50cc24c16
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/persist/treebook.h
3 // Purpose: interface of wxPersistentTreeBook
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 Persistence adapter for wxTreebook.
13 This adapter saves and restores the expanded branches of the wxTreeCtrl
14 used by wxTreebook, in addition to saving and restoring the selection as
15 implemented by the base wxPersistentBookCtrl class.
17 class wxPersistentTreeBookCtrl
: public wxPersistentBookCtrl
24 The associated tree book control.
26 wxPersistentTreeBookCtrl(wxTreebook
*book
);
29 Save the currently opened branches.
31 virtual void Save() const;
34 Restore the opened branches.
36 The book control must be initialized before calling this function, i.e.
37 all of its pages should be already added to it.
39 virtual bool Restore();
42 /// Overload allowing persistence adapter creation for wxTreebook objects.
43 wxPersistentObject
*wxCreatePersistentObject(wxTreebook
*book
);