Debian Codegraph @

include/BALL/VIEW/PLUGIN/modularWidgetPlugin.h

raw symbols SCIP
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4
5 #ifndef BALL_VIEW_PLUGIN_MODULARWIDGETPLUGIN_H
6 #define BALL_VIEW_PLUGIN_MODULARWIDGETPLUGIN_H
7
8 #ifndef BALL_VIEW_PLUGIN_VIEWPLUGIN_H
9 # include <BALL/VIEW/PLUGIN/VIEWPlugin.h>
10 #endif
11
12 #ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
13 # include <BALL/VIEW/KERNEL/modularWidget.h>
14 #endif
15
16 namespace BALL
17 {
18 namespace VIEW
19 {
20 class MainControl;
21
22 class ModularWidgetPlugin
23 {
24 public:
25 virtual ~ModularWidgetPlugin() {}
26
27 /** Set the main control.
28 * Each widget plugin has to know which main control is responsible for
29 * the widget it creates.
30 *
31 * Note: The main control has to be set before activating the plugin!
32 *
33 * @param main_control Main control repsonsible for the widget
34 */
35 virtual void setMainControl(MainControl* main_control) { main_control_ = main_control; }
36
37 protected:
38 MainControl* main_control_;
39 };
40 }
41 }
42
43 Q_DECLARE_INTERFACE(BALL::VIEW::ModularWidgetPlugin, "org.ball-project.Plugin.ModularWidgetPlugin/1.0")
44
45 #endif // BALL_VIEW_PLUGIN_MODULARWIDGETPLUGIN_H