OSDN Git Service

Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline
[qt-creator-jp/qt-creator-jp.git] / src / plugins / coreplugin / generalsettings.h
1 /***************************************************************************
2 **
3 ** This file is part of Qt Creator
4 **
5 ** Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
6 **
7 ** Contact:  Qt Software Information (qt-info@nokia.com)
8 **
9 **
10 ** Non-Open Source Usage
11 **
12 ** Licensees may use this file in accordance with the Qt Beta Version
13 ** License Agreement, Agreement version 2.2 provided with the Software or,
14 ** alternatively, in accordance with the terms contained in a written
15 ** agreement between you and Nokia.
16 **
17 ** GNU General Public License Usage
18 **
19 ** Alternatively, this file may be used under the terms of the GNU General
20 ** Public License versions 2.0 or 3.0 as published by the Free Software
21 ** Foundation and appearing in the file LICENSE.GPL included in the packaging
22 ** of this file.  Please review the following information to ensure GNU
23 ** General Public Licensing requirements will be met:
24 **
25 ** http://www.fsf.org/licensing/licenses/info/GPLv2.html and
26 ** http://www.gnu.org/copyleft/gpl.html.
27 **
28 ** In addition, as a special exception, Nokia gives you certain additional
29 ** rights. These rights are described in the Nokia Qt GPL Exception
30 ** version 1.3, included in the file GPL_EXCEPTION.txt in this package.
31 **
32 ***************************************************************************/
33
34 #ifndef GENERALSETTINGS_H
35 #define GENERALSETTINGS_H
36
37 #include <coreplugin/dialogs/ioptionspage.h>
38 #include <QtGui/QWidget>
39
40 QT_BEGIN_NAMESPACE
41 class Ui_GeneralSettings;
42 QT_END_NAMESPACE
43
44 namespace Core {
45 namespace Internal {
46
47 class GeneralSettings : public IOptionsPage
48 {
49     Q_OBJECT
50
51 public:
52     GeneralSettings();
53
54     QString name() const;
55     QString category() const;
56     QString trCategory() const;
57     QWidget* createPage(QWidget *parent);
58     void apply();
59     void finish();
60
61 private slots:
62     void resetInterfaceColor();
63     void resetExternalEditor();
64     void showHelpForExternalEditor();
65
66 private:
67     Ui_GeneralSettings *m_page;
68     QWidget *m_dialog;
69 };
70
71 } // namespace Internal
72 } // namespace Core
73
74 #endif // GENERALSETTINGS_H