18 import Ubuntu.Components 0.1
20 import
"../Components"
25 property alias scope: scopeView.scope
26 property alias previewOpen: previewListView.open
28 property ListModel searchHistory
31 signal gotoScope(
string scopeId)
32 signal openScope(var scope)
41 x: previewListView.open ? -width : 0
42 Behavior on x { UbuntuNumberAnimation { } }
50 isCurrent: scope != null
51 tabBarHeight: scopeItemPageHeader.implicitHeight
52 pageHeader: scopeItemPageHeader
53 previewListView: previewListView
56 target: scopeView.isCurrent ? scope : null
57 onGotoScope: root.gotoScope(scopeId);
58 onOpenScope: root.openScope(scope);
63 id: scopeItemPageHeader
65 searchEntryEnabled:
true
66 searchHistory: root.searchHistory
70 onBackClicked: root.back();
77 verticalCenter: parent.verticalCenter
79 text: scope ? scope.name :
""
82 font.weight: Font.Light
84 elide: Text.ElideRight
87 bottomItem: DashDepartments {
89 width: parent.width <= units.gu(60) ? parent.width : units.gu(40)
90 anchors.right: parent.right
91 windowHeight: root.height
92 windowWidth: root.width
100 pageHeader: scopeItemPageHeader
103 height: parent.height
104 anchors.left: scopeViewHolder.right