VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.h@ 71027

Last change on this file since 71027 was 71027, checked in by vboxsync, 7 years ago

FE/Qt: big svn props cleanup

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1/* $Id: UIGlobalSettingsGeneral.h 71027 2018-02-15 14:33:48Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIGlobalSettingsGeneral class declaration.
4 */
5
6/*
7 * Copyright (C) 2006-2017 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef ___UIGlobalSettingsGeneral_h___
19#define ___UIGlobalSettingsGeneral_h___
20
21/* GUI includes: */
22#include "UISettingsPage.h"
23#include "UIGlobalSettingsGeneral.gen.h"
24
25/* Forward declarations: */
26struct UIDataSettingsGlobalGeneral;
27typedef UISettingsCache<UIDataSettingsGlobalGeneral> UISettingsCacheGlobalGeneral;
28
29
30/** Global settings: General page. */
31class UIGlobalSettingsGeneral : public UISettingsPageGlobal,
32 public Ui::UIGlobalSettingsGeneral
33{
34 Q_OBJECT;
35
36public:
37
38 /** Constructs General settings page. */
39 UIGlobalSettingsGeneral();
40 /** Destructs General settings page. */
41 ~UIGlobalSettingsGeneral();
42
43protected:
44
45 /** Loads data into the cache from corresponding external object(s),
46 * this task COULD be performed in other than the GUI thread. */
47 virtual void loadToCacheFrom(QVariant &data) /* override */;
48 /** Loads data into corresponding widgets from the cache,
49 * this task SHOULD be performed in the GUI thread only. */
50 virtual void getFromCache() /* override */;
51
52 /** Saves data from corresponding widgets to the cache,
53 * this task SHOULD be performed in the GUI thread only. */
54 virtual void putToCache() /* override */;
55 /** Saves data from the cache to corresponding external object(s),
56 * this task COULD be performed in other than the GUI thread. */
57 virtual void saveFromCacheTo(QVariant &data) /* overrride */;
58
59 /** Handles translation event. */
60 virtual void retranslateUi() /* override */;
61
62private:
63
64 /** Prepares all. */
65 void prepare();
66 /** Cleanups all. */
67 void cleanup();
68
69 /** Saves existing general data from the cache. */
70 bool saveGeneralData();
71
72 /** Holds the page data cache instance. */
73 UISettingsCacheGlobalGeneral *m_pCache;
74};
75
76#endif /* !___UIGlobalSettingsGeneral_h___ */
77
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette