1
/******************************************************************************
2
* Copyright (C) 2012 by Savoir-Faire Linux *
3
* Author : Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com> *
5
* This library is free software; you can redistribute it and/or *
6
* modify it under the terms of the GNU Lesser General Public *
7
* License as published by the Free Software Foundation; either *
8
* version 2.1 of the License, or (at your option) any later version. *
10
* This library is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
13
* Lesser General Public License for more details. *
15
* You should have received a copy of the Lesser GNU General Public License *
16
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
17
*****************************************************************************/
19
import org.kde.plasma.components 0.1 as Plasma
26
function displayTabs(index) {
29
contactList.visible = false
30
callList.visible = true
31
historyList.visible = false
32
bookmarkList.visible= false
33
settingsTab.visible = false
36
contactList.visible = true
37
callList.visible = false
38
historyList.visible = false
39
bookmarkList.visible= false
40
settingsTab.visible = false
43
contactList.visible = false
44
historyList.visible = true
45
callList.visible = false
46
bookmarkList.visible= false
47
settingsTab.visible = false
50
contactList.visible = false
51
historyList.visible = false
52
callList.visible = false
53
bookmarkList.visible= true
54
settingsTab.visible = false
57
contactList.visible = false
58
callList.visible = false
59
historyList.visible = false
60
bookmarkList.visible= false
61
settingsTab.visible = true
66
//Buggy, awaiting fix upstream, test often
70
text: Array("New calls","Contacts","History","Bookmarks","Settings")[index]
72
tabBar.displayTabs(index)
78
iconSource: "call-start"
86
iconSource: "user-identity"
94
iconSource: "view-history"
102
iconSource: "favorites"
104
tabBar.displayTabs(3)
109
iconSource: "configure"
112
tabBar.displayTabs(4)