VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.h@ 41114

Last change on this file since 41114 was 41114, checked in by vboxsync, 13 years ago

FE/Qt: Runtime UI: General machine-window refactoring/cleanup.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1/** @file
2 *
3 * VBox frontends: Qt GUI ("VirtualBox"):
4 * UIMachineWindowScale class declaration
5 */
6
7/*
8 * Copyright (C) 2010-2012 Oracle Corporation
9 *
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.
17 */
18
19#ifndef __UIMachineWindowScale_h__
20#define __UIMachineWindowScale_h__
21
22/* Local includes: */
23#include "UIMachineWindow.h"
24
25/* Scale machine-window implementation: */
26class UIMachineWindowScale : public UIMachineWindow
27{
28 Q_OBJECT;
29
30protected:
31
32 /* Constructor: */
33 UIMachineWindowScale(UIMachineLogic *pMachineLogic, ulong uScreenId);
34
35private slots:
36
37 /* Popup main-menu: */
38 void sltPopupMainMenu();
39
40private:
41
42 /* Prepare helpers: */
43 void prepareMainLayout();
44 void prepareMenu();
45#ifdef Q_WS_MAC
46 void prepareVisualState();
47#endif /* Q_WS_MAC */
48 void loadSettings();
49
50 /* Cleanup helpers: */
51 void saveSettings();
52#ifdef Q_WS_MAC
53 void cleanupVisualState();
54#endif /* Q_WS_MAC */
55 void cleanupMenu();
56 //void cleanupMainLayout() {}
57
58 /* Show stuff: */
59 void showInNecessaryMode();
60
61 /* Event handlers: */
62 bool event(QEvent *pEvent);
63#ifdef Q_WS_WIN
64 bool winEvent(MSG *pMessage, long *pResult);
65#endif /* Q_WS_WIN */
66
67 /* Helpers: */
68 bool isMaximizedChecked();
69
70 /* Widgets: */
71 QMenu *m_pMainMenu;
72
73 /* Variables: */
74 QRect m_normalGeometry;
75
76 /* Factory support: */
77 friend class UIMachineWindow;
78};
79
80#endif // __UIMachineWindowScale_h__
81
Note: See TracBrowser for help on using the repository browser.

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