Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
embeddedoptionspage.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4
#
ifndef
EMBEDDEDOPTIONSPAGE_H
5
#
define
EMBEDDEDOPTIONSPAGE_H
6
7
#
include
<
QtDesigner
/
abstractoptionspage
.
h
>
8
#
include
<
QtCore
/
qpointer
.
h
>
9
#
include
<
QtWidgets
/
qwidget
.
h
>
10
11
QT_BEGIN_NAMESPACE
12
13
class
QDesignerFormEditorInterface;
14
15
namespace
qdesigner_internal
{
16
17
class
EmbeddedOptionsControlPrivate
;
18
19
/* EmbeddedOptions Control. Presents the user with a list of embedded
20
* device profiles he can modify/add/delete. */
21
class
EmbeddedOptionsControl
:
public
QWidget
{
22
Q_DISABLE_COPY_MOVE
(
EmbeddedOptionsControl
)
23
Q_OBJECT
24
public
:
25
explicit
EmbeddedOptionsControl
(
QDesignerFormEditorInterface
*
core
,
QWidget
*
parent
=
nullptr
);
26
~
EmbeddedOptionsControl
();
27
28
bool
isDirty
()
const
;
29
30
public
slots
:
31
void
loadSettings
();
32
void
saveSettings
();
33
34
private
slots
:
35
void
slotAdd
();
36
void
slotEdit();
37
void
slotDelete();
38
void
slotProfileIndexChanged(
int
);
39
40
private
:
41
friend
class
EmbeddedOptionsControlPrivate
;
42
43
EmbeddedOptionsControlPrivate
*m_d;
44
};
45
46
// EmbeddedOptionsPage
47
class
EmbeddedOptionsPage
:
public
QDesignerOptionsPageInterface
48
{
49
Q_DISABLE_COPY_MOVE
(
EmbeddedOptionsPage
)
50
public
:
51
explicit
EmbeddedOptionsPage
(
QDesignerFormEditorInterface
*
core
);
52
53
QString
name
()
const
override
;
54
QWidget
*
createPage
(QWidget *parent)
override
;
55
void
finish
()
override
;
56
void
apply
()
override
;
57
58
private
:
59
QDesignerFormEditorInterface *m_core;
60
QPointer<EmbeddedOptionsControl> m_embeddedOptionsControl;
61
};
62
63
}
// namespace qdesigner_internal
64
65
QT_END_NAMESPACE
66
67
#
endif
// EMBEDDEDOPTIONSPAGE_H
QPainter::QWidget
friend class QWidget
Definition
qpainter.h:421
qdesigner_internal::EmbeddedOptionsControlPrivate
Definition
embeddedoptionspage.cpp:61
qdesigner_internal::EmbeddedOptionsControlPrivate::isDirty
bool isDirty() const
Definition
embeddedoptionspage.cpp:67
qdesigner_internal::EmbeddedOptionsControlPrivate::init
void init(EmbeddedOptionsControl *q)
Definition
embeddedoptionspage.cpp:116
qdesigner_internal::EmbeddedOptionsControlPrivate::slotProfileIndexChanged
void slotProfileIndexChanged(int)
Definition
embeddedoptionspage.cpp:314
qdesigner_internal::EmbeddedOptionsControlPrivate::slotEdit
void slotEdit()
Definition
embeddedoptionspage.cpp:190
qdesigner_internal::EmbeddedOptionsControlPrivate::saveSettings
void saveSettings()
Definition
embeddedoptionspage.cpp:264
qdesigner_internal::EmbeddedOptionsControlPrivate::slotAdd
void slotAdd()
Definition
embeddedoptionspage.cpp:160
qdesigner_internal::EmbeddedOptionsControlPrivate::loadSettings
void loadSettings()
Definition
embeddedoptionspage.cpp:251
qdesigner_internal::EmbeddedOptionsControlPrivate::slotDelete
void slotDelete()
Definition
embeddedoptionspage.cpp:224
qdesigner_internal::EmbeddedOptionsControl
Definition
embeddedoptionspage.h:21
qdesigner_internal::EmbeddedOptionsControl::saveSettings
void saveSettings()
Definition
embeddedoptionspage.cpp:353
qdesigner_internal::EmbeddedOptionsControl::~EmbeddedOptionsControl
~EmbeddedOptionsControl()
Definition
embeddedoptionspage.cpp:328
qdesigner_internal::EmbeddedOptionsControl::isDirty
bool isDirty() const
Definition
embeddedoptionspage.cpp:363
qdesigner_internal::EmbeddedOptionsPage
Definition
embeddedoptionspage.h:48
qdesigner_internal::EmbeddedOptionsPage::createPage
QWidget * createPage(QWidget *parent) override
Definition
embeddedoptionspage.cpp:380
qdesigner_internal::EmbeddedOptionsPage::finish
void finish() override
Definition
embeddedoptionspage.cpp:415
qdesigner_internal::EmbeddedOptionsPage::apply
void apply() override
Definition
embeddedoptionspage.cpp:405
qdesigner_internal::EmbeddedOptionsPage::name
QString name() const override
Definition
embeddedoptionspage.cpp:374
qdesigner_internal
Auxiliary methods to store/retrieve settings.
Definition
buddyeditor.cpp:66
qdesigner_internal::deviceProfileLessThan
bool deviceProfileLessThan(const DeviceProfile &d1, const DeviceProfile &d2)
Definition
embeddedoptionspage.cpp:45
qdesigner_internal::profileComboIndexOffset
@ profileComboIndexOffset
Definition
embeddedoptionspage.cpp:42
qdesigner_internal::ask
static bool ask(QWidget *parent, QDesignerDialogGuiInterface *dlgui, const QString &title, const QString &what)
Definition
embeddedoptionspage.cpp:50
qttools
src
designer
src
components
formeditor
embeddedoptionspage.h
Generated on Sat Sep 21 2024 00:50:19 for Qt by
1.12.0