@@ -0,0 +1,54 @@
2+ * Copyright (C) 2014 Canonical, Ltd.
4+ * This program is free software; you can redistribute it and/or modify
5+ * it under the terms of the GNU General Public License as published by
6+ * the Free Software Foundation; version 3.
8+ * This program is distributed in the hope that it will be useful,
9+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
10+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+ * GNU General Public License for more details.
13+ * You should have received a copy of the GNU General Public License
14+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
22+ signal clicked(int index, var result)
24+ property var cardTool: null
25+ property real scopeHeight: 0
26+ property real scopeWidth: 0
28+ orientation: ListView.Horizontal
29+ // TODO root.parent.scale
32+ spacing: units.gu(2) / root.parent.scale
38+ sourceComponent: cardTool.cardComponent
40+ item.fixedHeaderHeight = Qt.binding(function() { return cardTool.headerHeight / root.parent.scale; });
41+ item.fontScale = Qt.binding(function() { return 1 / root.parent.scale; });
42+ item.height = Qt.binding(function() { return root.scopeHeight; });
43+ item.width = Qt.binding(function() { return root.scopeWidth; });
44+ item.cardData = Qt.binding(function() { return model; });
45+ item.template = Qt.binding(function() { return cardTool.template; });
46+ item.components = Qt.binding(function() { return cardTool.components; });
51+ onClicked: root.clicked(index, result)