Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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