Changeset View
Changeset View
Standalone View
Standalone View
examples/window.h
1 | /* This file is part of the KDE project | 1 | /* This file is part of the KDE project | ||
---|---|---|---|---|---|
2 | Copyright (C) 2004-2005 Cedric Pasteur <cedric.pasteur@free.fr> | 2 | Copyright (C) 2004-2005 Cedric Pasteur <cedric.pasteur@free.fr> | ||
3 | Copyright (C) 2008-2009 Jarosław Staniek <staniek@kde.org> | 3 | Copyright (C) 2008-2017 Jarosław Staniek <staniek@kde.org> | ||
4 | 4 | | |||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or | ||
6 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public | ||
7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either | ||
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. | ||
9 | 9 | | |||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Library General Public License for more details. | 13 | Library General Public License for more details. | ||
14 | 14 | | |||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License | ||
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to | ||
17 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
18 | * Boston, MA 02110-1301, USA. | 18 | * Boston, MA 02110-1301, USA. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef WINDOW_H | 21 | #ifndef WINDOW_H | ||
22 | #define WINDOW_H | 22 | #define WINDOW_H | ||
23 | 23 | | |||
24 | #include <QCommandLineParser> | 24 | #include <QCommandLineParser> | ||
25 | #include <QWidget> | 25 | #include <QWidget> | ||
26 | #include <KPropertySet> | 26 | #include <KPropertySet> | ||
27 | 27 | | |||
28 | class QCheckBox; | | |||
29 | class KPropertyEditorView; | 28 | class KPropertyEditorView; | ||
30 | 29 | | |||
31 | /*! @internal | 30 | /*! @internal | ||
32 | * @short KPropertyExample application's main window */ | 31 | * @short KPropertyExample application's main window */ | ||
33 | class Window : public QWidget | 32 | class Window : public QWidget | ||
34 | { | 33 | { | ||
35 | Q_OBJECT | 34 | Q_OBJECT | ||
36 | public: | 35 | public: | ||
Show All 9 Lines | 43 | private: | |||
46 | 45 | | |||
47 | KPropertySet m_set; | 46 | KPropertySet m_set; | ||
48 | QCommandLineParser m_parser; | 47 | QCommandLineParser m_parser; | ||
49 | QCommandLineOption m_flatOption; | 48 | QCommandLineOption m_flatOption; | ||
50 | QCommandLineOption m_fontSizeOption; | 49 | QCommandLineOption m_fontSizeOption; | ||
51 | QCommandLineOption m_propertyOption; | 50 | QCommandLineOption m_propertyOption; | ||
52 | QCommandLineOption m_roOption; | 51 | QCommandLineOption m_roOption; | ||
53 | KPropertyEditorView *m_editorView; | 52 | KPropertyEditorView *m_editorView; | ||
54 | QCheckBox *m_showGrid; | | |||
55 | QCheckBox *m_showFrame; | | |||
56 | }; | 53 | }; | ||
57 | 54 | | |||
58 | #endif | 55 | #endif |