Loading...
Searching...
No Matches
AddressBarWidget.hpp
1#pragma once
2#include <score/model/path/ObjectPath.hpp>
3
4#include <QWidget>
5
6#include <score_plugin_scenario_export.h>
7
8#include <verdigris>
9
10class QHBoxLayout;
11namespace score
12{
13struct DocumentContext;
14}
15namespace Scenario
16{
17class IntervalModel;
18
26class SCORE_PLUGIN_SCENARIO_EXPORT AddressBarWidget final : public QWidget
27{
28 W_OBJECT(AddressBarWidget)
29public:
30 explicit AddressBarWidget(
31 const score::DocumentContext& ctx, QWidget* parent = nullptr);
32 ~AddressBarWidget() override;
33
34 void setTargetObject(ObjectPath&& path);
35
36public:
37 void intervalSelected(IntervalModel* itv)
38 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, intervalSelected, itv)
39
40private:
41 void clear();
42
43 const score::DocumentContext& m_ctx;
44 QHBoxLayout* m_layout{};
45 std::vector<QWidget*> m_items;
46 ObjectPath m_currentPath;
47};
48}
The ObjectPath class.
Definition ObjectPath.hpp:37
Clickable path of the interval shown in the central view.
Definition AddressBarWidget.hpp:27
Definition IntervalModel.hpp:50
Main plug-in of score.
Definition score-plugin-dataflow/Dataflow/PortItem.hpp:13
Base toolkit upon which the software is built.
Definition Application.cpp:116
Definition DocumentContext.hpp:18