2 * satk - SIM application toolkit
3 * Copyright © 2011, Intel Corporation.
5 * This program is licensed under the terms and conditions of the
6 * Apache License, version 2.0. The full text of the Apache License is at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Written by - Luc Yriarte <luc.yriarte@linux.intel.com>
16 \brief Menu list view.
19 \li itemSelected(int selection)
24 - \b menuView : Menu list view.
26 - itemSelected(int selection)
35 import MeeGo.Components 0.1
41 width: stkTheme.viewWidth
42 height: stkTheme.viewHeight
45 StkTheming { id: stkTheme }
46 color: stkTheme.viewBackgroundColor
48 signal itemSelected(int selection)
49 onItemSelected: console.log("Item selected: " + selection)
51 onGoBack: console.log("Go back")
53 onEndSession: console.log("End session")
57 objectName: "menuView"
59 delegate: menuDelegate
60 highlight: Rectangle {
61 color: theme.fontColorHighlight
64 highlightFollowsCurrentItem: true
65 anchors.top: icon.bottom
67 anchors.left: parent.left
68 anchors.leftMargin: 10
69 anchors.bottom: parent.bottom
70 anchors.bottomMargin: 10
71 anchors.right: parent.right
72 anchors.rightMargin: 10
74 signal itemSelected(int selection)
76 currentIndex = selection;
77 view.itemSelected(selection)
88 anchors.verticalCenter: parent.verticalCenter
92 onClicked: menuView.itemSelected(index)
97 verticalAlignment: Text.AlignVCenter
98 color: stkTheme.menuItemFontColor
99 font.pixelSize: stkTheme.menuItemFontPixelSize
102 width: menuView.width
103 anchors.top: parent.top
104 anchors.left: parent.left
105 anchors.bottom: parent.bottom
106 onClicked: menuView.itemSelected(index)
115 anchors.right: parent.right
116 anchors.bottom: parent.bottom
117 onGoBack: view.goBack();
118 onEndSession: view.endSession();
124 text: "SIM Application Toolkit"
125 anchors.top: parent.top
126 anchors.topMargin: 10
127 anchors.left: icon.right
128 anchors.leftMargin: 10
129 anchors.right: parent.right
130 anchors.rightMargin: 10
131 wrapMode: Text.WordWrap
132 color: stkTheme.titleFontColor
133 font.pixelSize: stkTheme.titleFontPixelSize
141 anchors.top: parent.top
142 anchors.topMargin: 10
143 anchors.left: parent.left
144 anchors.leftMargin: 10