Add hooks to UserInterface to allow for saving/restoring of UI settings.
Make use of them as appopriate. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43121 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright 2009, Ingo Weinhold, [email protected].
|
||||
* Copyright 2011, Rene Gollent, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
@@ -8,6 +9,7 @@
|
||||
|
||||
#include <Alert.h>
|
||||
|
||||
#include "GUITeamUISettings.h"
|
||||
#include "TeamWindow.h"
|
||||
#include "Tracing.h"
|
||||
|
||||
@@ -26,6 +28,13 @@ GraphicalUserInterface::~GraphicalUserInterface()
|
||||
}
|
||||
|
||||
|
||||
const char*
|
||||
GraphicalUserInterface::ID() const
|
||||
{
|
||||
return "GraphicalUserInterface";
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
GraphicalUserInterface::Init(Team* team, UserInterfaceListener* listener)
|
||||
{
|
||||
@@ -58,6 +67,28 @@ GraphicalUserInterface::Terminate()
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
GraphicalUserInterface::LoadSettings(const TeamUISettings* settings)
|
||||
{
|
||||
// TODO: restore settings
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
GraphicalUserInterface::SaveSettings(TeamUISettings*& settings) const
|
||||
{
|
||||
settings = new(std::nothrow) GUITeamUISettings(ID());
|
||||
if (settings == NULL)
|
||||
return B_NO_MEMORY;
|
||||
|
||||
// TODO: fill in settings
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
GraphicalUserInterface::NotifyUser(const char* title, const char* message,
|
||||
user_notification_type type)
|
||||
|
||||
Reference in New Issue
Block a user