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
qdesigner.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
QDESIGNER_H
6
#
define
QDESIGNER_H
7
8
#
include
"helpclient.h"
9
10
#
include
<
QtWidgets
/
qapplication
.
h
>
11
12
#
include
<
QtCore
/
qpointer
.
h
>
13
#
include
<
QtCore
/
qversionnumber
.
h
>
14
15
#
include
<
optional
>
16
17
QT_BEGIN_NAMESPACE
18
19
#
define
qDesigner
20
(
static_cast
<
QDesigner
*
>
(
QCoreApplication
::
instance
(
)
)
)
21
22
class
QDesignerWorkbench;
23
class
QDesignerToolWindow
;
24
class
MainWindowBase
;
25
class
QErrorMessage;
26
class
QCommandLineParser;
27
struct
Options
;
28
29
struct
Options
30
{
31
QStringList
files
;
32
QString
resourceDir
;
33
QStringList
pluginPaths
;
34
std
::
optional
<
QVersionNumber
>
qtVersion
;
35
QString
localSocketServerName
;
36
bool
server
{
false
};
37
quint16
tcpClientPort
{0};
38
bool
enableInternalDynamicProperties
{
false
};
39
HelpClientType
helpMode
{
HelpClientType
::
Assistant
};
40
};
41
42
class
QDesigner
:
public
QApplication
43
{
44
Q_OBJECT
45
public
:
46
enum
ParseArgumentsResult
{
47
ParseArgumentsSuccess
,
48
ParseArgumentsError
,
49
ParseArgumentsHelpRequested
50
};
51
52
QDesigner
(
int
&argc,
char
**argv);
53
~
QDesigner
()
override
;
54
55
ParseArgumentsResult
parseCommandLineArguments
();
56
57
QDesignerWorkbench
*
workbench
()
const
;
58
bool
isServerOrClientEnabled
()
const
;
59
MainWindowBase
*
mainWindow
()
const
;
60
void
setMainWindow
(
MainWindowBase
*tw);
61
62
protected
:
63
bool
event
(QEvent *ev)
override
;
64
65
signals
:
66
void
initialized
();
67
68
public
slots
:
69
void
showErrorMessage
(
const
QString
&
message
);
70
71
private
:
72
void
showErrorMessageBox(
const
QString &);
73
74
QObject *m_server =
nullptr
;
75
QObject *m_client =
nullptr
;
76
QDesignerWorkbench
*m_workbench =
nullptr
;
77
QPointer<MainWindowBase> m_mainWindow;
78
QPointer<QErrorMessage> m_errorMessageDialog;
79
80
QString m_initializationErrors;
81
QString m_lastErrorMessage;
82
};
83
84
QT_END_NAMESPACE
85
86
#
endif
// QDESIGNER_H
MainWindowBase
Definition
mainwindow.h:34
QDesignerToolWindow
Definition
qdesigner_toolwindow.h:40
QDesignerWorkbench
Definition
qdesigner_workbench.h:44
QDesigner
Definition
qdesigner.h:43
QDesigner::parseCommandLineArguments
ParseArgumentsResult parseCommandLineArguments()
Definition
qdesigner.cpp:225
QDesigner::QDesigner
QDesigner(int &argc, char **argv)
Definition
qdesigner.cpp:56
QDesigner::event
bool event(QEvent *ev) override
\reimp
Definition
qdesigner.cpp:306
QDesigner::setMainWindow
void setMainWindow(MainWindowBase *tw)
Definition
qdesigner.cpp:334
QDesigner::workbench
QDesignerWorkbench * workbench() const
Definition
qdesigner.cpp:113
QDesigner::isServerOrClientEnabled
bool isServerOrClientEnabled() const
Definition
qdesigner.cpp:301
QDesigner::~QDesigner
~QDesigner() override
Definition
qdesigner.cpp:69
QDesigner::mainWindow
MainWindowBase * mainWindow() const
Definition
qdesigner.cpp:339
HelpClientType
HelpClientType
Definition
helpclient.h:17
HelpClientType::Assistant
@ Assistant
Definition
helpclient.h:17
main
int main(int argc, char *argv[])
[ctor_close]
Definition
src_corelib_animation_qpropertyanimation.cpp:100
Options
Definition
main.cpp:95
Options::server
bool server
Definition
qdesigner.h:36
Options::enableInternalDynamicProperties
bool enableInternalDynamicProperties
Definition
qdesigner.h:38
Options::helpMode
HelpClientType helpMode
Definition
qdesigner.h:39
Options::resourceDir
QString resourceDir
Definition
qdesigner.h:32
Options::tcpClientPort
quint16 tcpClientPort
Definition
qdesigner.h:37
Options::files
QStringList files
Definition
qdesigner.h:31
Options::qtVersion
std::optional< QVersionNumber > qtVersion
Definition
qdesigner.h:34
Options::pluginPaths
QStringList pluginPaths
Definition
qdesigner.h:33
Options::localSocketServerName
QString localSocketServerName
Definition
qdesigner.h:35
qttools
src
designer
src
designer
qdesigner.h
Generated on
for Qt by
1.18.0