VirtualBox

Ignore:
Timestamp:
Nov 9, 2010 9:32:27 AM (14 years ago)
Author:
vboxsync
Message:

FE/Qt: Global & Machine settings refactoring, part 1 (files & classes renaming).

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsLanguage.cpp

    r33879 r33882  
    33 *
    44 * VBox frontends: Qt4 GUI ("VirtualBox"):
    5  * VBoxGLSettingsLanguage class implementation
     5 * UIGlobalSettingsLanguage class implementation
    66 */
    77
     
    1818 */
    1919
    20 #include "VBoxGLSettingsLanguage.h"
     20#include "UIGlobalSettingsLanguage.h"
    2121#include "VBoxGlobalSettings.h"
    2222#include "VBoxGlobal.h"
     
    8686        else
    8787        {
    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");
    9090        }
    9191
     
    113113        setText (0, QString ("<%1>").arg (aId));
    114114        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)"));
    117117
    118118        /* Invalid language appears in italic */
     
    127127        : QTreeWidgetItem (aParent, LanguageItemType), mBuiltIn (false)
    128128    {
    129         setText (0, VBoxGLSettingsLanguage::tr ("Default", "Language"));
     129        setText (0, UIGlobalSettingsLanguage::tr ("Default", "Language"));
    130130        setText (1, QString::null);
    131131        /* Empty strings of some reasonable length to prevent the info part
     
    168168
    169169
    170 VBoxGLSettingsLanguage::VBoxGLSettingsLanguage()
     170UIGlobalSettingsLanguage::UIGlobalSettingsLanguage()
    171171    : mLanguageChanged(false)
    172172{
    173173    /* Apply UI decorations */
    174     Ui::VBoxGLSettingsLanguage::setupUi (this);
     174    Ui::UIGlobalSettingsLanguage::setupUi (this);
    175175
    176176    /* Setup dialog */
     
    192192/* Load data to cashe from corresponding external object(s),
    193193 * this task COULD be performed in other than GUI thread: */
    194 void VBoxGLSettingsLanguage::loadToCacheFrom(QVariant &data)
     194void UIGlobalSettingsLanguage::loadToCacheFrom(QVariant &data)
    195195{
    196196    /* Fetch data to properties & settings: */
     
    206206/* Load data to corresponding widgets from cache,
    207207 * this task SHOULD be performed in GUI thread only: */
    208 void VBoxGLSettingsLanguage::getFromCache()
     208void UIGlobalSettingsLanguage::getFromCache()
    209209{
    210210    /* Fetch from cache: */
     
    215215/* Save data from corresponding widgets to cache,
    216216 * this task SHOULD be performed in GUI thread only: */
    217 void VBoxGLSettingsLanguage::putToCache()
     217void UIGlobalSettingsLanguage::putToCache()
    218218{
    219219    /* Upload to cache: */
     
    226226/* Save data from cache to corresponding external object(s),
    227227 * this task COULD be performed in other than GUI thread: */
    228 void VBoxGLSettingsLanguage::saveFromCacheTo(QVariant &data)
     228void UIGlobalSettingsLanguage::saveFromCacheTo(QVariant &data)
    229229{
    230230    /* Fetch data to properties & settings: */
     
    242242}
    243243
    244 void VBoxGLSettingsLanguage::setOrderAfter (QWidget *aWidget)
     244void UIGlobalSettingsLanguage::setOrderAfter (QWidget *aWidget)
    245245{
    246246    setTabOrder (aWidget, mTwLanguage);
    247247}
    248248
    249 void VBoxGLSettingsLanguage::reload (const QString &aLangId)
     249void UIGlobalSettingsLanguage::reload (const QString &aLangId)
    250250{
    251251    /* Clear languages list */
     
    320320}
    321321
    322 void VBoxGLSettingsLanguage::retranslateUi()
     322void UIGlobalSettingsLanguage::retranslateUi()
    323323{
    324324    /* Translate uic generated strings */
    325     Ui::VBoxGLSettingsLanguage::retranslateUi (this);
     325    Ui::UIGlobalSettingsLanguage::retranslateUi (this);
    326326    reload (VBoxGlobal::languageId());
    327327}
    328328
    329 void VBoxGLSettingsLanguage::mTwItemPainted (QTreeWidgetItem *aItem, QPainter *aPainter)
     329void UIGlobalSettingsLanguage::mTwItemPainted (QTreeWidgetItem *aItem, QPainter *aPainter)
    330330{
    331331    if (aItem && aItem->type() == LanguageItem::LanguageItemType)
     
    342342}
    343343
    344 void VBoxGLSettingsLanguage::mTwLanguageChanged (QTreeWidgetItem *aItem)
     344void UIGlobalSettingsLanguage::mTwLanguageChanged (QTreeWidgetItem *aItem)
    345345{
    346346    if (!aItem) return;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette