summaryrefslogtreecommitdiff
path: root/src/plugins/mercurial/optionspage.h
diff options
context:
space:
mode:
authorBrian McGillion <brian.mcgillion@flander.com>2009-09-15 13:03:13 +0300
committerBrian McGillion <brian.mcgillion@flander.com>2009-09-21 12:29:31 +0300
commit989e1b5acfb2c97ceb9dc38f6f1d795362924a6c (patch)
treeb1c8baf0106bac117c83c764833eca87bf806106 /src/plugins/mercurial/optionspage.h
parent0915342d15b55b611c80993d524a91920255b436 (diff)
downloadqt-creator-989e1b5acfb2c97ceb9dc38f6f1d795362924a6c.tar.gz
Mercurial plugin, merge request with suggested fixes.
Diffstat (limited to 'src/plugins/mercurial/optionspage.h')
-rw-r--r--src/plugins/mercurial/optionspage.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/plugins/mercurial/optionspage.h b/src/plugins/mercurial/optionspage.h
new file mode 100644
index 0000000000..83111279ac
--- /dev/null
+++ b/src/plugins/mercurial/optionspage.h
@@ -0,0 +1,52 @@
+#ifndef OPTIONSPAGE_H
+#define OPTIONSPAGE_H
+
+#include "ui_optionspage.h"
+
+#include <coreplugin/dialogs/ioptionspage.h>
+
+#include <QtGui/QWidget>
+#include <QtCore/QPointer>
+
+namespace Mercurial {
+namespace Internal {
+
+class OptionsPageWidget : public QWidget
+{
+ Q_OBJECT
+public:
+ explicit OptionsPageWidget(QWidget *parent = 0);
+ void updateOptions();
+ void saveOptions();
+
+private:
+ Ui::OptionsPage m_ui;
+};
+
+
+class OptionsPage : public Core::IOptionsPage
+{
+ Q_OBJECT
+
+public:
+ OptionsPage();
+ QString id() const;
+ QString trName() const;
+ QString category() const;
+ QString trCategory() const;
+
+ QWidget *createPage(QWidget *parent);
+ void apply();
+ void finish() { }
+
+signals:
+ void settingsChanged();
+
+private:
+ QPointer<OptionsPageWidget> optionsPageWidget;
+};
+
+} // namespace Internal
+} // namespace Mercurial
+
+#endif // OPTIONSPAGE_H