Add protected RestoreState, SaveState functions to BApplication. HasBeenRestored can be used to check in ReadyToRun if the RestoreState function has been called. The default implementation just store the window geometry and the decorator settings. Subclass implementations can use the global restore_window_geometry, save_window_geometry function for convenience. Please review. Will commit a simple session manager tomorrow.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39462 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler
2010-11-17 04:38:48 +00:00
parent f72d191b12
commit a5cf354a27
3 changed files with 124 additions and 1 deletions
+4
View File
@@ -14,6 +14,10 @@
struct server_read_only_memory;
const uint32 kRestoreStateMsg = '_RSM';
const uint32 kSaveStateMsg = '_SSM';
class BApplication::Private {
public:
static inline BPrivate::PortLink *ServerLink()