Changeset 26460 in vbox
- Timestamp:
- Feb 12, 2010 1:20:57 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57619
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIWizard.cpp
r26296 r26460 29 29 #include "QIWizard.h" 30 30 #include "QILabel.h" 31 #include "VBoxGlobal.h" 31 32 32 33 /* System includes */ … … 179 180 pSummaryField->setFixedHeight(lineHeight * iNumber + textMargin * 2); 180 181 } 182 183 QString QIWizardPage::standardHelpText() const 184 { 185 return tr("Use the <b>%1</b> button to go to the next page of the wizard and the " 186 "<b>%2</b> button to return to the previous page. " 187 "You can also press <b>%3</b> if you want to cancel the execution " 188 "of this wizard.</p>") 189 .arg(VBoxGlobal::replaceHtmlEntities(VBoxGlobal::removeAccelMark(wizard()->buttonText(QWizard::NextButton)))) 190 .arg(VBoxGlobal::replaceHtmlEntities(VBoxGlobal::removeAccelMark(wizard()->buttonText(QWizard::BackButton)))) 191 #ifdef Q_WS_MAC 192 .arg(QKeySequence("ESC").toString()); /* There is no button shown on Mac OS X, so just say the key sequence. */ 193 #else /* Q_WS_MAC */ 194 .arg(VBoxGlobal::replaceHtmlEntities(VBoxGlobal::removeAccelMark(wizard()->buttonText(QWizard::CancelButton)))); 195 #endif /* Q_WS_MAC */ 196 } 197 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIWizard.h
r26187 r26460 67 67 static void setSummaryFieldLinesNumber(QTextEdit *pSummaryField, int iNumber); 68 68 69 QString standardHelpText() const; 70 69 71 private: 70 72 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r26391 r26460 3777 3777 3778 3778 return text; 3779 } 3780 3781 /* static */ 3782 QString VBoxGlobal::replaceHtmlEntities(QString strText) 3783 { 3784 return strText 3785 .replace('&', "&") 3786 .replace('<', "<") 3787 .replace('>', ">") 3788 .replace('\"', """); 3779 3789 } 3780 3790 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r26079 r26460 777 777 static QString highlight (const QString &aStr, bool aToolTip = false); 778 778 779 static QString replaceHtmlEntities(QString strText); 779 780 static QString emphasize (const QString &aStr); 780 781 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIExportApplianceWzd.cpp
r26230 r26460 111 111 /* Fill 'VM Selector' */ 112 112 populateVMSelectorItems(); 113 114 /* Translate */115 retranslateUi();116 113 } 117 114 … … 123 120 /* Wizard page 1 title */ 124 121 setTitle(tr("Welcome to the Appliance Export Wizard!")); 122 123 m_pPage1Text1->setText(tr("<p>This wizard will guide you through the process of " 124 "exporting an appliance.</p><p>%1</p><p>Please select " 125 "the virtual machines that should be added to the " 126 "appliance. You can select more than one. Please note " 127 "that these machines have to be turned off before they " 128 "can be exported.</p>") 129 .arg(standardHelpText())); 125 130 } 126 131 … … 206 211 registerField("applianceWidget", this, "applianceWidget"); 207 212 m_pApplianceWidget = m_pSettingsCnt; 208 209 /* Translate */210 retranslateUi();211 213 } 212 214 … … 326 328 m_pTypeLocalFilesystem->click(); 327 329 #endif 328 329 /* Translate */330 retranslateUi();331 330 } 332 331 … … 388 387 m_pLeBucket->setText(vboxGlobal().virtualBox().GetExtraData(VBoxDefs::GUI_Export_Bucket)); 389 388 #endif 390 391 /* Translate */392 retranslateUi();393 389 } 394 390 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIExportApplianceWzdPage1.ui
r26079 r26460 40 40 <item> 41 41 <widget class="QILabel" name="m_pPage1Text1"> 42 <property name="text">43 <string><p>This wizard will guide you through the process of exporting an appliance.</p><p>Use the <b>Next</b> button to go the next page of the wizard and the <b>Back</b> button to return to the previous page.</p><p>Please select the virtual machines that you wish to the appliance. You can select more than one. Please note that these machines have to be turned off before they can be exported.</p></string>44 </property>45 42 <property name="wordWrap"> 46 43 <bool>true</bool> -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIFirstRunWzd.cpp
r26230 r26460 72 72 /* Decorate page */ 73 73 Ui::UIFirstRunWzdPage1::setupUi(this); 74 75 /* Translate */76 retranslateUi();77 74 } 78 75 … … 96 93 /* Wizard page 1 title */ 97 94 setTitle(tr("Welcome to the First Run Wizard!")); 95 96 m_pPage1Text1Var1->setText(tr("<p>You have started a newly created virtual machine for the " 97 "first time. This wizard will help you to perform the steps " 98 "necessary for installing an operating system of your choice " 99 "onto this virtual machine.</p><p>%1</p>") 100 .arg(standardHelpText())); 101 102 m_pPage1Text1Var2->setText(tr("<p>You have started a newly created virtual machine for the " 103 "first time. This wizard will help you to perform the steps " 104 "necessary for booting an operating system of your choice on " 105 "the virtual machine.</p><p>Note that you will not be able to " 106 "install an operating system into this virtual machine right " 107 "now because you did not attach any hard disk to it. If this " 108 "is not what you want, you can cancel the execution of this " 109 "wizard, select <b>Settings</b> from the <b>Machine</b> menu " 110 "of the main VirtualBox window to access the settings dialog " 111 "of this machine and change the hard disk configuration.</p>" 112 "<p>%1</p>") 113 .arg(standardHelpText())); 114 } 115 116 void UIFirstRunWzdPage1::initializePage() 117 { 118 /* Translate */ 119 retranslateUi(); 98 120 } 99 121 … … 120 142 connect (m_pMediaSelector, SIGNAL(currentIndexChanged(int)), this, SLOT(sltMediumChanged())); 121 143 connect (m_pSelectMediaButton, SIGNAL(clicked()), this, SLOT(sltOpenVirtualMediaManager())); 122 123 /* Translate */124 retranslateUi();125 144 } 126 145 … … 231 250 /* Make the summary field read-only */ 232 251 m_pSummaryText->setReadOnly (true); 233 234 /* Translate */235 retranslateUi();236 252 } 237 253 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIFirstRunWzd.h
r26079 r26460 59 59 60 60 void retranslateUi(); 61 62 void initializePage(); 61 63 }; 62 64 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIFirstRunWzdPage1.ui
r26079 r26460 40 40 <item> 41 41 <widget class="QILabel" name="m_pPage1Text1Var1"> 42 <property name="text">43 <string><p>You have started a newly created virtual machine for the first time. This wizard will help you to perform the steps necessary for installing an operating system of your choice onto this virtual machine.</p><p>Use the <b>Next</b> button to go to the next page of the wizard and the <b>Back</b> button to return to the previous page. You can also press <b>Cancel</b> if you want to cancel the execution of this wizard.</p></string>44 </property>45 42 <property name="wordWrap"> 46 43 <bool>true</bool> … … 50 47 <item> 51 48 <widget class="QILabel" name="m_pPage1Text1Var2"> 52 <property name="text">53 <string><p>You have started a newly created virtual machine for the first time. This wizard will help you to perform the steps necessary for booting an operating system of your choice on the virtual machine.</p><p>Note that you will not be able to install an operating system into this virtual machine right now because you did not attach any hard disk to it. If this is not what you want, you can cancel the execution of this wizard, select <b>Settings</b> from the <b>Machine</b> menu of the main VirtualBox window to access the settings dialog of this machine and change the hard disk configuration.</p><p>Use the <b>Next</b> button to go to the next page of the wizard and the <b>Back</b> button to return to the previous page. You can also press <b>Cancel</b> if you want to cancel the execution of this wizard.</p></string>54 </property>55 49 <property name="wordWrap"> 56 50 <bool>true</bool> -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIImportApplianceWzd.cpp
r26187 r26460 156 156 /* Setup validation */ 157 157 connect(m_pFileSelector, SIGNAL(pathChanged(const QString &)), this, SIGNAL(completeChanged())); 158 159 /* Translate */160 retranslateUi();161 158 } 162 159 … … 172 169 /* Wizard page 1 title */ 173 170 setTitle(tr("Welcome to the Appliance Import Wizard!")); 171 172 m_pPage1Text1->setText(tr("<p>This wizard will guide you through importing an appliance.</p>" 173 "<p>%1</p><p>VirtualBox currently supports importing appliances " 174 "saved in the Open Virtualization Format (OVF). To continue, " 175 "select the file to import below:</p>") 176 .arg(standardHelpText())); 177 } 178 179 void UIImportApplianceWzdPage1::initializePage() 180 { 181 /* Translate */ 182 retranslateUi(); 174 183 } 175 184 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIImportApplianceWzd.h
r26079 r26460 100 100 void retranslateUi(); 101 101 102 void initializePage(); 103 102 104 bool isComplete() const; 103 105 bool validatePage(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIImportApplianceWzdPage1.ui
r26079 r26460 40 40 <item> 41 41 <widget class="QILabel" name="m_pPage1Text1"> 42 <property name="text">43 <string><p>This wizard will guide you through importing an appliance.</p><p>Use the <b>Next</b> button to go the next page of the wizard and the <b>Back</b> button to return to the previous page.</p><p>VirtualBox currently supports importing appliances saved in the Open Virtualization Format (OVF). To continue, select the file to import below:</p></string>44 </property>45 42 <property name="wordWrap"> 46 43 <bool>true</bool> -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newhd/UINewHDWzd.cpp
r26187 r26460 103 103 /* Decorate page */ 104 104 Ui::UINewHDWzdPage1::setupUi(this); 105 105 } 106 107 void UINewHDWzdPage1::retranslateUi() 108 { 109 /* Translate uic generated strings */ 110 Ui::UINewHDWzdPage1::retranslateUi(this); 111 112 /* Wizard page 1 title */ 113 setTitle(tr("Welcome to the Create New Virtual Disk Wizard!")); 114 115 116 m_pPage1Text1->setText(tr("<p>This wizard will help you to create a new virtual hard disk " 117 "for your virtual machine.</p><p>%1</p>") 118 .arg(standardHelpText())); 119 } 120 121 void UINewHDWzdPage1::initializePage() 122 { 106 123 /* Translate */ 107 124 retranslateUi(); 108 }109 110 void UINewHDWzdPage1::retranslateUi()111 {112 /* Translate uic generated strings */113 Ui::UINewHDWzdPage1::retranslateUi(this);114 115 /* Wizard page 1 title */116 setTitle(tr("Welcome to the Create New Virtual Disk Wizard!"));117 125 } 118 126 … … 131 139 connect (m_pTypeDynamic, SIGNAL(clicked(bool)), this, SLOT(onTypeChanged())); 132 140 connect (m_pTypeFixed, SIGNAL(clicked(bool)), this, SLOT(onTypeChanged())); 133 134 /* Translate */ 135 retranslateUi(); 136 } 141 } 142 137 143 void UINewHDWzdPage2::retranslateUi() 138 144 { … … 235 241 connect(m_pSizeSlider, SIGNAL(valueChanged(int)), this, SLOT(onSizeSliderValueChanged(int))); 236 242 connect(m_pSizeEditor, SIGNAL(textChanged(const QString &)), this, SLOT(onSizeEditorTextChanged(const QString &))); 237 238 /* Translate */239 retranslateUi();240 243 } 241 244 … … 411 414 /* Make the summary field read-only */ 412 415 m_pSummaryText->setReadOnly (true); 413 414 /* Translate */415 retranslateUi();416 416 } 417 417 … … 446 446 447 447 m_pSummaryText->setText("<table cellspacing=0 cellpadding=0>" + summary + "</table>"); 448 449 m_pPage4Text2->setText(tr("If the above settings are correct, press the <b>%1</b> button. " 450 "Once you press it, a new hard disk will be created.") 451 .arg(VBoxGlobal::replaceHtmlEntities(VBoxGlobal::removeAccelMark(wizard()->buttonText(QWizard::FinishButton))))); 448 452 } 449 453 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newhd/UINewHDWzd.h
r26079 r26460 65 65 66 66 void retranslateUi(); 67 68 void initializePage(); 67 69 }; 68 70 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newhd/UINewHDWzdPage1.ui
r26079 r26460 40 40 <item> 41 41 <widget class="QILabel" name="m_pPage1Text1"> 42 <property name="text">43 <string><p>This wizard will help you to create a new virtual hard disk for your virtual machine.</p><p>Use the <b>Next</b> button to go to the next page of the wizard and the <b>Back</b> button to return to the previous page.</p></string>44 </property>45 42 <property name="wordWrap"> 46 43 <bool>true</bool> -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newhd/UINewHDWzdPage4.ui
r26079 r26460 72 72 <item> 73 73 <widget class="QILabel" name="m_pPage4Text2"> 74 <property name="text">75 <string>If the above settings are correct, press the <b>Finish</b> button. Once you press it, a new hard disk will be created.</string>76 </property>77 74 <property name="wordWrap"> 78 75 <bool>true</bool> -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.cpp
r26456 r26460 168 168 /* Decorate page */ 169 169 Ui::UINewVMWzdPage1::setupUi(this); 170 170 } 171 172 void UINewVMWzdPage1::retranslateUi() 173 { 174 /* Translate uic generated strings */ 175 Ui::UINewVMWzdPage1::retranslateUi(this); 176 177 /* Wizard page 1 title */ 178 setTitle(tr("Welcome to the New Virtual Machine Wizard!")); 179 180 m_pPage1Text1->setText(tr("<p>This wizard will guide you through the steps that are necessary " 181 "to create a new virtual machine for VirtualBox.</p><p>%1</p>") 182 .arg(standardHelpText())); 183 } 184 185 void UINewVMWzdPage1::initializePage() 186 { 171 187 /* Translate */ 172 188 retranslateUi(); 173 }174 175 void UINewVMWzdPage1::retranslateUi()176 {177 /* Translate uic generated strings */178 Ui::UINewVMWzdPage1::retranslateUi(this);179 180 /* Wizard page 1 title */181 setTitle(tr("Welcome to the New Virtual Machine Wizard!"));182 189 } 183 190 … … 198 205 /* Setup contents */ 199 206 m_pTypeSelector->activateLayout(); 200 201 /* Translate */202 retranslateUi();203 207 } 204 208 … … 262 266 /* Initialise page connections */ 263 267 ramSliderValueChanged(m_pRamSlider->value()); 264 265 /* Translate */266 retranslateUi();267 268 } 268 269 … … 358 359 /* Initialise page connections */ 359 360 hardDiskSourceChanged(); 360 361 /* Translate */362 retranslateUi();363 361 } 364 362 … … 559 557 /* Make the summary field read-only */ 560 558 m_pSummaryText->setReadOnly (true); 561 562 /* Translate */563 retranslateUi();564 559 } 565 560 … … 604 599 605 600 m_pSummaryText->setText("<table cellspacing=0 cellpadding=0>" + summary + "</table>"); 601 602 m_pPage5Text2->setText(tr("<p>If the above is correct press the <b>%1</b> button. Once " 603 "you press it, a new virtual machine will be created. </p><p>Note " 604 "that you can alter these and all other setting of the created " 605 "virtual machine at any time using the <b>Settings</b> dialog " 606 "accessible through the menu of the main window.</p>") 607 .arg(VBoxGlobal::replaceHtmlEntities(VBoxGlobal::removeAccelMark(wizard()->buttonText(QWizard::FinishButton))))); 606 608 } 607 609 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.h
r26456 r26460 63 63 64 64 void retranslateUi(); 65 66 void initializePage(); 65 67 }; 66 68 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzdPage1.ui
r26079 r26460 46 46 <item> 47 47 <widget class="QILabel" name="m_pPage1Text1"> 48 <property name="text">49 <string><p>This wizard will guide you through the steps that are necessary to create a new virtual machine for VirtualBox.</p><p>Use the <b>Next</b> button to go the next page of the wizard and the <b>Back</b> button to return to the previous page.</p></string>50 </property>51 48 <property name="wordWrap"> 52 49 <bool>true</bool> -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzdPage5.ui
r26079 r26460 72 72 <item> 73 73 <widget class="QILabel" name="m_pPage5Text2"> 74 <property name="text">75 <string><p>If the above is correct press the <b>Finish</b> button. Once you press it, a new virtual machine will be created. </p><p>Note that you can alter these and all other setting of the created virtual machine at any time using the <b>Settings</b> dialog accessible through the menu of the main window.</p></string>76 </property>77 74 <property name="wordWrap"> 78 75 <bool>true</bool>
Note:
See TracChangeset
for help on using the changeset viewer.