Changeset 41331 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 16, 2012 11:41:06 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 78001
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp ¶
r41062 r41331 4477 4477 } 4478 4478 #endif /* Q_WS_MAC */ 4479 4480 /* static */ 4481 QString VBoxGlobal::fullMediumFormatName(const QString &strBaseMediumFormatName) 4482 { 4483 if (strBaseMediumFormatName == "VDI") 4484 return tr("VDI (VirtualBox Disk Image)"); 4485 else if (strBaseMediumFormatName == "VMDK") 4486 return tr("VMDK (Virtual Machine Disk)"); 4487 else if (strBaseMediumFormatName == "VHD") 4488 return tr("VHD (Virtual Hard Disk)"); 4489 else if (strBaseMediumFormatName == "Parallels") 4490 return tr("HDD (Parallels Hard Disk)"); 4491 else if (strBaseMediumFormatName == "QED") 4492 return tr("QED (QEMU enhanced disk)"); 4493 else if (strBaseMediumFormatName == "QCOW") 4494 return tr("QCOW (QEMU Copy-On-Write)"); 4495 return strBaseMediumFormatName; 4496 } 4479 4497 4480 4498 // Public slots -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h ¶
r41062 r41331 743 743 #endif /* Q_WS_MAC */ 744 744 745 /* Returns full medium-format name for the given base medium-format name: */ 746 static QString fullMediumFormatName(const QString &strBaseMediumFormatName); 747 745 748 signals: 746 749 -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVD.cpp ¶
r41021 r41331 43 43 assignBackground(":/vmw_new_harddisk_bg.png"); 44 44 #endif /* Q_WS_MAC */ 45 }46 47 /* static */48 QString UIWizardCloneVD::fullFormatName(const QString &strBaseFormatName)49 {50 if (strBaseFormatName == "VDI")51 return QApplication::translate("UIWizardCloneVD", "&VDI (VirtualBox Disk Image)");52 else if (strBaseFormatName == "VMDK")53 return QApplication::translate("UIWizardCloneVD", "V&MDK (Virtual Machine Disk)");54 else if (strBaseFormatName == "VHD")55 return QApplication::translate("UIWizardCloneVD", "V&HD (Virtual Hard Disk)");56 else if (strBaseFormatName == "Parallels")57 return QApplication::translate("UIWizardCloneVD", "H&DD (Parallels Hard Disk)");58 else if (strBaseFormatName == "QED")59 return QApplication::translate("UIWizardCloneVD", "Q&ED (QEMU enhanced disk)");60 else if (strBaseFormatName == "QCOW")61 return QApplication::translate("UIWizardCloneVD", "&QCOW (QEMU Copy-On-Write)");62 return strBaseFormatName;63 45 } 64 46 -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVD.h ¶
r41021 r41331 53 53 CMedium virtualDisk() const { return m_virtualDisk; } 54 54 55 /* Returns full medium format name: */56 static QString fullFormatName(const QString &strBaseFormatName);57 58 55 protected: 59 56 -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp ¶
r41021 r41331 144 144 "to use it with other virtualization software you can " 145 145 "leave this setting unchanged.")); 146 m_pFormatCnt->setTitle(UIWizardCloneVD::tr("File type"));146 m_pFormatCnt->setTitle(UIWizardCloneVD::tr("File &type")); 147 147 QList<QAbstractButton*> buttons = m_pFormatButtonGroup->buttons(); 148 148 for (int i = 0; i < buttons.size(); ++i) 149 149 { 150 150 QAbstractButton *pButton = buttons[i]; 151 pButton->setText( UIWizardCloneVD::fullFormatName(m_formatNames[m_pFormatButtonGroup->id(pButton)]));151 pButton->setText(VBoxGlobal::fullMediumFormatName(m_formatNames[m_pFormatButtonGroup->id(pButton)])); 152 152 } 153 153 } -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic5.cpp ¶
r41021 r41331 69 69 ) 70 70 .arg(UIWizardCloneVD::tr("File type", "summary"), mediumFormat.isNull() ? 71 QString() : VBoxGlobal::removeAccelMark(UIWizardCloneVD::fullFormatName(mediumFormat.GetName())))71 QString() : VBoxGlobal::removeAccelMark(VBoxGlobal::fullMediumFormatName(mediumFormat.GetName()))) 72 72 .arg(UIWizardCloneVD::tr("Details", "summary"), vboxGlobal().toString((KMediumVariant)uVariant)) 73 73 .arg(UIWizardCloneVD::tr("Location", "summary"), strMediumPath) -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp ¶
r41230 r41331 239 239 m_pDestinationCnt->setTitle(UIWizardCloneVD::tr("&Destination virtual disk")); 240 240 m_pDestinationDiskOpenButton->setToolTip(UIWizardCloneVD::tr("Choose a virtual hard disk file...")); 241 m_pFormatCnt->setTitle(UIWizardCloneVD::tr("File type"));241 m_pFormatCnt->setTitle(UIWizardCloneVD::tr("File &type")); 242 242 QList<QAbstractButton*> buttons = m_pFormatButtonGroup->buttons(); 243 243 for (int i = 0; i < buttons.size(); ++i) 244 244 { 245 245 QAbstractButton *pButton = buttons[i]; 246 pButton->setText( UIWizardCloneVD::fullFormatName(m_formatNames[m_pFormatButtonGroup->id(pButton)]));246 pButton->setText(VBoxGlobal::fullMediumFormatName(m_formatNames[m_pFormatButtonGroup->id(pButton)])); 247 247 } 248 248 m_pVariantCnt->setTitle(UIWizardCloneVD::tr("Storage details")); -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.cpp ¶
r41021 r41331 44 44 assignBackground(":/vmw_new_harddisk_bg.png"); 45 45 #endif /* Q_WS_MAC */ 46 }47 48 /* static */49 QString UIWizardNewVD::fullFormatName(const QString &strBaseFormatName)50 {51 if (strBaseFormatName == "VDI")52 return QApplication::translate("UIWizardNewVD", "&VDI (VirtualBox Disk Image)");53 else if (strBaseFormatName == "VMDK")54 return QApplication::translate("UIWizardNewVD", "V&MDK (Virtual Machine Disk)");55 else if (strBaseFormatName == "VHD")56 return QApplication::translate("UIWizardNewVD", "V&HD (Virtual Hard Disk)");57 else if (strBaseFormatName == "Parallels")58 return QApplication::translate("UIWizardNewVD", "H&DD (Parallels Hard Disk)");59 else if (strBaseFormatName == "QED")60 return QApplication::translate("UIWizardNewVD", "Q&ED (QEMU enhanced disk)");61 else if (strBaseFormatName == "QCOW")62 return QApplication::translate("UIWizardNewVD", "&QCOW (QEMU Copy-On-Write)");63 return strBaseFormatName;64 46 } 65 47 -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.h ¶
r41021 r41331 54 54 CMedium virtualDisk() const { return m_virtualDisk; } 55 55 56 /* Returns full medium format name: */57 static QString fullFormatName(const QString &strBaseFormatName);58 59 56 protected: 60 57 -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic1.cpp ¶
r41021 r41331 146 146 "to use it with other virtualization software you can " 147 147 "leave this setting unchanged.</p>")); 148 m_pFormatCnt->setTitle(UIWizardNewVD::tr("File type"));148 m_pFormatCnt->setTitle(UIWizardNewVD::tr("File &type")); 149 149 QList<QAbstractButton*> buttons = m_pFormatButtonGroup->buttons(); 150 150 for (int i = 0; i < buttons.size(); ++i) 151 151 { 152 152 QAbstractButton *pButton = buttons[i]; 153 pButton->setText( UIWizardNewVD::fullFormatName(m_formatNames[m_pFormatButtonGroup->id(pButton)]));153 pButton->setText(VBoxGlobal::fullMediumFormatName(m_formatNames[m_pFormatButtonGroup->id(pButton)])); 154 154 } 155 155 } -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic4.cpp ¶
r41021 r41331 67 67 "<tr><td><nobr>%7: </nobr></td><td><nobr>%8 (%9)</nobr></td></tr>" 68 68 ) 69 .arg(UIWizardNewVD::tr("File type", "summary"), mediumFormat.isNull() ? QString() : VBoxGlobal::removeAccelMark(UIWizardNewVD::fullFormatName(mediumFormat.GetName()))) 69 .arg(UIWizardNewVD::tr("File type", "summary"), mediumFormat.isNull() ? 70 QString() : VBoxGlobal::removeAccelMark(VBoxGlobal::fullMediumFormatName(mediumFormat.GetName()))) 70 71 .arg(UIWizardNewVD::tr("Details", "summary"), vboxGlobal().toString((KMediumVariant)uVariant)) 71 72 .arg(UIWizardNewVD::tr("Location", "summary"), strMediumPath) -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageExpert.cpp ¶
r41230 r41331 258 258 m_pLocationOpenButton->setToolTip(UIWizardNewVD::tr("Choose a virtual hard disk file...")); 259 259 m_pSizeCnt->setTitle(UIWizardNewVD::tr("&Size")); 260 m_pFormatCnt->setTitle(UIWizardNewVD::tr("File type"));260 m_pFormatCnt->setTitle(UIWizardNewVD::tr("File &type")); 261 261 QList<QAbstractButton*> buttons = m_pFormatButtonGroup->buttons(); 262 262 for (int i = 0; i < buttons.size(); ++i) 263 263 { 264 264 QAbstractButton *pButton = buttons[i]; 265 pButton->setText( UIWizardNewVD::fullFormatName(m_formatNames[m_pFormatButtonGroup->id(pButton)]));265 pButton->setText(VBoxGlobal::fullMediumFormatName(m_formatNames[m_pFormatButtonGroup->id(pButton)])); 266 266 } 267 267 m_pVariantCnt->setTitle(UIWizardNewVD::tr("Storage details"));
Note:
See TracChangeset
for help on using the changeset viewer.