OSDN Git Service

Fixes: change license headers to LGPL
[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) 2009 Nokia Corporation and/or its subsidiary(-ies).
6 **
7 ** Contact:  Qt Software Information (qt-info@nokia.com)
8 **
9 ** Commercial Usage
10 **
11 ** Licensees holding valid Qt Commercial licenses may use this file in
12 ** accordance with the Qt Commercial License Agreement provided with the
13 ** Software or, alternatively, in accordance with the terms contained in
14 ** a written agreement between you and Nokia.
15 **
16 ** GNU Lesser General Public License Usage
17 **
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file.  Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 **
25 ** If you are unsure which license is appropriate for your use, please
26 ** contact the sales department at qt-sales@nokia.com.
27 **
28 **************************************************************************/
29
30 #ifndef GENERALSETTINGS_H
31 #define GENERALSETTINGS_H
32
33 #include <coreplugin/dialogs/ioptionspage.h>
34 #include <QtGui/QWidget>
35
36 QT_BEGIN_NAMESPACE
37 class Ui_GeneralSettings;
38 QT_END_NAMESPACE
39
40 namespace Core {
41 namespace Internal {
42
43 class GeneralSettings : public IOptionsPage
44 {
45     Q_OBJECT
46
47 public:
48     GeneralSettings();
49
50     QString name() const;
51     QString category() const;
52     QString trCategory() const;
53     QWidget* createPage(QWidget *parent);
54     void apply();
55     void finish();
56
57 private slots:
58     void resetInterfaceColor();
59     void resetExternalEditor();
60     void showHelpForExternalEditor();
61
62 private:
63     Ui_GeneralSettings *m_page;
64     QWidget *m_dialog;
65 };
66
67 } // namespace Internal
68 } // namespace Core
69
70 #endif // GENERALSETTINGS_H