Changeset 60599 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Apr 20, 2016 12:58:40 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r60496 r60599 160 160 VirtualBox_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER 161 161 VBOX_GUI_WITH_NETWORK_MANAGER := 1 162 endif 163 ifneq ($(KBUILD_TYPE),release) 164 VirtualBox_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 162 165 endif 163 166 ifdef VBOX_BLEEDING_EDGE -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.cpp
r60362 r60599 162 162 #endif /* VBOX_WITH_DEBUGGER_GUI */ 163 163 164 #ifdef DEBUG164 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 165 165 /* VirtualBox: Extra-data Manager window: */ 166 166 const char* UIExtraDataDefs::GUI_ExtraDataManager_Geometry = "GUI/ExtraDataManager/Geometry"; 167 167 const char* UIExtraDataDefs::GUI_ExtraDataManager_SplitterHints = "GUI/ExtraDataManager/SplitterHints"; 168 #endif /* DEBUG*/168 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 169 169 170 170 /* Virtual Machine: Log dialog: */ -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h
r60362 r60599 287 287 #endif /* VBOX_WITH_DEBUGGER_GUI */ 288 288 289 #ifdef DEBUG289 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 290 290 /** @name VirtualBox: Extra-data Manager window 291 291 * @{ */ … … 295 295 extern const char* GUI_ExtraDataManager_SplitterHints; 296 296 /** @} */ 297 #endif /* DEBUG*/297 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 298 298 299 299 /** @name Virtual Machine: Log dialog -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r60362 r60599 23 23 # include <QMutex> 24 24 # include <QMetaEnum> 25 # ifdef DEBUG25 # ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 26 26 # include <QMainWindow> 27 27 # include <QMenuBar> … … 36 36 # include <QComboBox> 37 37 # include <QPushButton> 38 # endif /* DEBUG*/38 # endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 39 39 40 40 /* GUI includes: */ … … 47 47 # include "UISettingsDefs.h" 48 48 # include "UIMessageCenter.h" 49 # ifdef DEBUG49 # ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 50 50 # include "VBoxUtils.h" 51 51 # include "UIVirtualBoxEventHandler.h" … … 57 57 # include "QISplitter.h" 58 58 # include "QIDialog.h" 59 # endif /* DEBUG*/59 # endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 60 60 61 61 /* COM includes: */ … … 68 68 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 69 69 70 #ifdef DEBUG70 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 71 71 # include <QStandardItemModel> 72 72 # include <QXmlStreamWriter> 73 73 # include <QXmlStreamReader> 74 #endif 74 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 75 75 76 76 … … 276 276 277 277 278 #ifdef DEBUG278 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 279 279 /** Data fields. */ 280 280 enum Field … … 2010 2010 << GUI_LogWindowGeometry; 2011 2011 } 2012 #endif /* DEBUG*/2012 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 2013 2013 2014 2014 … … 2041 2041 } 2042 2042 2043 #ifdef DEBUG2043 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 2044 2044 /* static */ 2045 2045 void UIExtraDataManager::openWindow(QWidget *pCenterWidget) … … 2048 2048 instance()->open(pCenterWidget); 2049 2049 } 2050 #endif /* DEBUG*/2050 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 2051 2051 2052 2052 void UIExtraDataManager::hotloadMachineExtraDataMap(const QString &strID) … … 3818 3818 #endif /* VBOX_WITH_DEBUGGER_GUI */ 3819 3819 3820 #ifdef DEBUG3820 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 3821 3821 QRect UIExtraDataManager::extraDataManagerGeometry(QWidget *pWidget) 3822 3822 { … … 3934 3934 setExtraDataStringList(GUI_ExtraDataManager_SplitterHints, data); 3935 3935 } 3936 #endif /* DEBUG*/3936 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 3937 3937 3938 3938 QRect UIExtraDataManager::logWindowGeometry(QWidget *pWidget, const QRect &defaultGeometry) … … 4128 4128 } 4129 4129 4130 #ifdef DEBUG4130 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 4131 4131 void UIExtraDataManager::cleanupWindow() 4132 4132 { 4133 4133 delete m_pWindow; 4134 4134 } 4135 #endif /* DEBUG*/4135 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 4136 4136 4137 4137 void UIExtraDataManager::cleanupExtraDataEventHandler() … … 4146 4146 /* Cleanup extra-data event-handler: */ 4147 4147 cleanupExtraDataEventHandler(); 4148 #ifdef DEBUG4148 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 4149 4149 /* Cleanup window: */ 4150 4150 cleanupWindow(); 4151 #endif /* DEBUG*/4152 } 4153 4154 #ifdef DEBUG4151 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 4152 } 4153 4154 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 4155 4155 void UIExtraDataManager::open(QWidget *pCenterWidget) 4156 4156 { … … 4169 4169 m_pWindow->showAndRaise(pCenterWidget); 4170 4170 } 4171 #endif /* DEBUG*/4171 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 4172 4172 4173 4173 bool UIExtraDataManager::isFeatureAllowed(const QString &strKey, const QString &strID /* = GlobalID */) -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r60362 r60599 22 22 #include <QObject> 23 23 #include <QMap> 24 #ifdef DEBUG24 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 25 25 # include <QPointer> 26 #endif /* DEBUG*/26 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 27 27 28 28 /* GUI includes: */ … … 31 31 /* Forward declarations: */ 32 32 class UIExtraDataEventHandler; 33 #ifdef DEBUG33 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 34 34 class UIExtraDataManagerWindow; 35 #endif /* DEBUG*/35 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 36 36 37 37 /** Defines the map of extra data values. The index is an extra-data key. */ … … 105 105 static void destroy(); 106 106 107 #ifdef DEBUG107 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 108 108 /** Static show and raise API. */ 109 109 static void openWindow(QWidget *pCenterWidget); 110 #endif /* DEBUG*/110 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 111 111 112 112 /** @name Base … … 534 534 #endif /* VBOX_WITH_DEBUGGER_GUI */ 535 535 536 #ifdef DEBUG536 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 537 537 /** @name VirtualBox: Extra-data Manager window 538 538 * @{ */ … … 549 549 void setExtraDataManagerSplitterHints(const QList<int> &hints); 550 550 /** @} */ 551 #endif /* DEBUG*/551 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 552 552 553 553 /** @name Virtual Machine: Log dialog … … 574 574 /** Prepare extra-data event-handler. */ 575 575 void prepareExtraDataEventHandler(); 576 #ifdef DEBUG576 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 577 577 // /** Prepare window. */ 578 578 // void prepareWindow(); … … 580 580 /** Cleanup window. */ 581 581 void cleanupWindow(); 582 #endif /* DEBUG*/582 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 583 583 /** Cleanup extra-data event-handler. */ 584 584 void cleanupExtraDataEventHandler(); … … 588 588 void cleanup(); 589 589 590 #ifdef DEBUG590 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 591 591 /** Open window. */ 592 592 void open(QWidget *pCenterWidget); 593 #endif /* DEBUG*/593 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 594 594 595 595 /** Retrieves an extra-data key from both machine and global sources. … … 630 630 MapOfExtraDataMaps m_data; 631 631 632 #ifdef DEBUG632 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 633 633 /** Holds Extra-data Manager window instance. */ 634 634 QPointer<UIExtraDataManagerWindow> m_pWindow; 635 #endif /* DEBUG*/635 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 636 636 }; 637 637 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIActionPoolSelector.cpp
r60362 r60599 138 138 }; 139 139 140 #ifdef DEBUG140 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 141 141 class UIActionSimpleExtraDataManagerWindow : public UIActionSimple 142 142 { … … 166 166 } 167 167 }; 168 #endif /* DEBUG*/168 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 169 169 170 170 class UIActionSimpleExit : public UIActionSimple … … 1010 1010 m_pool[UIActionIndexST_M_File_S_ImportAppliance] = new UIActionSimpleImportApplianceWizard(this); 1011 1011 m_pool[UIActionIndexST_M_File_S_ExportAppliance] = new UIActionSimpleExportApplianceWizard(this); 1012 #ifdef DEBUG1012 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 1013 1013 m_pool[UIActionIndexST_M_File_S_ShowExtraDataManager] = new UIActionSimpleExtraDataManagerWindow(this); 1014 #endif /* DEBUG*/1014 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 1015 1015 m_pool[UIActionIndexST_M_File_S_Close] = new UIActionSimpleExit(this); 1016 1016 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIActionPoolSelector.h
r57787 r60599 36 36 UIActionIndexST_M_File_S_ImportAppliance, 37 37 UIActionIndexST_M_File_S_ExportAppliance, 38 #ifdef DEBUG38 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 39 39 UIActionIndexST_M_File_S_ShowExtraDataManager, 40 #endif /* DEBUG*/40 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 41 41 UIActionIndexST_M_File_S_Close, 42 42 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r60437 r60599 432 432 } 433 433 434 #ifdef DEBUG434 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 435 435 void UISelectorWindow::sltOpenExtraDataManagerWindow() 436 436 { 437 437 gEDataManager->openWindow(this); 438 438 } 439 #endif /* DEBUG*/439 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 440 440 441 441 void UISelectorWindow::sltOpenPreferencesDialog() … … 1261 1261 /* 'Export Appliance' action goes to 'File' menu: */ 1262 1262 pMenu->addAction(actionPool()->action(UIActionIndexST_M_File_S_ExportAppliance)); 1263 # ifdef DEBUG1263 # ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 1264 1264 /* 'Show Extra-data Manager' action goes to 'File' menu for Debug build: */ 1265 1265 pMenu->addAction(actionPool()->action(UIActionIndexST_M_File_S_ShowExtraDataManager)); 1266 # endif /* DEBUG*/1266 # endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 1267 1267 /* 'Show Media Manager' action goes to 'File' menu: */ 1268 1268 pMenu->addAction(actionPool()->action(UIActionIndexST_M_File_S_ShowMediumManager)); … … 1280 1280 /* Separator after 'Export Appliance' action of the 'File' menu: */ 1281 1281 pMenu->addSeparator(); 1282 # ifdef DEBUG1282 # ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 1283 1283 /* 'Extra-data Manager' action goes to 'File' menu for Debug build: */ 1284 1284 pMenu->addAction(actionPool()->action(UIActionIndexST_M_File_S_ShowExtraDataManager)); 1285 # endif /* DEBUG*/1285 # endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 1286 1286 /* 'Show Media Manager' action goes to 'File' menu: */ 1287 1287 pMenu->addAction(actionPool()->action(UIActionIndexST_M_File_S_ShowMediumManager)); … … 1550 1550 connect(actionPool()->action(UIActionIndexST_M_File_S_ImportAppliance), SIGNAL(triggered()), this, SLOT(sltOpenImportApplianceWizard())); 1551 1551 connect(actionPool()->action(UIActionIndexST_M_File_S_ExportAppliance), SIGNAL(triggered()), this, SLOT(sltOpenExportApplianceWizard())); 1552 #ifdef DEBUG1552 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 1553 1553 connect(actionPool()->action(UIActionIndexST_M_File_S_ShowExtraDataManager), SIGNAL(triggered()), this, SLOT(sltOpenExtraDataManagerWindow())); 1554 #endif /* DEBUG*/1554 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 1555 1555 connect(actionPool()->action(UIActionIndex_M_Application_S_Preferences), SIGNAL(triggered()), this, SLOT(sltOpenPreferencesDialog())); 1556 1556 connect(actionPool()->action(UIActionIndexST_M_File_S_Close), SIGNAL(triggered()), this, SLOT(sltPerformExit())); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h
r60362 r60599 105 105 /** Handles call to open Export Appliance wizard. */ 106 106 void sltOpenExportApplianceWizard(); 107 #ifdef DEBUG107 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 108 108 /** Handles call to open Extra-data Manager window. */ 109 109 void sltOpenExtraDataManagerWindow(); 110 #endif /* DEBUG*/110 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 111 111 /** Handles call to open Preferences dialog. */ 112 112 void sltOpenPreferencesDialog();
Note:
See TracChangeset
for help on using the changeset viewer.