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
pluginmanager.cpp File Reference

(0ff34018a90aaac7d703272c08884a38558535c6)

#include "pluginmanager_p.h"
#include "qdesigner_utils_p.h"
#include "qdesigner_qsettings_p.h"
#include <QtDesigner/abstractformeditor.h>
#include <QtDesigner/qextensionmanager.h>
#include <QtDesigner/abstractlanguage.h>
#include <QtUiPlugin/customwidget.h>
#include <QtCore/qdir.h>
#include <QtCore/qfile.h>
#include <QtCore/qfileinfo.h>
#include <QtCore/qset.h>
#include <QtCore/qpluginloader.h>
#include <QtCore/qlibrary.h>
#include <QtCore/qlibraryinfo.h>
#include <QtCore/qdebug.h>
#include <QtCore/qmap.h>
#include <QtCore/qsettings.h>
#include <QtCore/qcoreapplication.h>
#include <QtCore/qxmlstream.h>
Include dependency graph for pluginmanager.cpp:

Go to the source code of this file.

Classes

class  QDesignerCustomWidgetSharedData
class  QDesignerPluginManagerPrivate

Enumerations

enum  { debugPluginManager = 0 , debugPluginManager = 0 }
enum  FindResult { FindError = -2 , ElementNotFound = -1 , FindError = -2 , ElementNotFound = -1 }
enum  { debugPluginManager = 0 , debugPluginManager = 0 }
enum  FindResult { FindError = -2 , ElementNotFound = -1 , FindError = -2 , ElementNotFound = -1 }

Functions

static QT_BEGIN_NAMESPACE QStringList unique (const QStringList &lst)
static QString getDesignerLanguage (QDesignerFormEditorInterface *core)
static int findElement (const QStringList &desiredElts, QXmlStreamReader &sr)
static QString msgXmlError (const QString &name, const QString &errorMessage)
static QString msgAttributeMissing (const QString &name)
static qdesigner_internal::TextPropertyValidationMode typeStringToType (const QString &v, bool *ok)
static bool parsePropertySpecs (QXmlStreamReader &sr, QDesignerCustomWidgetSharedData *data, QString *errorMessage)

Variables

static constexpr auto uiElementC = "ui"_L1
static constexpr auto languageAttributeC = "language"_L1
static constexpr auto widgetElementC = "widget"_L1
static constexpr auto displayNameAttributeC = "displayname"_L1
static constexpr auto classAttributeC = "class"_L1
static constexpr auto customwidgetElementC = "customwidget"_L1
static constexpr auto extendsElementC = "extends"_L1
static constexpr auto addPageMethodC = "addpagemethod"_L1
static constexpr auto propertySpecsC = "propertyspecifications"_L1
static constexpr auto stringPropertySpecC = "stringpropertyspecification"_L1
static constexpr auto propertyToolTipC = "tooltip"_L1
static constexpr auto stringPropertyNameAttrC = "name"_L1
static constexpr auto stringPropertyTypeAttrC = "type"_L1
static constexpr auto stringPropertyNoTrAttrC = "notr"_L1
static constexpr auto jambiLanguageC = "jambi"_L1

Enumeration Type Documentation

◆ anonymous enum [1/2]

anonymous enum
Enumerator
debugPluginManager 
debugPluginManager 

Definition at line 46 of file pluginmanager.cpp.

◆ anonymous enum [2/2]

anonymous enum
Enumerator
debugPluginManager 
debugPluginManager 

Definition at line 46 of file pluginmanager.cpp.

◆ FindResult [1/2]

enum FindResult
Enumerator
FindError 
ElementNotFound 
FindError 
ElementNotFound 

Definition at line 204 of file pluginmanager.cpp.

◆ FindResult [2/2]

enum FindResult
Enumerator
FindError 
ElementNotFound 
FindError 
ElementNotFound 

Definition at line 204 of file pluginmanager.cpp.

Function Documentation

◆ findElement()

int findElement ( const QStringList & desiredElts,
QXmlStreamReader & sr )
static

Definition at line 206 of file pluginmanager.cpp.

References ElementNotFound, and FindError.

◆ getDesignerLanguage()

QString getDesignerLanguage ( QDesignerFormEditorInterface * core)
inlinestatic

Definition at line 88 of file pluginmanager.cpp.

◆ msgAttributeMissing()

QString msgAttributeMissing ( const QString & name)
inlinestatic

Definition at line 232 of file pluginmanager.cpp.

◆ msgXmlError()

QString msgXmlError ( const QString & name,
const QString & errorMessage )
inlinestatic

Definition at line 227 of file pluginmanager.cpp.

◆ parsePropertySpecs()

bool parsePropertySpecs ( QXmlStreamReader & sr,
QDesignerCustomWidgetSharedData * data,
QString * errorMessage )
static

Definition at line 258 of file pluginmanager.cpp.

◆ typeStringToType()

◆ unique()

QT_BEGIN_NAMESPACE QStringList unique ( const QStringList & lst)
static

Definition at line 66 of file pluginmanager.cpp.

Variable Documentation

◆ addPageMethodC

constexpr auto addPageMethodC = "addpagemethod"_L1
staticconstexpr

Definition at line 37 of file pluginmanager.cpp.

◆ classAttributeC

constexpr auto classAttributeC = "class"_L1
staticconstexpr

Definition at line 34 of file pluginmanager.cpp.

◆ customwidgetElementC

constexpr auto customwidgetElementC = "customwidget"_L1
staticconstexpr

Definition at line 35 of file pluginmanager.cpp.

◆ displayNameAttributeC

constexpr auto displayNameAttributeC = "displayname"_L1
staticconstexpr

Definition at line 33 of file pluginmanager.cpp.

◆ extendsElementC

constexpr auto extendsElementC = "extends"_L1
staticconstexpr

Definition at line 36 of file pluginmanager.cpp.

◆ jambiLanguageC

constexpr auto jambiLanguageC = "jambi"_L1
staticconstexpr

Definition at line 44 of file pluginmanager.cpp.

◆ languageAttributeC

constexpr auto languageAttributeC = "language"_L1
staticconstexpr

Definition at line 31 of file pluginmanager.cpp.

◆ propertySpecsC

constexpr auto propertySpecsC = "propertyspecifications"_L1
staticconstexpr

Definition at line 38 of file pluginmanager.cpp.

◆ propertyToolTipC

constexpr auto propertyToolTipC = "tooltip"_L1
staticconstexpr

Definition at line 40 of file pluginmanager.cpp.

◆ stringPropertyNameAttrC

constexpr auto stringPropertyNameAttrC = "name"_L1
staticconstexpr

Definition at line 41 of file pluginmanager.cpp.

◆ stringPropertyNoTrAttrC

constexpr auto stringPropertyNoTrAttrC = "notr"_L1
staticconstexpr

Definition at line 43 of file pluginmanager.cpp.

◆ stringPropertySpecC

constexpr auto stringPropertySpecC = "stringpropertyspecification"_L1
staticconstexpr

Definition at line 39 of file pluginmanager.cpp.

◆ stringPropertyTypeAttrC

constexpr auto stringPropertyTypeAttrC = "type"_L1
staticconstexpr

Definition at line 42 of file pluginmanager.cpp.

◆ uiElementC

constexpr auto uiElementC = "ui"_L1
staticconstexpr

Definition at line 30 of file pluginmanager.cpp.

◆ widgetElementC

constexpr auto widgetElementC = "widget"_L1
staticconstexpr

Definition at line 32 of file pluginmanager.cpp.