VBoxConsoleView.h revision 5171615b463e14b73d00e295516beb4c8caf68a4
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd * VBox frontends: Qt GUI ("VirtualBox"):
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd * VBoxConsoleView class declaration
6ae232055d4d8a97267517c5e50074c2c819941and * Copyright (C) 2006-2007 innotek GmbH
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc * This file is part of VirtualBox Open Source Edition (OSE), as
6ae232055d4d8a97267517c5e50074c2c819941and * available from http://www.virtualbox.org. This file is free software;
6ae232055d4d8a97267517c5e50074c2c819941and * you can redistribute it and/or modify it under the terms of the GNU
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen * General Public License (GPL) as published by the Free Software
2e545ce2450a9953665f701bb05350f0d3f26275nd * Foundation, in version 2 as it comes in the "COPYING" file of the
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
6ae232055d4d8a97267517c5e50074c2c819941and#if defined (Q_WS_PM)
b43f840409794ed298e8634f6284741f193b6c4ftakashi#if defined (Q_WS_MAC)
6ae232055d4d8a97267517c5e50074c2c819941and/** @todo remove this hack when somebody get around fixing the conflicting typedef/enum OSType. */
6ae232055d4d8a97267517c5e50074c2c819941and QWidget *parent = 0, const char *name = 0, WFlags f = 0);
6ae232055d4d8a97267517c5e50074c2c819941and void setIgnoreMainwndResize (bool aYes) { mIgnoreMainwndResize = aYes; }
6ae232055d4d8a97267517c5e50074c2c819941and void additionsStateChanged (const QString &, bool, bool);
6ae232055d4d8a97267517c5e50074c2c819941and#if defined(Q_WS_WIN32)
6ae232055d4d8a97267517c5e50074c2c819941and bool winLowKeyboardEvent (UINT msg, const KBDLLHOOKSTRUCT &event);
6ae232055d4d8a97267517c5e50074c2c819941and /** Flags for keyEvent(). */
6ae232055d4d8a97267517c5e50074c2c819941and void focusEvent (bool aHasFocus, bool aReleaseHostKey = true);
6ae232055d4d8a97267517c5e50074c2c819941and bool mouseEvent (int aType, const QPoint &aPos, const QPoint &aGlobalPos,
6ae232055d4d8a97267517c5e50074c2c819941and emit mouseStateChanged ((mMouseCaptured ? MouseCaptured : 0) |
6ae232055d4d8a97267517c5e50074c2c819941and // IConsoleCallback event handlers
6ae232055d4d8a97267517c5e50074c2c819941and void captureKbd (bool aCapture, bool aEmitSignal = true);
6ae232055d4d8a97267517c5e50074c2c819941and void captureMouse (bool aCapture, bool aEmitSignal = true);
6ae232055d4d8a97267517c5e50074c2c819941and bool processHotKey (const QKeySequence &key, QMenuData *data);
b43f840409794ed298e8634f6284741f193b6c4ftakashi void updateModifiers (bool fNumLock, bool fCapsLock, bool fScrollLock);
bc9d4698fce0238d2f6f2682e99423ebb1149976rbowen void releaseAllPressedKeys (bool aReleaseHostKey = true);
727872d18412fc021f03969b8641810d8896820bhumbedooh void setPointerShape (MousePointerChangeEvent *me);
cc7e1025de9ac63bd4db6fe7f71c158b2cf09fe4humbedooh bool isRunning() { return mLastState == CEnums::Running; }
long muNumLockAdaptionCnt;
long muCapsLockAdaptionCnt;
#if defined(Q_WS_WIN)
#if defined(Q_WS_MAC)
# ifndef VBOX_WITH_HACKED_QT
/** The darwin cursor handle (see DarwinCursor.h/.cpp). */
#if defined (VBOX_GUI_USE_REFRESH_TIMER)
#if defined (Q_WS_WIN32)
# ifndef VBOX_WITH_HACKED_QT