]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/persist/treebook.h
28be96024e5aa5f3a4c2ad9197b3874a304714fb
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 license
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 wxPersistentTreeBook
: public wxPersistentBookCtrl
24 The associated tree book control.
26 wxPersistentTreeBook(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
);