UIMachineWindowFullscreen.h revision 1910146bc46e3eee5b8668806da594107fe9aabf
/** @file
*
* VBox frontends: Qt GUI ("VirtualBox"):
* UIMachineWindowFullscreen class declaration
*/
/*
* Copyright (C) 2010 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the GNU
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#ifndef __UIMachineWindowFullscreen_h__
#define __UIMachineWindowFullscreen_h__
/* Global includes */
#include <QLabel>
/* Local includes */
#include "VBoxDefs.h"
#include "QIWithRetranslateUI.h"
#include "QIMainDialog.h"
#include "UIMachineWindow.h"
#ifdef Q_WS_X11
# include <X11/Xlib.h>
#endif
/* Local forwards */
class CMediumAttachment;
class UIMachineWindowFullscreen : public QIWithRetranslateUI<QIMainDialog>, public UIMachineWindow
{
Q_OBJECT;
protected:
/* Normal machine window constructor/destructor: */
UIMachineWindowFullscreen(UIMachineLogic *pMachineLogic);
virtual ~UIMachineWindowFullscreen();
private slots:
/* Console callback handlers: */
void sltMachineStateChanged();
void sltMediumChange(const CMediumAttachment &attachment);
void sltUSBControllerChange();
void sltUSBDeviceStateChange();
void sltNetworkAdapterChange();
void sltSharedFolderChange();
/* LED connections: */
void sltProcessGlobalSettingChange(const char *aPublicName, const char *aName);
/* Close window reimplementation: */
void sltTryClose();
private:
/* Translate routine: */
void retranslateUi();
/* Update routines: */
void updateAppearanceOf(int aElement);
/* Event handlers: */
bool event(QEvent *pEvent);
#ifdef Q_WS_X11
bool x11Event(XEvent *pEvent);
#endif
void closeEvent(QCloseEvent *pEvent);
/* Prepare helpers: */
void prepareConsoleConnections();
void prepareMenu();
void prepareConnections();
void prepareMachineView();
void loadWindowSettings();
/* Cleanup helpers: */
void saveWindowSettings();
void cleanupMachineView();
//void cleanupConnections() {}
//void cleanupMenu() {}
//void cleanupConsoleConnections() {}
#ifdef Q_WS_MAC
# ifdef QT_MAC_USE_COCOA
void setPresentationModeEnabled(bool fEnabled);
# endif /* QT_MAC_USE_COCOA */
#endif /* Q_WS_MAC */
/* Other members: */
QRect m_normalGeometry;
/* Factory support: */
friend class UIMachineWindow;
};
#endif // __UIMachineWindowFullscreen_h__