Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/shell/mainwindow.cpp
Show First 20 Lines • Show All 339 Lines • ▼ Show 20 Line(s) | 333 | { | |||
---|---|---|---|---|---|
340 | connect( Core::self()->pluginController(), &IPluginController::pluginLoaded, | 340 | connect( Core::self()->pluginController(), &IPluginController::pluginLoaded, | ||
341 | d, &MainWindowPrivate::addPlugin); | 341 | d, &MainWindowPrivate::addPlugin); | ||
342 | connect( Core::self()->pluginController(), &IPluginController::pluginUnloaded, | 342 | connect( Core::self()->pluginController(), &IPluginController::pluginUnloaded, | ||
343 | d, &MainWindowPrivate::removePlugin); | 343 | d, &MainWindowPrivate::removePlugin); | ||
344 | connect( Core::self()->partController(), &IPartController::activePartChanged, | 344 | connect( Core::self()->partController(), &IPartController::activePartChanged, | ||
345 | d, &MainWindowPrivate::activePartChanged); | 345 | d, &MainWindowPrivate::activePartChanged); | ||
346 | connect( this, &MainWindow::activeViewChanged, | 346 | connect( this, &MainWindow::activeViewChanged, | ||
347 | d, &MainWindowPrivate::changeActiveView); | 347 | d, &MainWindowPrivate::changeActiveView); | ||
348 | connect(Core::self()->sourceFormatterControllerInternal(), &SourceFormatterController::hasFormattersChanged, | ||||
349 | d, &MainWindowPrivate::updateSourceFormatterGuiClient); | ||||
348 | 350 | | |||
349 | foreach(IPlugin* plugin, Core::self()->pluginController()->loadedPlugins()) | 351 | foreach(IPlugin* plugin, Core::self()->pluginController()->loadedPlugins()) | ||
350 | d->addPlugin(plugin); | 352 | d->addPlugin(plugin); | ||
351 | 353 | | |||
352 | guiFactory()->addClient(Core::self()->sessionController()); | 354 | guiFactory()->addClient(Core::self()->sessionController()); | ||
355 | if (Core::self()->sourceFormatterControllerInternal()->hasFormatters()) { | ||||
353 | guiFactory()->addClient(Core::self()->sourceFormatterControllerInternal()); | 356 | guiFactory()->addClient(Core::self()->sourceFormatterControllerInternal()); | ||
357 | } | ||||
354 | 358 | | |||
355 | // Needed to re-plug the actions from the sessioncontroller as xmlguiclients don't | 359 | // Needed to re-plug the actions from the sessioncontroller as xmlguiclients don't | ||
356 | // seem to remember which actions where plugged in. | 360 | // seem to remember which actions where plugged in. | ||
357 | Core::self()->sessionController()->updateXmlGuiActionList(); | 361 | Core::self()->sessionController()->updateXmlGuiActionList(); | ||
358 | 362 | | |||
359 | d->setupGui(); | 363 | d->setupGui(); | ||
360 | 364 | | |||
361 | //Queued so we process it with some delay, to make sure the rest of the UI has already adapted | 365 | //Queued so we process it with some delay, to make sure the rest of the UI has already adapted | ||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |