Changeset 33882 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsLanguage.cpp
- Timestamp:
- Nov 9, 2010 9:32:27 AM (14 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsLanguage.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxGLSettingsLanguage class implementation5 * UIGlobalSettingsLanguage class implementation 6 6 */ 7 7 … … 18 18 */ 19 19 20 #include " VBoxGLSettingsLanguage.h"20 #include "UIGlobalSettingsLanguage.h" 21 21 #include "VBoxGlobalSettings.h" 22 22 #include "VBoxGlobal.h" … … 86 86 else 87 87 { 88 itemName += VBoxGLSettingsLanguage::tr (" (built-in)", "Language");89 langName += VBoxGLSettingsLanguage::tr (" (built-in)", "Language");88 itemName += UIGlobalSettingsLanguage::tr (" (built-in)", "Language"); 89 langName += UIGlobalSettingsLanguage::tr (" (built-in)", "Language"); 90 90 } 91 91 … … 113 113 setText (0, QString ("<%1>").arg (aId)); 114 114 setText (1, aId); 115 setText (2, VBoxGLSettingsLanguage::tr ("<unavailable>", "Language"));116 setText (3, VBoxGLSettingsLanguage::tr ("<unknown>", "Author(s)"));115 setText (2, UIGlobalSettingsLanguage::tr ("<unavailable>", "Language")); 116 setText (3, UIGlobalSettingsLanguage::tr ("<unknown>", "Author(s)")); 117 117 118 118 /* Invalid language appears in italic */ … … 127 127 : QTreeWidgetItem (aParent, LanguageItemType), mBuiltIn (false) 128 128 { 129 setText (0, VBoxGLSettingsLanguage::tr ("Default", "Language"));129 setText (0, UIGlobalSettingsLanguage::tr ("Default", "Language")); 130 130 setText (1, QString::null); 131 131 /* Empty strings of some reasonable length to prevent the info part … … 168 168 169 169 170 VBoxGLSettingsLanguage::VBoxGLSettingsLanguage()170 UIGlobalSettingsLanguage::UIGlobalSettingsLanguage() 171 171 : mLanguageChanged(false) 172 172 { 173 173 /* Apply UI decorations */ 174 Ui:: VBoxGLSettingsLanguage::setupUi (this);174 Ui::UIGlobalSettingsLanguage::setupUi (this); 175 175 176 176 /* Setup dialog */ … … 192 192 /* Load data to cashe from corresponding external object(s), 193 193 * this task COULD be performed in other than GUI thread: */ 194 void VBoxGLSettingsLanguage::loadToCacheFrom(QVariant &data)194 void UIGlobalSettingsLanguage::loadToCacheFrom(QVariant &data) 195 195 { 196 196 /* Fetch data to properties & settings: */ … … 206 206 /* Load data to corresponding widgets from cache, 207 207 * this task SHOULD be performed in GUI thread only: */ 208 void VBoxGLSettingsLanguage::getFromCache()208 void UIGlobalSettingsLanguage::getFromCache() 209 209 { 210 210 /* Fetch from cache: */ … … 215 215 /* Save data from corresponding widgets to cache, 216 216 * this task SHOULD be performed in GUI thread only: */ 217 void VBoxGLSettingsLanguage::putToCache()217 void UIGlobalSettingsLanguage::putToCache() 218 218 { 219 219 /* Upload to cache: */ … … 226 226 /* Save data from cache to corresponding external object(s), 227 227 * this task COULD be performed in other than GUI thread: */ 228 void VBoxGLSettingsLanguage::saveFromCacheTo(QVariant &data)228 void UIGlobalSettingsLanguage::saveFromCacheTo(QVariant &data) 229 229 { 230 230 /* Fetch data to properties & settings: */ … … 242 242 } 243 243 244 void VBoxGLSettingsLanguage::setOrderAfter (QWidget *aWidget)244 void UIGlobalSettingsLanguage::setOrderAfter (QWidget *aWidget) 245 245 { 246 246 setTabOrder (aWidget, mTwLanguage); 247 247 } 248 248 249 void VBoxGLSettingsLanguage::reload (const QString &aLangId)249 void UIGlobalSettingsLanguage::reload (const QString &aLangId) 250 250 { 251 251 /* Clear languages list */ … … 320 320 } 321 321 322 void VBoxGLSettingsLanguage::retranslateUi()322 void UIGlobalSettingsLanguage::retranslateUi() 323 323 { 324 324 /* Translate uic generated strings */ 325 Ui:: VBoxGLSettingsLanguage::retranslateUi (this);325 Ui::UIGlobalSettingsLanguage::retranslateUi (this); 326 326 reload (VBoxGlobal::languageId()); 327 327 } 328 328 329 void VBoxGLSettingsLanguage::mTwItemPainted (QTreeWidgetItem *aItem, QPainter *aPainter)329 void UIGlobalSettingsLanguage::mTwItemPainted (QTreeWidgetItem *aItem, QPainter *aPainter) 330 330 { 331 331 if (aItem && aItem->type() == LanguageItem::LanguageItemType) … … 342 342 } 343 343 344 void VBoxGLSettingsLanguage::mTwLanguageChanged (QTreeWidgetItem *aItem)344 void UIGlobalSettingsLanguage::mTwLanguageChanged (QTreeWidgetItem *aItem) 345 345 { 346 346 if (!aItem) return;
Note:
See TracChangeset
for help on using the changeset viewer.