Changeset 26799 in vbox
- Timestamp:
- Feb 25, 2010 2:26:23 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r26773 r26799 439 439 } 440 440 441 void UIMachineWindow:: sltPrepareMenuMachine()441 void UIMachineWindow::prepareMenuMachine() 442 442 { 443 443 QMenu *menu = machineLogic()->actionsPool()->action(UIActionIndex_Menu_Machine)->menu(); … … 470 470 } 471 471 472 void UIMachineWindow:: sltPrepareMenuDevices()472 void UIMachineWindow::prepareMenuDevices() 473 473 { 474 474 QMenu *menu = machineLogic()->actionsPool()->action(UIActionIndex_Menu_Devices)->menu(); … … 489 489 490 490 #ifdef VBOX_WITH_DEBUGGER_GUI 491 void UIMachineWindow:: sltPrepareMenuDebug()491 void UIMachineWindow::prepareMenuDebug() 492 492 { 493 493 QMenu *menu = machineLogic()->actionsPool()->action(UIActionIndex_Menu_Debug)->menu(); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h
r26773 r26799 71 71 virtual void prepareWindowIcon(); 72 72 virtual void prepareConsoleConnections(); 73 virtual void prepareMenuMachine(); 74 virtual void prepareMenuDevices(); 75 #ifdef VBOX_WITH_DEBUGGER_GUI 76 virtual void prepareMenuDebug(); 77 #endif 73 78 virtual void loadWindowSettings(); 74 79 … … 83 88 /* Protected slots: */ 84 89 void sltMachineStateChanged(KMachineState machineState); 85 void sltPrepareMenuMachine();86 void sltPrepareMenuDevices();87 #ifdef VBOX_WITH_DEBUGGER_GUI88 void sltPrepareMenuDebug();89 #endif90 90 91 91 /* Protected variables: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r26773 r26799 129 129 } 130 130 131 void UIMachineWindowNormal::sltPrepareMenuMachine()132 {133 UIMachineWindow::sltPrepareMenuMachine();134 }135 136 void UIMachineWindowNormal::sltPrepareMenuDevices()137 {138 UIMachineWindow::sltPrepareMenuDevices();139 }140 141 #ifdef VBOX_WITH_DEBUGGER_GUI142 void UIMachineWindowNormal::sltPrepareMenuDebug()143 {144 UIMachineWindow::sltPrepareMenuDebug();145 }146 #endif147 148 131 void UIMachineWindowNormal::sltTryClose() 149 132 { … … 360 343 /* Machine submenu: */ 361 344 QMenu *pMenuMachine = machineLogic()->actionsPool()->action(UIActionIndex_Menu_Machine)->menu(); 345 UIMachineWindow::prepareMenuMachine(); 362 346 menuBar()->addMenu(pMenuMachine); 363 connect(pMenuMachine, SIGNAL(aboutToShow()), this, SLOT(sltPrepareMenuMachine()));364 347 365 348 /* Devices submenu: */ 366 349 QMenu *pMenuDevices = machineLogic()->actionsPool()->action(UIActionIndex_Menu_Devices)->menu(); 350 UIMachineWindow::prepareMenuDevices(); 367 351 menuBar()->addMenu(pMenuDevices); 368 connect(pMenuDevices, SIGNAL(aboutToShow()), this, SLOT(sltPrepareMenuDevices()));369 352 370 353 #ifdef VBOX_WITH_DEBUGGER_GUI … … 372 355 { 373 356 QMenu *pMenuDebug = machineLogic()->actionsPool()->action(UIActionIndex_Menu_Debug)->menu(); 357 UIMachineWindow::prepareMenuDebug(); 374 358 menuBar()->addMenu(pMenuDebug); 375 connect(pMenuDebug, SIGNAL(aboutToShow()), this, SLOT(sltPrepareMenuDebug()));376 359 } 377 360 #endif -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.h
r26773 r26799 60 60 void sltSharedFolderChange(); 61 61 62 /* Runtime menus: */63 void sltPrepareMenuMachine();64 void sltPrepareMenuDevices();65 #ifdef VBOX_WITH_DEBUGGER_GUI66 void sltPrepareMenuDebug();67 #endif68 69 62 /* LED connections: */ 70 63 void sltUpdateIndicators();
Note:
See TracChangeset
for help on using the changeset viewer.