EventInspectorWidget.hpp
1 #pragma once
2 
3 #include <Scenario/Inspector/Expression/ExpressionMenu.hpp>
4 
5 #include <Inspector/InspectorSectionWidget.hpp>
6 #include <Inspector/InspectorWidgetBase.hpp>
7 
8 #include <score/selection/SelectionDispatcher.hpp>
9 
10 #include <list>
11 #include <vector>
12 #include <verdigris>
13 
14 class QComboBox;
15 class QWidget;
16 namespace Scenario
17 {
18 class StateModel;
19 class EventModel;
20 class ExpressionEditorWidget;
21 class MetadataWidget;
22 class TriggerInspectorWidget;
29 {
30  W_OBJECT(EventInspectorWidget)
31 public:
32  explicit EventInspectorWidget(
33  const EventModel& object, const score::DocumentContext& context,
34  QWidget* parent = nullptr);
35 
36 public:
37  void expandEventSection(bool b) W_SIGNAL(expandEventSection, b);
38 
39 private:
40  void updateDisplayedValues();
41  void on_conditionChanged();
42  void on_conditionReset();
43 
44  std::vector<QWidget*> m_properties;
45 
46  QPointer<const EventModel> m_model;
47  const score::DocumentContext& m_context;
48  CommandDispatcher<> m_commandDispatcher;
49  score::SelectionDispatcher m_selectionDispatcher;
50 
51  MetadataWidget* m_metadata{};
52 
53  ExpressionMenu m_menu;
54  ExpressionEditorWidget* m_exprEditor{};
55  QComboBox* m_offsetBehavior{};
56 };
57 }
The CommandDispatcher class.
Definition: CommandDispatcher.hpp:13
The InspectorWidgetBase class Set the global structuration for an inspected element.
Definition: InspectorWidgetBase.hpp:37
The EventInspectorWidget class Inherits from InspectorWidgetInterface.
Definition: EventInspectorWidget.hpp:29
EventInspectorWidget(const EventModel &object, const score::DocumentContext &context, QWidget *parent=nullptr)
Definition: EventInspectorWidget.cpp:50
Definition: EventModel.hpp:36
Definition: ExpressionEditorWidget.hpp:32
Definition: ExpressionMenu.hpp:15
Definition: MetadataWidget.hpp:47
The SelectionDispatcher class.
Definition: SelectionDispatcher.hpp:15
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: DocumentContext.hpp:18