MCPcopy Create free account
hub / github.com/KDE/kdevelop / initializeUi

Method initializeUi

kdevplatform/shell/debugcontroller.cpp:104–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void DebugController::initializeUi()
105{
106 if (m_uiInitialized) return;
107 m_uiInitialized = true;
108
109 if((Core::self()->setupFlags() & Core::NoUi)) return;
110 setupActions();
111
112 ICore::self()->uiController()->addToolView(
113 i18nc("@title:window", "Frame Stack"),
114 new DebuggerToolWithoutToolbarFactory<FramestackWidget>(this, QStringLiteral("org.kdevelop.debugger.StackView"),
115 Qt::BottomDockWidgetArea));
116
117 ICore::self()->uiController()->addToolView(
118 i18nc("@title:window", "Breakpoints"),
119 new DebuggerToolWithoutToolbarFactory<BreakpointWidget>(
120 this, QStringLiteral("org.kdevelop.debugger.BreakpointsView"), Qt::BottomDockWidgetArea));
121
122 ICore::self()->uiController()->addToolView(
123 variablesToolViewTitle(),
124 new DebuggerToolFactory<VariableWidget>(this, QStringLiteral("org.kdevelop.debugger.VariablesView"),
125 Qt::LeftDockWidgetArea));
126
127 ICore::self()->uiController()->activeMainWindow()->guiFactory()->addClient(this);
128
129 stateChanged(QStringLiteral("ended"));
130}
131
132
133void DebugController::cleanup()

Callers 1

MIDebuggerPluginMethod · 0.80

Calls 6

variablesToolViewTitleFunction · 0.85
setupFlagsMethod · 0.80
uiControllerMethod · 0.80
guiFactoryMethod · 0.80
addToolViewMethod · 0.45
activeMainWindowMethod · 0.45

Tested by

no test coverage detected