VirtualBox

Changeset 32483 in vbox


Ignore:
Timestamp:
Sep 14, 2010 1:45:07 PM (14 years ago)
Author:
vboxsync
Message:

FE/Qt4: style cleanup

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
3 edited
3 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r31946 r32483  
    177177        ./src/selector \
    178178        ./src/runtime \
     179        ./src/runtime/fullscreen \
    179180        ./src/runtime/normal \
    180         ./src/runtime/fullscreen \
    181         ./src/runtime/seamless \
    182         ./src/runtime/scale
     181        ./src/runtime/scale \
     182        ./src/runtime/seamless
    183183
    184184ifdef VBOX_WITH_REGISTRATION
     
    245245VirtualBox_QT_MOCHDRS = \
    246246        src/VBoxAboutDlg.h \
    247         src/VBoxCloseVMDlg.h \
    248247        src/VBoxGlobalSettings.h \
    249248        src/VBoxMediaManagerDlg.h \
     
    335334        src/selector/VBoxSelectorWnd.h \
    336335        src/selector/VBoxSnapshotsWgt.h \
    337         src/runtime/UIMachine.h \
    338         src/runtime/UISession.h \
    339336        src/runtime/UIActionsPool.h \
     337        src/runtime/UIConsoleEventHandler.h \
    340338        src/runtime/UIIndicatorsPool.h \
    341339        src/runtime/UIKeyboardHandler.h \
    342         src/runtime/UIMouseHandler.h \
     340        src/runtime/UIMachine.h \
    343341        src/runtime/UIMachineLogic.h \
    344342        src/runtime/UIMachineView.h \
     343        src/runtime/UIMouseHandler.h \
    345344        src/runtime/UIMultiScreenLayout.h \
    346         src/runtime/UIConsoleEventHandler.h \
     345        src/runtime/UISession.h \
     346        src/runtime/UIVMCloseDialog.h \
     347        src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
     348        src/runtime/fullscreen/UIMachineLogicFullscreen.h \
     349        src/runtime/fullscreen/UIMachineViewFullscreen.h \
     350        src/runtime/fullscreen/UIMachineWindowFullscreen.h \
    347351        src/runtime/normal/UIKeyboardHandlerNormal.h \
    348352        src/runtime/normal/UIMachineLogicNormal.h \
     353        src/runtime/normal/UIMachineViewNormal.h \
    349354        src/runtime/normal/UIMachineWindowNormal.h \
    350         src/runtime/normal/UIMachineViewNormal.h \
    351         src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
    352         src/runtime/fullscreen/UIMachineLogicFullscreen.h \
    353         src/runtime/fullscreen/UIMachineWindowFullscreen.h \
    354         src/runtime/fullscreen/UIMachineViewFullscreen.h \
     355        src/runtime/scale/UIKeyboardHandlerScale.h \
     356        src/runtime/scale/UIMachineLogicScale.h \
     357        src/runtime/scale/UIMachineViewScale.h \
     358        src/runtime/scale/UIMachineWindowScale.h \
    355359        src/runtime/seamless/UIKeyboardHandlerSeamless.h \
    356360        src/runtime/seamless/UIMachineLogicSeamless.h \
    357         src/runtime/seamless/UIMachineWindowSeamless.h \
    358361        src/runtime/seamless/UIMachineViewSeamless.h \
    359         src/runtime/scale/UIKeyboardHandlerScale.h \
    360         src/runtime/scale/UIMachineLogicScale.h \
    361         src/runtime/scale/UIMachineWindowScale.h \
    362         src/runtime/scale/UIMachineViewScale.h
     362        src/runtime/seamless/UIMachineWindowSeamless.h
    363363
    364364ifdef VBOX_WITH_REGISTRATION
     
    397397        src/main.cpp \
    398398        src/VBoxAboutDlg.cpp \
    399         src/VBoxCloseVMDlg.cpp \
    400399        src/VBoxGlobalSettings.cpp \
    401400        src/VBoxHelpActions.cpp \
     
    491490        src/selector/VBoxSelectorWnd.cpp \
    492491        src/selector/VBoxSnapshotsWgt.cpp \
    493         src/runtime/UIMachine.cpp \
    494         src/runtime/UISession.cpp \
    495492        src/runtime/UIActionsPool.cpp \
    496         src/runtime/UIIndicatorsPool.cpp \
    497         src/runtime/UIKeyboardHandler.cpp \
    498         src/runtime/UIMouseHandler.cpp \
     493        src/runtime/UIConsoleEventHandler.cpp \
    499494        src/runtime/UIFrameBuffer.cpp \
    500495        src/runtime/UIFrameBufferQGL.cpp \
    501496        src/runtime/UIFrameBufferQImage.cpp \
    502497        src/runtime/UIFrameBufferSDL.cpp \
     498        src/runtime/UIIndicatorsPool.cpp \
     499        src/runtime/UIKeyboardHandler.cpp \
     500        src/runtime/UIMachine.cpp \
    503501        src/runtime/UIMachineLogic.cpp \
     502        src/runtime/UIMachineMenuBar.cpp \
     503        src/runtime/UIMachineView.cpp \
    504504        src/runtime/UIMachineWindow.cpp \
    505         src/runtime/UIMachineView.cpp \
    506         src/runtime/UIMachineMenuBar.cpp \
     505        src/runtime/UIMouseHandler.cpp \
    507506        src/runtime/UIMultiScreenLayout.cpp \
    508         src/runtime/UIConsoleEventHandler.cpp \
     507        src/runtime/UISession.cpp \
     508        src/runtime/UIVMCloseDialog.cpp \
     509        src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
     510        src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
     511        src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
     512        src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
    509513        src/runtime/normal/UIKeyboardHandlerNormal.cpp \
    510514        src/runtime/normal/UIMachineLogicNormal.cpp \
     515        src/runtime/normal/UIMachineViewNormal.cpp \
    511516        src/runtime/normal/UIMachineWindowNormal.cpp \
    512         src/runtime/normal/UIMachineViewNormal.cpp \
    513         src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
    514         src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
    515         src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
    516         src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
     517        src/runtime/scale/UIKeyboardHandlerScale.cpp \
     518        src/runtime/scale/UIMachineLogicScale.cpp \
     519        src/runtime/scale/UIMachineViewScale.cpp \
     520        src/runtime/scale/UIMachineWindowScale.cpp \
    517521        src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
    518522        src/runtime/seamless/UIMachineLogicSeamless.cpp \
    519         src/runtime/seamless/UIMachineWindowSeamless.cpp \
    520523        src/runtime/seamless/UIMachineViewSeamless.cpp \
    521         src/runtime/scale/UIKeyboardHandlerScale.cpp \
    522         src/runtime/scale/UIMachineLogicScale.cpp \
    523         src/runtime/scale/UIMachineWindowScale.cpp \
    524         src/runtime/scale/UIMachineViewScale.cpp
     524        src/runtime/seamless/UIMachineWindowSeamless.cpp
    525525VirtualBox_SOURCES.win += \
    526526        src/runtime/UIFrameBufferDirectDraw.cpp
  • trunk/src/VBox/Frontends/VirtualBox/VBoxUI.pro

    r31132 r32483  
    2222
    2323FORMS = \
    24     src/VBoxCloseVMDlg.ui \
    2524    src/VBoxVMInformationDlg.ui \
    2625    src/VBoxMediaManagerDlg.ui \
     
    6867    src/wizards/registration/UIRegistrationWzdPage1.ui \
    6968    src/widgets/VBoxApplianceEditorWgt.ui \
    70     src/selector/VBoxSnapshotsWgt.ui
     69    src/selector/VBoxSnapshotsWgt.ui \
     70    src/runtime/UIVMCloseDialog.ui
    7171
    7272TRANSLATIONS = \
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp

    r30753 r32483  
    3131#include "VBoxGlobal.h"
    3232#include "VBoxProblemReporter.h"
    33 #include "VBoxCloseVMDlg.h"
    34 
    35 #include "UISession.h"
     33
    3634#include "UIActionsPool.h"
    3735#include "UIKeyboardHandler.h"
     36#include "UIMachineLogic.h"
     37#include "UIMachineView.h"
     38#include "UIMachineWindow.h"
     39#include "UIMachineWindowFullscreen.h"
     40#include "UIMachineWindowNormal.h"
     41#include "UIMachineWindowScale.h"
     42#include "UIMachineWindowSeamless.h"
    3843#include "UIMouseHandler.h"
    39 #include "UIMachineLogic.h"
    40 #include "UIMachineWindow.h"
    41 #include "UIMachineView.h"
    42 #include "UIMachineWindowNormal.h"
    43 #include "UIMachineWindowFullscreen.h"
    44 #include "UIMachineWindowSeamless.h"
    45 #include "UIMachineWindowScale.h"
     44#include "UISession.h"
     45#include "UIVMCloseDialog.h"
    4646
    4747#ifdef Q_WS_X11
     
    204204
    205205            /* Prepare close dialog: */
    206             VBoxCloseVMDlg dlg(machineWindow());
     206            UIVMCloseDialog dlg(machineWindow());
    207207
    208208            /* Assign close-dialog pixmap: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.cpp

    r32467 r32483  
    33 *
    44 * VBox frontends: Qt4 GUI ("VirtualBox"):
    5  * VBoxCloseVMDlg class implementation
     5 * UIVMCloseDialog class implementation
    66 */
    77
    88/*
    9  * Copyright (C) 2006-2008 Oracle Corporation
     9 * Copyright (C) 2006-2010 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2121# include "precomp.h"
    2222#else  /* !VBOX_WITH_PRECOMPILED_HEADERS */
    23 #include "VBoxCloseVMDlg.h"
     23#include "UIVMCloseDialog.h"
    2424#include "VBoxProblemReporter.h"
    2525#include "UIMachineWindowNormal.h"
     
    3333#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
    3434
    35 VBoxCloseVMDlg::VBoxCloseVMDlg (QWidget *aParent)
    36     : QIWithRetranslateUI<QIDialog> (aParent)
     35UIVMCloseDialog::UIVMCloseDialog(QWidget *pParent)
     36    : QIWithRetranslateUI<QIDialog>(pParent)
    3737{
    3838#ifdef Q_WS_MAC
    3939    /* No sheets in another mode than normal for now. Firstly it looks ugly and
    4040     * secondly in some cases it is broken. */
    41     if (vboxGlobal().isSheetWindowsAllowed(aParent))
    42         setWindowFlags (Qt::Sheet);
     41    if (vboxGlobal().isSheetWindowsAllowed(pParent))
     42        setWindowFlags(Qt::Sheet);
    4343#endif /* Q_WS_MAC */
    4444
    4545    /* Apply UI decorations */
    46     Ui::VBoxCloseVMDlg::setupUi (this);
     46    Ui::UIVMCloseDialog::setupUi(this);
    4747
    4848#ifdef Q_WS_MAC
    4949    /* Make some more space around the content */
    50     hboxLayout->setContentsMargins (40, 0, 40, 0);
    51     vboxLayout2->insertSpacing (1, 20);
     50    hboxLayout->setContentsMargins(40, 0, 40, 0);
     51    vboxLayout2->insertSpacing(1, 20);
    5252    /* and more space between the radio buttons */
    53     gridLayout->setSpacing (15);
     53    gridLayout->setSpacing(15);
    5454#endif /* Q_WS_MAC */
    5555    /* Set fixed size */
    56     setSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed);
     56    setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
    5757
    58     connect (mButtonBox, SIGNAL (helpRequested()),
    59              &vboxProblem(), SLOT (showHelpHelpDialog()));
     58    connect(mButtonBox, SIGNAL(helpRequested()),
     59            &vboxProblem(), SLOT(showHelpHelpDialog()));
    6060}
    6161
    62 void VBoxCloseVMDlg::retranslateUi()
     62void UIVMCloseDialog::retranslateUi()
    6363{
    6464    /* Translate uic generated strings */
    65     Ui::VBoxCloseVMDlg::retranslateUi (this);
     65    Ui::UIVMCloseDialog::retranslateUi(this);
    6666}
    6767
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.h

    r32467 r32483  
    22 *
    33 * VBox frontends: Qt4 GUI ("VirtualBox"):
    4  * VBoxCloseVMDlg class declaration
     4 * UIVMCloseDialog class declaration
    55 */
    66
    77/*
    8  * Copyright (C) 2006-2008 Oracle Corporation
     8 * Copyright (C) 2006-2010 Oracle Corporation
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1717 */
    1818
    19 #ifndef __VBoxCloseVMDlg_h__
    20 #define __VBoxCloseVMDlg_h__
     19#ifndef __UIVMCloseDialog_h__
     20#define __UIVMCloseDialog_h__
    2121
    22 #include "VBoxCloseVMDlg.gen.h"
     22#include "UIVMCloseDialog.gen.h"
    2323#include "QIWithRetranslateUI.h"
    2424#include "QIDialog.h"
    2525
    26 class VBoxCloseVMDlg : public QIWithRetranslateUI<QIDialog>,
    27                        public Ui::VBoxCloseVMDlg
     26class UIVMCloseDialog : public QIWithRetranslateUI<QIDialog>,
     27                        public Ui::UIVMCloseDialog
    2828{
    2929    Q_OBJECT;
     
    3131public:
    3232
    33     VBoxCloseVMDlg (QWidget *aParent);
     33    UIVMCloseDialog(QWidget *pParent);
    3434
    3535protected:
     
    3838};
    3939
    40 #endif // __VBoxCloseVMDlg_h__
     40#endif // __UIVMCloseDialog_h__
    4141
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.ui

    r32467 r32483  
    33 VBox frontends: Qt4 GUI ("VirtualBox"):
    44
    5      Copyright (C) 2008 Oracle Corporation
     5     Copyright (C) 2008-2010 Oracle Corporation
    66
    77     This file is part of VirtualBox Open Source Edition (OSE), as
     
    1313     hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    1414 </comment>
    15  <class>VBoxCloseVMDlg</class>
    16  <widget class="QDialog" name="VBoxCloseVMDlg" >
     15 <class>UIVMCloseDialog</class>
     16 <widget class="QDialog" name="UIVMCloseDialog" >
    1717  <property name="geometry" >
    1818   <rect>
     
    255255   <sender>mButtonBox</sender>
    256256   <signal>accepted()</signal>
    257    <receiver>VBoxCloseVMDlg</receiver>
     257   <receiver>UIVMCloseDialog</receiver>
    258258   <slot>accept()</slot>
    259259   <hints>
     
    271271   <sender>mButtonBox</sender>
    272272   <signal>rejected()</signal>
    273    <receiver>VBoxCloseVMDlg</receiver>
     273   <receiver>UIVMCloseDialog</receiver>
    274274   <slot>reject()</slot>
    275275   <hints>
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