Changeset View
Changeset View
Standalone View
Standalone View
kate/katepluginmanager.cpp
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | 60 | const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("ktexteditor"), [](const KPluginMetaData & md) { | |||
---|---|---|---|---|---|
61 | return md.serviceTypes().contains(QStringLiteral("KTextEditor/Plugin")); | 61 | return md.serviceTypes().contains(QStringLiteral("KTextEditor/Plugin")); | ||
62 | }); | 62 | }); | ||
63 | 63 | | |||
64 | /** | 64 | /** | ||
65 | * move them to our internal data structure | 65 | * move them to our internal data structure | ||
66 | * activate some plugins per default | 66 | * activate some plugins per default | ||
67 | */ | 67 | */ | ||
68 | QSet<QString> defaultPlugins; | 68 | QSet<QString> defaultPlugins; | ||
69 | defaultPlugins.insert(QLatin1String("cuttlefishplugin")); // this comes with package plasma5-sdk but it won't hurt to list it here | ||||
70 | defaultPlugins.insert(QLatin1String("katefilebrowserplugin")); | ||||
69 | defaultPlugins.insert (QLatin1String("katefiletreeplugin")); | 71 | defaultPlugins.insert(QLatin1String("katefiletreeplugin")); | ||
70 | defaultPlugins.insert (QLatin1String("tabswitcherplugin")); | 72 | defaultPlugins.insert(QLatin1String("katekonsoleplugin")); | ||
71 | defaultPlugins.insert (QLatin1String("kateprojectplugin")); | 73 | defaultPlugins.insert(QLatin1String("kateprojectplugin")); | ||
72 | defaultPlugins.insert (QLatin1String("katesearchplugin")); | 74 | defaultPlugins.insert(QLatin1String("katesearchplugin")); | ||
75 | defaultPlugins.insert(QLatin1String("ktexteditorpreviewplugin")); | ||||
76 | defaultPlugins.insert(QLatin1String("tabswitcherplugin")); | ||||
73 | defaultPlugins.insert (QLatin1String("textfilterplugin")); | 77 | defaultPlugins.insert(QLatin1String("textfilterplugin")); | ||
74 | m_pluginList.clear(); | 78 | m_pluginList.clear(); | ||
75 | QVectorIterator<KPluginMetaData> i(plugins); | 79 | QVectorIterator<KPluginMetaData> i(plugins); | ||
76 | QSet<QString> unique; | 80 | QSet<QString> unique; | ||
77 | while (i.hasNext()) { | 81 | while (i.hasNext()) { | ||
78 | KatePluginInfo info; | 82 | KatePluginInfo info; | ||
79 | info.metaData = i.next(); | 83 | info.metaData = i.next(); | ||
80 | 84 | | |||
81 | // only load plugins once, even if found multiple times! | 85 | // only load plugins once, even if found multiple times! | ||
▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines |