Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
newform.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
// Qt-Security score:significant reason:default
4
5
#
ifndef
NEWFORM_H
6
#
define
NEWFORM_H
7
8
#
include
<
QtWidgets
/
qdialog
.
h
>
9
10
QT_BEGIN_NAMESPACE
11
12
namespace
qdesigner_internal
{
13
class
DeviceProfile;
14
}
15
16
class
QDesignerFormEditorInterface;
17
class
QDesignerNewFormWidgetInterface;
18
class
QDesignerWorkbench
;
19
20
class
QCheckBox;
21
class
QAbstractButton;
22
class
QPushButton;
23
class
QDialogButtonBox;
24
class
QImage;
25
class
QIODevice;
26
27
class
NewForm
:
public
QDialog
28
{
29
Q_OBJECT
30
Q_DISABLE_COPY_MOVE(
NewForm
)
31
32
public
:
33
NewForm
(
QDesignerWorkbench
*
workbench
,
34
QWidget
*
parentWidget
,
35
// Use that file name instead of a temporary one
36
const
QString
&
fileName
=
QString
());
37
38
~
NewForm
()
override
;
39
40
// Convenience for implementing file dialogs with preview
41
static
QImage
grabForm
(QDesignerFormEditorInterface *core,
42
QIODevice &file,
43
const
QString &workingDir,
44
const
qdesigner_internal
::DeviceProfile &dp);
45
46
private
slots
:
47
void
slotButtonBoxClicked
(
QAbstractButton
*
btn
);
48
void
recentFileChosen();
49
void
slotCurrentTemplateChanged(
bool
templateSelected);
50
void
slotTemplateActivated();
51
52
private
:
53
QDialogButtonBox *createButtonBox();
54
bool
openTemplate(QString *ptrToErrorMessage);
55
56
QString m_fileName;
57
QDesignerNewFormWidgetInterface *m_newFormWidget;
58
QDesignerWorkbench
*m_workbench;
59
QCheckBox *m_chkShowOnStartup;
60
QPushButton *m_createButton;
61
QPushButton *m_recentButton;
62
QDialogButtonBox *m_buttonBox =
nullptr
;
63
};
64
65
QT_END_NAMESPACE
66
67
#
endif
// NEWFORM_H
NewForm
Definition
newform.h:28
NewForm::grabForm
static QImage grabForm(QDesignerFormEditorInterface *core, QIODevice &file, const QString &workingDir, const qdesigner_internal::DeviceProfile &dp)
Definition
newform.cpp:178
NewForm::~NewForm
~NewForm() override
Definition
newform.cpp:94
QDesignerActions
Definition
qdesigner_actions.h:43
QDesignerActions::openForm
bool openForm(QWidget *parent)
Definition
qdesigner_actions.cpp:591
QDesignerActions::recentFilesActions
QActionGroup * recentFilesActions() const
Definition
qdesigner_actions.cpp:949
QDesignerSettings
Definition
qdesigner_settings.h:22
QDesignerSettings::setShowNewFormOnStartup
void setShowNewFormOnStartup(bool showIt)
Definition
qdesigner_settings.cpp:110
QDesignerSettings::QDesignerSettings
QDesignerSettings(QDesignerFormEditorInterface *core)
Definition
qdesigner_settings.cpp:40
QDesignerSettings::showNewFormOnStartup
bool showNewFormOnStartup() const
Definition
qdesigner_settings.cpp:115
QDesignerWorkbench
Definition
qdesigner_workbench.h:44
QDesignerWorkbench::actionManager
QDesignerActions * actionManager() const
Definition
qdesigner_workbench.cpp:736
QDesignerWorkbench::core
QDesignerFormEditorInterface * core() const
Definition
qdesigner_workbench.cpp:537
QPainter::QWidget
friend class QWidget
Definition
qpainter.h:432
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qdesigner_internal
Auxiliary methods to store/retrieve settings.
Definition
buddyeditor.cpp:67
qttools
src
designer
src
designer
newform.h
Generated on
for Qt by
1.18.0