Changeset 51446 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 28, 2014 1:22:45 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.cpp
r51189 r51446 40 40 const char* UIExtraDataDefs::GUI_FirstRun = "GUI/FirstRun"; 41 41 const char* UIExtraDataDefs::GUI_HideDescriptionForWizards = "GUI/HideDescriptionForWizards"; 42 const char* UIExtraDataDefs::GUI_Export_StorageType = "GUI/Export/StorageType";43 const char* UIExtraDataDefs::GUI_Export_Username = "GUI/Export/Username";44 const char* UIExtraDataDefs::GUI_Export_Hostname = "GUI/Export/Hostname";45 const char* UIExtraDataDefs::GUI_Export_Bucket = "GUI/Export/Bucket";46 42 47 43 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h
r51401 r51446 48 48 extern const char* GUI_FirstRun; 49 49 extern const char* GUI_HideDescriptionForWizards; 50 extern const char* GUI_Export_StorageType;51 extern const char* GUI_Export_Username;52 extern const char* GUI_Export_Hostname;53 extern const char* GUI_Export_Bucket;54 50 55 51 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportApp.cpp
r51215 r51446 121 121 122 122 /* Export the VMs, on success we are finished: */ 123 if (exportVMs(*pAppliance)) 124 { 125 #if 0 126 /* Save attributes to GUI extra data: */ 127 StorageType storageType = field("storageType").value<StorageType>(); 128 vboxGlobal().virtualBox().SetExtraData(GUI_Export_StorageType, QString::number(storageType)); 129 vboxGlobal().virtualBox().SetExtraData(GUI_Export_Username, m_pLeUsername->text()); 130 vboxGlobal().virtualBox().SetExtraData(GUI_Export_Hostname, m_pLeHostname->text()); 131 vboxGlobal().virtualBox().SetExtraData(GUI_Export_Bucket, m_pLeBucket->text()); 132 #endif 133 return true; 134 } 135 return false; 123 return exportVMs(*pAppliance); 136 124 } 137 125 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp
r41689 r51446 34 34 void UIWizardExportAppPage2::chooseDefaultStorageType() 35 35 { 36 /* Select default storage type: */37 #if 038 /* Load storage-type from GUI extra data: */39 bool ok;40 StorageType storageType = StorageType(vboxGlobal().virtualBox().GetExtraData(GUI_Export_StorageType).toInt(&ok));41 if (ok)42 setStorageType(storageType);43 #else44 36 /* Just select first of types: */ 45 37 setStorageType(Filesystem); 46 #endif47 38 } 48 39 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp
r48592 r51446 41 41 void UIWizardExportAppPage3::chooseDefaultSettings() 42 42 { 43 /* Select default settings: */ 44 #if 0 45 m_pUsernameEditor->setText(vboxGlobal().virtualBox().GetExtraData(GUI_Export_Username)); 46 m_pHostnameEditor->setText(vboxGlobal().virtualBox().GetExtraData(GUI_Export_Hostname)); 47 m_pBucketEditor->setText(vboxGlobal().virtualBox().GetExtraData(GUI_Export_Bucket)); 48 #else 49 /* Choose defalt format: */ 43 /* Choose default format: */ 50 44 setFormat("ovf-1.0"); 51 #endif52 45 } 53 46
Note:
See TracChangeset
for help on using the changeset viewer.