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 }
 
enum  FindResult { FindError = -2 , ElementNotFound = -1 , FindError = -2 , ElementNotFound = -1 }
 
enum  { 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

anonymous enum
Enumerator
debugPluginManager 

Definition at line 46 of file pluginmanager.cpp.

◆ anonymous enum

anonymous enum
Enumerator
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()

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

Definition at line 206 of file pluginmanager.cpp.

References ElementNotFound, and FindError.

◆ getDesignerLanguage()

static QString getDesignerLanguage ( QDesignerFormEditorInterface * core)
inlinestatic

Definition at line 88 of file pluginmanager.cpp.

◆ msgAttributeMissing()

static QString msgAttributeMissing ( const QString & name)
inlinestatic

Definition at line 232 of file pluginmanager.cpp.

◆ msgXmlError()

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

Definition at line 227 of file pluginmanager.cpp.

◆ parsePropertySpecs()

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

Definition at line 258 of file pluginmanager.cpp.

◆ typeStringToType()

◆ unique()

static QT_BEGIN_NAMESPACE QStringList unique ( const QStringList & lst)
static

Definition at line 66 of file pluginmanager.cpp.

Variable Documentation

◆ addPageMethodC

static constexpr auto addPageMethodC = "addpagemethod"_L1
staticconstexpr

Definition at line 37 of file pluginmanager.cpp.

◆ classAttributeC

static constexpr auto classAttributeC = "class"_L1
staticconstexpr

Definition at line 34 of file pluginmanager.cpp.

◆ customwidgetElementC

static constexpr auto customwidgetElementC = "customwidget"_L1
staticconstexpr

Definition at line 35 of file pluginmanager.cpp.

◆ displayNameAttributeC

static constexpr auto displayNameAttributeC = "displayname"_L1
staticconstexpr

Definition at line 33 of file pluginmanager.cpp.

◆ extendsElementC

static constexpr auto extendsElementC = "extends"_L1
staticconstexpr

Definition at line 36 of file pluginmanager.cpp.

◆ jambiLanguageC

static constexpr auto jambiLanguageC = "jambi"_L1
staticconstexpr

Definition at line 44 of file pluginmanager.cpp.

◆ languageAttributeC

static constexpr auto languageAttributeC = "language"_L1
staticconstexpr

Definition at line 31 of file pluginmanager.cpp.

◆ propertySpecsC

static constexpr auto propertySpecsC = "propertyspecifications"_L1
staticconstexpr

Definition at line 38 of file pluginmanager.cpp.

◆ propertyToolTipC

static constexpr auto propertyToolTipC = "tooltip"_L1
staticconstexpr

Definition at line 40 of file pluginmanager.cpp.

◆ stringPropertyNameAttrC

static constexpr auto stringPropertyNameAttrC = "name"_L1
staticconstexpr

Definition at line 41 of file pluginmanager.cpp.

◆ stringPropertyNoTrAttrC

static constexpr auto stringPropertyNoTrAttrC = "notr"_L1
staticconstexpr

Definition at line 43 of file pluginmanager.cpp.

◆ stringPropertySpecC

static constexpr auto stringPropertySpecC = "stringpropertyspecification"_L1
staticconstexpr

Definition at line 39 of file pluginmanager.cpp.

◆ stringPropertyTypeAttrC

static constexpr auto stringPropertyTypeAttrC = "type"_L1
staticconstexpr

Definition at line 42 of file pluginmanager.cpp.

◆ uiElementC

static constexpr auto uiElementC = "ui"_L1
staticconstexpr

Definition at line 30 of file pluginmanager.cpp.

◆ widgetElementC

static constexpr auto widgetElementC = "widget"_L1
staticconstexpr

Definition at line 32 of file pluginmanager.cpp.