VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineShortcuts.cpp@ 43138

Last change on this file since 43138 was 41689, checked in by vboxsync, 12 years ago

FE/Qt: VBoxDefs renamed to UIDefs and reworked into namespace. Corresponding files which were using VBoxDefs updated.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1/* $Id: UIMachineShortcuts.cpp 41689 2012-06-13 17:13:36Z vboxsync $ */
2/** @file
3 *
4 * VBox frontends: Qt GUI ("VirtualBox"):
5 * UIMachineShortcuts class definitions
6 */
7
8/*
9 * Copyright (C) 2011 Oracle Corporation
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.virtualbox.org. This file is free software;
13 * you can redistribute it and/or modify it under the terms of the GNU
14 * General Public License (GPL) as published by the Free Software
15 * Foundation, in version 2 as it comes in the "COPYING" file of the
16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18 */
19
20/* Local includes */
21#include "UIMachineShortcuts.h"
22
23template <> UIMachineShortcuts* UIShortcuts<UIMachineShortcuts>::m_pInstance = 0;
24
25UIMachineShortcuts::UIMachineShortcuts()
26{
27 /* Defaults */
28 m_Shortcuts[SettingsDialogShortcut] = UIKeySequence("SettingsDialog", "S");
29 m_Shortcuts[TakeSnapshotShortcut] = UIKeySequence("TakeSnapshot", "T");
30 m_Shortcuts[TakeScreenshotShortcut] = UIKeySequence("TakeScreenshot", "E");
31 m_Shortcuts[InformationDialogShortcut] = UIKeySequence("InformationDialog", "N");
32 m_Shortcuts[MouseIntegrationShortcut] = UIKeySequence("MouseIntegration" , "I");
33 m_Shortcuts[TypeCADShortcut] = UIKeySequence("TypeCAD", "Del");
34 m_Shortcuts[TypeCABSShortcut] = UIKeySequence("TypeCABS", "Backspace");
35 m_Shortcuts[PauseShortcut] = UIKeySequence("Pause", "P");
36 m_Shortcuts[ResetShortcut] = UIKeySequence("Reset", "R");
37#ifdef Q_WS_MAC
38 m_Shortcuts[ShutdownShortcut] = UIKeySequence("Shutdown", "U");
39#else /* Q_WS_MAC */
40 m_Shortcuts[ShutdownShortcut] = UIKeySequence("Shutdown", "H");
41#endif /* Q_WS_MAC */
42 m_Shortcuts[CloseShortcut] = UIKeySequence("Close", "Q");
43 m_Shortcuts[FullscreenModeShortcut] = UIKeySequence("FullscreenMode", "F");
44 m_Shortcuts[SeamlessModeShortcut] = UIKeySequence("SeamlessMode", "L");
45 m_Shortcuts[ScaleModeShortcut] = UIKeySequence("ScaleMode", "C");
46 m_Shortcuts[GuestAutoresizeShortcut] = UIKeySequence("GuestAutoresize", "G");
47 m_Shortcuts[WindowAdjustShortcut] = UIKeySequence("WindowAdjust", "A");
48 m_Shortcuts[NetworkAdaptersDialogShortcut] = UIKeySequence("NetworkAdaptersDialog");
49 m_Shortcuts[SharedFoldersDialogShortcut] = UIKeySequence("SharedFoldersDialog");
50 m_Shortcuts[VRDPServerShortcut] = UIKeySequence("VRDPServer");
51 m_Shortcuts[InstallGuestAdditionsShortcut] = UIKeySequence("InstallGuestAdditions", "D");
52#ifdef VBOX_WITH_DEBUGGER_GUI
53 m_Shortcuts[StatisticWindowShortcut] = UIKeySequence("StatisticWindow");
54 m_Shortcuts[CommandLineWindowShortcut] = UIKeySequence("CommandLineWindow");
55 m_Shortcuts[LoggingShortcut] = UIKeySequence("Logging");
56#endif /* VBOX_WITH_DEBUGGER_GUI */
57 m_Shortcuts[HelpShortcut] = UIKeySequence("Help");
58 m_Shortcuts[WebShortcut] = UIKeySequence("Web");
59 m_Shortcuts[ResetWarningsShortcut] = UIKeySequence("ResetWarnings");
60 m_Shortcuts[NetworkAccessManager] = UIKeySequence("NetworkAccessManager");
61#ifdef VBOX_WITH_REGISTRATION
62 m_Shortcuts[RegisterShortcut] = UIKeySequence("Register");
63#endif /* VBOX_WITH_REGISTRATION */
64 m_Shortcuts[UpdateShortcut] = UIKeySequence("Update");
65 m_Shortcuts[AboutShortcut] = UIKeySequence("About");
66 m_Shortcuts[PopupMenuShortcut] = UIKeySequence("PopupMenu", "Home");
67 /* Overwrite the key sequences with the one in extra data. */
68 loadExtraData(GUI_Input_MachineShortcuts, EndShortcutType);
69}
70
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use