VirtualBox

Changeset 71428 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Mar 21, 2018 1:01:35 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9049: Full and heavy cleanup for UIDefs.

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

Legend:

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

    r70723 r71428  
    55
    66/*
    7  * Copyright (C) 2006-2017 Oracle Corporation
     7 * Copyright (C) 2006-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.h

    r70723 r71428  
    55
    66/*
    7  * Copyright (C) 2006-2017 Oracle Corporation
     7 * Copyright (C) 2006-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2626#include "COMEnums.h"
    2727
     28/* Define GUI log group: */
     29// WORKAROUND:
     30// This define should go *before* VBox/log.h include!
    2831#ifndef VBOX_WITH_PRECOMPILED_HEADERS
    29 /* Define GUI log group.
    30  * This define should go *before* VBox/log.h include: */
    31 #define LOG_GROUP LOG_GROUP_GUI
     32# define LOG_GROUP LOG_GROUP_GUI
    3233#endif
     34
    3335/* Other VBox includes: */
    3436#include <VBox/log.h>
     
    4446# define AssertWrapperOk(w)          do {} while (0)
    4547# define AssertWrapperOkMsg(w, m)    do {} while (0)
    46 #endif /* DEBUG */
     48#endif /* !DEBUG */
    4749
    4850#ifndef SIZEOF_ARRAY
    4951# define SIZEOF_ARRAY(a) (sizeof(a) / sizeof(a[0]))
    50 #endif /* SIZEOF_ARRAY */
     52#endif
     53
    5154
    5255/** Global namespace. */
    5356namespace UIDefs
    5457{
    55     /* Additional Qt event types: */
     58    /** Additional Qt event types. */
    5659    enum UIEventType
    5760    {
    58           ResizeEventType = QEvent::User + 101
    59         , SetRegionEventType
    60         , ModifierKeyChangeEventType
    61 #ifdef VBOX_WS_WIN
    62         , ShellExecuteEventType
    63 #endif /* VBOX_WS_WIN */
    64         , ActivateActionEventType
     61        ActivateActionEventType = QEvent::User + 101,
    6562#ifdef VBOX_WS_MAC
    66         , ShowWindowEventType
    67 #endif /* VBOX_WS_MAC */
    68         , AddVDMUrlsEventType
     63        ShowWindowEventType,
     64#endif
    6965#ifdef VBOX_GUI_USE_QGL
    70         , VHWACommandProcessType
    71 #endif /* VBOX_GUI_USE_QGL */
     66        VHWACommandProcessType,
     67#endif
    7268    };
    7369
    74     /* Size formatting types: */
     70    /** Size formatting types. */
    7571    enum FormatSize
    7672    {
     
    8076    };
    8177
    82     /* File name declarations: */
     78    /** Default guest additions image name. */
    8379    extern const char* GUI_GuestAdditionsName;
     80    /** Default extension pack name. */
    8481    extern const char* GUI_ExtPackName;
    8582
    86     /* File extensions declarations: */
     83    /** Allowed VBox file extensions. */
    8784    extern QStringList VBoxFileExts;
     85    /** Allowed VBox Extension Pack file extensions. */
    8886    extern QStringList VBoxExtPackFileExts;
     87    /** Allowed OVF file extensions. */
    8988    extern QStringList OVFFileExts;
     89    /** Allowed OPC file extensions. */
    9090    extern QStringList OPCFileExts;
    9191}
    9292using namespace UIDefs /* if header included */;
    9393
     94
    9495#ifdef VBOX_WS_MAC
    95 /** Mac OS X: Known OS releases. */
     96/** Known macOS releases. */
    9697enum MacOSXRelease
    9798{
     
    107108#endif /* VBOX_WS_MAC */
    108109
    109 /** Common UI: Size suffixes. */
     110
     111/** Size suffixes. */
    110112enum SizeSuffix
    111113{
     
    119121};
    120122
    121 /** Common UI: Storage-slot struct. */
     123
     124/** Storage-slot struct. */
    122125struct StorageSlot
    123126{
     
    139142Q_DECLARE_METATYPE(StorageSlot);
    140143
    141 /** Common UI: Storage-slot struct extension with exact controller name. */
     144
     145/** Storage-slot struct extension with exact controller name. */
    142146struct ExactStorageSlot : public StorageSlot
    143147{
     
    150154};
    151155
     156
    152157#endif /* !___UIDefs_h___ */
     158
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