VcsBaseOptionsPage::VcsBaseOptionsPage(QObject *parent) : Core::IOptionsPage(parent) { setCategory(Constants::VCS_SETTINGS_CATEGORY); setDisplayCategory(QCoreApplication::translate("VcsBase", Constants::VCS_SETTINGS_TR_CATEGORY)); setCategoryIcon(QLatin1String(Constants::SETTINGS_CATEGORY_VCS_ICON)); }
Settings::Settings(QObject *parent) : IOptionsPage(parent) { setDisplayCategory(tr("Redmine Connector")); setCategoryIcon(categoryIcon()); setDisplayName(tr("General")); _instance = this; if( QSettings *settings = Core::ICore::instance()->settings() ) { settings->beginGroup(QString::fromUtf8(Constants::SETTINGS_CATEGORY)); int size = settings->beginReadArray(QString::fromUtf8("Repositories")); for( int i=0 ; i<size ; i++ ) { SettingsRepository r; settings->setArrayIndex(i); r.name = settings->value(QString::fromUtf8("Name")).toString(); r.server = settings->value(QString::fromUtf8("Server")).toString(); r.user = settings->value(QString::fromUtf8("User")).toString(); r.savePassword = settings->value(QString::fromUtf8("SavePassword")).toInt(); r.password = settings->value(QString::fromUtf8("Password")).toString(); this->_repositories.append(r); } settings->endArray(); settings->endGroup(); } }
GdbOptionsPage2::GdbOptionsPage2() { setId("M.Gdb2"); setDisplayName(tr("GDB Extended")); setCategory(Constants::DEBUGGER_SETTINGS_CATEGORY); setDisplayCategory(QCoreApplication::translate("Debugger", Constants::DEBUGGER_SETTINGS_TR_CATEGORY)); setCategoryIcon(QLatin1String(Constants::DEBUGGER_COMMON_SETTINGS_CATEGORY_ICON)); }
explicit ValgrindOptionsPage() { setId(ANALYZER_VALGRIND_SETTINGS); setDisplayName(QCoreApplication::translate("Valgrind::Internal::ValgrindOptionsPage", "Valgrind")); setCategory("T.Analyzer"); setDisplayCategory(QCoreApplication::translate("Analyzer", "Analyzer")); setCategoryIcon(QLatin1String(":/images/analyzer_category.png")); }
CdbOptionsPage::CdbOptionsPage() { setId("F.Cda"); setDisplayName(tr("CDB")); setCategory(Debugger::Constants::DEBUGGER_SETTINGS_CATEGORY); setDisplayCategory(QCoreApplication::translate("Debugger", Constants::DEBUGGER_SETTINGS_TR_CATEGORY)); setCategoryIcon(QLatin1String(Constants::DEBUGGER_COMMON_SETTINGS_CATEGORY_ICON)); }
// ------------------ ProjectExplorerSettingsPage ProjectExplorerSettingsPage::ProjectExplorerSettingsPage() { setId(Constants::BUILD_AND_RUN_SETTINGS_PAGE_ID); setDisplayName(tr("General")); setCategory(Constants::BUILD_AND_RUN_SETTINGS_CATEGORY); setDisplayCategory(QCoreApplication::translate("ProjectExplorer", "Build & Run")); setCategoryIcon(Utils::Icon({{":/projectexplorer/images/settingscategory_buildrun.png", Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint)); }
TestSettingsPage::TestSettingsPage(const QSharedPointer<TestSettings> &settings) : m_settings(settings), m_widget(0) { setId("A.AutoTest.0.General"); setDisplayName(tr("General")); setCategory(Constants::AUTOTEST_SETTINGS_CATEGORY); setDisplayCategory(QCoreApplication::translate("AutoTest", Constants::AUTOTEST_SETTINGS_TR)); setCategoryIcon(Utils::Icon(":/images/autotest.png")); }
DeviceSettingsPage::DeviceSettingsPage(QObject *parent) : Core::IOptionsPage(parent) { setId(QLatin1String(Constants::DEVICE_SETTINGS_PAGE_ID)); setDisplayName(tr("Devices")); setCategory(QLatin1String(Constants::DEVICE_SETTINGS_CATEGORY)); setDisplayCategory(QCoreApplication::translate("ProjectExplorer", "Devices")); setCategoryIcon(QLatin1String(":/projectexplorer/images/MaemoDevice.png")); }
// ---------- CppSettingsPage CppSettingsPage::CppSettingsPage(QObject *parent) : Core::IOptionsPage(parent) { m_parameters.fromSettings(Core::ICore::settings()); setId(QLatin1String(Designer::Constants::SETTINGS_CPP_SETTINGS_ID)); setDisplayName(QCoreApplication::translate("Designer", Designer::Constants::SETTINGS_CPP_SETTINGS_NAME)); setCategory(QLatin1String(Designer::Constants::SETTINGS_CATEGORY)); setDisplayCategory(QCoreApplication::translate("Designer", Designer::Constants::SETTINGS_TR_CATEGORY)); setCategoryIcon(QLatin1String(Designer::Constants::SETTINGS_CATEGORY_ICON)); }
ThemeSettings::ThemeSettings() : m_widget(0) { setId(Constants::SETTINGS_ID_ENVIRONMENT); setDisplayName(tr("Theme")); setCategory(Constants::SETTINGS_CATEGORY_CORE); setDisplayCategory(QCoreApplication::translate("Core", Constants::SETTINGS_TR_CATEGORY_CORE)); setCategoryIcon(QLatin1String(Constants::SETTINGS_CATEGORY_CORE_ICON)); }
BlackBerrySetupPage::BlackBerrySetupPage(QObject *parent) : Core::IOptionsPage(parent) { setId(Core::Id(Constants::QNX_BB_SETUP_ID)); setDisplayName(tr("Setup")); setCategory(Constants::QNX_BB_CATEGORY); setDisplayCategory(QCoreApplication::translate("BlackBerry", Constants::QNX_BB_CATEGORY_TR)); setCategoryIcon(QLatin1String(Constants::QNX_BB_CATEGORY_ICON)); }
TestSettingsPage::TestSettingsPage(const QSharedPointer<TestSettings> &settings) : m_settings(settings), m_widget(0) { setId("A.AutoTest.General"); setDisplayName(tr("General")); setCategory(Constants::AUTOTEST_SETTINGS_CATEGORY); setDisplayCategory(tr("Test Settings")); setCategoryIcon(QLatin1String(":/images/autotest.png")); }
KitOptionsPage::KitOptionsPage() { setId(Constants::KITS_SETTINGS_PAGE_ID); setDisplayName(tr("Kits")); setCategory(Constants::PROJECTEXPLORER_SETTINGS_CATEGORY); setDisplayCategory(QCoreApplication::translate("ProjectExplorer", Constants::PROJECTEXPLORER_SETTINGS_TR_CATEGORY)); setCategoryIcon(QLatin1String(Constants::PROJECTEXPLORER_SETTINGS_CATEGORY_ICON)); }
SettingsPage::SettingsPage(QSharedPointer<Settings> &settings): m_settings(settings) { setId(Constants::PAGE_ID); setDisplayName(QString::fromLatin1("Encapsulation")); setCategory(CppTools::Constants::CPP_SETTINGS_CATEGORY); setDisplayCategory(QCoreApplication::translate("CppTools", CppTools::Constants::CPP_SETTINGS_TR_CATEGORY)); setCategoryIcon(QString::fromLatin1(CppTools::Constants::SETTINGS_CATEGORY_CPP_ICON)); }
explicit ClangStaticAnalyzerOptionsPage() { setId("Analyzer.ClangStaticAnalyzer.Settings"); // TODO: Get it from "clangstaticanalyzersettings.h" setDisplayName(QCoreApplication::translate( "ClangStaticAnalyzer::Internal::ClangStaticAnalyzerOptionsPage", "Clang Static Analyzer")); setCategory("T.Analyzer"); setDisplayCategory(QCoreApplication::translate("Analyzer", "Analyzer")); setCategoryIcon(QLatin1String(":/images/analyzer_category.png")); }
SettingsPage::SettingsPage(const QSharedPointer<Settings> &settings) : m_settings(settings), m_widget(0) { setId("A.CodePaster.General"); setDisplayName(tr("General")); setCategory(Constants::CPASTER_SETTINGS_CATEGORY); setDisplayCategory(QCoreApplication::translate("CodePaster", Constants::CPASTER_SETTINGS_TR_CATEGORY)); setCategoryIcon(QLatin1String(Constants::SETTINGS_CATEGORY_CPASTER_ICON)); }
ArtisticStyleOptionsPage::ArtisticStyleOptionsPage(ArtisticStyleSettings *settings, QObject *parent) : IOptionsPage(parent), m_settings(settings) { setId(Constants::ArtisticStyle::OPTION_ID); setDisplayName(tr("Artistic Style")); setCategory(Constants::OPTION_CATEGORY); setDisplayCategory(QCoreApplication::translate("Beautifier", Constants::OPTION_TR_CATEGORY)); setCategoryIcon(Utils::Icon(Constants::OPTION_CATEGORY_ICON)); }
ClangFormatOptionsPage::ClangFormatOptionsPage(ClangFormatSettings *settings, QObject *parent) : IOptionsPage(parent), m_settings(settings) { setId(Constants::ClangFormat::OPTION_ID); setDisplayName(tr("Clang Format")); setCategory(Constants::OPTION_CATEGORY); setDisplayCategory(QCoreApplication::translate("Beautifier", Constants::OPTION_TR_CATEGORY)); setCategoryIcon(Constants::OPTION_CATEGORY_ICON); }
IosSettingsPage::IosSettingsPage(QObject *parent) : Core::IOptionsPage(parent) { setId(Constants::IOS_SETTINGS_ID); setDisplayName(tr("iOS Configurations")); setCategory(Constants::IOS_SETTINGS_CATEGORY); setDisplayCategory(QCoreApplication::translate("iOS", Constants::IOS_SETTINGS_TR_CATEGORY)); setCategoryIcon(QLatin1String(Constants::IOS_SETTINGS_CATEGORY_ICON)); }
KitOptionsPage::KitOptionsPage() : m_model(0), m_selectionModel(0), m_currentWidget(0), m_toShow(0) { setId(Constants::KITS_SETTINGS_PAGE_ID); setDisplayName(tr("Kits")); setCategory(QLatin1String(Constants::PROJECTEXPLORER_SETTINGS_CATEGORY)); setDisplayCategory(QCoreApplication::translate("ProjectExplorer", Constants::PROJECTEXPLORER_SETTINGS_TR_CATEGORY)); setCategoryIcon(QLatin1String(Constants::PROJECTEXPLORER_SETTINGS_CATEGORY_ICON)); }
// ---------- CodeGenSettingsPage CodeGenSettingsPage::CodeGenSettingsPage(QObject *parent) : Core::IOptionsPage(parent), m_widget(0) { m_parameters.fromSettings(Core::ICore::settings()); setId(Constants::CODEGEN_SETTINGS_PAGE_ID); setDisplayName(QCoreApplication::translate("QtSupport", Constants::CODEGEN_SETTINGS_PAGE_NAME)); setCategory(CppTools::Constants::CPP_SETTINGS_CATEGORY); setDisplayCategory(QCoreApplication::translate("CppTools", CppTools::Constants::CPP_SETTINGS_TR_CATEGORY)); setCategoryIcon(QLatin1String(CppTools::Constants::SETTINGS_CATEGORY_CPP_ICON)); }
NimCodeStyleSettingsPage::NimCodeStyleSettingsPage(QWidget *parent) : Core::IOptionsPage(parent) , m_nimCodeStylePreferences(nullptr) , m_widget(nullptr) { setId(Nim::Constants::C_NIMCODESTYLESETTINGSPAGE_ID); setDisplayName(tr(Nim::Constants::C_NIMCODESTYLESETTINGSPAGE_DISPLAY)); setCategory(Nim::Constants::C_NIMCODESTYLESETTINGSPAGE_CATEGORY); setDisplayCategory(tr(Nim::Constants::C_NIMCODESTYLESETTINGSPAGE_CATEGORY_DISPLAY)); setCategoryIcon(QLatin1String(Nim::Constants::C_NIM_ICON_PATH)); }
QmlJSCodeStyleSettingsPage::QmlJSCodeStyleSettingsPage(/*QSharedPointer<CppFileSettings> &settings,*/ QWidget *parent) : Core::IOptionsPage(parent), m_pageTabPreferences(0) { setId(Constants::QML_JS_CODE_STYLE_SETTINGS_ID); setDisplayName(QCoreApplication::translate("QmlJSTools", Constants::QML_JS_CODE_STYLE_SETTINGS_NAME)); setCategory(QmlJSEditor::Constants::SETTINGS_CATEGORY_QML); setDisplayCategory(QCoreApplication::translate("QmlJSEditor", QmlJSEditor::Constants::SETTINGS_TR_CATEGORY_QML)); setCategoryIcon(QLatin1String(QmlJSTools::Constants::SETTINGS_CATEGORY_QML_ICON)); }
OptionsPage::OptionsPage(const Settings &settings, QObject *parent) : IOptionsPage(parent) { setSettings(settings); setId("TodoSettings"); setDisplayName(tr("To-Do")); setCategory("To-Do"); setDisplayCategory(tr("To-Do")); setCategoryIcon(Utils::Icon({{":/todoplugin/images/settingscategory_todo.png", Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint)); }
GeneralOptionsPage::GeneralOptionsPage(GeneralSettings *settings, const QStringList &toolIds, QObject *parent) : IOptionsPage(parent), m_settings(settings), m_toolIds(toolIds) { setId(Constants::OPTION_GENERAL_ID); setDisplayName(tr("General")); setCategory(Constants::OPTION_CATEGORY); setDisplayCategory(QCoreApplication::translate("Beautifier", Constants::OPTION_TR_CATEGORY)); setCategoryIcon(Utils::Icon(Constants::OPTION_CATEGORY_ICON)); }
OptionsPage::OptionsPage(const Settings &settings, QObject *parent) : IOptionsPage(parent), m_dialog(0) { setSettings(settings); setId(QLatin1String("TodoSettings")); setDisplayName(tr("To-Do")); setCategory(QLatin1String("To-Do")); setDisplayCategory(tr("To-Do")); setCategoryIcon(QLatin1String(Constants::ICON_TODO)); }
OptionsPage::OptionsPage(const Settings &settings, QObject *parent) : IOptionsPage(parent), m_widget(0) { setSettings(settings); setId("TodoSettings"); setDisplayName(tr("To-Do")); setCategory("To-Do"); setDisplayCategory(tr("To-Do")); setCategoryIcon(Utils::Icon(Constants::ICON_TODO)); }
UncrustifyOptionsPage::UncrustifyOptionsPage(UncrustifySettings *settings, QObject *parent) : IOptionsPage(parent), m_widget(0), m_settings(settings), m_searchKeywords() { setId(Constants::Uncrustify::OPTION_ID); setDisplayName(tr("Uncrustify")); setCategory(Constants::OPTION_CATEGORY); setDisplayCategory(QCoreApplication::translate("Beautifier", Constants::OPTION_TR_CATEGORY)); setCategoryIcon(QLatin1String(Constants::OPTION_CATEGORY_ICON)); }
CdbOptionsPage::CdbOptionsPage() : m_options(new CdbOptions) { CdbOptionsPage::m_instance = this; m_options->fromSettings(Core::ICore::settings()); setId(CdbOptionsPage::settingsId()); setDisplayName(tr("CDB")); setCategory(QLatin1String(Debugger::Constants::DEBUGGER_SETTINGS_CATEGORY)); setDisplayCategory(QCoreApplication::translate("Debugger", Constants::DEBUGGER_SETTINGS_TR_CATEGORY)); setCategoryIcon(QLatin1String(Constants::DEBUGGER_COMMON_SETTINGS_CATEGORY_ICON)); }
SavingCategory::SavingCategory(QWidget *parent) : OptionsCategory(parent) { setDisplayName(MENU_ENUM_LABEL_VALUE_SAVING_SETTINGS); setCategoryIcon("menu_saving"); }