| 1 |
#cxx . . $ `<file>/src/qmltermwidget_plugin.cpp`/include "qmltermwidget_plugin.h"cxx . . $ `<file>/src/qmltermwidget_plugin.h`/ |
| 2 |
|
| •3 |
#include "ColorScheme.h"cxx . . $ `<file>/lib/ColorScheme.h`/ |
| 4 |
#include "TerminalDisplay.h"cxx . . $ `<file>/lib/TerminalDisplay.h`/ |
| 5 |
#include "ksession.h"cxx . . $ `<file>/src/ksession.h`/ |
| 6 |
|
| 7 |
#include <qqml.h> |
| 8 |
#include <QQmlEngine> |
| 9 |
#include <QDir> |
| 10 |
|
| 11 |
using namespace Konsole; |
| 12 |
|
| •13 |
static QObjectcxx . . $ QObject# *colorschememanager_providercxx . . $ colorschememanager_provider(bb5c9267d46df6de).(QQmlEnginecxx . . $ QQmlEngine# *engine, QJSEnginecxx . . $ QJSEngine# *scriptEngine) |
| 14 |
{ |
| 15 |
Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(engine) |
| 16 |
Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(scriptEngine) |
| 17 |
|
| 18 |
return ColorSchemeManagercxx . . $ Konsole/ColorSchemeManager#::instancecxx . . $ Konsole/ColorSchemeManager#instance(604bba33ddb2d782).(); |
| 19 |
} |
| 20 |
|
| 21 |
void QmltermwidgetPlugincxx . . $ QmltermwidgetPlugin#::registerTypescxx . . $ QmltermwidgetPlugin#registerTypes(85c52e162fed56f9).(const char *uri) |
| 22 |
{ |
| 23 |
// @uri org.qterminal.qmlterminal |
| 24 |
qmlRegisterTypecxx . . $ qmlRegisterType(f18a5d83a8a5ac9a).<TerminalDisplaycxx . . $ Konsole/TerminalDisplay#>(uri, 1, 0, "QMLTermWidget"); |
| 25 |
qmlRegisterTypecxx . . $ qmlRegisterType(f18a5d83a8a5ac9a).<KSessioncxx . . $ KSession#>(uri, 1, 0, "QMLTermSession"); |
| •26 |
qmlRegisterUncreatableTypecxx . . $ qmlRegisterUncreatableType(1cba59732ddb4f3e).<const Konsolecxx . . $ Konsole/::ColorSchemecxx . . $ Konsole/ColorScheme#>(uri, 1, 0, "ColorScheme", QStringLiteralcxx . . $ `<external>/2817157206922689722/qstringliteral.h:65:9`!("Not instantiatable")); |
| 27 |
qmlRegisterSingletonTypecxx . . $ qmlRegisterSingletonType(191e4453460aa164).<ColorSchemeManagercxx . . $ Konsole/ColorSchemeManager#>(uri, 1, 0, "ColorSchemeManager", colorschememanager_providercxx . . $ colorschememanager_provider(bb5c9267d46df6de).); |
| 28 |
} |
| 29 |
|
| 30 |
void QmltermwidgetPlugincxx . . $ QmltermwidgetPlugin#::initializeEnginecxx . . $ QmltermwidgetPlugin#initializeEngine(68a49fb6b837e584).(QQmlEnginecxx . . $ QQmlEngine# *engine, const char *uri) |
| 31 |
{ |
| 32 |
QQmlExtensionPlugincxx . . $ QQmlExtensionPlugin#::initializeEnginecxx . . $ QQmlExtensionPlugin#initializeEngine(68a49fb6b837e584).(engine, uri); |
| 33 |
|
| 34 |
QStringListcxx . . $ QStringList# pwds = engine->importPathListcxx . . $ QQmlEngine#importPathList(e1dbd5c4feadc8f5).(); |
| 35 |
|
| 36 |
if (!pwds.emptycxx . . $ QList#empty(50ce9a9e25b4a850).()){ |
| 37 |
|
| 38 |
QStringcxx . . $ QString# cscxx . . $ QString#QString(ced63f7c635d850d)., kblcxx . . $ QString#QString(ced63f7c635d850d).; |
| 39 |
|
| 40 |
foreachcxx . . $ `<external>/15045578679651060896/qglobal.h:1145:13`! (QString pwd, pwds) { |
| 41 |
cs =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). pwd +cxx . . $ operator+(3d22f08efddf8107). "/QMLTermWidget/color-schemes"; |
| 42 |
kbl =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). pwd +cxx . . $ operator+(3d22f08efddf8107). "/QMLTermWidget/kb-layouts"; |
| 43 |
if (QDircxx . . $ QDir#QDir(3520e46b33348bf6).(cs).existscxx . . $ QDir#exists(50ce9a9e25b4a850).()) break; |
| 44 |
} |
| 45 |
|
| 46 |
setenv("KB_LAYOUT_DIR",kbl.toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).(),1); |
| 47 |
setenv("COLORSCHEMES_DIR",cs.toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).(),1); |
| 48 |
} |
| 49 |
} |