Changeset 32789 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Sep 28, 2010 12:55:42 PM (14 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r32760 r32789 362 362 src/runtime/seamless/UIMachineWindowSeamless.h 363 363 364 ifdef VBOX_WITH_REGISTRATION365 VirtualBox_QT_MOCHDRS += \366 src/wizards/registration/UIRegistrationWzd.h367 endif368 369 364 # Sources containing local definitions of classes that use the Q_OBJECT macro. 370 365 VirtualBox_QT_MOCSRCS = \ … … 379 374 src/runtime/UIMachineLogic.cpp \ 380 375 src/runtime/UIMachineMenuBar.cpp 376 377 ifeq ($(KBUILD_TARGET),darwin) 378 VirtualBox_QT_MOCHDRS += \ 379 src/darwin/UIWindowMenuManager.h 380 VirtualBox_QT_MOCSRCS += \ 381 src/darwin/UIWindowMenuManager.cpp 382 endif 383 384 ifdef VBOX_WITH_REGISTRATION 385 VirtualBox_QT_MOCHDRS += \ 386 src/wizards/registration/UIRegistrationWzd.h 387 endif 381 388 382 389 ifdef VBOX_WITH_XPCOM … … 529 536 src/runtime/UIFrameBufferQuartz2D.cpp \ 530 537 src/darwin/UIAbstractDockIconPreview.cpp \ 538 src/darwin/UIWindowMenuManager.cpp \ 531 539 src/darwin/UICocoaDockIconPreview.mm 532 540 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxMediaManagerDlg.cpp
r32760 r32789 45 45 #include "UIVirtualBoxEventHandler.h" 46 46 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 47 48 #ifdef Q_WS_MAC 49 # include "UIWindowMenuManager.h" 50 #endif /* Q_WS_MAC */ 47 51 48 52 class AddVDMUrlsEvent: public QEvent … … 381 385 VBoxMediaManagerDlg::~VBoxMediaManagerDlg() 382 386 { 387 #ifdef Q_WS_MAC 388 if (!mDoSelect) 389 { 390 UIWindowMenuManager::instance()->removeWindow(this); 391 UIWindowMenuManager::instance()->destroyMenu(this); 392 } 393 #endif /* Q_WS_MAC */ 383 394 delete mToolBar; 384 395 } … … 496 507 /* Applying language settings */ 497 508 retranslateUi(); 509 510 #ifdef Q_WS_MAC 511 if (!mDoSelect) 512 { 513 menuBar()->addMenu(UIWindowMenuManager::instance()->createMenu(this)); 514 UIWindowMenuManager::instance()->addWindow(this); 515 } 516 #endif /* Q_WS_MAC */ 498 517 499 518 mSetupMode = false; -
trunk/src/VBox/Frontends/VirtualBox/src/selector/VBoxSelectorWnd.cpp
r32760 r32789 45 45 #ifdef Q_WS_MAC 46 46 # include "VBoxUtils.h" 47 # include "UIWindowMenuManager.h" 47 48 #endif 48 49 … … 281 282 mVMMenu->addAction(mVmShowLogsAction); 282 283 284 #ifdef Q_WS_MAC 285 menuBar()->addMenu(UIWindowMenuManager::instance(this)->createMenu(this)); 286 #endif /* Q_WS_MAC */ 287 283 288 mVMCtxtMenu = new QMenu(this); 284 289 mVMCtxtMenu->addAction(mVmConfigAction); … … 445 450 /* bring the VM list to the focus */ 446 451 mVMListView->setFocus(); 452 453 #ifdef Q_WS_MAC 454 UIWindowMenuManager::instance()->addWindow(this); 455 #endif /* Q_WS_MAC */ 447 456 } 448 457 … … 461 470 .arg(mNormalGeo.width()).arg(mNormalGeo.height()); 462 471 #ifdef Q_WS_MAC 472 UIWindowMenuManager::destroy(); 463 473 ::darwinUnregisterForUnifiedToolbarContextMenuEvents(this); 464 474 if (::darwinIsWindowMaximized(this))
Note:
See TracChangeset
for help on using the changeset viewer.