LibEngsas
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
src
lib
core
esettingsdialog.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2010 - 2012 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
3
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Lesser General Public
6
License as published by the Free Software Foundation; either
7
version 2.1 of the License, or (at your option) any later version.
8
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Lesser General Public License for more details.
13
14
You should have received a copy of the GNU Lesser General Public
15
License along with this library; if not, write to the Free Software
16
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17
MA 02110-1301 USA.
18
*/
19
20
21
#ifndef ESETTINGSDIALOG_H
22
#define ESETTINGSDIALOG_H
23
24
#include "
eglobal.h
"
25
#include "
edialog.h
"
26
27
namespace
Ui
28
{
29
class
ESettingsDialog
;
30
}
31
32
class
ESettingsModel
;
33
34
#include <QModelIndex>
35
36
class
QTreeView;
37
class
QStackedWidget;
38
class
QLabel;
39
47
class
E_CORE_EXPORT
ESettingsDialog
:
public
EDialog
{
48
Q_OBJECT
49
public
:
50
ESettingsDialog
(
ESettingsModel
*model, QWidget* parent = 0, Qt::WindowFlags fl = 0 );
51
~
ESettingsDialog
();
52
53
public
slots:
54
int
exec();
55
56
private
slots:
57
void
itemSelected(QModelIndex index);
58
bool
saveSettings();
59
void
saveQuit();
60
void
cancel();
61
void
setError(QString msg);
62
63
protected
:
64
void
closeEvent
( QCloseEvent* event );
65
66
private
:
67
ESettingsModel
*
model
;
68
QTreeView *
view
;
69
QStackedWidget *
stack
;
70
QLabel *
errorLabel
;
71
Ui::ESettingsDialog *
m_ui
;
72
73
};
74
75
#endif // ESETTINGSDIALOG_H
76
Generated by
1.8.1.2