3
* VBox frontends: Qt4 GUI ("VirtualBox"):
4
* UIGlobalSettingsGeneral class declaration
8
* Copyright (C) 2006-2010 Oracle Corporation
10
* This file is part of VirtualBox Open Source Edition (OSE), as
11
* available from http://www.virtualbox.org. This file is free software;
12
* you can redistribute it and/or modify it under the terms of the GNU
13
* General Public License (GPL) as published by the Free Software
14
* Foundation, in version 2 as it comes in the "COPYING" file of the
15
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
19
#ifndef __UIGlobalSettingsGeneral_h__
20
#define __UIGlobalSettingsGeneral_h__
23
#include "UISettingsPage.h"
24
#include "UIGlobalSettingsGeneral.gen.h"
26
/* Global settings / General page / Cache: */
27
struct UISettingsCacheGlobalGeneral
29
QString m_strDefaultMachineFolder;
30
QString m_strVRDEAuthLibrary;
31
bool m_fTrayIconEnabled;
33
bool m_fPresentationModeEnabled;
35
bool m_fHostScreenSaverDisables;
38
/* Global settings / General page: */
39
class UIGlobalSettingsGeneral : public UISettingsPageGlobal, public Ui::UIGlobalSettingsGeneral
46
UIGlobalSettingsGeneral();
50
/* Load data to cashe from corresponding external object(s),
51
* this task COULD be performed in other than GUI thread: */
52
void loadToCacheFrom(QVariant &data);
53
/* Load data to corresponding widgets from cache,
54
* this task SHOULD be performed in GUI thread only: */
57
/* Save data from corresponding widgets to cache,
58
* this task SHOULD be performed in GUI thread only: */
60
/* Save data from cache to corresponding external object(s),
61
* this task COULD be performed in other than GUI thread: */
62
void saveFromCacheTo(QVariant &data);
64
/* Navigation stuff: */
65
void setOrderAfter(QWidget *pWidget);
67
/* Translation stuff: */
73
UISettingsCacheGlobalGeneral m_cache;
76
#endif // __UIGlobalSettingsGeneral_h__