2013-07-10 11:05:54 +02:00
|
|
|
import QtQuick 2.0
|
2012-06-05 17:34:19 +02:00
|
|
|
import MuseScore 1.0
|
|
|
|
|
|
|
|
|
|
|
|
MuseScore {
|
2012-12-04 11:18:32 +01:00
|
|
|
menuPath: "Plugins.panel"
|
|
|
|
version: "2.0"
|
|
|
|
description: "This demo plugin creates a GUI panel."
|
2012-07-17 15:22:46 +02:00
|
|
|
|
2012-12-04 11:18:32 +01:00
|
|
|
pluginType: "dock"
|
|
|
|
dockArea: "left"
|
2012-06-08 19:06:52 +02:00
|
|
|
|
2012-12-04 11:18:32 +01:00
|
|
|
width: 150
|
|
|
|
height: 75
|
|
|
|
onRun: console.log("hello panel");
|
2012-06-05 17:34:19 +02:00
|
|
|
|
2012-12-04 11:18:32 +01:00
|
|
|
Rectangle {
|
|
|
|
color: "grey"
|
|
|
|
anchors.fill: parent
|
2012-06-05 17:34:19 +02:00
|
|
|
|
2012-12-04 11:18:32 +01:00
|
|
|
Text {
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
text: "Hello Panel"
|
|
|
|
}
|
2012-06-05 17:34:19 +02:00
|
|
|
|
2012-12-04 11:18:32 +01:00
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
|
|
|
onClicked: Qt.quit()
|
2012-06-05 17:34:19 +02:00
|
|
|
}
|
2012-12-04 11:18:32 +01:00
|
|
|
}
|
|
|
|
}
|
2012-06-05 17:34:19 +02:00
|
|
|
|