2 #include <State/Message.hpp>
3 #include <State/Value.hpp>
5 #include <Device/ItemModels/NodeBasedItemModel.hpp>
6 #include <Device/Node/DeviceNode.hpp>
8 #include <Explorer/Explorer/Column.hpp>
10 #include <score/document/DocumentContext.hpp>
12 #include <QAbstractItemModel>
14 #include <QStringList>
16 #include <qnamespace.h>
18 #include <score_plugin_deviceexplorer_export.h>
25 class CommandStackFacade;
29 struct DeviceSettings;
30 struct AddressSettings;
35 class ListeningManager;
36 class DeviceDocumentPlugin;
37 class DeviceEditDialog;
38 class DeviceExplorerView;
39 class DeviceExplorerWidget;
71 using QAbstractItemModel::beginResetModel;
72 using QAbstractItemModel::endResetModel;
80 const Device::Node& rootNode()
const override {
return m_rootNode; }
87 DeviceDocumentPlugin& deviceModel()
const;
88 QModelIndexList selectedIndexes()
const;
111 bool checkDeviceEditable(
117 bool checkAddressEditable(
121 int columnCount()
const;
122 QStringList getColumns()
const;
123 bool isEmpty()
const;
124 bool isDevice(QModelIndex index)
const;
127 void debug_printIndexes(
const QModelIndexList& indexes);
129 int columnCount(
const QModelIndex& parent)
const override;
131 QVariant data(
const QModelIndex& index,
int role)
const override;
132 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const override;
134 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
136 bool setData(
const QModelIndex& index,
const QVariant& value,
int role)
override;
137 bool setHeaderData(
int, Qt::Orientation,
const QVariant&,
int = Qt::EditRole)
override;
140 const Device::NodePath& path, Column column,
const ossia::value& value,
int role);
141 void editData(
Device::Node& n, Column column,
const ossia::value& value,
int role);
143 Qt::DropActions supportedDropActions()
const override;
144 Qt::DropActions supportedDragActions()
const override;
145 QStringList mimeTypes()
const override;
146 QMimeData* mimeData(
const QModelIndexList& indexes)
const override;
147 bool canDropMimeData(
148 const QMimeData* data, Qt::DropAction action,
int row,
int column,
149 const QModelIndex& parent)
const override;
151 const QMimeData* mimeData, Qt::DropAction action,
int row,
int column,
152 const QModelIndex& parent)
override;
154 SelectedNodes uniqueSelectedNodes(
const QModelIndexList& indexes)
161 E_SIGNAL(SCORE_PLUGIN_DEVICEEXPLORER_EXPORT, nodeChanged, n)
167 DeviceDocumentPlugin& m_devicePlugin;
169 QModelIndex bottomIndex(
const QModelIndex& index)
const;
180 SCORE_PLUGIN_DEVICEEXPLORER_EXPORT State::MessageList
184 deviceExplorerFromObject(
const QObject&);
186 try_deviceExplorerFromObject(
const QObject&);
194 makeFullAddressAccessorSettings(
196 ossia::value min, ossia::value max, ossia::value cur);
Definition: NodeBasedItemModel.hpp:18
Definition: DeviceExplorerModel.hpp:67
Definition: DeviceExplorerView.hpp:18
Path in a tree of QAbstractItemModel objects.
Definition: TreePath.hpp:34
A small abstraction layer over the score::CommandStack.
Definition: CommandStackFacade.hpp:20
Manipulation of Devices from Qt.
Definition: AddressSettings.cpp:14
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: AddressSettings.hpp:49
Definition: DeviceSettings.hpp:20
Definition: AddressSettings.hpp:131
The SelectedNodes struct.
Definition: DeviceExplorerModel.hpp:53
std::vector< Device::Node * > parents
parents The topmost parents of the selected parameters
Definition: DeviceExplorerModel.hpp:57
std::vector< Device::Node * > messages
messages The selected messages
Definition: DeviceExplorerModel.hpp:62
Definition: Address.hpp:108
Definition: DocumentContext.hpp:18