2
Copyright (c) 2010 Volker Krause <vkrause@kde.org>
4
This library is free software; you can redistribute it and/or modify it
5
under the terms of the GNU Library General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or (at your
7
option) any later version.
9
This library is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12
License for more details.
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to the
16
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22
import org.kde.pim.mobileui 4.5 as KPIM
23
import org.kde.kpimidentities 4.5 as KPIMIdentities
24
import org.kde.messagecomposer 4.5 as MessageComposer
27
property int contentHeight: subject.height + messageContent.height + bottomContainer.height + 20;
29
anchors.leftMargin: 48
30
anchors.rightMargin: 2
34
text: KDE.i18n( "Subject:" );
35
anchors.leftMargin: 48
36
anchors.verticalCenter: subject.verticalCenter
37
anchors.left: parent.left
43
left: subjectLabel.right
47
height: subjectInput.height + 8 // padding
48
border { color: "grey"; width: 2; }
59
Binding { target: window; property: "subject"; value: subjectInput.text }
63
visible: window.isSigned || window.isEncrypted
64
anchors.top: subject.bottom
66
anchors.left: parent.left
67
anchors.right: parent.right
68
height: (window.isSigned || window.isEncrypted) ? 20 : 0
76
visible: window.isSigned
78
width: (window.isEncrypted ? parent.width / 2 : parent.width)
83
text: KDE.i18n( "Message will be signed" )
84
horizontalAlignment: Text.AlignHCenter
89
id: encryptedIndicator
90
visible: window.isEncrypted
92
width: (window.isSigned ? parent.width / 2 : parent.width)
97
text: KDE.i18n( "Message will be encrypted" )
98
horizontalAlignment: Text.AlignHCenter
104
MessageComposer.Editor {
108
top: cryptoIndicator.bottom
121
top: messageContent.bottom
128
bottom: parent.bottom
131
text: KDE.i18n( "Identity:" );
132
verticalAlignment: "AlignVCenter"
135
KPIMIdentities.IdentityComboBox {
138
left: identityLabel.right
140
bottom: parent.bottom
141
right: cancelButton.left
147
anchors.bottom: parent.bottom;
148
anchors.right: sendButton.left;
150
height: identityCombo.height
151
icon: KDE.iconPath( "dialog-cancel", 64 );
152
onClicked: window.close();
157
anchors.bottom: parent.bottom;
158
anchors.right: parent.right;
160
height: identityCombo.height
161
icon: KDE.iconPath( "mail-folder-outbox", 64 );
162
color: window.tooManyRecipients ? "red" : "#00000000"
163
buttonText: window.recipientsCount == 0 ? "" : window.recipientsCount
164
onClicked: window.send();