-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.qml
69 lines (55 loc) · 1.83 KB
/
main.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import QtQuick 2.2
import Painter 1.0
PainterPlugin {
// starts a timer that will trigger the 'onTick' callback at regular interval
tickIntervalMS: -1 // -1 mean disabled (default value)
// starts a JSON server on the given port:
// you send javascript that will be evaluated and you get the result in JSON format
jsonServerPort: 60042 // -1 mean disabled (default value)
Component.onCompleted: {
// Called after the object has been instantiated.
// This can be used to execute script code at startup,
// once the full QML environment has been established.
alg.log.info("Component.onCompleted");
var qmlToolbar = alg.ui.addToolBarWidget( "toolbar.qml" )
qmlToolbar.windowReference = submitDialog
}
onTick: {
// Do something at each tick, depending on tickIntervalMS value
alg.log.info("onTick")
}
onConfigure: {
// Do something when the user request the plugin configuration panel
configurePanel.open()
}
onApplicationStarted: {
// Called when the application is started
alg.log.info("onApplicationStarted")
}
onNewProjectCreated: {
// Called when a new project is created, before the onProjectOpened callback
alg.log.info("onNewProjectCreated")
}
onProjectOpened: {
// Called when the project is fully loaded
alg.log.info("onProjectOpened")
}
onProjectAboutToClose: {
// Called before project unload
alg.log.info("onProjectAboutToClose")
}
onProjectAboutToSave: {
// Called before a save, 'destination_url' parameter contains the save destination
alg.log.info("onProjectAboutToSave: "+destination_url)
}
onProjectSaved: {
// Called after the project was saved
alg.log.info("onProjectSaved")
}
SubmitDialog {
id: submitDialog
}
ConfigurePanel {
id: configurePanel
}
}