From f0fc0f9720610adde4e7f08625fdf3fe81de8de2 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Mon, 5 Sep 2016 14:13:07 +0200 Subject: adjust outbox height to number of mails in outbox --- components/package/contents/ui/Outbox.qml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'components') diff --git a/components/package/contents/ui/Outbox.qml b/components/package/contents/ui/Outbox.qml index 4baa0eae..ff049683 100644 --- a/components/package/contents/ui/Outbox.qml +++ b/components/package/contents/ui/Outbox.qml @@ -38,13 +38,15 @@ ToolButton { Rectangle { id: dialog + property int modelCount: 5 //FIXME replace with actual model + anchors { top: parent.bottom horizontalCenter: parent.horizontalCenter } - height: Kirigami.Units.gridUnit * 15 - width: Kirigami.Units.gridUnit * 12 + height: modelCount * Kirigami.Units.gridUnit * 3 + 10//scrollView.height height: Kirigami.Units.gridUnit * 15 + width: Kirigami.Units.gridUnit * 12 color: Kirigami.Theme.backgroundColor border.width: 1 @@ -55,16 +57,22 @@ ToolButton { //BEGIN Dialog Content ScrollView { + id: scrollView + anchors { fill: parent - margins: 1 + margins: 5 } + ListView { id: listView - model: 3 + model: 5 delegate: Kirigami.AbstractListItem { + + height: Kirigami.Units.gridUnit * 3 + Kirigami.Label { anchors.centerIn: parent text: "Subjext subxetson" -- cgit v1.2.3 From 2ff0278de5ca9bf3163edee35ddd09480acb2ce8 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 1 Sep 2016 18:34:33 +0200 Subject: mailviewer dummy model --- components/mailviewer/MailModel.qml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 components/mailviewer/MailModel.qml (limited to 'components') diff --git a/components/mailviewer/MailModel.qml b/components/mailviewer/MailModel.qml new file mode 100644 index 00000000..85e6af6a --- /dev/null +++ b/components/mailviewer/MailModel.qml @@ -0,0 +1,33 @@ +import QtQuick 2.4 + +ListModel { + + ListElement { + type: "encrypted" + trusted: false + trustlevel: "trusted" // "trusted" = green, "unknown" = grey, "dangerous" = red, "wierd" = yellow + content: [ + ListElement { + type: "plaintext" + textContent: "Moin, \n find the forwarded mail below. \n \n - M" + embeded: false + }, + ListElement { + type: "embeded" + sender: "Senderson" + date: "05/05/2055" + content: [ + ListElement{ + type: "plaintext" + textContent: "sender mc senderson is a sender. sender mc senderson is a sender. sender mc senderson is a mc senderson is a sender sender mc senderson is a sender sender mc senderson is a sender sender mc senderson is a sender sender mc senderson is a sender sender mc a sender sender mc is a sender sender mc senderson is a sendersender mc senderson is a sender" + embeded: true + }] + } + ] + } + ListElement { + type: "plaintext" + textContent: "footer mc footerson" + embeded: false + } +} -- cgit v1.2.3 From 1a3b5430bcfbfb63e2bb1d4ace372d1a803a7716 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 1 Sep 2016 18:35:53 +0200 Subject: ugly border image until we get some from the vdg --- components/mailviewer/bordergreen.png | Bin 0 -> 1821 bytes components/mailviewer/bordergrey.png | Bin 0 -> 646 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 components/mailviewer/bordergreen.png create mode 100644 components/mailviewer/bordergrey.png (limited to 'components') diff --git a/components/mailviewer/bordergreen.png b/components/mailviewer/bordergreen.png new file mode 100644 index 00000000..9071d809 Binary files /dev/null and b/components/mailviewer/bordergreen.png differ diff --git a/components/mailviewer/bordergrey.png b/components/mailviewer/bordergrey.png new file mode 100644 index 00000000..1baa8345 Binary files /dev/null and b/components/mailviewer/bordergrey.png differ -- cgit v1.2.3 From c389c6ebc362d3283b4dfc01013565207e0fe3f5 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 1 Sep 2016 18:37:05 +0200 Subject: mailviewer: text part --- components/mailviewer/TextPart.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 components/mailviewer/TextPart.qml (limited to 'components') diff --git a/components/mailviewer/TextPart.qml b/components/mailviewer/TextPart.qml new file mode 100644 index 00000000..3a4c8d22 --- /dev/null +++ b/components/mailviewer/TextPart.qml @@ -0,0 +1,10 @@ +import QtQuick 2.4 + +Text { + width: delegateRoot.width + + text: model.textContent + wrapMode: Text.WordWrap + + color: embeded ? "grey" : "black" +} -- cgit v1.2.3 From 711b7b00dbe3e7e5dde3a5ca6e08b734a55aa0c4 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 1 Sep 2016 18:41:29 +0200 Subject: encrypted part --- components/mailviewer/EncryptedPart.qml | 51 +++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 components/mailviewer/EncryptedPart.qml (limited to 'components') diff --git a/components/mailviewer/EncryptedPart.qml b/components/mailviewer/EncryptedPart.qml new file mode 100644 index 00000000..9f4b984e --- /dev/null +++ b/components/mailviewer/EncryptedPart.qml @@ -0,0 +1,51 @@ +import QtQuick 2.4 +import QtQuick.Controls 1.5 + +Item { + + height: mailPart.height + width: mailPart.width + + // Rectangle { + // id: border + + // border.width: 5 + // border.color: "lightgreen" + //} + + BorderImage { + + anchors.fill: parent + border { left: 40; top: 40; right: 40; bottom: 40 } + horizontalTileMode: BorderImage.Repeat + verticalTileMode: BorderImage.Repeat + + source: model.trusted ? "bordergreen.png" : "bordergrey.png" + } + + MailPart { + id: mailPart + + } + + Rectangle { + + anchors { + top: parent.top + right: parent.right + } + + height: 50 + width: 50 + + radius: 100 + + color: model.trusted ? "lightgreen" : "lightgrey" + + ToolButton { + anchors.fill: parent + + iconName: "document-encrypt" + } + } +} -- cgit v1.2.3 From 5404fc8922d90b99692f0ed91fd9a9017ad1cfdb Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 1 Sep 2016 18:41:45 +0200 Subject: embedded part --- components/mailviewer/EmbededPart.qml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 components/mailviewer/EmbededPart.qml (limited to 'components') diff --git a/components/mailviewer/EmbededPart.qml b/components/mailviewer/EmbededPart.qml new file mode 100644 index 00000000..11d1081c --- /dev/null +++ b/components/mailviewer/EmbededPart.qml @@ -0,0 +1,36 @@ +import QtQuick 2.4 + +Item { + + height: mailPart.height + width: mailPart.width + + + Rectangle { + id: border + color: "lightgrey" + height: mailPart.height + width: 5 + } + + Text { + id: sender + + anchors { + left: border.right + leftMargin: 15 + } + + text: "sent by " + model.sender + " on " + model.date + color: "grey" + } + + MailPart { + id: mailPart + + anchors.top: sender.bottom + + } + +} + -- cgit v1.2.3 From ce5fb534a38607867a1a8e48530acdc880015101 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 1 Sep 2016 18:42:02 +0200 Subject: generic mailpart --- components/mailviewer/MailPart.qml | 61 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 components/mailviewer/MailPart.qml (limited to 'components') diff --git a/components/mailviewer/MailPart.qml b/components/mailviewer/MailPart.qml new file mode 100644 index 00000000..d7ae425f --- /dev/null +++ b/components/mailviewer/MailPart.qml @@ -0,0 +1,61 @@ +import QtQuick 2.4 + +Item { + id: root + + height: partColumn.height + 40 + width: delegateRoot.width + + Column { + id: partColumn + + anchors { + top: parent.top + left: parent.left + right: parent.right + margins: 20 + } + + spacing: 10 + + Repeater { + model: content + + delegate: Column { + id: delegateRoot + + width: partColumn.width + + Loader { + id: loader + } + + Component.onCompleted: { + + switch (model.type) { + case "encrypted": + loader.source = "EncryptedPart.qml"; + break; + case "embeded": + loader.source = "EmbededPart.qml"; + break; + case "frame": + loader.source = "Frame.qml" + break; + case "plaintext": + loader.source = "TextPart.qml"; + break; + } + } + } + } + + + Item { + id: footer + + height: 5 + width: 10 + } + } +} -- cgit v1.2.3 From a195c0a48d04c8a9a935f8d5f7b8dd7a4b158148 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 1 Sep 2016 18:42:19 +0200 Subject: dummyapp for testing --- components/mailviewer/dummyapp.qml | 69 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 components/mailviewer/dummyapp.qml (limited to 'components') diff --git a/components/mailviewer/dummyapp.qml b/components/mailviewer/dummyapp.qml new file mode 100644 index 00000000..878b77ed --- /dev/null +++ b/components/mailviewer/dummyapp.qml @@ -0,0 +1,69 @@ +import QtQuick 2.4 + +Rectangle { + id: app + + width: 1200 + height: 700 + + Rectangle { + anchors.fill: parent + + color: "black" + + opacity: 0.8 + + } + + Rectangle { + + anchors.centerIn: parent + + height: mainColumn.height + 50 + width: parent.width * 0.9 + + Column { + id: mainColumn + + anchors.centerIn: parent + + width: parent.width - 50 + + spacing: 10 + + Repeater { + model: MailModel {} + + delegate: Column { + id: delegateRoot + + width: mainColumn.width + + Loader { + id: loader + } + + Component.onCompleted: { + switch (model.type) { + case "red": + loader.source = "Rect2.qml"; + break; + case "green": + loader.source = "Rect1.qml"; + break; + case "encrypted": + loader.source = "EncryptedPart.qml"; + break; + case "frame": + loader.source = "Frame.qml"; + break; + case "plaintext": + loader.source = "TextPart.qml"; + break; + } + } + } + } + } + } +} -- cgit v1.2.3 From 79fe32350cf20b2bc6eb76780804fd74b7efa2d2 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 1 Sep 2016 18:42:42 +0200 Subject: adjust trustlevel in mailmodel --- components/mailviewer/MailModel.qml | 1 - 1 file changed, 1 deletion(-) (limited to 'components') diff --git a/components/mailviewer/MailModel.qml b/components/mailviewer/MailModel.qml index 85e6af6a..97764f79 100644 --- a/components/mailviewer/MailModel.qml +++ b/components/mailviewer/MailModel.qml @@ -5,7 +5,6 @@ ListModel { ListElement { type: "encrypted" trusted: false - trustlevel: "trusted" // "trusted" = green, "unknown" = grey, "dangerous" = red, "wierd" = yellow content: [ ListElement { type: "plaintext" -- cgit v1.2.3 From f29e0ca5670bb683548e158c9ca5d0a7b05555a2 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Mon, 5 Sep 2016 16:26:34 +0200 Subject: mailviewer: move qml files to dedicated folder --- components/mailviewer/EmbededPart.qml | 36 --------------- components/mailviewer/EncryptedPart.qml | 51 -------------------- components/mailviewer/MailModel.qml | 32 ------------- components/mailviewer/MailPart.qml | 61 ------------------------ components/mailviewer/TextPart.qml | 10 ---- components/mailviewer/bordergreen.png | Bin 1821 -> 0 bytes components/mailviewer/bordergrey.png | Bin 646 -> 0 bytes components/mailviewer/dummyapp.qml | 69 ---------------------------- components/mailviewer/qml/EmbededPart.qml | 36 +++++++++++++++ components/mailviewer/qml/EncryptedPart.qml | 51 ++++++++++++++++++++ components/mailviewer/qml/MailModel.qml | 32 +++++++++++++ components/mailviewer/qml/MailPart.qml | 61 ++++++++++++++++++++++++ components/mailviewer/qml/TextPart.qml | 10 ++++ components/mailviewer/qml/bordergreen.png | Bin 0 -> 1821 bytes components/mailviewer/qml/bordergrey.png | Bin 0 -> 646 bytes components/mailviewer/qml/dummyapp.qml | 69 ++++++++++++++++++++++++++++ 16 files changed, 259 insertions(+), 259 deletions(-) delete mode 100644 components/mailviewer/EmbededPart.qml delete mode 100644 components/mailviewer/EncryptedPart.qml delete mode 100644 components/mailviewer/MailModel.qml delete mode 100644 components/mailviewer/MailPart.qml delete mode 100644 components/mailviewer/TextPart.qml delete mode 100644 components/mailviewer/bordergreen.png delete mode 100644 components/mailviewer/bordergrey.png delete mode 100644 components/mailviewer/dummyapp.qml create mode 100644 components/mailviewer/qml/EmbededPart.qml create mode 100644 components/mailviewer/qml/EncryptedPart.qml create mode 100644 components/mailviewer/qml/MailModel.qml create mode 100644 components/mailviewer/qml/MailPart.qml create mode 100644 components/mailviewer/qml/TextPart.qml create mode 100644 components/mailviewer/qml/bordergreen.png create mode 100644 components/mailviewer/qml/bordergrey.png create mode 100644 components/mailviewer/qml/dummyapp.qml (limited to 'components') diff --git a/components/mailviewer/EmbededPart.qml b/components/mailviewer/EmbededPart.qml deleted file mode 100644 index 11d1081c..00000000 --- a/components/mailviewer/EmbededPart.qml +++ /dev/null @@ -1,36 +0,0 @@ -import QtQuick 2.4 - -Item { - - height: mailPart.height - width: mailPart.width - - - Rectangle { - id: border - color: "lightgrey" - height: mailPart.height - width: 5 - } - - Text { - id: sender - - anchors { - left: border.right - leftMargin: 15 - } - - text: "sent by " + model.sender + " on " + model.date - color: "grey" - } - - MailPart { - id: mailPart - - anchors.top: sender.bottom - - } - -} - diff --git a/components/mailviewer/EncryptedPart.qml b/components/mailviewer/EncryptedPart.qml deleted file mode 100644 index 9f4b984e..00000000 --- a/components/mailviewer/EncryptedPart.qml +++ /dev/null @@ -1,51 +0,0 @@ -import QtQuick 2.4 -import QtQuick.Controls 1.5 - -Item { - - height: mailPart.height - width: mailPart.width - - // Rectangle { - // id: border - - // border.width: 5 - // border.color: "lightgreen" - //} - - BorderImage { - - anchors.fill: parent - border { left: 40; top: 40; right: 40; bottom: 40 } - horizontalTileMode: BorderImage.Repeat - verticalTileMode: BorderImage.Repeat - - source: model.trusted ? "bordergreen.png" : "bordergrey.png" - } - - MailPart { - id: mailPart - - } - - Rectangle { - - anchors { - top: parent.top - right: parent.right - } - - height: 50 - width: 50 - - radius: 100 - - color: model.trusted ? "lightgreen" : "lightgrey" - - ToolButton { - anchors.fill: parent - - iconName: "document-encrypt" - } - } -} diff --git a/components/mailviewer/MailModel.qml b/components/mailviewer/MailModel.qml deleted file mode 100644 index 97764f79..00000000 --- a/components/mailviewer/MailModel.qml +++ /dev/null @@ -1,32 +0,0 @@ -import QtQuick 2.4 - -ListModel { - - ListElement { - type: "encrypted" - trusted: false - content: [ - ListElement { - type: "plaintext" - textContent: "Moin, \n find the forwarded mail below. \n \n - M" - embeded: false - }, - ListElement { - type: "embeded" - sender: "Senderson" - date: "05/05/2055" - content: [ - ListElement{ - type: "plaintext" - textContent: "sender mc senderson is a sender. sender mc senderson is a sender. sender mc senderson is a mc senderson is a sender sender mc senderson is a sender sender mc senderson is a sender sender mc senderson is a sender sender mc senderson is a sender sender mc a sender sender mc is a sender sender mc senderson is a sendersender mc senderson is a sender" - embeded: true - }] - } - ] - } - ListElement { - type: "plaintext" - textContent: "footer mc footerson" - embeded: false - } -} diff --git a/components/mailviewer/MailPart.qml b/components/mailviewer/MailPart.qml deleted file mode 100644 index d7ae425f..00000000 --- a/components/mailviewer/MailPart.qml +++ /dev/null @@ -1,61 +0,0 @@ -import QtQuick 2.4 - -Item { - id: root - - height: partColumn.height + 40 - width: delegateRoot.width - - Column { - id: partColumn - - anchors { - top: parent.top - left: parent.left - right: parent.right - margins: 20 - } - - spacing: 10 - - Repeater { - model: content - - delegate: Column { - id: delegateRoot - - width: partColumn.width - - Loader { - id: loader - } - - Component.onCompleted: { - - switch (model.type) { - case "encrypted": - loader.source = "EncryptedPart.qml"; - break; - case "embeded": - loader.source = "EmbededPart.qml"; - break; - case "frame": - loader.source = "Frame.qml" - break; - case "plaintext": - loader.source = "TextPart.qml"; - break; - } - } - } - } - - - Item { - id: footer - - height: 5 - width: 10 - } - } -} diff --git a/components/mailviewer/TextPart.qml b/components/mailviewer/TextPart.qml deleted file mode 100644 index 3a4c8d22..00000000 --- a/components/mailviewer/TextPart.qml +++ /dev/null @@ -1,10 +0,0 @@ -import QtQuick 2.4 - -Text { - width: delegateRoot.width - - text: model.textContent - wrapMode: Text.WordWrap - - color: embeded ? "grey" : "black" -} diff --git a/components/mailviewer/bordergreen.png b/components/mailviewer/bordergreen.png deleted file mode 100644 index 9071d809..00000000 Binary files a/components/mailviewer/bordergreen.png and /dev/null differ diff --git a/components/mailviewer/bordergrey.png b/components/mailviewer/bordergrey.png deleted file mode 100644 index 1baa8345..00000000 Binary files a/components/mailviewer/bordergrey.png and /dev/null differ diff --git a/components/mailviewer/dummyapp.qml b/components/mailviewer/dummyapp.qml deleted file mode 100644 index 878b77ed..00000000 --- a/components/mailviewer/dummyapp.qml +++ /dev/null @@ -1,69 +0,0 @@ -import QtQuick 2.4 - -Rectangle { - id: app - - width: 1200 - height: 700 - - Rectangle { - anchors.fill: parent - - color: "black" - - opacity: 0.8 - - } - - Rectangle { - - anchors.centerIn: parent - - height: mainColumn.height + 50 - width: parent.width * 0.9 - - Column { - id: mainColumn - - anchors.centerIn: parent - - width: parent.width - 50 - - spacing: 10 - - Repeater { - model: MailModel {} - - delegate: Column { - id: delegateRoot - - width: mainColumn.width - - Loader { - id: loader - } - - Component.onCompleted: { - switch (model.type) { - case "red": - loader.source = "Rect2.qml"; - break; - case "green": - loader.source = "Rect1.qml"; - break; - case "encrypted": - loader.source = "EncryptedPart.qml"; - break; - case "frame": - loader.source = "Frame.qml"; - break; - case "plaintext": - loader.source = "TextPart.qml"; - break; - } - } - } - } - } - } -} diff --git a/components/mailviewer/qml/EmbededPart.qml b/components/mailviewer/qml/EmbededPart.qml new file mode 100644 index 00000000..11d1081c --- /dev/null +++ b/components/mailviewer/qml/EmbededPart.qml @@ -0,0 +1,36 @@ +import QtQuick 2.4 + +Item { + + height: mailPart.height + width: mailPart.width + + + Rectangle { + id: border + color: "lightgrey" + height: mailPart.height + width: 5 + } + + Text { + id: sender + + anchors { + left: border.right + leftMargin: 15 + } + + text: "sent by " + model.sender + " on " + model.date + color: "grey" + } + + MailPart { + id: mailPart + + anchors.top: sender.bottom + + } + +} + diff --git a/components/mailviewer/qml/EncryptedPart.qml b/components/mailviewer/qml/EncryptedPart.qml new file mode 100644 index 00000000..9f4b984e --- /dev/null +++ b/components/mailviewer/qml/EncryptedPart.qml @@ -0,0 +1,51 @@ +import QtQuick 2.4 +import QtQuick.Controls 1.5 + +Item { + + height: mailPart.height + width: mailPart.width + + // Rectangle { + // id: border + + // border.width: 5 + // border.color: "lightgreen" + //} + + BorderImage { + + anchors.fill: parent + border { left: 40; top: 40; right: 40; bottom: 40 } + horizontalTileMode: BorderImage.Repeat + verticalTileMode: BorderImage.Repeat + + source: model.trusted ? "bordergreen.png" : "bordergrey.png" + } + + MailPart { + id: mailPart + + } + + Rectangle { + + anchors { + top: parent.top + right: parent.right + } + + height: 50 + width: 50 + + radius: 100 + + color: model.trusted ? "lightgreen" : "lightgrey" + + ToolButton { + anchors.fill: parent + + iconName: "document-encrypt" + } + } +} diff --git a/components/mailviewer/qml/MailModel.qml b/components/mailviewer/qml/MailModel.qml new file mode 100644 index 00000000..8177b9d4 --- /dev/null +++ b/components/mailviewer/qml/MailModel.qml @@ -0,0 +1,32 @@ +import QtQuick 2.4 + +ListModel { + + ListElement { + type: "encrypted" + trusted: true + content: [ + ListElement { + type: "plaintext" + textContent: "Moin, \n find the forwarded mail below. \n \n - M" + embeded: false + }, + ListElement { + type: "embeded" + sender: "Senderson" + date: "05/05/2055" + content: [ + ListElement{ + type: "plaintext" + textContent: "sender mc senderson is a sender. sender mc senderson is a sender. sender mc senderson is a mc senderson is a sender sender mc senderson is a sender sender mc senderson is a sender sender mc senderson is a sender sender mc senderson is a sender sender mc a sender sender mc is a sender sender mc senderson is a sendersender mc senderson is a sender" + embeded: true + }] + } + ] + } + ListElement { + type: "plaintext" + textContent: "footer mc footerson" + embeded: false + } +} diff --git a/components/mailviewer/qml/MailPart.qml b/components/mailviewer/qml/MailPart.qml new file mode 100644 index 00000000..d7ae425f --- /dev/null +++ b/components/mailviewer/qml/MailPart.qml @@ -0,0 +1,61 @@ +import QtQuick 2.4 + +Item { + id: root + + height: partColumn.height + 40 + width: delegateRoot.width + + Column { + id: partColumn + + anchors { + top: parent.top + left: parent.left + right: parent.right + margins: 20 + } + + spacing: 10 + + Repeater { + model: content + + delegate: Column { + id: delegateRoot + + width: partColumn.width + + Loader { + id: loader + } + + Component.onCompleted: { + + switch (model.type) { + case "encrypted": + loader.source = "EncryptedPart.qml"; + break; + case "embeded": + loader.source = "EmbededPart.qml"; + break; + case "frame": + loader.source = "Frame.qml" + break; + case "plaintext": + loader.source = "TextPart.qml"; + break; + } + } + } + } + + + Item { + id: footer + + height: 5 + width: 10 + } + } +} diff --git a/components/mailviewer/qml/TextPart.qml b/components/mailviewer/qml/TextPart.qml new file mode 100644 index 00000000..3a4c8d22 --- /dev/null +++ b/components/mailviewer/qml/TextPart.qml @@ -0,0 +1,10 @@ +import QtQuick 2.4 + +Text { + width: delegateRoot.width + + text: model.textContent + wrapMode: Text.WordWrap + + color: embeded ? "grey" : "black" +} diff --git a/components/mailviewer/qml/bordergreen.png b/components/mailviewer/qml/bordergreen.png new file mode 100644 index 00000000..9071d809 Binary files /dev/null and b/components/mailviewer/qml/bordergreen.png differ diff --git a/components/mailviewer/qml/bordergrey.png b/components/mailviewer/qml/bordergrey.png new file mode 100644 index 00000000..1baa8345 Binary files /dev/null and b/components/mailviewer/qml/bordergrey.png differ diff --git a/components/mailviewer/qml/dummyapp.qml b/components/mailviewer/qml/dummyapp.qml new file mode 100644 index 00000000..878b77ed --- /dev/null +++ b/components/mailviewer/qml/dummyapp.qml @@ -0,0 +1,69 @@ +import QtQuick 2.4 + +Rectangle { + id: app + + width: 1200 + height: 700 + + Rectangle { + anchors.fill: parent + + color: "black" + + opacity: 0.8 + + } + + Rectangle { + + anchors.centerIn: parent + + height: mainColumn.height + 50 + width: parent.width * 0.9 + + Column { + id: mainColumn + + anchors.centerIn: parent + + width: parent.width - 50 + + spacing: 10 + + Repeater { + model: MailModel {} + + delegate: Column { + id: delegateRoot + + width: mainColumn.width + + Loader { + id: loader + } + + Component.onCompleted: { + switch (model.type) { + case "red": + loader.source = "Rect2.qml"; + break; + case "green": + loader.source = "Rect1.qml"; + break; + case "encrypted": + loader.source = "EncryptedPart.qml"; + break; + case "frame": + loader.source = "Frame.qml"; + break; + case "plaintext": + loader.source = "TextPart.qml"; + break; + } + } + } + } + } + } +} -- cgit v1.2.3 From 217819aa165a72c5c006f3b980e4dc8a4db213c0 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 15 Sep 2016 09:06:19 +0200 Subject: add security border images made by Jens Reuterberg --- components/mailviewer/qml/bordergreen.png | Bin 1821 -> 0 bytes components/mailviewer/qml/bordergrey.png | Bin 646 -> 0 bytes components/mailviewer/qml/securitybordersGRAY.png | Bin 0 -> 734 bytes components/mailviewer/qml/securitybordersGREEN.png | Bin 0 -> 725 bytes components/mailviewer/qml/securitybordersRED.png | Bin 0 -> 725 bytes components/mailviewer/qml/securitybordersYELLOW.png | Bin 0 -> 735 bytes 6 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 components/mailviewer/qml/bordergreen.png delete mode 100644 components/mailviewer/qml/bordergrey.png create mode 100644 components/mailviewer/qml/securitybordersGRAY.png create mode 100644 components/mailviewer/qml/securitybordersGREEN.png create mode 100644 components/mailviewer/qml/securitybordersRED.png create mode 100644 components/mailviewer/qml/securitybordersYELLOW.png (limited to 'components') diff --git a/components/mailviewer/qml/bordergreen.png b/components/mailviewer/qml/bordergreen.png deleted file mode 100644 index 9071d809..00000000 Binary files a/components/mailviewer/qml/bordergreen.png and /dev/null differ diff --git a/components/mailviewer/qml/bordergrey.png b/components/mailviewer/qml/bordergrey.png deleted file mode 100644 index 1baa8345..00000000 Binary files a/components/mailviewer/qml/bordergrey.png and /dev/null differ diff --git a/components/mailviewer/qml/securitybordersGRAY.png b/components/mailviewer/qml/securitybordersGRAY.png new file mode 100644 index 00000000..f8b768a8 Binary files /dev/null and b/components/mailviewer/qml/securitybordersGRAY.png differ diff --git a/components/mailviewer/qml/securitybordersGREEN.png b/components/mailviewer/qml/securitybordersGREEN.png new file mode 100644 index 00000000..8de8c534 Binary files /dev/null and b/components/mailviewer/qml/securitybordersGREEN.png differ diff --git a/components/mailviewer/qml/securitybordersRED.png b/components/mailviewer/qml/securitybordersRED.png new file mode 100644 index 00000000..f28ed990 Binary files /dev/null and b/components/mailviewer/qml/securitybordersRED.png differ diff --git a/components/mailviewer/qml/securitybordersYELLOW.png b/components/mailviewer/qml/securitybordersYELLOW.png new file mode 100644 index 00000000..a40a8887 Binary files /dev/null and b/components/mailviewer/qml/securitybordersYELLOW.png differ -- cgit v1.2.3 From 711ac9758976f1e2412b28b7b1a80780eec4641f Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 15 Sep 2016 09:35:09 +0200 Subject: use new security boder images --- components/mailviewer/qml/EncryptedPart.qml | 38 +++++------------------------ components/mailviewer/qml/MailModel.qml | 2 +- 2 files changed, 7 insertions(+), 33 deletions(-) (limited to 'components') diff --git a/components/mailviewer/qml/EncryptedPart.qml b/components/mailviewer/qml/EncryptedPart.qml index 9f4b984e..eba6c035 100644 --- a/components/mailviewer/qml/EncryptedPart.qml +++ b/components/mailviewer/qml/EncryptedPart.qml @@ -3,49 +3,23 @@ import QtQuick.Controls 1.5 Item { - height: mailPart.height - width: mailPart.width - - // Rectangle { - // id: border - - // border.width: 5 - // border.color: "lightgreen" - //} + height: mailPart.height + 20 + width: mailPart.width + 20 BorderImage { anchors.fill: parent border { left: 40; top: 40; right: 40; bottom: 40 } - horizontalTileMode: BorderImage.Repeat - verticalTileMode: BorderImage.Repeat + horizontalTileMode: BorderImage.Round + verticalTileMode: BorderImage.Round - source: model.trusted ? "bordergreen.png" : "bordergrey.png" + source: "securityborders" + model.securityLevel + ".png" } MailPart { id: mailPart - } - - Rectangle { - - anchors { - top: parent.top - right: parent.right - } - - height: 50 - width: 50 - - radius: 100 - - color: model.trusted ? "lightgreen" : "lightgrey" - - ToolButton { - anchors.fill: parent + anchors.centerIn: parent - iconName: "document-encrypt" - } } } diff --git a/components/mailviewer/qml/MailModel.qml b/components/mailviewer/qml/MailModel.qml index 8177b9d4..808a8d5b 100644 --- a/components/mailviewer/qml/MailModel.qml +++ b/components/mailviewer/qml/MailModel.qml @@ -4,7 +4,7 @@ ListModel { ListElement { type: "encrypted" - trusted: true + securityLevel: "GREEN" content: [ ListElement { type: "plaintext" -- cgit v1.2.3 From 9afc6c4b38b2d24783f26d82e155308af6685485 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 22 Sep 2016 10:58:19 +0200 Subject: mailviewer: add signed part --- components/mailviewer/qml/SignedPart.qml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 components/mailviewer/qml/SignedPart.qml (limited to 'components') diff --git a/components/mailviewer/qml/SignedPart.qml b/components/mailviewer/qml/SignedPart.qml new file mode 100644 index 00000000..729a2a8d --- /dev/null +++ b/components/mailviewer/qml/SignedPart.qml @@ -0,0 +1,26 @@ +import QtQuick 2.4 +import QtQuick.Controls 1.5 + +Item { + + height: mailPart.height + 20 + width: mailPart.width + 20 + + BorderImage { + + anchors.fill: parent + border { left: 40; top: 40; right: 40; bottom: 40 } + horizontalTileMode: BorderImage.Round + verticalTileMode: BorderImage.Round + + source: "securityborders" + model.securityLevel + ".png" + } + + MailPart { + id: mailPart + + anchors.centerIn: parent + + } +} + -- cgit v1.2.3 From 9bae06b6cc73a50e1aebac83e4b6a05ebce293c9 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 22 Sep 2016 11:02:10 +0200 Subject: add license headers to mailviewer --- components/mailviewer/qml/EmbededPart.qml | 18 ++++++++++++++++++ components/mailviewer/qml/EncryptedPart.qml | 18 ++++++++++++++++++ components/mailviewer/qml/MailModel.qml | 18 ++++++++++++++++++ components/mailviewer/qml/MailPart.qml | 18 ++++++++++++++++++ components/mailviewer/qml/SignedPart.qml | 18 ++++++++++++++++++ components/mailviewer/qml/TextPart.qml | 18 ++++++++++++++++++ components/mailviewer/qml/dummyapp.qml | 18 ++++++++++++++++++ 7 files changed, 126 insertions(+) (limited to 'components') diff --git a/components/mailviewer/qml/EmbededPart.qml b/components/mailviewer/qml/EmbededPart.qml index 11d1081c..8921ab6f 100644 --- a/components/mailviewer/qml/EmbededPart.qml +++ b/components/mailviewer/qml/EmbededPart.qml @@ -1,3 +1,21 @@ +/* + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + import QtQuick 2.4 Item { diff --git a/components/mailviewer/qml/EncryptedPart.qml b/components/mailviewer/qml/EncryptedPart.qml index eba6c035..18a5d588 100644 --- a/components/mailviewer/qml/EncryptedPart.qml +++ b/components/mailviewer/qml/EncryptedPart.qml @@ -1,3 +1,21 @@ +/* + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + import QtQuick 2.4 import QtQuick.Controls 1.5 diff --git a/components/mailviewer/qml/MailModel.qml b/components/mailviewer/qml/MailModel.qml index 808a8d5b..d18f5ece 100644 --- a/components/mailviewer/qml/MailModel.qml +++ b/components/mailviewer/qml/MailModel.qml @@ -1,3 +1,21 @@ +/* + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + import QtQuick 2.4 ListModel { diff --git a/components/mailviewer/qml/MailPart.qml b/components/mailviewer/qml/MailPart.qml index d7ae425f..4917271b 100644 --- a/components/mailviewer/qml/MailPart.qml +++ b/components/mailviewer/qml/MailPart.qml @@ -1,3 +1,21 @@ +/* + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + import QtQuick 2.4 Item { diff --git a/components/mailviewer/qml/SignedPart.qml b/components/mailviewer/qml/SignedPart.qml index 729a2a8d..f0daedeb 100644 --- a/components/mailviewer/qml/SignedPart.qml +++ b/components/mailviewer/qml/SignedPart.qml @@ -1,3 +1,21 @@ +/* + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + import QtQuick 2.4 import QtQuick.Controls 1.5 diff --git a/components/mailviewer/qml/TextPart.qml b/components/mailviewer/qml/TextPart.qml index 3a4c8d22..5f183852 100644 --- a/components/mailviewer/qml/TextPart.qml +++ b/components/mailviewer/qml/TextPart.qml @@ -1,3 +1,21 @@ +/* + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + import QtQuick 2.4 Text { diff --git a/components/mailviewer/qml/dummyapp.qml b/components/mailviewer/qml/dummyapp.qml index 878b77ed..25892f8e 100644 --- a/components/mailviewer/qml/dummyapp.qml +++ b/components/mailviewer/qml/dummyapp.qml @@ -1,3 +1,21 @@ +/* + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + import QtQuick 2.4 Rectangle { -- cgit v1.2.3 From 3ad9814b98b6405d0f9b6c7b89413465631d2504 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 22 Sep 2016 11:42:52 +0200 Subject: add htmlpart and a model for testing it --- components/mailviewer/qml/HtmlPart.qml | 48 ++++++++++++++++++++++++++++++++ components/mailviewer/qml/MailModel2.qml | 28 +++++++++++++++++++ components/mailviewer/qml/MailPart.qml | 3 ++ components/mailviewer/qml/dummyapp.qml | 3 ++ 4 files changed, 82 insertions(+) create mode 100644 components/mailviewer/qml/HtmlPart.qml create mode 100644 components/mailviewer/qml/MailModel2.qml (limited to 'components') diff --git a/components/mailviewer/qml/HtmlPart.qml b/components/mailviewer/qml/HtmlPart.qml new file mode 100644 index 00000000..f1add75c --- /dev/null +++ b/components/mailviewer/qml/HtmlPart.qml @@ -0,0 +1,48 @@ +/* + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + +import QtQuick 2.4 +import QtQuick.Controls 1.3 +import QtWebKit 3.0 +// import QtWebEngine 1.3 //This would give use contentsSize +import QtWebEngine 1.2 + +Item { + id: root + property string content: model.htmlContent + property int contentHeight: helperView.contentHeight; + //FIXME workaround until QtWebEngine 1.3 with contentsSize + + height: contentHeight + width: delegateRoot.width + + WebView { + id: helperView + visible: false + Component.onCompleted: loadHtml(content, "file:///") + } + WebEngineView { + id: htmlView + anchors.fill: parent + Component.onCompleted: loadHtml(content, "file:///") + } + onContentChanged: { + htmlView.loadHtml(content, "file:///"); + helperView.loadHtml(content, "file:///"); + } +} diff --git a/components/mailviewer/qml/MailModel2.qml b/components/mailviewer/qml/MailModel2.qml new file mode 100644 index 00000000..9ea45d57 --- /dev/null +++ b/components/mailviewer/qml/MailModel2.qml @@ -0,0 +1,28 @@ +/* + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + +import QtQuick 2.4 + +ListModel { + + ListElement { + type: "html" + htmlContent: "

Some Heading

My some paragraph.

" + } +} + diff --git a/components/mailviewer/qml/MailPart.qml b/components/mailviewer/qml/MailPart.qml index 4917271b..966337cd 100644 --- a/components/mailviewer/qml/MailPart.qml +++ b/components/mailviewer/qml/MailPart.qml @@ -63,6 +63,9 @@ Item { case "plaintext": loader.source = "TextPart.qml"; break; + case "html": + loader.source = "HtmlPart.qml"; + break; } } } diff --git a/components/mailviewer/qml/dummyapp.qml b/components/mailviewer/qml/dummyapp.qml index 25892f8e..a186f0f1 100644 --- a/components/mailviewer/qml/dummyapp.qml +++ b/components/mailviewer/qml/dummyapp.qml @@ -78,6 +78,9 @@ Rectangle { case "plaintext": loader.source = "TextPart.qml"; break; + case "html": + loader.source = "HtmlPart.qml"; + break; } } } -- cgit v1.2.3 From 06ffde93ce2c7a675b3ee56e5dc5744b53696fc5 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Mon, 26 Sep 2016 10:25:33 +0200 Subject: relicense under gplv2+ --- components/mail/contents/ui/main.qml | 34 ++++++++++++---------- components/package/contents/ui/AccountSwitcher.qml | 33 +++++++++++---------- components/package/contents/ui/Avatar.qml | 31 ++++++++++---------- components/package/contents/ui/Composer.qml | 31 ++++++++++---------- components/package/contents/ui/ContentView.qml | 18 ++++++++++++ .../package/contents/ui/EditAccountDialog.qml | 31 ++++++++++---------- components/package/contents/ui/FocusComposer.qml | 31 ++++++++++---------- components/package/contents/ui/FolderListView.qml | 31 ++++++++++---------- components/package/contents/ui/ListItem.qml | 31 ++++++++++---------- components/package/contents/ui/MailListView.qml | 31 ++++++++++---------- components/package/contents/ui/MailViewer.qml | 18 ++++++++++++ components/package/contents/ui/MessagePartTree.qml | 18 ++++++++++++ .../package/contents/ui/NewAccountDialog.qml | 31 ++++++++++---------- components/package/contents/ui/Outbox.qml | 31 ++++++++++---------- components/package/contents/ui/OverlayDialog.qml | 33 +++++++++++---------- components/package/contents/ui/SingleMailView.qml | 33 +++++++++++---------- components/package/contents/ui/TextView.qml | 18 ++++++++++++ components/package/contents/ui/WebView.qml | 18 ++++++++++++ 18 files changed, 303 insertions(+), 199 deletions(-) (limited to 'components') diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml index 4cda7f8e..ef167bbe 100644 --- a/components/mail/contents/ui/main.qml +++ b/components/mail/contents/ui/main.qml @@ -1,19 +1,21 @@ /* - * Copyright (C) 2015 Michael Bohlender - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ + Copyright (C) 2015 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + import QtQuick 2.4 import QtQuick.Controls 1.3 @@ -280,4 +282,4 @@ ApplicationWindow { } } //END ToolBar -} \ No newline at end of file +} diff --git a/components/package/contents/ui/AccountSwitcher.qml b/components/package/contents/ui/AccountSwitcher.qml index cb79b6e4..8767e96e 100644 --- a/components/package/contents/ui/AccountSwitcher.qml +++ b/components/package/contents/ui/AccountSwitcher.qml @@ -1,19 +1,20 @@ /* - * Copyright (C) 2016 Michael Bohlender - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ import QtQuick 2.4 import QtQuick.Controls 1.3 @@ -192,4 +193,4 @@ Button { } } } -} \ No newline at end of file +} diff --git a/components/package/contents/ui/Avatar.qml b/components/package/contents/ui/Avatar.qml index cfd031b3..dfe14ce7 100644 --- a/components/package/contents/ui/Avatar.qml +++ b/components/package/contents/ui/Avatar.qml @@ -1,19 +1,20 @@ /* - * Copyright (C) 2015 Michael Bohlender - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ import QtQuick 2.4 import QtQuick.Controls 1.3 diff --git a/components/package/contents/ui/Composer.qml b/components/package/contents/ui/Composer.qml index 1558ba0a..e8dc4e1a 100644 --- a/components/package/contents/ui/Composer.qml +++ b/components/package/contents/ui/Composer.qml @@ -1,19 +1,20 @@ /* - * Copyright (C) 2016 Michael Bohlender - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ import QtQuick 2.4 import QtQuick.Controls 1.4 diff --git a/components/package/contents/ui/ContentView.qml b/components/package/contents/ui/ContentView.qml index a8f4c437..099d5c5d 100644 --- a/components/package/contents/ui/ContentView.qml +++ b/components/package/contents/ui/ContentView.qml @@ -1,3 +1,21 @@ +/* + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + import QtQuick 2.4 import QtQuick.Controls 1.3 diff --git a/components/package/contents/ui/EditAccountDialog.qml b/components/package/contents/ui/EditAccountDialog.qml index 887f50e1..6045faf8 100644 --- a/components/package/contents/ui/EditAccountDialog.qml +++ b/components/package/contents/ui/EditAccountDialog.qml @@ -1,19 +1,20 @@ /* - * Copyright (C) 2016 Michael Bohlender - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ import QtQuick 2.4 import QtQuick.Controls 1.4 diff --git a/components/package/contents/ui/FocusComposer.qml b/components/package/contents/ui/FocusComposer.qml index 4d5499d9..bbee1edc 100644 --- a/components/package/contents/ui/FocusComposer.qml +++ b/components/package/contents/ui/FocusComposer.qml @@ -1,19 +1,20 @@ /* - * Copyright (C) 2016 Michael Bohlender - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ import QtQuick 2.4 import QtQuick.Controls 1.4 diff --git a/components/package/contents/ui/FolderListView.qml b/components/package/contents/ui/FolderListView.qml index c8284b0a..bf4263c4 100644 --- a/components/package/contents/ui/FolderListView.qml +++ b/components/package/contents/ui/FolderListView.qml @@ -1,19 +1,20 @@ /* - * Copyright (C) 2015 Michael Bohlender - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ import QtQuick 2.4 import QtQuick.Controls 1.4 diff --git a/components/package/contents/ui/ListItem.qml b/components/package/contents/ui/ListItem.qml index bea3c11b..0f3b7af9 100644 --- a/components/package/contents/ui/ListItem.qml +++ b/components/package/contents/ui/ListItem.qml @@ -1,19 +1,20 @@ /* - * Copyright (C) 2015 Michael Bohlender - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ import QtQuick 2.4 import org.kube.framework.theme 1.0 diff --git a/components/package/contents/ui/MailListView.qml b/components/package/contents/ui/MailListView.qml index d0278833..ff71e43e 100644 --- a/components/package/contents/ui/MailListView.qml +++ b/components/package/contents/ui/MailListView.qml @@ -1,19 +1,20 @@ /* - * Copyright (C) 2015 Michael Bohlender - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ import QtQuick 2.4 import QtQuick.Controls 1.4 as Controls diff --git a/components/package/contents/ui/MailViewer.qml b/components/package/contents/ui/MailViewer.qml index 9abd30be..5365be66 100644 --- a/components/package/contents/ui/MailViewer.qml +++ b/components/package/contents/ui/MailViewer.qml @@ -1,3 +1,21 @@ +/* + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + import QtQuick 2.4 import QtQuick.Controls 1.3 import QtQuick.Controls 1.4 diff --git a/components/package/contents/ui/MessagePartTree.qml b/components/package/contents/ui/MessagePartTree.qml index 8bc13e6e..a904f42c 100644 --- a/components/package/contents/ui/MessagePartTree.qml +++ b/components/package/contents/ui/MessagePartTree.qml @@ -1,3 +1,21 @@ +/* + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + import QtQuick 2.4 import QtQuick.Controls 1.3 diff --git a/components/package/contents/ui/NewAccountDialog.qml b/components/package/contents/ui/NewAccountDialog.qml index 9183be65..e565cb6a 100644 --- a/components/package/contents/ui/NewAccountDialog.qml +++ b/components/package/contents/ui/NewAccountDialog.qml @@ -1,19 +1,20 @@ /* - * Copyright (C) 2016 Michael Bohlender - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ import QtQuick 2.4 import QtQuick.Controls 1.4 diff --git a/components/package/contents/ui/Outbox.qml b/components/package/contents/ui/Outbox.qml index ff049683..01501410 100644 --- a/components/package/contents/ui/Outbox.qml +++ b/components/package/contents/ui/Outbox.qml @@ -1,19 +1,20 @@ /* - * Copyright (C) 2016 Michael Bohlender - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ import QtQuick 2.4 import QtQuick.Controls 1.3 diff --git a/components/package/contents/ui/OverlayDialog.qml b/components/package/contents/ui/OverlayDialog.qml index 226ed79d..da75ca99 100644 --- a/components/package/contents/ui/OverlayDialog.qml +++ b/components/package/contents/ui/OverlayDialog.qml @@ -1,19 +1,20 @@ /* - * Copyright (C) 2016 Michael Bohlender - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ import QtQuick 2.4 import QtQuick.Controls 1.4 @@ -59,4 +60,4 @@ Item { anchors.fill: parent } } -} \ No newline at end of file +} diff --git a/components/package/contents/ui/SingleMailView.qml b/components/package/contents/ui/SingleMailView.qml index ea8a7730..b06216dd 100644 --- a/components/package/contents/ui/SingleMailView.qml +++ b/components/package/contents/ui/SingleMailView.qml @@ -1,19 +1,20 @@ /* - * Copyright (C) 2015 Michael Bohlender - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ import QtQuick 2.4 import QtQuick.Controls 1.3 @@ -229,4 +230,4 @@ Item { } } } -} \ No newline at end of file +} diff --git a/components/package/contents/ui/TextView.qml b/components/package/contents/ui/TextView.qml index 7c2f3153..d0ff9999 100644 --- a/components/package/contents/ui/TextView.qml +++ b/components/package/contents/ui/TextView.qml @@ -1,3 +1,21 @@ +/* + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + import QtQuick 2.4 import QtQuick.Controls 1.3 diff --git a/components/package/contents/ui/WebView.qml b/components/package/contents/ui/WebView.qml index 01998911..4c7aab53 100644 --- a/components/package/contents/ui/WebView.qml +++ b/components/package/contents/ui/WebView.qml @@ -1,3 +1,21 @@ +/* + Copyright (C) 2016 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + import QtQuick 2.4 import QtQuick.Controls 1.3 import QtWebKit 3.0 -- cgit v1.2.3