526954c596
Use "wxWindows licence" and not "wxWidgets licence" (the latter doesn't exist) and consistently spell "licence" using British spelling. See #12165. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/persist/toplevel.h
|
|
// Purpose: interface of wxPersistentTLW
|
|
// Author: Vadim Zeitlin
|
|
// RCS-ID: $Id$
|
|
// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
/**
|
|
Persistence adapter for wxTopLevelWindow.
|
|
|
|
This adapter saves and restores the geometry (i.e. position and size) and
|
|
the state (iconized, maximized or normal) of top level windows. It can be
|
|
used with both wxFrame and wxDialog.
|
|
|
|
Note that it does @em not save nor restore the window visibility.
|
|
*/
|
|
class wxPersistentTLW : public wxPersistentWindow<wxTopLevelWindow>
|
|
{
|
|
public:
|
|
/**
|
|
Constructor.
|
|
|
|
@param book
|
|
The associated window.
|
|
*/
|
|
wxPersistentTLW(wxTopLevelWindow *book);
|
|
|
|
/**
|
|
Save the current window geometry.
|
|
*/
|
|
virtual void Save() const;
|
|
|
|
/**
|
|
Restore the window geometry.
|
|
*/
|
|
virtual bool Restore();
|
|
};
|
|
|
|
/// Overload allowing persistence adapter creation for wxTopLevelWindow-derived
|
|
/// objects.
|
|
wxPersistentObject *wxCreatePersistentObject(wxTopLevelWindow *book);
|