graph_analysis
WidgetManager.hpp
Go to the documentation of this file.
1 #ifndef GRAPH_ANALYSIS_GUI_WIDGET_MANAGER_HPP
2 #define GRAPH_ANALYSIS_GUI_WIDGET_MANAGER_HPP
3 
4 #include <base-logging/Singleton.hpp>
5 #include <QMainWindow>
6 
7 namespace graph_analysis {
8 namespace gui {
9 
10  class GraphWidgetManager;
11  class GraphWidget;
12  class ComponentEditorWidget;
13  class LayerViewWidget;
14 
15 namespace dialogs {
16  class PropertyDialog;
17 }
18 
25 class WidgetManager : public base::Singleton<WidgetManager>
26 {
27 protected:
29  WidgetManager();
30  friend class base::Singleton<WidgetManager>;
31 public:
32 
34  GraphWidgetManager* getGraphWidgetManager(void);
36  void setGraphWidgetManager(GraphWidgetManager *graphManager);
37 
39  QMainWindow* getMainWindow(void);
41  void setMainWindow(QMainWindow *mainWindow);
42 
44  dialogs::PropertyDialog* getPropertyDialog(void);
46  void setPropertyDialog(dialogs::PropertyDialog *propertyDialog);
47 
49  void setWidget(GraphWidget* widget);
50 
51 private:
53  GraphWidgetManager *mpGraphWidgetManager;
55  QMainWindow *mpMainWindow;
57  dialogs::PropertyDialog *mpPropertyDialog;
58 };
59 
60 
61 } // end namespace gui
62 } // end namespace graph_analysis
63 
64 #endif // GRAPH_ANALYSIS_GUI_WIDGET_MANAGER_HPP
dockable multi-tab command panel for the entire GUI
Definition: PropertyDialog.hpp:60
Singleton to store handles on all main widgets.
Definition: WidgetManager.hpp:25
Base-class for visual representations of a "Graph" in this framework.
Definition: GraphWidget.hpp:26
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
The GraphWidgetManager loads and connect all main graph widget components.
Definition: GraphWidgetManager.hpp:40