Changeset View
Changeset View
Standalone View
Standalone View
shell/mainwindow_actions.cpp
Show All 34 Lines | |||||
35 | #include "documentcontroller.h" | 35 | #include "documentcontroller.h" | ||
36 | #include "mainwindow_p.h" | 36 | #include "mainwindow_p.h" | ||
37 | #include "uicontroller.h" | 37 | #include "uicontroller.h" | ||
38 | 38 | | |||
39 | #include "mainwindow.h" | 39 | #include "mainwindow.h" | ||
40 | #include "loadedpluginsdialog.h" | 40 | #include "loadedpluginsdialog.h" | ||
41 | 41 | | |||
42 | #include <interfaces/itoolviewactionlistener.h> | 42 | #include <interfaces/itoolviewactionlistener.h> | ||
43 | #include <util/scopeddialog.h> | ||||
43 | 44 | | |||
44 | namespace KDevelop { | 45 | namespace KDevelop { | ||
45 | 46 | | |||
46 | // merge the gotoNext and gotoPrev code, to prevent copy/paste errors | 47 | // merge the gotoNext and gotoPrev code, to prevent copy/paste errors | ||
47 | static void gotoPrevNextWindow(bool next) | 48 | static void gotoPrevNextWindow(bool next) | ||
48 | { | 49 | { | ||
49 | UiController* ui = Core::self()->uiControllerInternal(); | 50 | UiController* ui = Core::self()->uiControllerInternal(); | ||
50 | 51 | | |||
▲ Show 20 Lines • Show All 150 Lines • ▼ Show 20 Line(s) | |||||
201 | 202 | | |||
202 | void MainWindowPrivate::configureNotifications() | 203 | void MainWindowPrivate::configureNotifications() | ||
203 | { | 204 | { | ||
204 | KNotifyConfigWidget::configure(m_mainWindow); | 205 | KNotifyConfigWidget::configure(m_mainWindow); | ||
205 | } | 206 | } | ||
206 | 207 | | |||
207 | void MainWindowPrivate::showAboutPlatform() | 208 | void MainWindowPrivate::showAboutPlatform() | ||
208 | { | 209 | { | ||
209 | KAboutApplicationDialog dlg(Core::self()->aboutData(), m_mainWindow ); | 210 | ScopedDialog<KAboutApplicationDialog> dlg(Core::self()->aboutData(), m_mainWindow ); | ||
210 | dlg.exec(); | 211 | dlg->exec(); | ||
211 | } | 212 | } | ||
212 | 213 | | |||
213 | void MainWindowPrivate::showLoadedPlugins() | 214 | void MainWindowPrivate::showLoadedPlugins() | ||
214 | { | 215 | { | ||
215 | LoadedPluginsDialog dlg(m_mainWindow); | 216 | ScopedDialog<LoadedPluginsDialog> dlg(m_mainWindow); | ||
216 | dlg.exec(); | 217 | dlg->exec(); | ||
217 | } | 218 | } | ||
218 | 219 | | |||
219 | void MainWindowPrivate::contextMenuFileNew() | 220 | void MainWindowPrivate::contextMenuFileNew() | ||
220 | { | 221 | { | ||
221 | m_mainWindow->activateView(m_tabView); | 222 | m_mainWindow->activateView(m_tabView); | ||
222 | fileNew(); | 223 | fileNew(); | ||
223 | } | 224 | } | ||
224 | 225 | | |||
Show All 21 Lines |