Changeset 53449 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Dec 5, 2014 9:48:21 AM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r53447 r53449 953 953 954 954 /* Compose initial file-name: */ 955 const CVirtualBox vbox = vboxGlobal().virtualBox(); 956 const QString strInitialFileName = QDir(vbox.GetHomeFolder()).absoluteFilePath(QString("%1_ExtraData.xml").arg(currentChooserName())); 955 const QString strInitialFileName = QDir(vboxGlobal().HomeFolder()).absoluteFilePath(QString("%1_ExtraData.xml").arg(currentChooserName())); 957 956 /* Open file-save dialog to choose file to save extra-data into: */ 958 957 const QString strFileName = QIFileDialog::getSaveFileName(strInitialFileName, "XML files (*.xml)", this, … … 1041 1040 1042 1041 /* Compose initial file-name: */ 1043 const CVirtualBox vbox = vboxGlobal().virtualBox(); 1044 const QString strInitialFileName = QDir(vbox.GetHomeFolder()).absoluteFilePath(QString("%1_ExtraData.xml").arg(currentChooserName())); 1042 const QString strInitialFileName = QDir(vboxGlobal().HomeFolder()).absoluteFilePath(QString("%1_ExtraData.xml").arg(currentChooserName())); 1045 1043 /* Open file-open dialog to choose file to open extra-data into: */ 1046 1044 const QString strFileName = QIFileDialog::getOpenFileName(strInitialFileName, "XML files (*.xml)", this, -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r53328 r53449 2523 2523 QString strUserManualFileName1 = vboxGlobal().helpFile(); 2524 2524 QString strShortFileName = QFileInfo(strUserManualFileName1).fileName(); 2525 QString strUserManualFileName2 = QDir(vboxGlobal(). virtualBox().GetHomeFolder()).absoluteFilePath(strShortFileName);2525 QString strUserManualFileName2 = QDir(vboxGlobal().HomeFolder()).absoluteFilePath(strShortFileName); 2526 2526 /* Show if user manual already present: */ 2527 2527 if (QFile::exists(strUserManualFileName1)) -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r53012 r53449 1602 1602 } 1603 1603 QString strHomeFolder = fUseLastFolder && !strLastFolder.isEmpty() ? strLastFolder : 1604 strDefaultFolder.isEmpty() ? vboxGlobal(). virtualBox().GetHomeFolder() : strDefaultFolder;1604 strDefaultFolder.isEmpty() ? vboxGlobal().homeFolder() : strDefaultFolder; 1605 1605 1606 1606 /* Prepare filters and backends: */ … … 3877 3877 } 3878 3878 mHost = virtualBox().GetHost(); 3879 mHomeFolder = virtualBox().GetHomeFolder(); 3879 3880 3880 3881 /* create default non-null global settings */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r52991 r53449 104 104 CVirtualBox virtualBox() const { return mVBox; } 105 105 CHost host() const { return mHost; } 106 QString homeFolder() const { return mHomeFolder; } 106 107 107 108 VBoxGlobalSettings &settings() { return gset; } … … 431 432 CVirtualBox mVBox; 432 433 CHost mHost; 434 QString mHomeFolder; 433 435 434 436 VBoxGlobalSettings gset; -
trunk/src/VBox/Frontends/VirtualBox/src/net/UIDownloaderAdditions.cpp
r52730 r53449 64 64 const QString &strName = QString("VBoxGuestAdditions_%1.iso").arg(vboxGlobal().vboxVersionStringNormalized()); 65 65 const QString &strSource = QString("http://download.virtualbox.org/virtualbox/%1/").arg(vboxGlobal().vboxVersionStringNormalized()) + strName; 66 const QString &strTarget = QDir(vboxGlobal(). virtualBox().GetHomeFolder()).absoluteFilePath(strName);66 const QString &strTarget = QDir(vboxGlobal().homeFolder()).absoluteFilePath(strName); 67 67 68 68 /* Set source/target: */ -
trunk/src/VBox/Frontends/VirtualBox/src/net/UIDownloaderExtensionPack.cpp
r52733 r53449 70 70 QString strSourceName(strTemplateSourceName.arg(vboxGlobal().vboxVersionStringNormalized())); 71 71 QString strSource(strSourcePath + strSourceName); 72 QString strTargetPath(vboxGlobal(). virtualBox().GetHomeFolder());72 QString strTargetPath(vboxGlobal().homeFolder()); 73 73 QString strTargetName(strSourceName); 74 74 QString strTarget(QDir(strTargetPath).absoluteFilePath(strTargetName)); -
trunk/src/VBox/Frontends/VirtualBox/src/net/UIDownloaderUserManual.cpp
r52730 r53449 70 70 71 71 /* Set target: */ 72 QString strUserManualDestination = QDir(vboxGlobal(). virtualBox().GetHomeFolder()).absoluteFilePath(strUserManualShortFileName);72 QString strUserManualDestination = QDir(vboxGlobal().homeFolder()).absoluteFilePath(strUserManualShortFileName); 73 73 setTarget(strUserManualDestination); 74 74 } -
trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkReply.cpp
r52733 r53449 207 207 QString UINetworkReplyPrivateThread::fullCertificateFileName() 208 208 { 209 const QDir homeDir(QDir::toNativeSeparators(vboxGlobal(). virtualBox().GetHomeFolder()));209 const QDir homeDir(QDir::toNativeSeparators(vboxGlobal().homeFolder())); 210 210 return QDir::toNativeSeparators(homeDir.absoluteFilePath(m_strCertificateFileName)); 211 211 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.cpp
r52730 r53449 44 44 45 45 /* Setup widgets: */ 46 m_pSelectorMachineFolder->setHomeDir(vboxGlobal(). virtualBox().GetHomeFolder());47 m_pSelectorVRDPLibName->setHomeDir(vboxGlobal(). virtualBox().GetHomeFolder());46 m_pSelectorMachineFolder->setHomeDir(vboxGlobal().homeFolder()); 47 m_pSelectorVRDPLibName->setHomeDir(vboxGlobal().homeFolder()); 48 48 m_pSelectorVRDPLibName->setMode(VBoxFilePathSelectorWidget::Mode_File_Open); 49 49
Note:
See TracChangeset
for help on using the changeset viewer.