Loading...
Searching...
No Matches
ReferencesDialog.hpp
1#pragma once
2#include <QDialog>
3#include <QMetaObject>
4#include <QPointer>
5
6#include <vector>
7
8#include <score_plugin_engine_export.h>
9
10class QLabel;
11class QPushButton;
12class QTreeWidget;
13namespace score
14{
15struct DocumentContext;
16struct GUIApplicationContext;
17}
18namespace LocalTree
19{
21class SCORE_PLUGIN_ENGINE_EXPORT ReferencesDialog final : public QDialog
22{
23public:
24 explicit ReferencesDialog(const score::GUIApplicationContext& ctx, QWidget* parent);
26
27 void setDocument(const score::DocumentContext* doc);
28
29private:
30 void refresh();
31 void locate();
32 void rebind();
33
34 QLabel* m_summary{};
35 QTreeWidget* m_tree{};
36 QPushButton* m_locate{};
37 QPushButton* m_rebind{};
39 QObject* referrer(int row) const;
40 std::vector<QPointer<QObject>> m_referrers;
41 const score::DocumentContext* m_doc{};
42 QMetaObject::Connection m_connection;
43};
44}
Lists the broken references of a document, to locate or retarget them.
Definition ReferencesDialog.hpp:22
Local tree provides a way to extend the tree given through the Engine::Network::LocalDevice.
Definition BaseCallbackWrapper.hpp:9
Base toolkit upon which the software is built.
Definition Application.cpp:108
Definition DocumentContext.hpp:18
Specializes ApplicationContext with the QMainWindow.
Definition GUIApplicationContext.hpp:15