@@ -1,81 +0,0 @@
1−import QtQuick 2.4
2−import QtQuick.Window 2.2
3−import QMenuModel 0.1
4−import Ubuntu.Components 1.3
5−import Unity.ApplicationMenu 0.1
6−import Unity.Indicators 0.1 as Indicators
7−import "../Components"
8−
9−Window {
10− id: root
11− width: units.gu(100)
12− height: units.gu(100)
13− visible: true
14−
15− ListModel {
16− id: surfaceIds
17− }
18−
19− Flickable {
20− anchors.fill: parent
21− contentHeight: row.height
22−
23− Row {
24− id: row
25− anchors {
26− left: parent.left
27− right: parent.right
28− }
29− spacing: units.gu(1)
30−
31− Repeater {
32− model: surfaceIds
33−
34− TextArea {
35− id: textArea
36− text: printer.text
37− autoSize: true
38− maximumLineCount: 20
39−
40− anchors {
41− left: parent.left
42− right: parent.right
43− margins: units.gu(1)
44− }
45− height: implicitHeight
46−
47− Indicators.SharedUnityMenuModel {
48− id: sharedAppModel
49− property var menus: ApplicationMenuRegistry.getMenusForSurface(surfaceId)
50− property var menuService: menus.length > 0 ? menus[0] : null
51−
52− busName: menuService ? menuService.service : ""
53− menuObjectPath: menuService && menuService.menuPath ? menuService.menuPath : ""
54− actions: menuService && menuService.actionPath ? { "unity": menuService.actionPath } : {}
55−
56− onBusNameChanged: console.log("BUS NAME", busName)
57− onMenuObjectPathChanged: console.log("MENU PATH", menuObjectPath)
58− onActionsChanged: console.log("ACTIONS", menuService.actionPath)
59− }
60−
61− Indicators.ModelPrinter {
62− id: printer
63− model: sharedAppModel.model
64− }
65− }
66− }
67− }
68− }
69−
70− Connections {
71− target: ApplicationMenuRegistry
72− onSurfaceMenuRegistered: {
73− console.log("REGISTERED SURFACE!", surfaceId)
74− surfaceIds.append({ "surfaceId": surfaceId });
75− }
76−
77− onAppMenuRegistered: {
78− console.log("REGISTERED PROCESS!", processId);
79− }
80− }
81−}