Added icons to options dialog categories
Some categories do not have icons yet, unfortunately.
@@ -84,4 +84,4 @@ void ParameterAction::setParameter(const QString &p)
|
|||||||
setEnabled(enabled);
|
setEnabled(enabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
} // namespace Utils
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public:
|
|||||||
explicit ParameterAction(const QString &emptyText,
|
explicit ParameterAction(const QString &emptyText,
|
||||||
const QString ¶meterText,
|
const QString ¶meterText,
|
||||||
EnablingMode em = AlwaysEnabled,
|
EnablingMode em = AlwaysEnabled,
|
||||||
QObject* parent = 0);
|
QObject *parent = 0);
|
||||||
|
|
||||||
QString emptyText() const;
|
QString emptyText() const;
|
||||||
void setEmptyText(const QString &);
|
void setEmptyText(const QString &);
|
||||||
@@ -78,6 +78,6 @@ private:
|
|||||||
EnablingMode m_enablingMode;
|
EnablingMode m_enablingMode;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
} // namespace Utils
|
||||||
|
|
||||||
#endif // PARAMETERACTION_H
|
#endif // PARAMETERACTION_H
|
||||||
|
|||||||
@@ -258,6 +258,11 @@ QString CMakeSettingsPage::displayCategory() const
|
|||||||
return tr("CMake");
|
return tr("CMake");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon CMakeSettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(); // TODO: Add CMake icon or move this into Projects category
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *CMakeSettingsPage::createPage(QWidget *parent)
|
QWidget *CMakeSettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
QWidget *outerWidget = new QWidget(parent);
|
QWidget *outerWidget = new QWidget(parent);
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ public:
|
|||||||
virtual QString displayName() const;
|
virtual QString displayName() const;
|
||||||
virtual QString category() const;
|
virtual QString category() const;
|
||||||
virtual QString displayCategory() const;
|
virtual QString displayCategory() const;
|
||||||
|
virtual QIcon categoryIcon() const;
|
||||||
|
|
||||||
virtual QWidget *createPage(QWidget *parent);
|
virtual QWidget *createPage(QWidget *parent);
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
|
|||||||
@@ -60,12 +60,6 @@ public:
|
|||||||
CommandMappings(QObject *parent = 0);
|
CommandMappings(QObject *parent = 0);
|
||||||
~CommandMappings();
|
~CommandMappings();
|
||||||
|
|
||||||
// IOptionsPage
|
|
||||||
virtual QString id() const = 0;
|
|
||||||
virtual QString displayName() const = 0;
|
|
||||||
virtual QString category() const = 0;
|
|
||||||
virtual QString displayCategory() const = 0;
|
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
void commandChanged(QTreeWidgetItem *current);
|
void commandChanged(QTreeWidgetItem *current);
|
||||||
void filterChanged(const QString &f);
|
void filterChanged(const QString &f);
|
||||||
|
|||||||
@@ -43,6 +43,14 @@
|
|||||||
<file>images/unlocked.png</file>
|
<file>images/unlocked.png</file>
|
||||||
<file>images/extension.png</file>
|
<file>images/extension.png</file>
|
||||||
<file>images/darkclosebutton.png</file>
|
<file>images/darkclosebutton.png</file>
|
||||||
|
<file>images/category_debug.png</file>
|
||||||
|
<file>images/category_core.png</file>
|
||||||
|
<file>images/category_texteditor.png</file>
|
||||||
|
<file>images/category_help.png</file>
|
||||||
|
<file>images/category_project.png</file>
|
||||||
|
<file>images/category_design.png</file>
|
||||||
|
<file>images/category_qt.png</file>
|
||||||
|
|
||||||
<file>editormanager/BinFiles.mimetypes.xml</file>
|
<file>editormanager/BinFiles.mimetypes.xml</file>
|
||||||
<file>images/progressbar.png</file>
|
<file>images/progressbar.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
|
|||||||
@@ -227,6 +227,7 @@ const char * const WIZARD_CATEGORY_QT = "R.Qt";
|
|||||||
const char * const WIZARD_TR_CATEGORY_QT = QT_TRANSLATE_NOOP("Core", "Qt");
|
const char * const WIZARD_TR_CATEGORY_QT = QT_TRANSLATE_NOOP("Core", "Qt");
|
||||||
|
|
||||||
const char * const SETTINGS_CATEGORY_CORE = "A.Core";
|
const char * const SETTINGS_CATEGORY_CORE = "A.Core";
|
||||||
|
const char * const SETTINGS_CATEGORY_CORE_ICON = ":/core/images/category_core.png";
|
||||||
const char * const SETTINGS_TR_CATEGORY_CORE = QT_TRANSLATE_NOOP("Core", "Environment");
|
const char * const SETTINGS_TR_CATEGORY_CORE = QT_TRANSLATE_NOOP("Core", "Environment");
|
||||||
const char * const SETTINGS_ID_ENVIRONMENT = "A.General";
|
const char * const SETTINGS_ID_ENVIRONMENT = "A.General";
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
#include <coreplugin/core_global.h>
|
#include <coreplugin/core_global.h>
|
||||||
|
|
||||||
|
#include <QtGui/QIcon>
|
||||||
#include <QtCore/QObject>
|
#include <QtCore/QObject>
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
@@ -51,6 +52,7 @@ public:
|
|||||||
virtual QString displayName() const = 0;
|
virtual QString displayName() const = 0;
|
||||||
virtual QString category() const = 0;
|
virtual QString category() const = 0;
|
||||||
virtual QString displayCategory() const = 0;
|
virtual QString displayCategory() const = 0;
|
||||||
|
virtual QIcon categoryIcon() const = 0;
|
||||||
virtual bool matches(const QString & /* searchKeyWord*/) const { return false; }
|
virtual bool matches(const QString & /* searchKeyWord*/) const { return false; }
|
||||||
|
|
||||||
virtual QWidget *createPage(QWidget *parent) = 0;
|
virtual QWidget *createPage(QWidget *parent) = 0;
|
||||||
|
|||||||
@@ -43,6 +43,7 @@
|
|||||||
#include <QtGui/QPushButton>
|
#include <QtGui/QPushButton>
|
||||||
#include <QtGui/QToolButton>
|
#include <QtGui/QToolButton>
|
||||||
#include <QtGui/QToolBar>
|
#include <QtGui/QToolBar>
|
||||||
|
#include <QtGui/QScrollBar>
|
||||||
#include <QtGui/QSpacerItem>
|
#include <QtGui/QSpacerItem>
|
||||||
#include <QtGui/QStyle>
|
#include <QtGui/QStyle>
|
||||||
#include <QtGui/QStackedLayout>
|
#include <QtGui/QStackedLayout>
|
||||||
@@ -52,9 +53,11 @@
|
|||||||
#include <QtGui/QDialogButtonBox>
|
#include <QtGui/QDialogButtonBox>
|
||||||
#include <QtGui/QListView>
|
#include <QtGui/QListView>
|
||||||
#include <QtGui/QApplication>
|
#include <QtGui/QApplication>
|
||||||
|
#include <QtGui/QGroupBox>
|
||||||
|
|
||||||
static const char categoryKeyC[] = "General/LastPreferenceCategory";
|
static const char categoryKeyC[] = "General/LastPreferenceCategory";
|
||||||
static const char pageKeyC[] = "General/LastPreferencePage";
|
static const char pageKeyC[] = "General/LastPreferencePage";
|
||||||
|
const int categoryIconSize = 32;
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
@@ -64,6 +67,7 @@ namespace Internal {
|
|||||||
struct Category {
|
struct Category {
|
||||||
QString id;
|
QString id;
|
||||||
QString displayName;
|
QString displayName;
|
||||||
|
QIcon icon;
|
||||||
QList<IOptionsPage*> pages;
|
QList<IOptionsPage*> pages;
|
||||||
int index;
|
int index;
|
||||||
QTabWidget *tabWidget;
|
QTabWidget *tabWidget;
|
||||||
@@ -85,11 +89,15 @@ private:
|
|||||||
Category *findCategoryById(const QString &id);
|
Category *findCategoryById(const QString &id);
|
||||||
|
|
||||||
QList<Category*> m_categories;
|
QList<Category*> m_categories;
|
||||||
|
QIcon m_emptyIcon;
|
||||||
};
|
};
|
||||||
|
|
||||||
CategoryModel::CategoryModel(QObject *parent)
|
CategoryModel::CategoryModel(QObject *parent)
|
||||||
: QAbstractListModel(parent)
|
: QAbstractListModel(parent)
|
||||||
{
|
{
|
||||||
|
QPixmap empty(categoryIconSize, categoryIconSize);
|
||||||
|
empty.fill(Qt::transparent);
|
||||||
|
m_emptyIcon = QIcon(empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
CategoryModel::~CategoryModel()
|
CategoryModel::~CategoryModel()
|
||||||
@@ -107,6 +115,12 @@ QVariant CategoryModel::data(const QModelIndex &index, int role) const
|
|||||||
switch (role) {
|
switch (role) {
|
||||||
case Qt::DisplayRole:
|
case Qt::DisplayRole:
|
||||||
return m_categories.at(index.row())->displayName;
|
return m_categories.at(index.row())->displayName;
|
||||||
|
case Qt::DecorationRole: {
|
||||||
|
QIcon icon = m_categories.at(index.row())->icon;
|
||||||
|
if (icon.isNull())
|
||||||
|
icon = m_emptyIcon;
|
||||||
|
return icon;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return QVariant();
|
return QVariant();
|
||||||
@@ -126,6 +140,7 @@ void CategoryModel::setPages(const QList<IOptionsPage*> &pages)
|
|||||||
category = new Category;
|
category = new Category;
|
||||||
category->id = categoryId;
|
category->id = categoryId;
|
||||||
category->displayName = page->displayCategory();
|
category->displayName = page->displayCategory();
|
||||||
|
category->icon = page->categoryIcon();
|
||||||
category->pages.append(page);
|
category->pages.append(page);
|
||||||
m_categories.append(category);
|
m_categories.append(category);
|
||||||
} else {
|
} else {
|
||||||
@@ -198,7 +213,10 @@ public:
|
|||||||
|
|
||||||
virtual QSize sizeHint() const
|
virtual QSize sizeHint() const
|
||||||
{
|
{
|
||||||
return QSize(sizeHintForColumn(0) + frameWidth() * 2, 100);
|
int width = sizeHintForColumn(0) + frameWidth() * 2 + 5;
|
||||||
|
if (verticalScrollBar()->isVisible())
|
||||||
|
width += verticalScrollBar()->width();
|
||||||
|
return QSize(width, 100);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -262,9 +280,14 @@ SettingsDialog::SettingsDialog(QWidget *parent, const QString &categoryId,
|
|||||||
QTabWidget *tabWidget = new QTabWidget;
|
QTabWidget *tabWidget = new QTabWidget;
|
||||||
for (int j = 0; j < category->pages.size(); ++j) {
|
for (int j = 0; j < category->pages.size(); ++j) {
|
||||||
IOptionsPage *page = category->pages.at(j);
|
IOptionsPage *page = category->pages.at(j);
|
||||||
tabWidget->addTab(page->createPage(0), page->displayName());
|
QWidget *widget = page->createPage(0);
|
||||||
|
tabWidget->addTab(widget, page->displayName());
|
||||||
if (initialCategoryIndex == i && page->id() == initialPage)
|
if (initialCategoryIndex == i && page->id() == initialPage)
|
||||||
initialPageIndex = j;
|
initialPageIndex = j;
|
||||||
|
|
||||||
|
// A hack to remove the borders from all group boxes
|
||||||
|
foreach (QGroupBox *groupBox, qFindChildren<QGroupBox*>(widget))
|
||||||
|
groupBox->setFlat(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
connect(tabWidget, SIGNAL(currentChanged(int)),
|
connect(tabWidget, SIGNAL(currentChanged(int)),
|
||||||
@@ -276,8 +299,10 @@ SettingsDialog::SettingsDialog(QWidget *parent, const QString &categoryId,
|
|||||||
|
|
||||||
m_proxyModel->setSourceModel(m_model);
|
m_proxyModel->setSourceModel(m_model);
|
||||||
m_proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
|
m_proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
|
||||||
|
m_categoryList->setIconSize(QSize(categoryIconSize, categoryIconSize));
|
||||||
m_categoryList->setModel(m_proxyModel);
|
m_categoryList->setModel(m_proxyModel);
|
||||||
m_categoryList->setSelectionMode(QAbstractItemView::SingleSelection);
|
m_categoryList->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||||
|
m_categoryList->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
|
||||||
|
|
||||||
connect(m_categoryList->selectionModel(), SIGNAL(currentRowChanged(QModelIndex,QModelIndex)),
|
connect(m_categoryList->selectionModel(), SIGNAL(currentRowChanged(QModelIndex,QModelIndex)),
|
||||||
this, SLOT(currentChanged(QModelIndex)));
|
this, SLOT(currentChanged(QModelIndex)));
|
||||||
|
|||||||
@@ -87,6 +87,11 @@ QString ShortcutSettings::displayCategory() const
|
|||||||
return QCoreApplication::translate("Core", Core::Constants::SETTINGS_TR_CATEGORY_CORE);
|
return QCoreApplication::translate("Core", Core::Constants::SETTINGS_TR_CATEGORY_CORE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon ShortcutSettings::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(QLatin1String(Core::Constants::SETTINGS_CATEGORY_CORE_ICON));
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *ShortcutSettings::createPage(QWidget *parent)
|
QWidget *ShortcutSettings::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
m_keyNum = m_key[0] = m_key[1] = m_key[2] = m_key[3] = 0;
|
m_keyNum = m_key[0] = m_key[1] = m_key[2] = m_key[3] = 0;
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -77,6 +77,11 @@ QString GeneralSettings::displayCategory() const
|
|||||||
return QCoreApplication::translate("Core", Core::Constants::SETTINGS_TR_CATEGORY_CORE);
|
return QCoreApplication::translate("Core", Core::Constants::SETTINGS_TR_CATEGORY_CORE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon GeneralSettings::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(QLatin1String(Core::Constants::SETTINGS_CATEGORY_CORE_ICON));
|
||||||
|
}
|
||||||
|
|
||||||
static bool hasQmFilesForLocale(const QString &locale, const QString &creatorTrPath)
|
static bool hasQmFilesForLocale(const QString &locale, const QString &creatorTrPath)
|
||||||
{
|
{
|
||||||
static const QString qtTrPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
|
static const QString qtTrPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
QWidget* createPage(QWidget *parent);
|
QWidget* createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
void finish();
|
void finish();
|
||||||
|
|||||||
BIN
src/plugins/coreplugin/images/category_core.png
Normal file
|
After Width: | Height: | Size: 930 B |
BIN
src/plugins/coreplugin/images/category_debug.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
src/plugins/coreplugin/images/category_design.png
Normal file
|
After Width: | Height: | Size: 852 B |
BIN
src/plugins/coreplugin/images/category_help.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
src/plugins/coreplugin/images/category_project.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/plugins/coreplugin/images/category_qt.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/plugins/coreplugin/images/category_texteditor.png
Normal file
|
After Width: | Height: | Size: 615 B |
@@ -113,9 +113,9 @@ void CodePasterProtocol::list()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CodePasterProtocol::paste(const QString &text,
|
void CodePasterProtocol::paste(const QString &text,
|
||||||
const QString &username,
|
const QString &username,
|
||||||
const QString &comment,
|
const QString &comment,
|
||||||
const QString &description)
|
const QString &description)
|
||||||
{
|
{
|
||||||
QString hostName = m_page->hostName();
|
QString hostName = m_page->hostName();
|
||||||
if (!isValidHostName(hostName))
|
if (!isValidHostName(hostName))
|
||||||
@@ -139,7 +139,7 @@ bool CodePasterProtocol::hasSettings() const
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Core::IOptionsPage* CodePasterProtocol::settingsPage()
|
Core::IOptionsPage *CodePasterProtocol::settingsPage()
|
||||||
{
|
{
|
||||||
return m_page;
|
return m_page;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,6 +75,11 @@ QString CodePasterSettingsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("CodePaster", Constants::CPASTER_SETTINGS_TR_CATEGORY);
|
return QCoreApplication::translate("CodePaster", Constants::CPASTER_SETTINGS_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon CodePasterSettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(); // TODO: Add icon for code paster category
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *CodePasterSettingsPage::createPage(QWidget *parent)
|
QWidget *CodePasterSettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
QGroupBox *groupBox = new QGroupBox();
|
QGroupBox *groupBox = new QGroupBox();
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ void PasteBinDotComProtocol::fetchFinished()
|
|||||||
emit fetchDone(title, content, error);
|
emit fetchDone(title, content, error);
|
||||||
}
|
}
|
||||||
|
|
||||||
Core::IOptionsPage* PasteBinDotComProtocol::settingsPage()
|
Core::IOptionsPage *PasteBinDotComProtocol::settingsPage()
|
||||||
{
|
{
|
||||||
return settings;
|
return settings;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ public:
|
|||||||
|
|
||||||
virtual unsigned capabilities() const { return 0; }
|
virtual unsigned capabilities() const { return 0; }
|
||||||
bool hasSettings() const { return true; }
|
bool hasSettings() const { return true; }
|
||||||
Core::IOptionsPage* settingsPage();
|
Core::IOptionsPage *settingsPage();
|
||||||
|
|
||||||
bool canList() const { return false; }
|
bool canList() const { return false; }
|
||||||
|
|
||||||
|
|||||||
@@ -66,6 +66,11 @@ QString PasteBinDotComSettings::displayCategory() const
|
|||||||
return QCoreApplication::translate("CodePaster", CodePaster::Constants::CPASTER_SETTINGS_TR_CATEGORY);
|
return QCoreApplication::translate("CodePaster", CodePaster::Constants::CPASTER_SETTINGS_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon PasteBinDotComSettings::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(); // TODO: Icon for CodePaster
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *PasteBinDotComSettings::createPage(QWidget *parent)
|
QWidget *PasteBinDotComSettings::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
Ui_PasteBinComSettingsWidget ui;
|
Ui_PasteBinComSettingsWidget ui;
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ bool Protocol::hasSettings() const
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Core::IOptionsPage* Protocol::settingsPage()
|
Core::IOptionsPage *Protocol::settingsPage()
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ public:
|
|||||||
|
|
||||||
virtual unsigned capabilities() const = 0;
|
virtual unsigned capabilities() const = 0;
|
||||||
virtual bool hasSettings() const;
|
virtual bool hasSettings() const;
|
||||||
virtual Core::IOptionsPage* settingsPage();
|
virtual Core::IOptionsPage *settingsPage();
|
||||||
|
|
||||||
virtual void fetch(const QString &id) = 0;
|
virtual void fetch(const QString &id) = 0;
|
||||||
virtual void list();
|
virtual void list();
|
||||||
|
|||||||
@@ -104,6 +104,11 @@ QString SettingsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("CodePaster", Constants::CPASTER_SETTINGS_TR_CATEGORY);
|
return QCoreApplication::translate("CodePaster", Constants::CPASTER_SETTINGS_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon SettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(); // TODO: Icon for CodePaster
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *SettingsPage::createPage(QWidget *parent)
|
QWidget *SettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
m_widget = new SettingsWidget(m_protocols, parent);
|
m_widget = new SettingsWidget(m_protocols, parent);
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -70,6 +70,11 @@ QString CompletionSettingsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("Text Editor", TextEditor::Constants::TEXT_EDITOR_SETTINGS_TR_CATEGORY);
|
return QCoreApplication::translate("Text Editor", TextEditor::Constants::TEXT_EDITOR_SETTINGS_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon CompletionSettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(QLatin1String(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON));
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *CompletionSettingsPage::createPage(QWidget *parent)
|
QWidget *CompletionSettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
QWidget *w = new QWidget(parent);
|
QWidget *w = new QWidget(parent);
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -319,6 +319,11 @@ QString CppFileSettingsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("CppTools", Constants::CPP_SETTINGS_TR_CATEGORY);
|
return QCoreApplication::translate("CppTools", Constants::CPP_SETTINGS_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon CppFileSettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(); // TODO: Icon for C++ or move into category
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *CppFileSettingsPage::createPage(QWidget *parent)
|
QWidget *CppFileSettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ public:
|
|||||||
virtual QString displayName() const;
|
virtual QString displayName() const;
|
||||||
virtual QString category() const;
|
virtual QString category() const;
|
||||||
virtual QString displayCategory() const;
|
virtual QString displayCategory() const;
|
||||||
|
virtual QIcon categoryIcon() const;
|
||||||
|
|
||||||
virtual QWidget *createPage(QWidget *parent);
|
virtual QWidget *createPage(QWidget *parent);
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
|
|||||||
@@ -108,6 +108,11 @@ QString SettingsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("VCSBase", VCSBase::Constants::VCS_SETTINGS_TR_CATEGORY);
|
return QCoreApplication::translate("VCSBase", VCSBase::Constants::VCS_SETTINGS_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon SettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(); // TODO: Icon for Version Control
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *SettingsPage::createPage(QWidget *parent)
|
QWidget *SettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
m_widget = new SettingsPageWidget(parent);
|
m_widget = new SettingsPageWidget(parent);
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -60,6 +60,8 @@ const char * const DEBUGGER_COMMON_SETTINGS_NAME =
|
|||||||
const char * const DEBUGGER_SETTINGS_CATEGORY = "O.Debugger";
|
const char * const DEBUGGER_SETTINGS_CATEGORY = "O.Debugger";
|
||||||
const char * const DEBUGGER_SETTINGS_TR_CATEGORY =
|
const char * const DEBUGGER_SETTINGS_TR_CATEGORY =
|
||||||
QT_TRANSLATE_NOOP("Debugger", "Debugger");
|
QT_TRANSLATE_NOOP("Debugger", "Debugger");
|
||||||
|
const char * const DEBUGGER_COMMON_SETTINGS_CATEGORY_ICON =
|
||||||
|
":/core/images/category_debug.png";
|
||||||
|
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
enum { debug = 0 };
|
enum { debug = 0 };
|
||||||
|
|||||||
@@ -341,6 +341,8 @@ public:
|
|||||||
{ return _(DEBUGGER_SETTINGS_CATEGORY); }
|
{ return _(DEBUGGER_SETTINGS_CATEGORY); }
|
||||||
QString displayCategory() const
|
QString displayCategory() const
|
||||||
{ return QCoreApplication::translate("Debugger", DEBUGGER_SETTINGS_TR_CATEGORY); }
|
{ return QCoreApplication::translate("Debugger", DEBUGGER_SETTINGS_TR_CATEGORY); }
|
||||||
|
QIcon categoryIcon() const
|
||||||
|
{ return QIcon(QLatin1String(DEBUGGER_COMMON_SETTINGS_CATEGORY_ICON)); }
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply() { m_group.apply(settings()); }
|
void apply() { m_group.apply(settings()); }
|
||||||
@@ -455,6 +457,7 @@ public:
|
|||||||
QString displayName() const { return tr("Debugging Helper"); }
|
QString displayName() const { return tr("Debugging Helper"); }
|
||||||
QString category() const { return _(DEBUGGER_SETTINGS_CATEGORY); }
|
QString category() const { return _(DEBUGGER_SETTINGS_CATEGORY); }
|
||||||
QString displayCategory() const { return QCoreApplication::translate("Debugger", DEBUGGER_SETTINGS_TR_CATEGORY); }
|
QString displayCategory() const { return QCoreApplication::translate("Debugger", DEBUGGER_SETTINGS_TR_CATEGORY); }
|
||||||
|
QIcon categoryIcon() const { return QIcon(QLatin1String(DEBUGGER_COMMON_SETTINGS_CATEGORY_ICON)); }
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply() { m_group.apply(settings()); }
|
void apply() { m_group.apply(settings()); }
|
||||||
|
|||||||
@@ -62,6 +62,11 @@ QString GdbOptionsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("Debugger", Debugger::Constants::DEBUGGER_SETTINGS_TR_CATEGORY);
|
return QCoreApplication::translate("Debugger", Debugger::Constants::DEBUGGER_SETTINGS_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon GdbOptionsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(QLatin1String(Debugger::Constants::DEBUGGER_COMMON_SETTINGS_CATEGORY_ICON));
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *GdbOptionsPage::createPage(QWidget *parent)
|
QWidget *GdbOptionsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
QWidget *w = new QWidget(parent);
|
QWidget *w = new QWidget(parent);
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ public:
|
|||||||
virtual QString displayName() const;
|
virtual QString displayName() const;
|
||||||
virtual QString category() const;
|
virtual QString category() const;
|
||||||
virtual QString displayCategory() const;
|
virtual QString displayCategory() const;
|
||||||
|
virtual QIcon categoryIcon() const;
|
||||||
|
|
||||||
virtual QWidget *createPage(QWidget *parent);
|
virtual QWidget *createPage(QWidget *parent);
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
|
|||||||
@@ -69,6 +69,11 @@ QString TrkOptionsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("Debugger", Debugger::Constants::DEBUGGER_SETTINGS_TR_CATEGORY);
|
return QCoreApplication::translate("Debugger", Debugger::Constants::DEBUGGER_SETTINGS_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon TrkOptionsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(QLatin1String(Debugger::Constants::DEBUGGER_COMMON_SETTINGS_CATEGORY_ICON));
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *TrkOptionsPage::createPage(QWidget *parent)
|
QWidget *TrkOptionsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
if (!m_widget)
|
if (!m_widget)
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ public:
|
|||||||
virtual QString displayName() const;
|
virtual QString displayName() const;
|
||||||
virtual QString category() const;
|
virtual QString category() const;
|
||||||
virtual QString displayCategory() const;
|
virtual QString displayCategory() const;
|
||||||
|
virtual QIcon categoryIcon() const;
|
||||||
|
|
||||||
virtual QWidget *createPage(QWidget *parent);
|
virtual QWidget *createPage(QWidget *parent);
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
|
|||||||
@@ -123,6 +123,11 @@ QString CppSettingsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("Designer", Designer::Constants::SETTINGS_TR_CATEGORY);
|
return QCoreApplication::translate("Designer", Designer::Constants::SETTINGS_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon CppSettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(QLatin1String(Designer::Constants::SETTINGS_CATEGORY_ICON));
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *CppSettingsPage::createPage(QWidget *parent)
|
QWidget *CppSettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
m_widget = new CppSettingsPageWidget(parent);
|
m_widget = new CppSettingsPageWidget(parent);
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ public:
|
|||||||
virtual QString displayName() const;
|
virtual QString displayName() const;
|
||||||
virtual QString category() const;
|
virtual QString category() const;
|
||||||
virtual QString displayCategory() const;
|
virtual QString displayCategory() const;
|
||||||
|
virtual QIcon categoryIcon() const;
|
||||||
|
|
||||||
virtual QWidget *createPage(QWidget *parent);
|
virtual QWidget *createPage(QWidget *parent);
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ const char * const DESIGNER_XML_EDITOR_ID ="DesignerXmlEditor";
|
|||||||
const char * const C_DESIGNER_XML_DISPLAY_NAME = QT_TRANSLATE_NOOP("Designer", "Xml Editor");
|
const char * const C_DESIGNER_XML_DISPLAY_NAME = QT_TRANSLATE_NOOP("Designer", "Xml Editor");
|
||||||
|
|
||||||
const char * const SETTINGS_CATEGORY = "P.Designer";
|
const char * const SETTINGS_CATEGORY = "P.Designer";
|
||||||
|
const char * const SETTINGS_CATEGORY_ICON = ":/core/images/category_design.png";
|
||||||
const char * const SETTINGS_TR_CATEGORY = QT_TRANSLATE_NOOP("Designer", "Designer");
|
const char * const SETTINGS_TR_CATEGORY = QT_TRANSLATE_NOOP("Designer", "Designer");
|
||||||
const char * const SETTINGS_CPP_SETTINGS_ID = "Class Generation";
|
const char * const SETTINGS_CPP_SETTINGS_ID = "Class Generation";
|
||||||
const char * const SETTINGS_CPP_SETTINGS_NAME = QT_TRANSLATE_NOOP("Designer", "Class Generation");
|
const char * const SETTINGS_CPP_SETTINGS_NAME = QT_TRANSLATE_NOOP("Designer", "Class Generation");
|
||||||
|
|||||||
@@ -65,6 +65,11 @@ QString SettingsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("Designer", Designer::Constants::SETTINGS_TR_CATEGORY);
|
return QCoreApplication::translate("Designer", Designer::Constants::SETTINGS_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon SettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(QLatin1String(Designer::Constants::SETTINGS_CATEGORY_ICON));
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *SettingsPage::createPage(QWidget *parent)
|
QWidget *SettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
return m_designerPage->createPage(parent);
|
return m_designerPage->createPage(parent);
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
virtual QWidget *createPage(QWidget *parent);
|
virtual QWidget *createPage(QWidget *parent);
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
|
|||||||
@@ -131,6 +131,7 @@ public:
|
|||||||
QString displayName() const { return tr("General"); }
|
QString displayName() const { return tr("General"); }
|
||||||
QString category() const { return QLatin1String(Constants::SETTINGS_CATEGORY); }
|
QString category() const { return QLatin1String(Constants::SETTINGS_CATEGORY); }
|
||||||
QString displayCategory() const { return tr("FakeVim"); }
|
QString displayCategory() const { return tr("FakeVim"); }
|
||||||
|
QIcon categoryIcon() const { return QIcon(); } // TODO: Add an icon or move into another category
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply() { m_group.apply(ICore::instance()->settings()); }
|
void apply() { m_group.apply(ICore::instance()->settings()); }
|
||||||
@@ -289,6 +290,7 @@ public:
|
|||||||
QString displayName() const { return tr("Ex Command Mapping"); }
|
QString displayName() const { return tr("Ex Command Mapping"); }
|
||||||
QString category() const { return QLatin1String(Constants::SETTINGS_CATEGORY); }
|
QString category() const { return QLatin1String(Constants::SETTINGS_CATEGORY); }
|
||||||
QString displayCategory() const { return tr("FakeVim"); }
|
QString displayCategory() const { return tr("FakeVim"); }
|
||||||
|
QIcon categoryIcon() const { return QIcon(); } // TODO: Icon for FakeVim
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void initialize();
|
void initialize();
|
||||||
|
|||||||
@@ -122,6 +122,11 @@ QString SettingsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("VCSBase", VCSBase::Constants::VCS_SETTINGS_TR_CATEGORY);
|
return QCoreApplication::translate("VCSBase", VCSBase::Constants::VCS_SETTINGS_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon SettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(); // TODO: Icon for Version Control
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *SettingsPage::createPage(QWidget *parent)
|
QWidget *SettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
m_widget = new SettingsPageWidget(parent);
|
m_widget = new SettingsPageWidget(parent);
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -65,6 +65,11 @@ QString DocSettingsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("Help", Help::Constants::HELP_TR_CATEGORY);
|
return QCoreApplication::translate("Help", Help::Constants::HELP_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon DocSettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(QLatin1String(Help::Constants::HELP_CATEGORY_ICON));
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *DocSettingsPage::createPage(QWidget *parent)
|
QWidget *DocSettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
QWidget *widget = new QWidget(parent);
|
QWidget *widget = new QWidget(parent);
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -66,6 +66,11 @@ QString FilterSettingsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("Help", Help::Constants::HELP_TR_CATEGORY);
|
return QCoreApplication::translate("Help", Help::Constants::HELP_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon FilterSettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(QLatin1String(Help::Constants::HELP_CATEGORY_ICON));
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *FilterSettingsPage::createPage(QWidget *parent)
|
QWidget *FilterSettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
QWidget *widget = new QWidget(parent);
|
QWidget *widget = new QWidget(parent);
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -83,6 +83,11 @@ QString GeneralSettingsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("Help", Help::Constants::HELP_TR_CATEGORY);
|
return QCoreApplication::translate("Help", Help::Constants::HELP_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon GeneralSettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(QLatin1String(Help::Constants::HELP_CATEGORY_ICON));
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *GeneralSettingsPage::createPage(QWidget *parent)
|
QWidget *GeneralSettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
QWidget *widget = new QWidget(parent);
|
QWidget *widget = new QWidget(parent);
|
||||||
|
|||||||
@@ -46,9 +46,10 @@ public:
|
|||||||
GeneralSettingsPage();
|
GeneralSettingsPage();
|
||||||
|
|
||||||
QString id() const;
|
QString id() const;
|
||||||
virtual QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ namespace Help {
|
|||||||
const int P_MODE_HELP = 70;
|
const int P_MODE_HELP = 70;
|
||||||
const char * const ID_MODE_HELP = "Help";
|
const char * const ID_MODE_HELP = "Help";
|
||||||
const char * const HELP_CATEGORY = "H.Help";
|
const char * const HELP_CATEGORY = "H.Help";
|
||||||
|
const char * const HELP_CATEGORY_ICON = ":/core/images/category_help.png";
|
||||||
const char * const HELP_TR_CATEGORY = QT_TRANSLATE_NOOP("Help", "Help");
|
const char * const HELP_TR_CATEGORY = QT_TRANSLATE_NOOP("Help", "Help");
|
||||||
|
|
||||||
const char * const C_MODE_HELP = "Help Mode";
|
const char * const C_MODE_HELP = "Help Mode";
|
||||||
|
|||||||
@@ -69,6 +69,11 @@ QString SettingsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("Locator", Locator::Constants::LOCATOR_TR_CATEGORY);
|
return QCoreApplication::translate("Locator", Locator::Constants::LOCATOR_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon SettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(); // TODO: Icon for Locator
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *SettingsPage::createPage(QWidget *parent)
|
QWidget *SettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -107,6 +107,11 @@ QString OptionsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("VCSBase", VCSBase::Constants::VCS_SETTINGS_TR_CATEGORY);
|
return QCoreApplication::translate("VCSBase", VCSBase::Constants::VCS_SETTINGS_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon OptionsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(); // TODO: Icon for Version Control
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *OptionsPage::createPage(QWidget *parent)
|
QWidget *OptionsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
if (!optionsPageWidget)
|
if (!optionsPageWidget)
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -146,6 +146,11 @@ QString SettingsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("VCSBase", VCSBase::Constants::VCS_SETTINGS_TR_CATEGORY);
|
return QCoreApplication::translate("VCSBase", VCSBase::Constants::VCS_SETTINGS_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon SettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(); // TODO: Icon for Version Control
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *SettingsPage::createPage(QWidget *parent)
|
QWidget *SettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
m_widget = new SettingsPageWidget(parent);
|
m_widget = new SettingsPageWidget(parent);
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -187,6 +187,7 @@ const char * const RESOURCE_MIMETYPE = "application/vnd.nokia.xml.qt.resource";
|
|||||||
|
|
||||||
// settings page
|
// settings page
|
||||||
const char * const PROJECTEXPLORER_SETTINGS_CATEGORY = "K.ProjectExplorer";
|
const char * const PROJECTEXPLORER_SETTINGS_CATEGORY = "K.ProjectExplorer";
|
||||||
|
const char * const PROJECTEXPLORER_SETTINGS_CATEGORY_ICON = ":/core/images/category_project.png";
|
||||||
const char * const PROJECTEXPLORER_SETTINGS_ID = "ProjectExplorer.ProjectExplorer";
|
const char * const PROJECTEXPLORER_SETTINGS_ID = "ProjectExplorer.ProjectExplorer";
|
||||||
|
|
||||||
// task categories
|
// task categories
|
||||||
|
|||||||
@@ -137,6 +137,11 @@ QString ProjectExplorerSettingsPage::displayCategory() const
|
|||||||
return tr("Projects");
|
return tr("Projects");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon ProjectExplorerSettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(Constants::PROJECTEXPLORER_SETTINGS_CATEGORY_ICON);
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *ProjectExplorerSettingsPage::createPage(QWidget *parent)
|
QWidget *ProjectExplorerSettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
m_widget = new ProjectExplorerSettingsWidget(parent);
|
m_widget = new ProjectExplorerSettingsWidget(parent);
|
||||||
@@ -169,6 +174,6 @@ bool ProjectExplorerSettingsPage::matches(const QString &s) const
|
|||||||
return m_searchKeywords.contains(s, Qt::CaseInsensitive);
|
return m_searchKeywords.contains(s, Qt::CaseInsensitive);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
} // namespace Internal
|
||||||
}
|
} // namespace ProjectExplorer
|
||||||
|
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ public:
|
|||||||
virtual QString displayName() const;
|
virtual QString displayName() const;
|
||||||
virtual QString category() const;
|
virtual QString category() const;
|
||||||
virtual QString displayCategory() const;
|
virtual QString displayCategory() const;
|
||||||
|
virtual QIcon categoryIcon() const;
|
||||||
|
|
||||||
virtual QWidget *createPage(QWidget *parent);
|
virtual QWidget *createPage(QWidget *parent);
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
|
|||||||
@@ -102,6 +102,11 @@ QString SettingsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("QML", "QML");
|
return QCoreApplication::translate("QML", "QML");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon SettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(); // TODO: Icon for QML or move into other category (Designer?)
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *SettingsPage::createPage(QWidget *parent)
|
QWidget *SettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
m_widget = new SettingsPageWidget(parent);
|
m_widget = new SettingsPageWidget(parent);
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -80,6 +80,11 @@ QString MaemoSettingsPage::displayCategory() const
|
|||||||
Constants::QT_SETTINGS_CATEGORY);
|
Constants::QT_SETTINGS_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon MaemoSettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(QLatin1String(Constants::QT_SETTINGS_CATEGORY_ICON));
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *MaemoSettingsPage::createPage(QWidget *parent)
|
QWidget *MaemoSettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
m_widget = new MaemoSettingsWidget(parent);
|
m_widget = new MaemoSettingsWidget(parent);
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ public:
|
|||||||
virtual QString displayName() const;
|
virtual QString displayName() const;
|
||||||
virtual QString category() const;
|
virtual QString category() const;
|
||||||
virtual QString displayCategory() const;
|
virtual QString displayCategory() const;
|
||||||
|
virtual QIcon categoryIcon() const;
|
||||||
virtual QWidget *createPage(QWidget *parent);
|
virtual QWidget *createPage(QWidget *parent);
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
virtual void finish();
|
virtual void finish();
|
||||||
|
|||||||
@@ -129,6 +129,11 @@ QString S60DevicesPreferencePane::displayCategory() const
|
|||||||
return QCoreApplication::translate("Qt4ProjectManager", Constants::QT_SETTINGS_CATEGORY);
|
return QCoreApplication::translate("Qt4ProjectManager", Constants::QT_SETTINGS_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon S60DevicesPreferencePane::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(Constants::QT_SETTINGS_CATEGORY_ICON);
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *S60DevicesPreferencePane::createPage(QWidget *parent)
|
QWidget *S60DevicesPreferencePane::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
if (m_widget)
|
if (m_widget)
|
||||||
@@ -144,5 +149,3 @@ void S60DevicesPreferencePane::apply()
|
|||||||
void S60DevicesPreferencePane::finish()
|
void S60DevicesPreferencePane::finish()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,8 @@ private:
|
|||||||
S60Devices *m_devices;
|
S60Devices *m_devices;
|
||||||
};
|
};
|
||||||
|
|
||||||
class S60DevicesPreferencePane : public Core::IOptionsPage {
|
class S60DevicesPreferencePane : public Core::IOptionsPage
|
||||||
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
S60DevicesPreferencePane(S60Devices *devices, QObject *parent = 0);
|
S60DevicesPreferencePane(S60Devices *devices, QObject *parent = 0);
|
||||||
@@ -72,6 +73,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ const char * const DEPLOYHELPERRUNSTEP = "trolltech.qt4projectmanager.deployhelp
|
|||||||
|
|
||||||
//Qt4 settings pages
|
//Qt4 settings pages
|
||||||
const char * const QT_SETTINGS_CATEGORY = "L.Qt4";
|
const char * const QT_SETTINGS_CATEGORY = "L.Qt4";
|
||||||
|
const char * const QT_SETTINGS_CATEGORY_ICON = ":/core/images/category_qt.png";
|
||||||
const char * const QT_SETTINGS_TR_CATEGORY = QT_TRANSLATE_NOOP("Qt4ProjectManager", "Qt4");
|
const char * const QT_SETTINGS_TR_CATEGORY = QT_TRANSLATE_NOOP("Qt4ProjectManager", "Qt4");
|
||||||
const char * const QTVERSION_SETTINGS_PAGE_ID = "Qt Versions";
|
const char * const QTVERSION_SETTINGS_PAGE_ID = "Qt Versions";
|
||||||
const char * const QTVERSION_SETTINGS_PAGE_NAME = QT_TRANSLATE_NOOP("Qt4ProjectManager", "Qt Versions");
|
const char * const QTVERSION_SETTINGS_PAGE_NAME = QT_TRANSLATE_NOOP("Qt4ProjectManager", "Qt Versions");
|
||||||
|
|||||||
@@ -106,6 +106,11 @@ QString QtOptionsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("Qt4ProjectManager", Constants::QT_SETTINGS_TR_CATEGORY);
|
return QCoreApplication::translate("Qt4ProjectManager", Constants::QT_SETTINGS_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon QtOptionsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(QLatin1String(Constants::QT_SETTINGS_CATEGORY_ICON));
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *QtOptionsPage::createPage(QWidget *parent)
|
QWidget *QtOptionsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
QtVersionManager *vm = QtVersionManager::instance();
|
QtVersionManager *vm = QtVersionManager::instance();
|
||||||
|
|||||||
@@ -135,6 +135,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
void finish() { }
|
void finish() { }
|
||||||
|
|||||||
@@ -116,6 +116,11 @@ QString SettingsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("VCSBase", VCSBase::Constants::VCS_SETTINGS_TR_CATEGORY);
|
return QCoreApplication::translate("VCSBase", VCSBase::Constants::VCS_SETTINGS_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon SettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(); // TODO: Icon for Version Control
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *SettingsPage::createPage(QWidget *parent)
|
QWidget *SettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
m_widget = new SettingsPageWidget(parent);
|
m_widget = new SettingsPageWidget(parent);
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -98,6 +98,11 @@ QString BehaviorSettingsPage::displayCategory() const
|
|||||||
return m_d->m_parameters.displayCategory;
|
return m_d->m_parameters.displayCategory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon BehaviorSettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return m_d->m_parameters.categoryIcon;
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *BehaviorSettingsPage::createPage(QWidget *parent)
|
QWidget *BehaviorSettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
QWidget *w = new QWidget(parent);
|
QWidget *w = new QWidget(parent);
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ struct BehaviorSettingsPageParameters
|
|||||||
QString displayName;
|
QString displayName;
|
||||||
QString category;
|
QString category;
|
||||||
QString displayCategory;
|
QString displayCategory;
|
||||||
|
QIcon categoryIcon;
|
||||||
QString settingsPrefix;
|
QString settingsPrefix;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -64,6 +65,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -89,6 +89,11 @@ QString DisplaySettingsPage::displayCategory() const
|
|||||||
return m_d->m_parameters.displayCategory;
|
return m_d->m_parameters.displayCategory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon DisplaySettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return m_d->m_parameters.categoryIcon;
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *DisplaySettingsPage::createPage(QWidget *parent)
|
QWidget *DisplaySettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
QWidget *w = new QWidget(parent);
|
QWidget *w = new QWidget(parent);
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ struct DisplaySettingsPageParameters
|
|||||||
QString displayName;
|
QString displayName;
|
||||||
QString category;
|
QString category;
|
||||||
QString displayCategory;
|
QString displayCategory;
|
||||||
|
QIcon categoryIcon;
|
||||||
QString settingsPrefix;
|
QString settingsPrefix;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -62,6 +63,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -346,6 +346,11 @@ QString FontSettingsPage::displayCategory() const
|
|||||||
return d_ptr->m_displayCategory;
|
return d_ptr->m_displayCategory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon FontSettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(QLatin1String(Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON));
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *FontSettingsPage::createPage(QWidget *parent)
|
QWidget *FontSettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
QWidget *w = new QWidget(parent);
|
QWidget *w = new QWidget(parent);
|
||||||
|
|||||||
@@ -94,6 +94,7 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
QString category() const;
|
QString category() const;
|
||||||
QString displayCategory() const;
|
QString displayCategory() const;
|
||||||
|
QIcon categoryIcon() const;
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ const char * const C_DIFF_FILE = "DiffFile";
|
|||||||
const char * const C_DIFF_LOCATION = "DiffLocation";
|
const char * const C_DIFF_LOCATION = "DiffLocation";
|
||||||
|
|
||||||
const char * const TEXT_EDITOR_SETTINGS_CATEGORY = "C.TextEditor";
|
const char * const TEXT_EDITOR_SETTINGS_CATEGORY = "C.TextEditor";
|
||||||
|
const char * const TEXT_EDITOR_SETTINGS_CATEGORY_ICON = ":/core/images/category_texteditor.png";
|
||||||
const char * const TEXT_EDITOR_SETTINGS_TR_CATEGORY = QT_TRANSLATE_NOOP("TextEditor", "Text Editor");
|
const char * const TEXT_EDITOR_SETTINGS_TR_CATEGORY = QT_TRANSLATE_NOOP("TextEditor", "Text Editor");
|
||||||
|
|
||||||
} // namespace Constants
|
} // namespace Constants
|
||||||
|
|||||||
@@ -104,6 +104,7 @@ TextEditorSettings::TextEditorSettings(QObject *parent)
|
|||||||
|
|
||||||
const QString category = QLatin1String(Constants::TEXT_EDITOR_SETTINGS_CATEGORY);
|
const QString category = QLatin1String(Constants::TEXT_EDITOR_SETTINGS_CATEGORY);
|
||||||
const QString displayCategory = QCoreApplication::translate("TextEditor", Constants::TEXT_EDITOR_SETTINGS_TR_CATEGORY);
|
const QString displayCategory = QCoreApplication::translate("TextEditor", Constants::TEXT_EDITOR_SETTINGS_TR_CATEGORY);
|
||||||
|
const QIcon categoryIcon = QIcon(QLatin1String(Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON));
|
||||||
|
|
||||||
m_fontSettingsPage = new FontSettingsPage(formatDescriptions,
|
m_fontSettingsPage = new FontSettingsPage(formatDescriptions,
|
||||||
QLatin1String("A.FontSettings"),
|
QLatin1String("A.FontSettings"),
|
||||||
@@ -116,6 +117,7 @@ TextEditorSettings::TextEditorSettings(QObject *parent)
|
|||||||
behaviorSettingsPageParameters.displayName = tr("Behavior");
|
behaviorSettingsPageParameters.displayName = tr("Behavior");
|
||||||
behaviorSettingsPageParameters.category = category;
|
behaviorSettingsPageParameters.category = category;
|
||||||
behaviorSettingsPageParameters.displayCategory = displayCategory;
|
behaviorSettingsPageParameters.displayCategory = displayCategory;
|
||||||
|
behaviorSettingsPageParameters.categoryIcon = categoryIcon;
|
||||||
behaviorSettingsPageParameters.settingsPrefix = QLatin1String("text");
|
behaviorSettingsPageParameters.settingsPrefix = QLatin1String("text");
|
||||||
m_behaviorSettingsPage = new BehaviorSettingsPage(behaviorSettingsPageParameters, this);
|
m_behaviorSettingsPage = new BehaviorSettingsPage(behaviorSettingsPageParameters, this);
|
||||||
pm->addObject(m_behaviorSettingsPage);
|
pm->addObject(m_behaviorSettingsPage);
|
||||||
@@ -123,8 +125,9 @@ TextEditorSettings::TextEditorSettings(QObject *parent)
|
|||||||
TextEditor::DisplaySettingsPageParameters displaySettingsPageParameters;
|
TextEditor::DisplaySettingsPageParameters displaySettingsPageParameters;
|
||||||
displaySettingsPageParameters.id = QLatin1String("D.DisplaySettings"),
|
displaySettingsPageParameters.id = QLatin1String("D.DisplaySettings"),
|
||||||
displaySettingsPageParameters.displayName = tr("Display");
|
displaySettingsPageParameters.displayName = tr("Display");
|
||||||
displaySettingsPageParameters.category = category;;
|
displaySettingsPageParameters.category = category;
|
||||||
displaySettingsPageParameters.displayCategory = displayCategory;
|
displaySettingsPageParameters.displayCategory = displayCategory;
|
||||||
|
displaySettingsPageParameters.categoryIcon = categoryIcon;
|
||||||
displaySettingsPageParameters.settingsPrefix = QLatin1String("text");
|
displaySettingsPageParameters.settingsPrefix = QLatin1String("text");
|
||||||
m_displaySettingsPage = new DisplaySettingsPage(displaySettingsPageParameters, this);
|
m_displaySettingsPage = new DisplaySettingsPage(displaySettingsPageParameters, this);
|
||||||
pm->addObject(m_displaySettingsPage);
|
pm->addObject(m_displaySettingsPage);
|
||||||
|
|||||||
@@ -127,6 +127,11 @@ QString VCSBaseSettingsPage::displayCategory() const
|
|||||||
return QCoreApplication::translate("VCSBase", Constants::VCS_SETTINGS_TR_CATEGORY);
|
return QCoreApplication::translate("VCSBase", Constants::VCS_SETTINGS_TR_CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QIcon VCSBaseSettingsPage::categoryIcon() const
|
||||||
|
{
|
||||||
|
return QIcon(); // TODO: Icon for Version Control
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *VCSBaseSettingsPage::createPage(QWidget *parent)
|
QWidget *VCSBaseSettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
m_widget = new VCSBaseSettingsWidget(parent);
|
m_widget = new VCSBaseSettingsWidget(parent);
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ public:
|
|||||||
virtual QString displayName() const;
|
virtual QString displayName() const;
|
||||||
virtual QString category() const;
|
virtual QString category() const;
|
||||||
virtual QString displayCategory() const;
|
virtual QString displayCategory() const;
|
||||||
|
virtual QIcon categoryIcon() const;
|
||||||
|
|
||||||
virtual QWidget *createPage(QWidget *parent);
|
virtual QWidget *createPage(QWidget *parent);
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
|
|||||||