3
* VBox frontends: Qt GUI ("VirtualBox"):
4
* UIMachineWindowScale class declaration
8
* Copyright (C) 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 __UIMachineWindowScale_h__
20
#define __UIMachineWindowScale_h__
23
#include <QMainWindow>
26
#include "QIWithRetranslateUI.h"
27
#include "UIMachineWindow.h"
29
class UIMachineWindowScale : public QIWithRetranslateUI2<QMainWindow>, public UIMachineWindow
35
/* Scale machine window constructor/destructor: */
36
UIMachineWindowScale(UIMachineLogic *pMachineLogic, ulong uScreenId);
37
virtual ~UIMachineWindowScale();
41
/* Console callback handlers: */
42
void sltMachineStateChanged();
44
/* Popup main menu: */
45
void sltPopupMainMenu();
47
/* Close window reimplementation: */
52
/* Translate routine: */
56
bool event(QEvent *pEvent);
58
bool winEvent(MSG *pMessage, long *pResult);
61
bool x11Event(XEvent *pEvent);
63
void closeEvent(QCloseEvent *pEvent);
65
/* Prepare helpers: */
67
void prepareMachineViewContainer();
68
void prepareMachineView();
69
void loadWindowSettings();
71
/* Cleanup helpers: */
72
void saveWindowSettings();
73
void cleanupMachineView();
74
//void cleanupMachineViewContainer() {}
79
bool isMaximizedChecked();
83
QRect m_normalGeometry;
85
/* Factory support: */
86
friend class UIMachineWindow;
89
#endif // __UIMachineWindowScale_h__