Changeset View
Changeset View
Standalone View
Standalone View
interfaces/iplugin.h
Show First 20 Lines • Show All 170 Lines • ▼ Show 20 Line(s) | 144 | public: | |||
---|---|---|---|---|---|
171 | { | 171 | { | ||
172 | return qobject_cast<Extension*>(this); | 172 | return qobject_cast<Extension*>(this); | ||
173 | } | 173 | } | ||
174 | 174 | | |||
175 | /** | 175 | /** | ||
176 | * Ask the plugin for a ContextActionContainer, which contains actions | 176 | * Ask the plugin for a ContextActionContainer, which contains actions | ||
177 | * that will be merged into the context menu. | 177 | * that will be merged into the context menu. | ||
178 | * @param context the context describing where the context menu was requested | 178 | * @param context the context describing where the context menu was requested | ||
179 | * @param parent a widget to use for memory manageent of QActions, QMenus etc. created only for this request | ||||
179 | * @returns a container describing which actions to merge into which context menu part | 180 | * @returns a container describing which actions to merge into which context menu part | ||
180 | */ | 181 | */ | ||
181 | virtual ContextMenuExtension contextMenuExtension( KDevelop::Context* context ); | 182 | virtual ContextMenuExtension contextMenuExtension(KDevelop::Context* context, QWidget* parent); | ||
182 | 183 | | |||
183 | /** | 184 | /** | ||
184 | * Can create a new KXMLGUIClient, and set it up correctly with all the plugins per-window GUI actions. | 185 | * Can create a new KXMLGUIClient, and set it up correctly with all the plugins per-window GUI actions. | ||
185 | * | 186 | * | ||
186 | * The caller owns the created object, including all contained actions. The object is destroyed as soon as | 187 | * The caller owns the created object, including all contained actions. The object is destroyed as soon as | ||
187 | * the mainwindow is closed. | 188 | * the mainwindow is closed. | ||
188 | * | 189 | * | ||
189 | * The default implementation calls the convenience function @ref createActionsForMainWindow and uses it to fill a custom KXMLGUIClient. | 190 | * The default implementation calls the convenience function @ref createActionsForMainWindow and uses it to fill a custom KXMLGUIClient. | ||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |