~ubuntu-branches/ubuntu/oneiric/kdepim/oneiric-updates

« back to all changes in this revision

Viewing changes to mobile/mail/AclEditor.qml

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-06-28 19:33:24 UTC
  • mfrom: (0.2.13) (0.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20110628193324-8yvjs8sdv9rdoo6c
Tags: 4:4.7.0-0ubuntu1
* New upstream release
  - update install files
  - add missing kdepim-doc package to control file
  - Fix Vcs lines
  - kontact breaks/replaces korganizer << 4:4.6.80
  - tighten the dependency of kdepim-dev on libkdepim4 to fix lintian error

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (C) 2010 Klarälvdalens Datakonsult AB,
 
3
        a KDAB Group company, info@kdab.net,
 
4
        author Tobias Koenig <tokoe@kdab.com>
 
5
 
 
6
    This library is free software; you can redistribute it and/or modify it
 
7
    under the terms of the GNU Library General Public License as published by
 
8
    the Free Software Foundation; either version 2 of the License, or (at your
 
9
    option) any later version.
 
10
 
 
11
    This library is distributed in the hope that it will be useful, but WITHOUT
 
12
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 
13
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
 
14
    License for more details.
 
15
 
 
16
    You should have received a copy of the GNU Library General Public License
 
17
    along with this library; see the file COPYING.LIB.  If not, write to the
 
18
    Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 
19
    02110-1301, USA.
 
20
*/
 
21
 
 
22
import Qt 4.7 as QML
 
23
import org.kde 4.5
 
24
import org.kde.pim.mobileui 4.5 as KPIM
 
25
 
 
26
QML.Rectangle {
 
27
 
 
28
  anchors.fill: parent
 
29
  z: 10
 
30
 
 
31
  function load()
 
32
  {
 
33
    aclEditor.load()
 
34
  }
 
35
 
 
36
  QML.Text {
 
37
    id: headLine
 
38
    anchors.left: parent.left
 
39
    anchors.top: parent.top
 
40
    anchors.leftMargin: 30
 
41
    anchors.topMargin: 40
 
42
 
 
43
    text: KDE.i18n( "<b>Access Control List for '%1'</b>", aclEditor.collectionName )
 
44
  }
 
45
 
 
46
  KPIM.ReorderListContainer {
 
47
    id: aclView
 
48
    anchors.left: parent.left
 
49
    anchors.top: headLine.bottom
 
50
    anchors.right: parent.right
 
51
    anchors.bottom: okButton.top
 
52
    anchors.leftMargin: 30
 
53
    anchors.topMargin: 10
 
54
 
 
55
    model: aclModel
 
56
 
 
57
    onCurrentIndexChanged : { aclEditor.setRowSelected( index ) }
 
58
 
 
59
    KPIM.ActionButton {
 
60
      icon : KDE.locate( "data", "mobileui/add-button.png" )
 
61
      actionName : "acleditor_add"
 
62
    }
 
63
 
 
64
    KPIM.ActionButton {
 
65
      icon : KDE.locate( "data", "mobileui/edit-button.png" )
 
66
      actionName : "acleditor_edit"
 
67
    }
 
68
 
 
69
    KPIM.ActionButton {
 
70
      icon : KDE.locate( "data", "mobileui/delete-button.png" )
 
71
      actionName : "acleditor_delete"
 
72
    }
 
73
  }
 
74
 
 
75
  KPIM.Button2 {
 
76
    id: okButton
 
77
    anchors.left: parent.left
 
78
    anchors.bottom: parent.bottom
 
79
    anchors.leftMargin: 30
 
80
    width: 150
 
81
    buttonText: KDE.i18n( "Save" )
 
82
    onClicked: {
 
83
      aclEditor.save();
 
84
      guiStateManager.popState();
 
85
    }
 
86
  }
 
87
 
 
88
  KPIM.Button2 {
 
89
    id: cancelButton
 
90
    anchors.left: okButton.right
 
91
    anchors.bottom: parent.bottom
 
92
    anchors.leftMargin: 10
 
93
    width: 150
 
94
    buttonText: KDE.i18n( "Cancel" )
 
95
    onClicked: {
 
96
      guiStateManager.popState();
 
97
    }
 
98
  }
 
99
}