InspectorPanel.hpp
1 #pragma once
2 
3 #include <Inspector/InspectorWidgetBase.hpp>
4 
5 #include <score/selection/Selection.hpp>
6 #include <score/selection/SelectionDispatcher.hpp>
7 
8 #include <QWidget>
9 
10 #include <verdigris>
11 
13 namespace Inspector
14 {
15 class InspectorWidgetList;
16 }
17 
18 class QTabWidget;
19 class QVBoxLayout;
20 namespace score
21 {
22 class SelectionStack;
23 } // namespace score
24 
25 namespace InspectorPanel
26 {
33 // TODO rename file
34 class InspectorPanelWidget final : public QObject
35 {
36  W_OBJECT(InspectorPanelWidget)
37 
38 public:
39  explicit InspectorPanelWidget(
41  QVBoxLayout* lay, QWidget* parent, QObject* parentObj);
42 
43 public:
50  void newItemsInspected(const Selection&);
51  W_SLOT(newItemsInspected);
52 
53 private:
54  QWidget* m_parent{};
55  QVBoxLayout* m_layout{};
56 
57  QWidget* m_currentInspector{};
58 
59  const Inspector::InspectorWidgetList& m_list;
60  score::SelectionDispatcher m_selectionDispatcher;
61 };
62 }
Base class for IdentifiedObject.
Definition: IdentifiedObjectAbstract.hpp:16
Definition: InspectorWidgetList.hpp:18
The InspectorPanel class manages the main panel.
Definition: InspectorPanel.hpp:35
void newItemsInspected(const Selection &)
newItemInspected load the view for the selected object
Definition: InspectorPanel.cpp:36
Definition: Selection.hpp:12
The SelectionDispatcher class.
Definition: SelectionDispatcher.hpp:15
The SelectionStack class.
Definition: SelectionStack.hpp:24
Classes used for making and extending the inspector (default right panel).
Definition: lib/score/widgets/Layout.hpp:27
Base toolkit upon which the software is built.
Definition: Application.cpp:90