summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/dialogs/ioptionspage.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-03-18 16:43:01 +0100
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-03-18 16:43:01 +0100
commitbccf4a1fc31980083dcf572ec4f6d5f65c2f0931 (patch)
treed53d123064db5fe1b297104c58c66e9e4bea8166 /src/plugins/coreplugin/dialogs/ioptionspage.h
parent3b0305727b5885281fe308cabcf4af41814a5270 (diff)
downloadqt-creator-bccf4a1fc31980083dcf572ec4f6d5f65c2f0931.tar.gz
Fixes: Introduce a cpp settingspage containing file naming conventions (lower case and suffixes). Reorder VCS settings pages.
Task: 241959, 248085 RevBy: Optics/Naming checked by con Details: Give IOptionPage an id() to differentiate from trName(). Make showOptionsDialog return a bool (applied) and give it an optional parent. Change Cpp and form class wizards, give them a Configure... button to change those settings.
Diffstat (limited to 'src/plugins/coreplugin/dialogs/ioptionspage.h')
-rw-r--r--src/plugins/coreplugin/dialogs/ioptionspage.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/dialogs/ioptionspage.h b/src/plugins/coreplugin/dialogs/ioptionspage.h
index 7b0e651488..35c4b6b4f4 100644
--- a/src/plugins/coreplugin/dialogs/ioptionspage.h
+++ b/src/plugins/coreplugin/dialogs/ioptionspage.h
@@ -38,6 +38,21 @@
namespace Core {
+/*!
+ \class Core::IOptionsPage
+ \brief The IOptionsPage is an interface for providing options pages.
+
+ Guidelines for implementing:
+ \list
+ \o id() is an id used for filtering when calling ICore:: showOptionsDialog()
+ \o trName() is the (translated) name for display.
+ \o category() is the category used for filtering when calling ICore:: showOptionsDialog()
+ \o trCategory() is the translated category
+ \o apply() is called to store the settings. It should detect if any changes have been
+ made and store those.
+ \endlist
+*/
+
class CORE_EXPORT IOptionsPage : public QObject
{
Q_OBJECT
@@ -45,7 +60,8 @@ public:
IOptionsPage(QObject *parent = 0) : QObject(parent) {}
virtual ~IOptionsPage() {}
- virtual QString name() const = 0;
+ virtual QString id() const = 0;
+ virtual QString trName() const = 0;
virtual QString category() const = 0;
virtual QString trCategory() const = 0;