VirtualBox

Changeset 41695 in vbox


Ignore:
Timestamp:
Jun 14, 2012 9:03:50 AM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: UIDefs: Comments restyling cpp => c.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/globals
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.cpp

    r41689 r41695  
    11/* $Id$ */
    2 /// @file
    3 ///
    4 /// VBox frontends: Qt GUI ("VirtualBox"):
    5 /// Global definitions and function implementations
     2/** @file
     3 *
     4 * VBox frontends: Qt GUI ("VirtualBox"):
     5 * Global definitions and function implementations
     6 */
    67
    7 // Copyright (C) 2006-2012 Oracle Corporation
    8 //
    9 // This file is part of VirtualBox Open Source Edition (OSE), as
    10 // available from http://www.virtualbox.org. This file is free software;
    11 // you can redistribute it and/or modify it under the terms of the GNU
    12 // General Public License (GPL) as published by the Free Software
    13 // Foundation, in version 2 as it comes in the "COPYING" file of the
    14 // VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    15 // hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
     8/*
     9 * Copyright (C) 2006-2012 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 */
    1619
    17 // GUI includes:
     20/* GUI includes: */
    1821#include "UIDefs.h"
    1922
    20 // Global definitions:
     23/* Global definitions: */
    2124const char* UIDefs::GUI_RenderMode = "GUI/RenderMode";
    2225const char* UIDefs::GUI_LanguageId = "GUI/LanguageID";
     
    3033const char* UIDefs::GUI_RecentListFD = "GUI/RecentListFD";
    3134
    32 // Selector-window definitions:
     35/* Selector-window definitions: */
    3336const char* UIDefs::GUI_Input_SelectorShortcuts = "GUI/Input/SelectorShortcuts";
    3437const char* UIDefs::GUI_LastSelectorWindowPosition = "GUI/LastWindowPosition";
     
    4144const char* UIDefs::GUI_LastVMSelected = "GUI/LastVMSelected";
    4245
    43 // Machine-window definitions:
     46/* Machine-window definitions: */
    4447const char* UIDefs::GUI_Input_MachineShortcuts = "GUI/Input/MachineShortcuts";
    4548const char* UIDefs::GUI_LastNormalWindowPosition = "GUI/LastNormalWindowPosition";
     
    5659const char* UIDefs::GUI_PassCAD = "GUI/PassCAD";
    5760
    58 // Mini tool-bar definitions:
     61/* Mini tool-bar definitions: */
    5962const char* UIDefs::GUI_ShowMiniToolBar = "GUI/ShowMiniToolBar";
    6063const char* UIDefs::GUI_MiniToolBarAlignment = "GUI/MiniToolBarAlignment";
    6164const char* UIDefs::GUI_MiniToolBarAutoHide = "GUI/MiniToolBarAutoHide";
    6265
    63 // Close-dialog declarations:
     66/* Close-dialog definitions: */
    6467const char* UIDefs::GUI_RestrictedCloseActions = "GUI/RestrictedCloseActions";
    6568const char* UIDefs::GUI_LastCloseAction = "GUI/LastCloseAction";
    6669const char* UIDefs::GUI_CloseActionHook = "GUI/CloseActionHook";
    6770
    68 // Wizards declarations:
     71/* Wizards definitions: */
    6972const char* UIDefs::GUI_FirstRun = "GUI/FirstRun";
    7073const char* UIDefs::GUI_HideDescriptionForWizards = "GUI/HideDescriptionForWizards";
     
    7477const char* UIDefs::GUI_Export_Bucket = "GUI/Export/Bucket";
    7578
    76 // Message-center declarations:
     79/* Message-center definitions: */
    7780const char* UIDefs::GUI_SuppressMessages = "GUI/SuppressMessages";
    7881const char* UIDefs::GUI_InvertMessageOption = "GUI/InvertMessageOption";
    7982
    80 // Registration dialog declarations:
     83/* Registration dialog definitions: */
    8184const char* UIDefs::GUI_RegistrationDlgWinID = "GUI/RegistrationDlgWinID";
    8285const char* UIDefs::GUI_RegistrationData = "GUI/SUNOnlineData";
    8386
    84 // Update manager declarations:
     87/* Update manager definitions: */
    8588const char* UIDefs::GUI_UpdateDate = "GUI/UpdateDate";
    8689const char* UIDefs::GUI_UpdateCheckCount = "GUI/UpdateCheckCount";
    8790
    88 // Information dialog declarations:
     91/* Information dialog definitions: */
    8992const char* UIDefs::GUI_InfoDlgState = "GUI/InfoDlgState";
    9093
    9194#ifdef VBOX_WITH_DEBUGGER_GUI
     95/* Debugger GUI declarations: */
    9296const char* UIDefs::GUI_DbgEnabled = "GUI/Dbg/Enabled";
    9397const char* UIDefs::GUI_DbgAutoShow = "GUI/Dbg/AutoShow";
    94 #endif // VBOX_WITH_DEBUGGER_GUI
     98#endif /* VBOX_WITH_DEBUGGER_GUI */
    9599
    96100#ifdef Q_WS_X11
     101/* License GUI declarations: */
    97102const char* UIDefs::GUI_LicenseKey = "GUI/LicenseAgreed";
    98 #endif // Q_WS_X11
    99 
    100 #ifdef VBOX_GUI_WITH_SYSTRAY
    101 const char* UIDefs::GUI_TrayIconWinID = "GUI/TrayIcon/WinID";
    102 const char* UIDefs::GUI_TrayIconEnabled = "GUI/TrayIcon/Enabled";
    103 const char* UIDefs::GUI_MainWindowCount = "GUI/MainWindowCount";
    104 #endif // VBOX_GUI_WITH_SYSTRAY
     103#endif /* Q_WS_X11 */
    105104
    106105#ifdef Q_WS_MAC
     106/* Mac dock declarations: */
    107107const char* UIDefs::GUI_RealtimeDockIconUpdateEnabled = "GUI/RealtimeDockIconUpdateEnabled";
    108108const char* UIDefs::GUI_RealtimeDockIconUpdateMonitor = "GUI/RealtimeDockIconUpdateMonitor";
    109109const char* UIDefs::GUI_PresentationModeEnabled = "GUI/PresentationModeEnabled";
    110 #endif // Q_WS_MAC
     110#endif /* Q_WS_MAC */
    111111
    112112#ifdef VBOX_WITH_VIDEOHWACCEL
     113/* Video-acceleration declarations: */
    113114const char* UIDefs::GUI_Accelerate2D_StretchLinear = "GUI/Accelerate2D/StretchLinear";
    114115const char* UIDefs::GUI_Accelerate2D_PixformatYV12 = "GUI/Accelerate2D/PixformatYV12";
     
    116117const char* UIDefs::GUI_Accelerate2D_PixformatYUY2 = "GUI/Accelerate2D/PixformatYUY2";
    117118const char* UIDefs::GUI_Accelerate2D_PixformatAYUV = "GUI/Accelerate2D/PixformatAYUV";
    118 #endif // VBOX_WITH_VIDEOHWACCEL
     119#endif /* VBOX_WITH_VIDEOHWACCEL */
    119120
     121#ifdef VBOX_GUI_WITH_SYSTRAY
     122/* Tray icon declarations: */
     123const char* UIDefs::GUI_TrayIconWinID = "GUI/TrayIcon/WinID";
     124const char* UIDefs::GUI_TrayIconEnabled = "GUI/TrayIcon/Enabled";
     125const char* UIDefs::GUI_MainWindowCount = "GUI/MainWindowCount";
     126#endif /* VBOX_GUI_WITH_SYSTRAY */
     127
     128/* File extensions definitions: */
    120129QStringList UIDefs::VBoxFileExts = QStringList() << "xml" << "vbox";
    121130QStringList UIDefs::VBoxExtPackFileExts = QStringList() << "vbox-extpack";
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.h

    r41689 r41695  
    1 /// @file
    2 ///
    3 /// VBox frontends: Qt GUI ("VirtualBox"):
    4 /// Global declarations and functions
    5 
    6 // Copyright (C) 2006-2012 Oracle Corporation
    7 //
    8 // This file is part of VirtualBox Open Source Edition (OSE), as
    9 // available from http://www.virtualbox.org. This file is free software;
    10 // you can redistribute it and/or modify it under the terms of the GNU
    11 // General Public License (GPL) as published by the Free Software
    12 // Foundation, in version 2 as it comes in the "COPYING" file of the
    13 // VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    14 // hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
     1/** @file
     2 *
     3 * VBox frontends: Qt GUI ("VirtualBox"):
     4 * Global declarations and functions
     5 */
     6
     7/*
     8 * Copyright (C) 2006-2012 Oracle Corporation
     9 *
     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.
     17 */
    1518
    1619#ifndef __UIDefs_h__
    1720#define __UIDefs_h__
    1821
    19 // QT includes:
     22/* Qt includes: */
    2023#include <QEvent>
    2124#include <QStringList>
    2225
    23 // Other VBox defines:
     26/* Other VBox defines: */
    2427#define LOG_GROUP LOG_GROUP_GUI
    2528
    26 // Other VBox includes:
     29/* Other VBox includes: */
    2730#include <VBox/log.h>
    2831#include <iprt/assert.h>
    2932#include <iprt/alloc.h>
    3033
    31 // Defines:
     34/* Defines: */
    3235#define MAC_LEOPARD_STYLE defined(Q_WS_MAC) && (QT_VERSION >= 0x040300)
    3336
     
    3740# define AssertWrapperOkMsg(w, m)      \
    3841    AssertMsg (w.isOk(), (#w ": " m " (RC=0x%08X)", w.lastRC()))
    39 #else // !DEBUG
     42#else /* !DEBUG */
    4043# define AssertWrapperOk(w)          do {} while (0)
    4144# define AssertWrapperOkMsg(w, m)    do {} while (0)
    42 #endif // DEBUG
     45#endif /* DEBUG */
    4346
    4447#ifndef SIZEOF_ARRAY
    4548# define SIZEOF_ARRAY(a) (sizeof(a) / sizeof(a[0]))
    46 #endif // SIZEOF_ARRAY
    47 
    48 // Global UI namespace:
     49#endif /* SIZEOF_ARRAY */
     50
     51/* Global UI namespace: */
    4952namespace UIDefs
    5053{
    51     // VM display rendering mode:
     54    /* VM display rendering mode: */
    5255    enum RenderMode
    5356    {
     
    6063#ifdef VBOX_GUI_USE_QGLFB
    6164        , QGLMode
    62 #endif // VBOX_GUI_USE_QGLFB
     65#endif /* VBOX_GUI_USE_QGLFB */
    6366    };
    6467
    65     // Additional Qt event types:
     68    /* Additional Qt event types: */
    6669    enum UIEventType
    6770    {
     
    7376#ifdef Q_WS_WIN
    7477        , ShellExecuteEventType
    75 #endif // Q_WS_WIN
     78#endif /* Q_WS_WIN */
    7679        , ActivateActionEventType
    7780#ifdef Q_WS_MAC
    7881        , ShowWindowEventType
    79 #endif // Q_WS_MAC
     82#endif /* Q_WS_MAC */
    8083        , AddVDMUrlsEventType
    8184#ifdef VBOX_GUI_USE_QGL
    8285        , VHWACommandProcessType
    83 #endif // VBOX_GUI_USE_QGL
     86#endif /* VBOX_GUI_USE_QGL */
    8487    };
    8588
    86     // Size formatting types:
     89    /* Size formatting types: */
    8790    enum FormatSize
    8891    {
     
    9295    };
    9396
    94     // Global declarations:
     97    /* Global declarations: */
    9598    extern const char* GUI_RenderMode;
    9699    extern const char* GUI_LanguageId;
     
    104107    extern const char* GUI_RecentListFD;
    105108
    106     // Selector-window declarations:
     109    /* Selector-window declarations: */
    107110    extern const char* GUI_Input_SelectorShortcuts;
    108111    extern const char* GUI_LastSelectorWindowPosition;
     
    115118    extern const char* GUI_LastVMSelected;
    116119
    117     // Machine-window declarations:
     120    /* Machine-window declarations: */
    118121    extern const char* GUI_Input_MachineShortcuts;
    119122    extern const char* GUI_LastNormalWindowPosition;
     
    130133    extern const char* GUI_PassCAD;
    131134
    132     // Mini tool-bar declarations:
     135    /* Mini tool-bar declarations: */
    133136    extern const char* GUI_ShowMiniToolBar;
    134137    extern const char* GUI_MiniToolBarAlignment;
    135138    extern const char* GUI_MiniToolBarAutoHide;
    136139
    137     // Close-dialog declarations:
     140    /* Close-dialog declarations: */
    138141    extern const char* GUI_RestrictedCloseActions;
    139142    extern const char* GUI_LastCloseAction;
    140143    extern const char* GUI_CloseActionHook;
    141144
    142     // Wizards declarations:
     145    /* Wizards declarations: */
    143146    extern const char* GUI_FirstRun;
    144147    extern const char* GUI_HideDescriptionForWizards;
     
    148151    extern const char* GUI_Export_Bucket;
    149152
    150     // Message-center declarations:
     153    /* Message-center declarations: */
    151154    extern const char* GUI_SuppressMessages;
    152155    extern const char* GUI_InvertMessageOption;
    153156
    154     // Registration dialog declarations:
     157    /* Registration dialog declarations: */
    155158    extern const char* GUI_RegistrationDlgWinID;
    156159    extern const char* GUI_RegistrationData;
    157160
    158     // Update manager declarations:
     161    /* Update manager declarations: */
    159162    extern const char* GUI_UpdateDate;
    160163    extern const char* GUI_UpdateCheckCount;
    161164
    162     // Information dialog declarations:
     165    /* Information dialog declarations: */
    163166    extern const char* GUI_InfoDlgState;
    164167
    165168#ifdef VBOX_WITH_DEBUGGER_GUI
     169    /* Debugger GUI declarations: */
    166170    extern const char* GUI_DbgEnabled;
    167171    extern const char* GUI_DbgAutoShow;
    168 #endif // VBOX_WITH_DEBUGGER_GUI
     172#endif /* VBOX_WITH_DEBUGGER_GUI */
    169173
    170174#ifdef Q_WS_X11
     175    /* License GUI declarations: */
    171176    extern const char* GUI_LicenseKey;
    172 #endif // Q_WS_X11
     177#endif /* Q_WS_X11 */
    173178
    174179#ifdef Q_WS_MAC
     180    /* Mac dock declarations: */
    175181    extern const char* GUI_RealtimeDockIconUpdateEnabled;
    176182    extern const char* GUI_RealtimeDockIconUpdateMonitor;
    177183    extern const char* GUI_PresentationModeEnabled;
    178 #endif // Q_WS_MAC
     184#endif /* Q_WS_MAC */
    179185
    180186#ifdef VBOX_WITH_VIDEOHWACCEL
     187    /* Video-acceleration declarations: */
    181188    extern const char* GUI_Accelerate2D_StretchLinear;
    182189    extern const char* GUI_Accelerate2D_PixformatYV12;
     
    184191    extern const char* GUI_Accelerate2D_PixformatYUY2;
    185192    extern const char* GUI_Accelerate2D_PixformatAYUV;
    186 #endif // VBOX_WITH_VIDEOHWACCEL
     193#endif /* VBOX_WITH_VIDEOHWACCEL */
    187194
    188195#ifdef VBOX_GUI_WITH_SYSTRAY
     196    /* Tray icon declarations: */
    189197    extern const char* GUI_TrayIconWinID;
    190198    extern const char* GUI_TrayIconEnabled;
    191199    extern const char* GUI_MainWindowCount;
    192 #endif // VBOX_GUI_WITH_SYSTRAY
    193 
     200#endif /* VBOX_GUI_WITH_SYSTRAY */
     201
     202    /* File extensions declarations: */
    194203    extern QStringList VBoxFileExts;
    195204    extern QStringList VBoxExtPackFileExts;
    196205    extern QStringList OVFFileExts;
    197206}
    198 
    199 using namespace UIDefs; // globally
     207using namespace UIDefs /* globally */;
    200208
    201209#endif // __UIDefs_h__
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette