score
Home
Classes
Namespaces
Files
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
9
namespace
score
10
{
11
struct
DocumentContext;
12
}
13
namespace
Scenario
14
{
15
class
ScenarioDocumentView;
16
class
ScenarioDocumentPresenter;
17
}
18
19
namespace
JS
20
{
25
class
SCORE_PLUGIN_JS_EXPORT
JsViewContext
:
public
QObject
26
{
27
W_OBJECT(
JsViewContext
)
28
public
:
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
61
private
:
62
const
score::DocumentContext
* ctx();
63
Scenario::ScenarioDocumentView
* view();
64
Scenario::ScenarioDocumentPresenter
* pres();
65
};
66
}
JS::JsViewContext
Definition
ViewContext.hpp:26
Scenario::ScenarioDocumentPresenter
The ScenarioDocumentPresenter class.
Definition
ScenarioDocumentPresenter.hpp:59
Scenario::ScenarioDocumentView
Definition
ScenarioDocumentView.hpp:139
Scenario
Main plug-in of score.
Definition
score-plugin-dataflow/Dataflow/PortItem.hpp:13
score
Base toolkit upon which the software is built.
Definition
Application.cpp:113
score::DocumentContext
Definition
DocumentContext.hpp:18