**
** This file is part of Qt Creator
**
-** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
-** Contact: Qt Software Information (qt-info@nokia.com)
+** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** If you are unsure which license is appropriate for your use, please
-** contact the sales department at qt-sales@nokia.com.
+** contact the sales department at http://qt.nokia.com/contact.
**
**************************************************************************/
#define GENERALSETTINGS_H
#include <coreplugin/dialogs/ioptionspage.h>
-#include <QtGui/QWidget>
+#include <QtCore/QPointer>
+
+QT_BEGIN_NAMESPACE
+class QMessageBox;
+QT_END_NAMESPACE
namespace Core {
namespace Internal {
GeneralSettings();
QString id() const;
- QString trName() const;
+ QString displayName() const;
QString category() const;
- QString trCategory() const;
+ QString displayCategory() const;
+ QIcon categoryIcon() const;
QWidget* createPage(QWidget *parent);
void apply();
void finish();
+ virtual bool matches(const QString &) const;
private slots:
void resetInterfaceColor();
void resetExternalEditor();
+ void resetLanguage();
void showHelpForExternalEditor();
#ifdef Q_OS_UNIX
+# ifndef Q_OS_MAC
+ void showHelpForFileBrowser();
+ void resetFileBrowser();
+# endif
void resetTerminal();
#endif
private:
+ void variableHelpDialogCreator(const QString &helpText);
+ void fillLanguageBox() const;
+ QString language() const;
+ void setLanguage(const QString&);
Ui::GeneralSettings *m_page;
- QWidget *m_dialog;
+ QString m_searchKeywords;
+ QPointer<QMessageBox> m_dialog;
+ QList<QTextCodec *> m_codecs;
};
} // namespace Internal