VBoxConsoleWnd.h revision b0e9447aa60a526ffe074cf0cbeb33777620b12c
/** @file
*
* VBox frontends: Qt GUI ("VirtualBox"):
* VBoxConsoleWnd class declaration
*/
/*
* Copyright (C) 2006 InnoTek Systemberatung GmbH
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License 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.
*
* If you received this file as part of a commercial VirtualBox
* distribution, then only the terms of your commercial VirtualBox
* license agreement apply instead of the previous paragraph.
*/
#ifndef __VBoxConsoleWnd_h__
#define __VBoxConsoleWnd_h__
#include "COMDefs.h"
#include <qmainwindow.h>
#include <qmap.h>
#include <qobjectlist.h>
#include <qcolor.h>
#include <qdialog.h>
#ifdef VBOX_WITH_DEBUGGER_GUI
#endif
#ifdef Q_WS_MAC
#endif
{
void closeView();
void refreshView();
bool isTrueFullscreen() const { return full_screen; }
// events
void closeEvent (QCloseEvent *e);
#if defined(Q_WS_X11)
#endif
#ifdef VBOX_WITH_DEBUGGER_GUI
bool dbgCreated();
void dbgDestroy();
void dbgAdjustRelativePos();
#endif
enum /* Stuff */
{
FloppyStuff = 0x01,
DVDStuff = 0x02,
HardDiskStuff = 0x04,
PauseAction = 0x08,
NetworkStuff = 0x10,
DisableMouseIntegrAction = 0x20,
Caption = 0x40,
USBStuff = 0x80,
VRDPStuff = 0x100,
AllStuff = 0xFF,
};
void languageChange();
void updateAppearanceOf (int element);
void finalizeOpenView();
void loadGuiCustomizations();
void vmFullscreen (bool on);
void vmAutoresizeGuest (bool on);
void vmAdjustWindow();
void vmTypeCAD();
void vmTypeCABS();
void vmReset();
void vmPause(bool);
void vmACPIShutdown();
void vmClose();
void vmTakeSnapshot();
void vmDisableMouseIntegr (bool);
void devicesMountFloppyImage();
void devicesUnmountFloppy();
void devicesMountDVDImage();
void devicesUnmountDVD();
void devicesSwitchVrdp (bool);
void devicesToggleSFDialog (bool);
void devicesInstallGuestAdditions();
void prepareFloppyMenu();
void prepareDVDMenu();
void prepareNetworkMenu();
void setDynamicMenuItemStatusTip (int aId);
void captureFloppy (int aId);
void captureDVD (int aId);
void activateNetworkMenu (int aId);
void activateSFMenu();
void statusTipChanged (const QString &);
void clearStatusBar();
void updateDeviceLights();
void updateMouseState (int state);
void updateAdditionsState (const QString&, bool);
void tryClose();
void dbgShowStatistics();
void dbgShowCommandLine();
// VM actions
#if defined(Q_WS_X11)
#endif
// VM popup menus
// Devices actions
#ifdef VBOX_WITH_DEBUGGER_GUI
// Debugger actions
#endif
// Help actions
// Devices popup menus
bool waitForStatusBarChange;
bool statusBarChangedInside;
#ifdef VBOX_WITH_DEBUGGER_GUI
// Debugger popup menu
#endif
// Menu identifiers
enum {
vmMenuId = 1,
#ifdef VBOX_WITH_DEBUGGER_GUI
#endif
};
// widgets
bool no_auto_close : 1;
// variables for dealing with true fullscreen
bool full_screen : 1;
int normal_wflags;
bool was_max : 1;
int console_style;
bool mIsFirstTimeStarted : 1;
#ifdef VBOX_WITH_DEBUGGER_GUI
// Debugger GUI
#endif
#ifdef Q_WS_MAC
// Dock images.
#endif
};
{
~VBoxSFDialog();
void showEvent (QShowEvent*);
};
#endif // __VBoxConsoleWnd_h__