dRonin
adbada4
dRonin GCS
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Groups
Pages
settingsdialog.h
Go to the documentation of this file.
1
13
/*
14
* This program is free software; you can redistribute it and/or modify
15
* it under the terms of the GNU General Public License as published by
16
* the Free Software Foundation; either version 3 of the License, or
17
* (at your option) any later version.
18
*
19
* This program is distributed in the hope that it will be useful, but
20
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22
* for more details.
23
*
24
* You should have received a copy of the GNU General Public License along
25
* with this program; if not, see <http://www.gnu.org/licenses/>
26
*/
27
28
#ifndef SETTINGSDIALOG_H
29
#define SETTINGSDIALOG_H
30
31
#include "ui_settingsdialog.h"
32
33
#include <QtCore/QList>
34
35
#include "
coreplugin/dialogs/ioptionspage.h
"
36
37
namespace
Core {
38
39
class
UAVGadgetInstanceManager;
40
41
namespace
Internal {
42
43
class
SettingsDialog
:
public
QDialog,
public
::Ui::SettingsDialog
44
{
45
Q_OBJECT
46
47
public
:
48
SettingsDialog
(QWidget *parent,
const
QString &initialCategory = QString(),
49
const
QString &initialPage = QString());
50
~SettingsDialog
();
51
52
// Run the dialog and return true if 'Ok' was choosen or 'Apply' was invoked
53
// at least once
54
bool
execDialog
();
55
void
insertPage
(
IOptionsPage
*page);
56
void
deletePage
();
57
void
updateText
(QString text);
58
void
disableApplyOk
(
bool
disable);
59
60
signals:
61
void
settingsDialogShown
(
Core::Internal::SettingsDialog
*);
62
void
settingsDialogRemoved
();
63
void
categoryItemSelected
();
64
65
public
slots:
66
void
done
(
int
);
67
68
private
slots:
69
void
pageSelected();
70
void
accept();
71
void
reject();
72
void
apply();
73
void
categoryItemSelectedShowChildInstead();
74
75
private
:
76
QList<Core::IOptionsPage *>
m_pages;
77
QMap<QString, QList<QTreeWidgetItem *> *> m_categoryItemsMap;
78
UAVGadgetInstanceManager
*m_instanceManager;
79
bool
m_applied;
80
QString m_currentCategory;
81
QString m_currentPage;
82
int
m_windowWidth;
83
int
m_windowHeight;
84
};
85
86
}
// namespace Internal
87
}
// namespace Core
88
89
#endif // SETTINGSDIALOG_H
ioptionspage.h
Core::Internal::SettingsDialog::disableApplyOk
void disableApplyOk(bool disable)
Definition:
settingsdialog.cpp:335
Core::Internal::SettingsDialog::categoryItemSelected
void categoryItemSelected()
Core::Internal::SettingsDialog::SettingsDialog
SettingsDialog(QWidget *parent, const QString &initialCategory=QString(), const QString &initialPage=QString())
Definition:
settingsdialog.cpp:83
Core::Internal::SettingsDialog::updateText
void updateText(QString text)
Definition:
settingsdialog.cpp:329
Core::Internal::SettingsDialog
Definition:
settingsdialog.h:43
Core::Internal::SettingsDialog::~SettingsDialog
~SettingsDialog()
Definition:
settingsdialog.cpp:223
Core::Internal::SettingsDialog::deletePage
void deletePage()
Definition:
settingsdialog.cpp:273
Core::Internal::SettingsDialog::done
void done(int)
Definition:
settingsdialog.cpp:388
QList< Core::IOptionsPage * >
Core::Internal::SettingsDialog::insertPage
void insertPage(IOptionsPage *page)
Definition:
settingsdialog.cpp:288
Core::IOptionsPage
The IOptionsPage is an interface for providing options pages.
Definition:
ioptionspage.h:42
Core::Internal::SettingsDialog::settingsDialogShown
void settingsDialogShown(Core::Internal::SettingsDialog *)
Core::Internal::SettingsDialog::execDialog
bool execDialog()
Definition:
settingsdialog.cpp:379
Core::UAVGadgetInstanceManager
Definition:
uavgadgetinstancemanager.h:54
Core::Internal::SettingsDialog::settingsDialogRemoved
void settingsDialogRemoved()
ground
gcs
src
plugins
coreplugin
dialogs
settingsdialog.h
Generated by
1.8.6