Loading...
Searching...
No Matches
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
14class QComboBox;
15class QWidget;
16namespace Scenario
17{
18class StateModel;
19class EventModel;
20class ExpressionEditorWidget;
21class MetadataWidget;
22class TriggerInspectorWidget;
29{
30 W_OBJECT(EventInspectorWidget)
31public:
32 explicit EventInspectorWidget(
33 const EventModel& object, const score::DocumentContext& context,
34 QWidget* parent = nullptr);
35
36public:
37 void expandEventSection(bool b) W_SIGNAL(expandEventSection, b);
38
39private:
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
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:13
Definition DocumentContext.hpp:18