Changeset 32483 in vbox
- Timestamp:
- Sep 14, 2010 1:45:07 PM (14 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r31946 r32483 177 177 ./src/selector \ 178 178 ./src/runtime \ 179 ./src/runtime/fullscreen \ 179 180 ./src/runtime/normal \ 180 ./src/runtime/fullscreen \ 181 ./src/runtime/seamless \ 182 ./src/runtime/scale 181 ./src/runtime/scale \ 182 ./src/runtime/seamless 183 183 184 184 ifdef VBOX_WITH_REGISTRATION … … 245 245 VirtualBox_QT_MOCHDRS = \ 246 246 src/VBoxAboutDlg.h \ 247 src/VBoxCloseVMDlg.h \248 247 src/VBoxGlobalSettings.h \ 249 248 src/VBoxMediaManagerDlg.h \ … … 335 334 src/selector/VBoxSelectorWnd.h \ 336 335 src/selector/VBoxSnapshotsWgt.h \ 337 src/runtime/UIMachine.h \338 src/runtime/UISession.h \339 336 src/runtime/UIActionsPool.h \ 337 src/runtime/UIConsoleEventHandler.h \ 340 338 src/runtime/UIIndicatorsPool.h \ 341 339 src/runtime/UIKeyboardHandler.h \ 342 src/runtime/UIM ouseHandler.h \340 src/runtime/UIMachine.h \ 343 341 src/runtime/UIMachineLogic.h \ 344 342 src/runtime/UIMachineView.h \ 343 src/runtime/UIMouseHandler.h \ 345 344 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 \ 347 351 src/runtime/normal/UIKeyboardHandlerNormal.h \ 348 352 src/runtime/normal/UIMachineLogicNormal.h \ 353 src/runtime/normal/UIMachineViewNormal.h \ 349 354 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 \ 355 359 src/runtime/seamless/UIKeyboardHandlerSeamless.h \ 356 360 src/runtime/seamless/UIMachineLogicSeamless.h \ 357 src/runtime/seamless/UIMachineWindowSeamless.h \358 361 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 363 363 364 364 ifdef VBOX_WITH_REGISTRATION … … 397 397 src/main.cpp \ 398 398 src/VBoxAboutDlg.cpp \ 399 src/VBoxCloseVMDlg.cpp \400 399 src/VBoxGlobalSettings.cpp \ 401 400 src/VBoxHelpActions.cpp \ … … 491 490 src/selector/VBoxSelectorWnd.cpp \ 492 491 src/selector/VBoxSnapshotsWgt.cpp \ 493 src/runtime/UIMachine.cpp \494 src/runtime/UISession.cpp \495 492 src/runtime/UIActionsPool.cpp \ 496 src/runtime/UIIndicatorsPool.cpp \ 497 src/runtime/UIKeyboardHandler.cpp \ 498 src/runtime/UIMouseHandler.cpp \ 493 src/runtime/UIConsoleEventHandler.cpp \ 499 494 src/runtime/UIFrameBuffer.cpp \ 500 495 src/runtime/UIFrameBufferQGL.cpp \ 501 496 src/runtime/UIFrameBufferQImage.cpp \ 502 497 src/runtime/UIFrameBufferSDL.cpp \ 498 src/runtime/UIIndicatorsPool.cpp \ 499 src/runtime/UIKeyboardHandler.cpp \ 500 src/runtime/UIMachine.cpp \ 503 501 src/runtime/UIMachineLogic.cpp \ 502 src/runtime/UIMachineMenuBar.cpp \ 503 src/runtime/UIMachineView.cpp \ 504 504 src/runtime/UIMachineWindow.cpp \ 505 src/runtime/UIMachineView.cpp \ 506 src/runtime/UIMachineMenuBar.cpp \ 505 src/runtime/UIMouseHandler.cpp \ 507 506 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 \ 509 513 src/runtime/normal/UIKeyboardHandlerNormal.cpp \ 510 514 src/runtime/normal/UIMachineLogicNormal.cpp \ 515 src/runtime/normal/UIMachineViewNormal.cpp \ 511 516 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 \ 517 521 src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \ 518 522 src/runtime/seamless/UIMachineLogicSeamless.cpp \ 519 src/runtime/seamless/UIMachineWindowSeamless.cpp \520 523 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 525 525 VirtualBox_SOURCES.win += \ 526 526 src/runtime/UIFrameBufferDirectDraw.cpp -
trunk/src/VBox/Frontends/VirtualBox/VBoxUI.pro
r31132 r32483 22 22 23 23 FORMS = \ 24 src/VBoxCloseVMDlg.ui \25 24 src/VBoxVMInformationDlg.ui \ 26 25 src/VBoxMediaManagerDlg.ui \ … … 68 67 src/wizards/registration/UIRegistrationWzdPage1.ui \ 69 68 src/widgets/VBoxApplianceEditorWgt.ui \ 70 src/selector/VBoxSnapshotsWgt.ui 69 src/selector/VBoxSnapshotsWgt.ui \ 70 src/runtime/UIVMCloseDialog.ui 71 71 72 72 TRANSLATIONS = \ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r30753 r32483 31 31 #include "VBoxGlobal.h" 32 32 #include "VBoxProblemReporter.h" 33 #include "VBoxCloseVMDlg.h" 34 35 #include "UISession.h" 33 36 34 #include "UIActionsPool.h" 37 35 #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" 38 43 #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" 46 46 47 47 #ifdef Q_WS_X11 … … 204 204 205 205 /* Prepare close dialog: */ 206 VBoxCloseVMDlg dlg(machineWindow());206 UIVMCloseDialog dlg(machineWindow()); 207 207 208 208 /* Assign close-dialog pixmap: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.cpp
r32467 r32483 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxCloseVMDlg class implementation5 * UIVMCloseDialog class implementation 6 6 */ 7 7 8 8 /* 9 * Copyright (C) 2006-20 08Oracle Corporation9 * Copyright (C) 2006-2010 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 21 21 # include "precomp.h" 22 22 #else /* !VBOX_WITH_PRECOMPILED_HEADERS */ 23 #include " VBoxCloseVMDlg.h"23 #include "UIVMCloseDialog.h" 24 24 #include "VBoxProblemReporter.h" 25 25 #include "UIMachineWindowNormal.h" … … 33 33 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 34 34 35 VBoxCloseVMDlg::VBoxCloseVMDlg (QWidget *aParent)36 : QIWithRetranslateUI<QIDialog> (aParent)35 UIVMCloseDialog::UIVMCloseDialog(QWidget *pParent) 36 : QIWithRetranslateUI<QIDialog>(pParent) 37 37 { 38 38 #ifdef Q_WS_MAC 39 39 /* No sheets in another mode than normal for now. Firstly it looks ugly and 40 40 * secondly in some cases it is broken. */ 41 if (vboxGlobal().isSheetWindowsAllowed( aParent))42 setWindowFlags 41 if (vboxGlobal().isSheetWindowsAllowed(pParent)) 42 setWindowFlags(Qt::Sheet); 43 43 #endif /* Q_WS_MAC */ 44 44 45 45 /* Apply UI decorations */ 46 Ui:: VBoxCloseVMDlg::setupUi(this);46 Ui::UIVMCloseDialog::setupUi(this); 47 47 48 48 #ifdef Q_WS_MAC 49 49 /* Make some more space around the content */ 50 hboxLayout->setContentsMargins 51 vboxLayout2->insertSpacing 50 hboxLayout->setContentsMargins(40, 0, 40, 0); 51 vboxLayout2->insertSpacing(1, 20); 52 52 /* and more space between the radio buttons */ 53 gridLayout->setSpacing 53 gridLayout->setSpacing(15); 54 54 #endif /* Q_WS_MAC */ 55 55 /* Set fixed size */ 56 setSizePolicy 56 setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); 57 57 58 connect (mButtonBox, SIGNAL(helpRequested()),59 &vboxProblem(), SLOT(showHelpHelpDialog()));58 connect(mButtonBox, SIGNAL(helpRequested()), 59 &vboxProblem(), SLOT(showHelpHelpDialog())); 60 60 } 61 61 62 void VBoxCloseVMDlg::retranslateUi()62 void UIVMCloseDialog::retranslateUi() 63 63 { 64 64 /* Translate uic generated strings */ 65 Ui:: VBoxCloseVMDlg::retranslateUi(this);65 Ui::UIVMCloseDialog::retranslateUi(this); 66 66 } 67 67 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.h
r32467 r32483 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxCloseVMDlg class declaration4 * UIVMCloseDialog class declaration 5 5 */ 6 6 7 7 /* 8 * Copyright (C) 2006-20 08Oracle Corporation8 * Copyright (C) 2006-2010 Oracle Corporation 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 17 17 */ 18 18 19 #ifndef __ VBoxCloseVMDlg_h__20 #define __ VBoxCloseVMDlg_h__19 #ifndef __UIVMCloseDialog_h__ 20 #define __UIVMCloseDialog_h__ 21 21 22 #include " VBoxCloseVMDlg.gen.h"22 #include "UIVMCloseDialog.gen.h" 23 23 #include "QIWithRetranslateUI.h" 24 24 #include "QIDialog.h" 25 25 26 class VBoxCloseVMDlg : public QIWithRetranslateUI<QIDialog>,27 public Ui::VBoxCloseVMDlg26 class UIVMCloseDialog : public QIWithRetranslateUI<QIDialog>, 27 public Ui::UIVMCloseDialog 28 28 { 29 29 Q_OBJECT; … … 31 31 public: 32 32 33 VBoxCloseVMDlg (QWidget *aParent);33 UIVMCloseDialog(QWidget *pParent); 34 34 35 35 protected: … … 38 38 }; 39 39 40 #endif // __ VBoxCloseVMDlg_h__40 #endif // __UIVMCloseDialog_h__ 41 41 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.ui
r32467 r32483 3 3 VBox frontends: Qt4 GUI ("VirtualBox"): 4 4 5 Copyright (C) 2008 Oracle Corporation5 Copyright (C) 2008-2010 Oracle Corporation 6 6 7 7 This file is part of VirtualBox Open Source Edition (OSE), as … … 13 13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 14 14 </comment> 15 <class> VBoxCloseVMDlg</class>16 <widget class="QDialog" name=" VBoxCloseVMDlg" >15 <class>UIVMCloseDialog</class> 16 <widget class="QDialog" name="UIVMCloseDialog" > 17 17 <property name="geometry" > 18 18 <rect> … … 255 255 <sender>mButtonBox</sender> 256 256 <signal>accepted()</signal> 257 <receiver> VBoxCloseVMDlg</receiver>257 <receiver>UIVMCloseDialog</receiver> 258 258 <slot>accept()</slot> 259 259 <hints> … … 271 271 <sender>mButtonBox</sender> 272 272 <signal>rejected()</signal> 273 <receiver> VBoxCloseVMDlg</receiver>273 <receiver>UIVMCloseDialog</receiver> 274 274 <slot>reject()</slot> 275 275 <hints>
Note:
See TracChangeset
for help on using the changeset viewer.