Loading...
Searching...
No Matches
ViewContext.hpp
1#pragma once
2#include <score_plugin_js_export.h>
3
4#include <QObject>
5#include <QString>
6
7#include <verdigris>
8
9namespace score
10{
11struct DocumentContext;
12}
13namespace Scenario
14{
15class ScenarioDocumentView;
16class ScenarioDocumentPresenter;
17}
18
19namespace JS
20{
25class SCORE_PLUGIN_JS_EXPORT JsViewContext : public QObject
26{
27 W_OBJECT(JsViewContext)
28public:
29 // Screenshots
30 bool grabScene(QString path);
31 W_SLOT(grabScene)
32 bool grabMainWindow(QString path);
33 W_SLOT(grabMainWindow)
34 bool grabScreen(QString path);
35 W_SLOT(grabScreen)
36
37 // Zoom / scroll
38 void zoom(double zx, double zy);
39 W_SLOT(zoom)
40 void scroll(double dx, double dy);
41 W_SLOT(scroll)
42 void setZoomRatio(double r);
43 W_SLOT(setZoomRatio)
44
45 // Navigation / focus
46 void centerOn(QObject* process);
47 W_SLOT(centerOn)
48 void goToInterval(QObject* interval);
49 W_SLOT(goToInterval)
50 void fit();
51 W_SLOT(fit)
52 void recenter();
53 W_SLOT(recenter)
54
55 // Dataflow / temporal mode
56 void setNodal(bool nodal);
57 W_SLOT(setNodal)
58 bool isNodal();
59 W_SLOT(isNodal)
60
61private:
62 const score::DocumentContext* ctx();
65};
66}
Definition ViewContext.hpp:26
The ScenarioDocumentPresenter class.
Definition ScenarioDocumentPresenter.hpp:59
Definition ScenarioDocumentView.hpp:139
Main plug-in of score.
Definition score-plugin-dataflow/Dataflow/PortItem.hpp:13
Base toolkit upon which the software is built.
Definition Application.cpp:113
Definition DocumentContext.hpp:18