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
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
4#ifndef QDESIGNER_H
5#define QDESIGNER_H
6
7#include "helpclient.h"
8
9#include <QtWidgets/qapplication.h>
10
11#include <QtCore/qlibraryinfo.h>
12#include <QtCore/qpointer.h>
13#include <QtCore/qversionnumber.h>
14
15#include <optional>
16
17QT_BEGIN_NAMESPACE
18
19#define qDesigner
20 (static_cast<QDesigner*>(QCoreApplication::instance()))
21
22class QDesignerWorkbench;
24class MainWindowBase;
25class QDesignerServer;
26class QDesignerClient;
27class QErrorMessage;
28class QCommandLineParser;
29struct Options;
30
31struct Options
32{
37 bool server{false};
41};
42
44{
46public:
52
53 QDesigner(int &argc, char **argv);
55
57
59 QDesignerServer *server() const;
60 bool isServerOrClientEnabled() const;
63
64protected:
65 bool event(QEvent *ev) override;
66
69
70public slots:
71 void showErrorMessage(const QString &message);
72
73private:
74 void showErrorMessageBox(const QString &);
75
76 QDesignerServer *m_server = nullptr;
77 QDesignerClient *m_client = nullptr;
78 QDesignerWorkbench *m_workbench = nullptr;
79 QPointer<MainWindowBase> m_mainWindow;
80 QPointer<QErrorMessage> m_errorMessageDialog;
81
82 QString m_initializationErrors;
83 QString m_lastErrorMessage;
84};
85
86QT_END_NAMESPACE
87
88#endif // QDESIGNER_H
ParseArgumentsResult parseCommandLineArguments()
QDesigner(int &argc, char **argv)
Definition qdesigner.cpp:54
bool event(QEvent *ev) override
\reimp
QDesignerServer * server() const
void setMainWindow(MainWindowBase *tw)
QDesignerWorkbench * workbench() const
bool isServerOrClientEnabled() const
~QDesigner() override
Definition qdesigner.cpp:67
MainWindowBase * mainWindow() const
HelpClientType
Definition helpclient.h:16
int main(int argc, char *argv[])
[ctor_close]
bool server
Definition qdesigner.h:37
bool enableInternalDynamicProperties
Definition qdesigner.h:39
HelpClientType helpMode
Definition qdesigner.h:40
QString resourceDir
Definition qdesigner.h:34
QStringList files
Definition qdesigner.h:33
std::optional< QVersionNumber > qtVersion
Definition qdesigner.h:36
quint16 clientPort
Definition qdesigner.h:38
QStringList pluginPaths
Definition qdesigner.h:35