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
templateoptionspage.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
QDESIGNER_TEMPLATEOPTIONS_H
5
#
define
QDESIGNER_TEMPLATEOPTIONS_H
6
7
#
include
<
QtDesigner
/
abstractoptionspage
.
h
>
8
9
#
include
<
QtCore
/
qpointer
.
h
>
10
#
include
<
QtCore
/
qstringlist
.
h
>
11
12
#
include
<
QtWidgets
/
qwidget
.
h
>
13
14
QT_BEGIN_NAMESPACE
15
16
class
QDesignerFormEditorInterface;
17
18
namespace
qdesigner_internal
{
19
20
namespace
Ui
{
21
class
TemplateOptionsWidget;
22
}
23
24
/* Present the user with a list of form template paths to save
25
* form templates. */
26
class
TemplateOptionsWidget
:
public
QWidget
27
{
28
Q_OBJECT
29
Q_DISABLE_COPY_MOVE(
TemplateOptionsWidget
)
30
public
:
31
explicit
TemplateOptionsWidget
(
QDesignerFormEditorInterface
*
core
,
32
QWidget
*
parent
=
nullptr
);
33
~
TemplateOptionsWidget
();
34
35
36
QStringList
templatePaths
()
const
;
37
void
setTemplatePaths
(
const
QStringList &l);
38
39
static
QString
chooseTemplatePath
(QDesignerFormEditorInterface *core, QWidget *parent);
40
41
private
slots
:
42
void
addTemplatePath
();
43
void
removeTemplatePath();
44
void
templatePathSelectionChanged();
45
46
private
:
47
QDesignerFormEditorInterface *m_core;
48
Ui
::TemplateOptionsWidget *m_ui;
49
};
50
51
class
TemplateOptionsPage
:
public
QDesignerOptionsPageInterface
52
{
53
Q_DISABLE_COPY_MOVE
(
TemplateOptionsPage
)
54
public
:
55
explicit
TemplateOptionsPage
(
QDesignerFormEditorInterface
*
core
);
56
57
QString
name
()
const
override
;
58
QWidget
*
createPage
(QWidget *parent)
override
;
59
void
apply
()
override
;
60
void
finish
()
override
;
61
62
private
:
63
QDesignerFormEditorInterface *m_core;
64
QStringList m_initialTemplatePaths;
65
QPointer<TemplateOptionsWidget> m_widget;
66
};
67
68
}
69
70
QT_END_NAMESPACE
71
72
#
endif
// QDESIGNER_TEMPLATEOPTIONS_H
qdesigner_internal::FormEditorOptionsPage
Definition
formeditor_optionspage.h:22
qdesigner_internal::FormEditorOptionsPage::FormEditorOptionsPage
FormEditorOptionsPage(QDesignerFormEditorInterface *core)
Definition
formeditor_optionspage.cpp:79
qdesigner_internal::FormEditorOptionsPage::name
QString name() const override
Definition
formeditor_optionspage.cpp:84
qdesigner_internal::FormEditorOptionsPage::finish
void finish() override
Definition
formeditor_optionspage.cpp:169
qdesigner_internal::FormEditorOptionsPage::createPage
QWidget * createPage(QWidget *parent) override
Definition
formeditor_optionspage.cpp:90
qdesigner_internal::FormEditorOptionsPage::apply
void apply() override
Definition
formeditor_optionspage.cpp:136
qdesigner_internal::FormEditor
Definition
formeditor.h:18
qdesigner_internal::FormEditor::FormEditor
FormEditor(const QStringList &pluginPaths, QObject *parent=nullptr)
Definition
formeditor.cpp:51
qdesigner_internal::FormEditor::~FormEditor
~FormEditor() override
qdesigner_internal::PreviewConfigurationWidget::PreviewConfigurationWidgetPrivate
Definition
previewconfigurationwidget.cpp:55
qdesigner_internal::TemplateOptionsPage
Definition
templateoptionspage.h:52
qdesigner_internal::TemplateOptionsPage::apply
void apply() override
Definition
templateoptionspage.cpp:131
qdesigner_internal::TemplateOptionsPage::name
QString name() const override
Definition
templateoptionspage.cpp:117
qdesigner_internal::TemplateOptionsPage::createPage
QWidget * createPage(QWidget *parent) override
Definition
templateoptionspage.cpp:123
qdesigner_internal::TemplateOptionsPage::finish
void finish() override
Definition
templateoptionspage.cpp:143
qdesigner_internal::TemplateOptionsWidget
Definition
templateoptionspage.h:27
qdesigner_internal::TemplateOptionsWidget::chooseTemplatePath
static QString chooseTemplatePath(QDesignerFormEditorInterface *core, QWidget *parent)
Definition
templateoptionspage.cpp:99
qdesigner_internal::TemplateOptionsWidget::~TemplateOptionsWidget
~TemplateOptionsWidget()
Definition
templateoptionspage.cpp:40
qdesigner_internal::TemplateOptionsWidget::setTemplatePaths
void setTemplatePaths(const QStringList &l)
Definition
templateoptionspage.cpp:55
qdesigner_internal::TemplateOptionsWidget::templatePaths
QStringList templatePaths() const
Definition
templateoptionspage.cpp:45
qdesigner_internal::ZoomSettingsWidget
Definition
formeditor_optionspage.cpp:31
QT_FORMEDITOR_EXPORT
#define QT_FORMEDITOR_EXPORT
Definition
formeditor_global.h:16
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
qdesigner_internal::Ui
Definition
templateoptionspage.h:20
qdesigner_internal
Auxiliary methods to store/retrieve settings.
Definition
buddyeditor.cpp:66
qttools
src
designer
src
components
formeditor
templateoptionspage.h
Generated on Sat Sep 21 2024 00:50:19 for Qt by
1.12.0