C++ Settings::AutomaticUpdates方法代码示例(c++settings方法的典型用法代码示例汇总)

本文整理汇总了C++中Settings::AutomaticUpdates方法的典型用法代码示例。如果您正苦于以下问题:C++ Settings::AutomaticUpdates方法的具体用法?C++ Settings::AutomaticUpdates怎么用?C++ Settings::AutomaticUpdates使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Settings的用法示例。


C++ Settings::AutomaticUpdates方法代码示例(c++settings方法的典型用法代码示例汇总)

在下文中一共展示了Settings::AutomaticUpdates方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: SaveSettings

void General::SaveSettings() {
    if (DialogHandle() == NULL) {
        return;
    }

    CLOG(L"Saving: General");
    Settings *settings = Settings::Instance();

    RunOnStartup(_startup->Checked());
    settings->ShowOnStartup(_showStartup->Checked());
    settings->SoundEffectsEnabled(_sounds->Checked());
    settings->AutomaticUpdates(_autoUpdate->Checked());

    settings->CurrentSkin(_skin->Selection());

    std::wstring lang = _language->Selection();
    if (lang != settings->LanguageName()) {
        settings->LanguageName(lang);
        _3RVX::SettingsMessage(_3RVX::MSG_MUSTRESTART, NULL);
    }
}
开发者ID:GauthamYerroju,项目名称:3RVX,代码行数:21,代码来源:General.cpp

示例2: LoadSettings

void General::LoadSettings() {
    Settings *settings = Settings::Instance();
    LanguageTranslator *lt = settings->Translator();
    _startup->Checked(RunOnStartup());
    _showStartup->Checked(settings->ShowOnStartup());
    _sounds->Checked(settings->SoundEffectsEnabled());
    _autoUpdate->Checked(settings->AutomaticUpdates());

    /* Determine which skins are available */
    std::list<std::wstring> skins = FindSkins(Settings::SkinDir().c_str());
    for (std::wstring skin : skins) {
        _skin->AddItem(skin);
    }

    /* Update the combo box with the current skin */
    std::wstring current = settings->CurrentSkin();
    int idx = _skin->Select(current);
    if (idx == CB_ERR) {
        _skin->Select(Settings::DefaultSkin);
    }
    LoadSkinInfo(current);

    /* Populate the language box */
    std::list<std::wstring> languages = FindLanguages(
        settings->LanguagesDir().c_str());
    for (std::wstring language : languages) {
        int ext = language.find(L".xml");
        if (ext == language.npos) {
            continue;
        }

        _language->AddItem(language.substr(0, ext));
    }
    std::wstring currentLang = settings->LanguageName();
    _language->Select(currentLang);
}
开发者ID:GauthamYerroju,项目名称:3RVX,代码行数:36,代码来源:General.cpp

本文标签属性:

示例:示例英语

代码:代码转换器

Settings:Settings

AutomaticUpdates:AutomaticUpdates

上一篇:陆地的反义词_陆地的近义词_陆地的词语解释(陆地的拼音)(“陆地的反义词大陆海洋“陆地”相关近义词反义词的解释)
下一篇:储量的意思储量的意思是什么(储量的词语解释)

为您推荐