|
| ScriptUnit (IScriptEngineFactory *factory, QObject *parent=nullptr) |
|
| ScriptUnit (const QString &filePath, IScriptEngineFactory *factory, QObject *parent=nullptr) |
|
QString | absoluteFilePath () const |
|
QString | fileName () const |
|
bool | isLoaded () const |
|
QTextDocument * | script () |
|
const QTextDocument * | script () const |
|
QString | scriptText () const |
|
void | setScriptText (const QString &plainText) |
|
| IScriptUnit () |
|
| QObject (QObject *parent) |
|
| QObject (QObject *parent, const char *name) |
|
bool | blockSignals (bool block) |
|
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
|
const QObjectList & | children () const |
|
const char * | className () const |
|
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
|
void | deleteLater () |
|
void | destroyed (QObject *obj) |
|
bool | disconnect (const QObject *receiver, const char *method) |
|
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
|
void | dumpObjectInfo () |
|
void | dumpObjectTree () |
|
QList< QByteArray > | dynamicPropertyNames () const |
|
virtual bool | event (QEvent *e) |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
T | findChild (const QString &name) const |
|
QList< T > | findChildren (const QRegExp ®Exp) const |
|
QList< T > | findChildren (const QString &name) const |
|
bool | inherits (const char *className) const |
|
void | insertChild (QObject *object) |
|
void | installEventFilter (QObject *filterObj) |
|
bool | isA (const char *className) const |
|
bool | isWidgetType () const |
|
void | killTimer (int id) |
|
virtual const QMetaObject * | metaObject () const |
|
void | moveToThread (QThread *targetThread) |
|
const char * | name () const |
|
const char * | name (const char *defaultName) const |
|
QString | objectName () const |
|
QObject * | parent () const |
|
QVariant | property (const char *name) const |
|
void | removeChild (QObject *object) |
|
void | removeEventFilter (QObject *obj) |
|
void | setName (const char *name) |
|
void | setObjectName (const QString &name) |
|
void | setParent (QObject *parent) |
|
bool | setProperty (const char *name, const QVariant &value) |
|
bool | signalsBlocked () const |
|
int | startTimer (int interval) |
|
QThread * | thread () const |
|
Public Member Functions inherited from IOutputHandler |
| IOutputHandler () |
|
virtual void | print (const QString &message)=0 |
|
|
void | error (const QString &error) |
|
void | fileNameChanged () |
|
void | printed (const QString &message) |
|
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
|
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
|
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
|
QString | tr (const char *sourceText, const char *disambiguation, int n) |
|
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
|
QByteArray | normalizeSignalSlot (const char *signalSlot) |
|
QString | absoluteFilePath |
|
QString | fileName |
|
bool | isLoaded |
|
QTextDocument | script |
|
QString | scriptText |
|
| objectName |
|
It is a default implementation of the IScriptUnit interface.
The IScriptCollection interface is a storage for that units so you usually should to get IScriptCollection reference to create or to get some script unit.
This class itself does not provide any GUI capabilities, indeed it is rendered using ScriptUnitView widget. Since script is stored as text inside the QTextDocument, it is possible to setup this document to widgets like QTextEdit. It allows to use all benefits like code highliting and undo/redo.
- See Also
- IScriptCollection, ScriptUnitView