Big changes all around. Basic download works.
[mussorgsky] / ui / Mussorgsky.qml
1 import QtQuick 1.1
2 import com.meego 1.0
3
4 Page {
5
6     TabGroup {
7       id: tabGroup
8       currentTab: albumsTab
9       AlbumsPage {id: albumsTab }
10       SongsPage {id: othersTab}
11     }
12
13     tools: ToolBarLayout {
14         id: commonTools
15         visible: true
16         ButtonRow {
17              style: TabButtonStyle { }
18              TabButton {
19                   text: "Albums"
20                   tab: albumsTab
21              }
22              TabButton {
23                   text: "Songs"
24                   tab: othersTab
25              }
26         }
27         ToolIcon { platformIconId: "toolbar-view-menu";
28              anchors.right: parent===undefined ? undefined : parent.right
29              onClicked: (myMenu.status == DialogStatus.Closed) ? myMenu.open() : myMenu.close()
30         }
31     }
32
33     Menu {
34         id: myMenu
35         MenuLayout {
36             MenuItem { text: "Download all"; 
37                        onClicked: { missionControl.download_all (albumModel) }
38             }
39         }
40     }
41
42 }
43