10#include "../private/tlwgeom.h"
12#include <codeanalysis\warnings.h>
14#pragma warning(disable: WXWIDGETS_CODE_ANALYSIS_WARNINGS)
15#include <wx/persist.h>
16#include <wx/persist/toplevel.h>
17#include <wx/persist/window.h>
18#include <wx/toplevel.h>
28 public wxPersistentWindow<wxTopLevelWindow>,
29 private wxTopLevelWindow::GeometrySerializer
42 virtual wxString
GetKind() const wxOVERRIDE
44 return wxT(wxPERSIST_TLW_KIND);
50 virtual void Save() const wxOVERRIDE
52 const wxTopLevelWindow *
const wnd = Get();
55 if (geom.GetFrom(wnd))
64 wxTopLevelWindow *
const wnd = Get();
67 if (!geom.Restore(*
this))
70 return geom.ApplyTo(wnd);
77 virtual bool SaveField(
const wxString& name,
int value)
const wxOVERRIDE
79 return SaveValue(name, value);
82 virtual bool RestoreField(
const wxString& name,
int* value) wxOVERRIDE
84 return RestoreValue(name, value);
Supports saving/restoring wxTopLevelWindow state.
Definition toplevel.h:30
virtual wxString GetKind() const wxOVERRIDE
Definition toplevel.h:42
wxPersistentTLWEx(wxTopLevelWindow *mgr)
Constructs a persistent dialog object.
Definition toplevel.h:35
virtual bool Restore() wxOVERRIDE
Restores dialog state.
Definition toplevel.h:62
virtual void Save() const wxOVERRIDE
Saves dialog state.
Definition toplevel.h:50