[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33935 - in gnunet-qt/SecureShare: . qml qml/fonts qml/imag
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33935 - in gnunet-qt/SecureShare: . qml qml/fonts qml/images qml/images/demo |
Date: |
Mon, 7 Jul 2014 01:20:08 +0200 |
Author: bratao
Date: 2014-07-07 01:20:08 +0200 (Mon, 07 Jul 2014)
New Revision: 33935
Added:
gnunet-qt/SecureShare/qml/fonts/
gnunet-qt/SecureShare/qml/fonts/BebasNeue.otf
gnunet-qt/SecureShare/qml/fonts/Ubuntu-BI.ttf
gnunet-qt/SecureShare/qml/fonts/Ubuntu-L.ttf
gnunet-qt/SecureShare/qml/fonts/Ubuntu-R.ttf
gnunet-qt/SecureShare/qml/images/demo/
gnunet-qt/SecureShare/qml/images/demo/Conffeti-background.jpg
gnunet-qt/SecureShare/qml/images/demo/arp.jpg
gnunet-qt/SecureShare/qml/images/demo/baila.jpg
gnunet-qt/SecureShare/qml/images/demo/doll.jpg
gnunet-qt/SecureShare/qml/images/demo/lynX.jpg
gnunet-qt/SecureShare/qml/images/demo/popcorn-background.jpg
gnunet-qt/SecureShare/qml/images/demo/ubuntu-wallpaper.jpg
gnunet-qt/SecureShare/qml/images/email.png
gnunet-qt/SecureShare/qml/images/home.png
gnunet-qt/SecureShare/qml/images/location.png
gnunet-qt/SecureShare/qml/images/logo.png
gnunet-qt/SecureShare/qml/images/phone.png
gnunet-qt/SecureShare/qml/images/share.png
gnunet-qt/SecureShare/qml/profile.qml
gnunet-qt/SecureShare/qml/threadChat.qml
Removed:
gnunet-qt/SecureShare/qml/threadChat/
Modified:
gnunet-qt/SecureShare/qml.qrc
gnunet-qt/SecureShare/qml/About.qml
gnunet-qt/SecureShare/qml/main.qml
Log:
Towards implementing a Profile screen
Modified: gnunet-qt/SecureShare/qml/About.qml
===================================================================
--- gnunet-qt/SecureShare/qml/About.qml 2014-07-06 20:50:45 UTC (rev 33934)
+++ gnunet-qt/SecureShare/qml/About.qml 2014-07-06 23:20:08 UTC (rev 33935)
@@ -17,7 +17,9 @@
spacing: 5
Label {
text: "Entrance designed by Stefan Parnarov from the Noun Project
- Add designed by Factorio.us collective from the Noun Project"
+ Add designed by Factorio.us collective from the Noun Project
+ GLYPHICONS FREE are released under the Creative Commons
Attribution 3.0 Unported (CC BY 3.0) (http://glyphicons.com/).
+"
}
Added: gnunet-qt/SecureShare/qml/fonts/BebasNeue.otf
===================================================================
(Binary files differ)
Index: gnunet-qt/SecureShare/qml/fonts/BebasNeue.otf
===================================================================
--- gnunet-qt/SecureShare/qml/fonts/BebasNeue.otf 2014-07-06 20:50:45 UTC
(rev 33934)
+++ gnunet-qt/SecureShare/qml/fonts/BebasNeue.otf 2014-07-06 23:20:08 UTC
(rev 33935)
Property changes on: gnunet-qt/SecureShare/qml/fonts/BebasNeue.otf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: gnunet-qt/SecureShare/qml/fonts/Ubuntu-BI.ttf
===================================================================
(Binary files differ)
Index: gnunet-qt/SecureShare/qml/fonts/Ubuntu-BI.ttf
===================================================================
--- gnunet-qt/SecureShare/qml/fonts/Ubuntu-BI.ttf 2014-07-06 20:50:45 UTC
(rev 33934)
+++ gnunet-qt/SecureShare/qml/fonts/Ubuntu-BI.ttf 2014-07-06 23:20:08 UTC
(rev 33935)
Property changes on: gnunet-qt/SecureShare/qml/fonts/Ubuntu-BI.ttf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: gnunet-qt/SecureShare/qml/fonts/Ubuntu-L.ttf
===================================================================
(Binary files differ)
Index: gnunet-qt/SecureShare/qml/fonts/Ubuntu-L.ttf
===================================================================
--- gnunet-qt/SecureShare/qml/fonts/Ubuntu-L.ttf 2014-07-06 20:50:45 UTC
(rev 33934)
+++ gnunet-qt/SecureShare/qml/fonts/Ubuntu-L.ttf 2014-07-06 23:20:08 UTC
(rev 33935)
Property changes on: gnunet-qt/SecureShare/qml/fonts/Ubuntu-L.ttf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: gnunet-qt/SecureShare/qml/fonts/Ubuntu-R.ttf
===================================================================
(Binary files differ)
Index: gnunet-qt/SecureShare/qml/fonts/Ubuntu-R.ttf
===================================================================
--- gnunet-qt/SecureShare/qml/fonts/Ubuntu-R.ttf 2014-07-06 20:50:45 UTC
(rev 33934)
+++ gnunet-qt/SecureShare/qml/fonts/Ubuntu-R.ttf 2014-07-06 23:20:08 UTC
(rev 33935)
Property changes on: gnunet-qt/SecureShare/qml/fonts/Ubuntu-R.ttf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: gnunet-qt/SecureShare/qml/images/demo/Conffeti-background.jpg
===================================================================
(Binary files differ)
Index: gnunet-qt/SecureShare/qml/images/demo/Conffeti-background.jpg
===================================================================
--- gnunet-qt/SecureShare/qml/images/demo/Conffeti-background.jpg
2014-07-06 20:50:45 UTC (rev 33934)
+++ gnunet-qt/SecureShare/qml/images/demo/Conffeti-background.jpg
2014-07-06 23:20:08 UTC (rev 33935)
Property changes on:
gnunet-qt/SecureShare/qml/images/demo/Conffeti-background.jpg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: gnunet-qt/SecureShare/qml/images/demo/arp.jpg
===================================================================
(Binary files differ)
Index: gnunet-qt/SecureShare/qml/images/demo/arp.jpg
===================================================================
--- gnunet-qt/SecureShare/qml/images/demo/arp.jpg 2014-07-06 20:50:45 UTC
(rev 33934)
+++ gnunet-qt/SecureShare/qml/images/demo/arp.jpg 2014-07-06 23:20:08 UTC
(rev 33935)
Property changes on: gnunet-qt/SecureShare/qml/images/demo/arp.jpg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: gnunet-qt/SecureShare/qml/images/demo/baila.jpg
===================================================================
(Binary files differ)
Index: gnunet-qt/SecureShare/qml/images/demo/baila.jpg
===================================================================
--- gnunet-qt/SecureShare/qml/images/demo/baila.jpg 2014-07-06 20:50:45 UTC
(rev 33934)
+++ gnunet-qt/SecureShare/qml/images/demo/baila.jpg 2014-07-06 23:20:08 UTC
(rev 33935)
Property changes on: gnunet-qt/SecureShare/qml/images/demo/baila.jpg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: gnunet-qt/SecureShare/qml/images/demo/doll.jpg
===================================================================
(Binary files differ)
Index: gnunet-qt/SecureShare/qml/images/demo/doll.jpg
===================================================================
--- gnunet-qt/SecureShare/qml/images/demo/doll.jpg 2014-07-06 20:50:45 UTC
(rev 33934)
+++ gnunet-qt/SecureShare/qml/images/demo/doll.jpg 2014-07-06 23:20:08 UTC
(rev 33935)
Property changes on: gnunet-qt/SecureShare/qml/images/demo/doll.jpg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: gnunet-qt/SecureShare/qml/images/demo/lynX.jpg
===================================================================
(Binary files differ)
Index: gnunet-qt/SecureShare/qml/images/demo/lynX.jpg
===================================================================
--- gnunet-qt/SecureShare/qml/images/demo/lynX.jpg 2014-07-06 20:50:45 UTC
(rev 33934)
+++ gnunet-qt/SecureShare/qml/images/demo/lynX.jpg 2014-07-06 23:20:08 UTC
(rev 33935)
Property changes on: gnunet-qt/SecureShare/qml/images/demo/lynX.jpg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: gnunet-qt/SecureShare/qml/images/demo/popcorn-background.jpg
===================================================================
(Binary files differ)
Index: gnunet-qt/SecureShare/qml/images/demo/popcorn-background.jpg
===================================================================
--- gnunet-qt/SecureShare/qml/images/demo/popcorn-background.jpg
2014-07-06 20:50:45 UTC (rev 33934)
+++ gnunet-qt/SecureShare/qml/images/demo/popcorn-background.jpg
2014-07-06 23:20:08 UTC (rev 33935)
Property changes on:
gnunet-qt/SecureShare/qml/images/demo/popcorn-background.jpg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: gnunet-qt/SecureShare/qml/images/demo/ubuntu-wallpaper.jpg
===================================================================
(Binary files differ)
Index: gnunet-qt/SecureShare/qml/images/demo/ubuntu-wallpaper.jpg
===================================================================
--- gnunet-qt/SecureShare/qml/images/demo/ubuntu-wallpaper.jpg 2014-07-06
20:50:45 UTC (rev 33934)
+++ gnunet-qt/SecureShare/qml/images/demo/ubuntu-wallpaper.jpg 2014-07-06
23:20:08 UTC (rev 33935)
Property changes on: gnunet-qt/SecureShare/qml/images/demo/ubuntu-wallpaper.jpg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: gnunet-qt/SecureShare/qml/images/email.png
===================================================================
(Binary files differ)
Index: gnunet-qt/SecureShare/qml/images/email.png
===================================================================
--- gnunet-qt/SecureShare/qml/images/email.png 2014-07-06 20:50:45 UTC (rev
33934)
+++ gnunet-qt/SecureShare/qml/images/email.png 2014-07-06 23:20:08 UTC (rev
33935)
Property changes on: gnunet-qt/SecureShare/qml/images/email.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+image/png
\ No newline at end of property
Added: gnunet-qt/SecureShare/qml/images/home.png
===================================================================
(Binary files differ)
Index: gnunet-qt/SecureShare/qml/images/home.png
===================================================================
--- gnunet-qt/SecureShare/qml/images/home.png 2014-07-06 20:50:45 UTC (rev
33934)
+++ gnunet-qt/SecureShare/qml/images/home.png 2014-07-06 23:20:08 UTC (rev
33935)
Property changes on: gnunet-qt/SecureShare/qml/images/home.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+image/png
\ No newline at end of property
Added: gnunet-qt/SecureShare/qml/images/location.png
===================================================================
(Binary files differ)
Index: gnunet-qt/SecureShare/qml/images/location.png
===================================================================
--- gnunet-qt/SecureShare/qml/images/location.png 2014-07-06 20:50:45 UTC
(rev 33934)
+++ gnunet-qt/SecureShare/qml/images/location.png 2014-07-06 23:20:08 UTC
(rev 33935)
Property changes on: gnunet-qt/SecureShare/qml/images/location.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+image/png
\ No newline at end of property
Added: gnunet-qt/SecureShare/qml/images/logo.png
===================================================================
(Binary files differ)
Index: gnunet-qt/SecureShare/qml/images/logo.png
===================================================================
--- gnunet-qt/SecureShare/qml/images/logo.png 2014-07-06 20:50:45 UTC (rev
33934)
+++ gnunet-qt/SecureShare/qml/images/logo.png 2014-07-06 23:20:08 UTC (rev
33935)
Property changes on: gnunet-qt/SecureShare/qml/images/logo.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+image/png
\ No newline at end of property
Added: gnunet-qt/SecureShare/qml/images/phone.png
===================================================================
(Binary files differ)
Index: gnunet-qt/SecureShare/qml/images/phone.png
===================================================================
--- gnunet-qt/SecureShare/qml/images/phone.png 2014-07-06 20:50:45 UTC (rev
33934)
+++ gnunet-qt/SecureShare/qml/images/phone.png 2014-07-06 23:20:08 UTC (rev
33935)
Property changes on: gnunet-qt/SecureShare/qml/images/phone.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+image/png
\ No newline at end of property
Added: gnunet-qt/SecureShare/qml/images/share.png
===================================================================
(Binary files differ)
Index: gnunet-qt/SecureShare/qml/images/share.png
===================================================================
--- gnunet-qt/SecureShare/qml/images/share.png 2014-07-06 20:50:45 UTC (rev
33934)
+++ gnunet-qt/SecureShare/qml/images/share.png 2014-07-06 23:20:08 UTC (rev
33935)
Property changes on: gnunet-qt/SecureShare/qml/images/share.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+image/png
\ No newline at end of property
Modified: gnunet-qt/SecureShare/qml/main.qml
===================================================================
--- gnunet-qt/SecureShare/qml/main.qml 2014-07-06 20:50:45 UTC (rev 33934)
+++ gnunet-qt/SecureShare/qml/main.qml 2014-07-06 23:20:08 UTC (rev 33935)
@@ -40,7 +40,7 @@
MenuItem {
text: qsTr("Threaded Chat")
onTriggered: {
- var threadChat =
Qt.createComponent("qrc:///qml/threadChat/threadChat.qml");
+ var threadChat =
Qt.createComponent("qrc:///qml/ThreadChat.qml");
var threadChatWnd = threadChat.createObject();
threadChatWnd.show();
}
@@ -63,14 +63,26 @@
}
}
+ MenuItem {
+ text: qsTr("Profile")
+ onTriggered: {
+ var profile = Qt.createComponent("qrc:///qml/Profile.qml");
+ var profileWnd = profile.createObject();
+ profileWnd.show();
+ }
+ }
+
}
}
+ Profile{
+ }
+
ConversationWindow{
id: conversationWnd
}
Added: gnunet-qt/SecureShare/qml/profile.qml
===================================================================
--- gnunet-qt/SecureShare/qml/profile.qml (rev 0)
+++ gnunet-qt/SecureShare/qml/profile.qml 2014-07-06 23:20:08 UTC (rev
33935)
@@ -0,0 +1,261 @@
+import QtQuick 2.1
+import QtQuick.Window 2.1
+import QtQuick.Controls 1.2
+import QtQuick.Layouts 1.1
+import QtQuick.Controls.Styles 1.1
+
+import Psyc 1.0
+
+Window {
+ id: profileWnd
+ width: 1000
+ height: 700
+ color: "white"
+ title: "Profile"
+
+
+ FontLoader { id: bebasFont; source: "fonts/BebasNeue.otf" }
+ FontLoader { id: ubuntuFont; source: "fonts/Ubuntu-R.ttf" }
+ FontLoader { id: ubuntuBIFont; source: "fonts/Ubuntu-BI.ttf" }
+ FontLoader { id: ubuntuLFont; source: "fonts/Ubuntu-L.ttf" }
+
+
+
+ QtObject {
+ id: person
+ property string name : "Maria da Silva"
+ property string nick : "Bailadora"
+ property string address : "1243 Your Sr. Town, XX 54321"
+ property string telephone : "(555)123-4567"
+ property string site : "mysite.com"
+ property string email : "address@hidden"
+ property string image: "images/demo/baila.jpg"
+ property string description: "Did you see that NSA graffiti on the
corner of Chaussestr. and Torstr. not only does it look amazing, it's algo such
a strong message !!"
+ }
+
+ RowLayout{
+ anchors.fill: parent
+
+ Rectangle{
+ Layout.fillHeight: true
+ Layout.minimumWidth: 290
+ Layout.maximumWidth: 290
+ color: "white"
+
+ Rectangle{
+ id: profilePhotoRectangle
+ anchors.top: parent.top
+ anchors.left: parent.left
+ anchors.topMargin: 20
+ anchors.leftMargin: 20
+ width: 250; height: 380
+ color: "#CBCBCB"
+
+ Image {
+ id: profilePhoto
+ anchors.fill: parent
+ anchors.margins: 1
+ source: person.image
+
+ fillMode: Image.PreserveAspectCrop
+
+ }
+ }
+
+
+ Label{
+ id: nickLine
+ anchors.top: profilePhotoRectangle.bottom
+ anchors.topMargin: 15
+ anchors.left: profilePhotoRectangle.left
+ anchors.leftMargin: 15
+ text: person.nick
+ font.pointSize: 22
+ font.family: ubuntuFont.name
+ }
+ Label{
+ id: phraseLine
+ anchors.top: nickLine.bottom
+ anchors.left: nickLine.left
+ text: person.nick
+ font.pointSize: 12
+ font.family: ubuntuFont.name
+ }
+
+ Row{
+ id:addressLine
+ anchors.top: phraseLine.bottom
+ anchors.topMargin: 10
+ anchors.left: phraseLine.left
+ spacing: 5
+
+ Image {
+ id: addressIcon
+ source: "images/location.png"
+ fillMode: Image.PreserveAspectFit
+ height: 15
+ width: 15
+ }
+
+ Label{
+
+ text: person.address
+ anchors.verticalCenter: addressIcon.verticalCenter
+ font.pointSize: 12
+ font.family: ubuntuFont.name
+ }
+ }
+
+
+ Row{
+ id:phoneLine
+
+ anchors.top: addressLine.bottom
+ anchors.topMargin: 10
+ anchors.left: addressLine.left
+ spacing: 5
+
+ Image {
+ id: phoneIcon
+ source: "images/phone.png"
+ fillMode: Image.PreserveAspectFit
+ height: 15
+ width: 15
+ }
+
+ Label{
+
+ text: person.telephone
+ anchors.verticalCenter: phoneIcon.verticalCenter
+ font.pointSize: 12
+ font.family: ubuntuFont.name
+ }
+ }
+
+ Row{
+ id:websiteLine
+
+ anchors.top: phoneLine.bottom
+ anchors.topMargin: 10
+ anchors.left: phoneLine.left
+ spacing: 5
+
+ Image {
+ id: websiteIcon
+ source: "images/home.png"
+ fillMode: Image.PreserveAspectFit
+ height: 15
+ width: 15
+ }
+
+ Label{
+
+ text: person.site
+ anchors.verticalCenter: websiteIcon.verticalCenter
+ font.pointSize: 12
+ font.family: ubuntuFont.name
+ }
+ }
+
+ Row{
+ id:emailLine
+
+ anchors.top: websiteLine.bottom
+ anchors.topMargin: 10
+ anchors.left: websiteLine.left
+ spacing: 5
+
+ Image {
+ id: emailIcon
+ source: "images/email.png"
+ fillMode: Image.PreserveAspectFit
+ height: 15
+ width: 15
+ }
+
+ Label{
+
+ text: person.email
+ anchors.verticalCenter: emailIcon.verticalCenter
+ font.pointSize: 12
+ font.family: ubuntuFont.name
+ }
+ }
+
+ }
+
+ Rectangle{
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ color: "white"
+
+
+
+ Label {
+ id: title
+ anchors.top: parent.top
+ anchors.left: parent.left
+
+ anchors.topMargin: 20
+ height: 60
+ width: 200
+ text: "About " + person.name
+ font.pixelSize: 32
+ font.family: ubuntuFont.name
+ }
+
+ Rectangle{
+
+ anchors.top: parent.top
+ anchors.topMargin: 20
+ anchors.right: parent.right
+ anchors.rightMargin: 20
+
+ width: 150
+ height: 50
+ color: "#CBCBCB"
+
+ Slider {
+ id: slider1
+ value: 0.5
+ style: SliderStyle { }
+ implicitWidth: 150
+ }
+
+
+ }
+
+
+
+
+ Rectangle{
+ anchors.top: title.bottom
+ anchors.left: parent.left
+ anchors.right: parent.right
+ anchors.rightMargin: 10
+ height: 200
+
+ color: "#f1f1f1"
+
+ Text{
+ anchors.fill: parent
+ anchors.leftMargin: 20
+ anchors.rightMargin: 20
+ anchors.topMargin: 10
+ wrapMode : Text.Wrap
+ elide : Text.ElideRight
+ color: "black"
+ font.family: ubuntuLFont.name
+ font.pixelSize: 16
+ font.letterSpacing : -2
+
+ text: "Edward Joseph \"Ed\" Snowden (born June 21, 1983)
is an American computer professional. A former systems administrator for the
Central Intelligence Agency (CIA) and a counterintelligence trainer at the
Defense Intelligence Agency (DIA), he later went to work for the private
intelligence contractor Dell, inside a National Security Agency (NSA) outpost
in Japan. In early 2013, he joined the consulting firm Booz Allen Hamilton
inside the NSA center in Hawaii. In June 2013, he came to international
attention after disclosing to several media outlets thousands of classified
documents that he acquired while working as an NSA contractor for Dell and Booz
Allen Hamilton."
+ }
+ }
+
+
+ }
+
+
+ }
+}
Added: gnunet-qt/SecureShare/qml/threadChat.qml
===================================================================
--- gnunet-qt/SecureShare/qml/threadChat.qml (rev 0)
+++ gnunet-qt/SecureShare/qml/threadChat.qml 2014-07-06 23:20:08 UTC (rev
33935)
@@ -0,0 +1,644 @@
+import QtQuick 2.1
+import QtQuick.Window 2.1
+import QtQuick.Controls 1.2
+import QtQuick.Layouts 1.1
+import QtQuick.Controls.Styles 1.2
+
+import Psyc 1.0
+
+Window {
+ id: threadChatWnd
+ width: 1000
+ height: 700
+ color: "white"
+ title: "All conversations"
+
+ property var selectedItem: null
+
+ FontLoader { id: bebasFont; source: "fonts/BebasNeue.otf" }
+ FontLoader { id: ubuntuFont; source: "fonts/Ubuntu-R.ttf" }
+ FontLoader { id: ubuntuBIFont; source: "fonts/Ubuntu-BI.ttf" }
+
+
+
+
+
+
+ RowLayout{
+ anchors.fill: parent
+
+ ColumnLayout{
+
+ height: parent.height
+ width: 230
+
+
+ Image {
+ Layout.maximumWidth: 180
+ id: logoSecureShare
+ anchors.horizontalCenter: parent.horizontalCenter
+ width: 16
+ height: 100
+ source: "images/logo.png"
+ fillMode: Image.PreserveAspectFit
+ }
+
+ Rectangle{
+ Layout.fillHeight: true
+ width: 200;
+ anchors.left: parent.left
+ anchors.leftMargin: 8
+
+
+
+ color: "#EB0C60"
+
+
+
+ Rectangle{
+ id: topicsTitle
+ color: "white"
+ height: 30
+
+
+
+ anchors.top: parent.top
+ anchors.topMargin: 15
+ anchors.left: parent.left
+ anchors.leftMargin: 5
+ anchors.right: parent.right
+ anchors.rightMargin: 5
+
+ Text {
+ id: topicsTitleText
+ text: qsTr("TOPICS")
+ anchors.centerIn: parent
+ font.pointSize: 22
+ //font.bold :true
+ font.family: bebasFont.name
+ }
+ }
+
+ ListModel {
+ id: topicsModel
+ ListElement {
+ name: "Things you knew this morning"
+ image: "images/demo/Conffeti-background.jpg"
+ }
+ ListElement {
+ name: "Did you see the NSA graffiti"
+ image: "images/demo/ubuntu-wallpaper.jpg"
+ }
+ ListElement {
+ name: "Popcorn"
+ image: "images/demo/popcorn-background.jpg"
+ }
+ }
+
+
+ ListView {
+ id: topicList
+ anchors.top: topicsTitle.bottom
+ anchors.topMargin: 30
+ anchors.bottom: parent.bottom
+ anchors.right: parent.right
+
+ anchors.left: parent.left
+ anchors.leftMargin: 15
+
+ spacing: 15
+ clip: true
+
+ Component {
+ id: topicsDelegate
+
+
+ Item {
+ id: wrapper
+ width: wrapper.ListView.isCurrentItem ? 186 : 170
+ height: 170
+
+
+
+
+ Rectangle {
+ id: wrapperInside
+ anchors.fill: parent
+ anchors.topMargin: 20
+ opacity: 1.0
+
+ color: wrapper.ListView.isCurrentItem ?
"white" : "black"
+
+ Image {
+ id: threadMiniImage
+ source: image
+ fillMode: Image.PreserveAspectCrop
+ height: 60
+ width: 160
+ anchors.left: parent.left
+ anchors.leftMargin: 5
+ anchors.top: parent.top
+ anchors.topMargin: 5
+
+ }
+
+ Text {
+ anchors.top: threadMiniImage.bottom
+ id: contactInfo
+ text: name
+ width: 160
+ height: 80
+ anchors.left: parent.left
+ anchors.leftMargin: 5
+
+ wrapMode : Text.Wrap
+ elide : Text.ElideRight
+ color: wrapper.ListView.isCurrentItem ?
"black" : "white"
+
+ font.family: ubuntuBIFont.name
+ font.pointSize: 18
+ font.letterSpacing : -2
+ }
+
+
+
+
+
+ MouseArea{
+ id:ma
+ anchors.fill: parent
+ onClicked: {
+ topicList.currentIndex = index
+ }
+ }
+ }
+ Rectangle{
+
+ id:indicator
+
+ radius: 35
+ color: "#EFC208"
+ anchors.left: wrapperInside.left
+ anchors.leftMargin: 125
+ anchors.top: parent.top
+ anchors.topMargin: 10
+ border.color: "black"
+ border.width: 3
+ height: 35
+ width: 35
+ visible: wrapper.ListView.isCurrentItem ?
false: true
+
+
+ Text {
+ anchors.centerIn: parent
+ id: numberNewTopics
+ text: "12"
+ font.family: ubuntuFont.name
+ font.pointSize: 14
+
+ }
+ }
+
+ }
+ }
+
+ model: topicsModel
+ delegate: topicsDelegate
+ focus: true
+
+ onCurrentIndexChanged: {
+ selectedItem = model.get(currentIndex)
+ }
+ }
+
+
+
+ }
+
+
+ }
+
+
+ ColumnLayout{
+ Layout.fillWidth: true
+
+
+ Rectangle{
+ anchors.fill: parent
+ anchors.leftMargin: 20
+ anchors.rightMargin: 20
+ anchors.topMargin: 20
+ color: "white"
+
+
+ Image {
+ id: topicBackgroundImage
+ anchors.fill: parent
+ opacity: 0.5
+ fillMode: Image.Tile
+ clip: true
+ source: selectedItem.image
+ }
+
+ Rectangle{
+ id: forumTitleRectangle
+ color: "black"
+ height: 50
+ width: 500
+ opacity: 0.9
+ anchors.top: parent.top
+ anchors.topMargin: 20
+ Text {
+ id: forumTitleText
+ anchors.verticalCenter: parent.verticalCenter
+ anchors.left: parent.left
+ anchors.leftMargin: 20
+ text: qsTr("Forum for clandestine urban art")
+ wrapMode : Text.Wrap
+ elide : Text.ElideRight
+ color: "white"
+ //font.bold: true
+ font.pointSize: 22
+ font.family: bebasFont.name
+ }
+ }
+
+
+ ListModel {
+ id: messagesModel
+ ListElement {
+ name: "Bailadora"
+ image: "images/demo/baila.jpg"
+ messagecontent: "Did you see that NSA graffiti on the
corner of Chaussestr. and Torstr. not only does it look amazing, it's algo such
a strong message !!"
+ }
+ ListElement {
+ name: "La Doll"
+ image: "images/demo/doll.jpg"
+
+ messagecontent: "Oh yeah, totally awesome! Was about
time somebody said that! And with style!"
+ }
+ ListElement {
+ name: "Arpeggio"
+ image: "images/demo/arp.jpg"
+ messagecontent: "What! What ? Guess I'll take an extra
detour on the bike to see that!"
+ }
+
+ }
+
+ ListView {
+ id: messagesList
+ anchors.top: forumTitleRectangle.bottom
+ anchors.topMargin: 30
+ anchors.bottom: replyField.top
+ anchors.right: parent.right
+
+ anchors.left: parent.left
+ anchors.leftMargin: 15
+
+ spacing: 15
+ clip: true
+
+ Component {
+ id: messagesDelegate
+ Item {
+ id: wrapper
+ width: parent.width - 100
+ height: (contentWrapper.height >
userWrapper.height) ? contentWrapper.height : userWrapper.height
+
+
+
+ Rectangle {
+ id: userWrapper
+ width: (index == 0) ? 140 : 90
+ height: (index == 0) ? 140 : 90
+ anchors.left: parent.left
+ anchors.leftMargin: (index == 0) ? 0 : 50
+
+ color: "black"
+ opacity: 1.0
+
+ Image {
+ id: messageMiniImage
+ source: image
+ fillMode: Image.PreserveAspectCrop
+ height: (index == 0) ? 100 : 60
+ width: (index == 0) ? 130 : 80
+ anchors.left: parent.left
+ anchors.leftMargin: 5
+ anchors.top: parent.top
+ anchors.topMargin: 5
+
+ }
+
+ Text {
+ anchors.top: messageMiniImage.bottom
+ id: contactText
+ text: name
+
+
+ width: (index == 0) ? 135 : 85
+ height: 30
+ anchors.left: parent.left
+ anchors.leftMargin: 10
+
+ wrapMode : Text.Wrap
+ elide : Text.ElideRight
+ color: "white"
+ font.family: ubuntuBIFont.name
+ font.pointSize: (index == 0) ? 16 : 12
+ font.letterSpacing : -2
+
+ }
+
+
+ MouseArea{
+ id:ma
+ anchors.fill: parent
+ onClicked: {
+ messagesList.currentIndex = index
+ }
+ }
+ }
+
+
+ Rectangle{
+
+ id: contentWrapper
+
+ anchors.left: userWrapper.right
+ anchors.right: parent.right
+ anchors.top: parent.top
+ anchors.leftMargin: 10
+ anchors.rightMargin: 10
+ anchors.topMargin: 0
+
+ height: content.contentHeight + 20
+
+
+
+
+ Text {
+ id: content
+ anchors.fill: parent
+ anchors.margins: 10
+
+ text: messagecontent
+ font.pointSize: 12
+ wrapMode : Text.Wrap
+
+ font.family: ubuntuFont.name
+
+ }
+ }
+
+
+ }
+ }
+
+ model: messagesModel
+ delegate: messagesDelegate
+
+ }
+
+ Item{
+ id: replyField
+ height: 70
+ anchors.left: parent.left
+ anchors.right: parent.right
+ anchors.bottom: parent.bottom
+
+
+
+ Rectangle {
+ id: userWrapper
+ width: 60
+ height: 60
+ color: "black"
+ opacity: 1.0
+
+ anchors.left: parent.left
+ anchors.leftMargin: 5
+ anchors.top: parent.top
+
+
+ Image {
+ id: messageMiniImage
+ source: "images/demo/lynX.jpg"
+ fillMode: Image.PreserveAspectCrop
+ height: 40
+ width: 48
+ anchors.left: parent.left
+ anchors.top: parent.top
+ anchors.margins: 3
+
+ }
+
+ Text {
+ anchors.top: messageMiniImage.bottom
+ id: contactText
+ text: "lynX"
+ font.pointSize: 10
+ width: 55
+ height: 15
+ anchors.left: parent.left
+ anchors.leftMargin: 5
+
+ wrapMode : Text.Wrap
+ elide : Text.ElideRight
+ color: "white"
+
+ font.family: ubuntuBIFont.name
+ font.letterSpacing : -1
+ }
+
+
+ }
+
+
+
+ TextArea{
+
+ anchors.left: userWrapper.right
+ anchors.right: parent.right
+ anchors.top: userWrapper.top
+ anchors.bottom: userWrapper.bottom
+ anchors.rightMargin: 10
+ anchors.leftMargin: 10
+
+ }
+
+ /*Rectangle{
+ anchors.left: userWrapper.right
+ anchors.right: parent.right
+ anchors.top: parent.top
+ anchors.bottom: parent.bottom
+ anchors.leftMargin: 5
+
+ TextArea{
+
+ anchors.fill: parent
+ anchors.margins: 10
+
+ }
+
+ }*/
+
+
+ }
+
+
+ }
+
+
+
+
+
+
+
+
+ }
+
+
+ ColumnLayout{
+ Rectangle{
+ Layout.fillHeight: true
+ width: 200;
+ anchors.right: parent.right
+ anchors.rightMargin: 8
+ anchors.top: parent.top
+ anchors.topMargin: 20
+
+
+
+ color: "#EFC208"
+
+
+
+ Rectangle{
+ id: participantsTitle
+ color: "white"
+ height: 30
+
+
+
+ anchors.top: parent.top
+ anchors.topMargin: 15
+ anchors.left: parent.left
+ anchors.leftMargin: 5
+ anchors.right: parent.right
+ anchors.rightMargin: 5
+
+ Text {
+ id: participantsTitleText
+ text: qsTr("PARTICIPANTS")
+ anchors.centerIn: parent
+ font.pointSize: 22
+ //font.bold :true
+ font.family: bebasFont.name
+ }
+ }
+
+ ListModel {
+ id: participantsModel
+ ListElement {
+ name: "Bailadora"
+ image: "images/demo/baila.jpg"
+ }
+ ListElement {
+ name: "Arpeggio"
+ image: "images/demo/arp.jpg"
+ }
+ ListElement {
+ name: "La Doll"
+ image: "images/demo/doll.jpg"
+ }
+
+ ListElement {
+ name: "lynX"
+ image: "images/demo/lynX.jpg"
+ }
+ }
+
+
+ ListView {
+ id: participantsList
+ anchors.top: participantsTitle.bottom
+ anchors.topMargin: 30
+ anchors.bottom: parent.bottom
+ anchors.right: parent.right
+
+ anchors.left: parent.left
+ anchors.leftMargin: 15
+
+ spacing: 15
+ clip: true
+
+ Component {
+ id: participantsDelegate
+ Rectangle {
+ id: wrapper
+ width: 170
+ height: 150
+ color: ListView.isCurrentItem ? "white" : "black"
+
+ Image {
+ id: threadMiniImage
+ source: image
+ fillMode: Image.PreserveAspectCrop
+ height: 110
+ width: 160
+ anchors.left: parent.left
+ anchors.leftMargin: 5
+ anchors.top: parent.top
+ anchors.topMargin: 5
+
+ }
+
+ Text {
+ anchors.top: threadMiniImage.bottom
+ id: contactInfo
+ text: name
+
+ width: 160
+ height: 40
+ anchors.left: parent.left
+ anchors.leftMargin: 5
+
+ wrapMode : Text.Wrap
+ elide : Text.ElideRight
+ color: wrapper.ListView.isCurrentItem ?
"black" : "white"
+
+ font.family: ubuntuBIFont.name
+ font.pointSize: 18
+ font.letterSpacing : -2
+
+ }
+
+
+ MouseArea{
+ id:ma
+ anchors.fill: parent
+ onClicked: {
+ participantsList.currentIndex = index
+ }
+ }
+ }
+ }
+
+ model: participantsModel
+ delegate: participantsDelegate
+ focus: true
+ }
+
+
+
+ }
+ }
+
+
+
+
+ }
+
+
+}
Modified: gnunet-qt/SecureShare/qml.qrc
===================================================================
--- gnunet-qt/SecureShare/qml.qrc 2014-07-06 20:50:45 UTC (rev 33934)
+++ gnunet-qt/SecureShare/qml.qrc 2014-07-06 23:20:08 UTC (rev 33935)
@@ -8,20 +8,8 @@
<file>qml/Splash.qml</file>
<file>assets/banner.png</file>
<file>qml/NewEgo.qml</file>
- <file>qml/threadChat/threadChat.qml</file>
- <file>qml/threadChat/assets/logo.png</file>
- <file>qml/threadChat/assets/ubuntu-wallpaper.jpg</file>
- <file>qml/threadChat/assets/arp.jpg</file>
- <file>qml/threadChat/assets/baila.jpg</file>
- <file>qml/threadChat/assets/doll.jpg</file>
- <file>qml/threadChat/assets/lynX.jpg</file>
- <file>qml/threadChat/assets/Conffeti-background.jpg</file>
- <file>qml/threadChat/assets/popcorn-background.jpg</file>
<file>assets/icon.png</file>
<file>assets/icon.ico</file>
- <file>qml/threadChat/BebasNeue.otf</file>
- <file>qml/threadChat/Ubuntu-R.ttf</file>
- <file>qml/threadChat/Ubuntu-BI.ttf</file>
<file>qml/joinRoom.qml</file>
<file>qml/createRoom.qml</file>
<file>qml/About.qml</file>
@@ -30,5 +18,24 @@
<file>qml/QrReader.qml</file>
<file>qml/ExportEgo.qml</file>
<file>qml/ImportEgo.qml</file>
+ <file>qml/fonts/BebasNeue.otf</file>
+ <file>qml/fonts/Ubuntu-BI.ttf</file>
+ <file>qml/fonts/Ubuntu-R.ttf</file>
+ <file>qml/images/logo.png</file>
+ <file>qml/images/demo/arp.jpg</file>
+ <file>qml/images/demo/baila.jpg</file>
+ <file>qml/images/demo/Conffeti-background.jpg</file>
+ <file>qml/images/demo/doll.jpg</file>
+ <file>qml/images/demo/lynX.jpg</file>
+ <file>qml/images/demo/popcorn-background.jpg</file>
+ <file>qml/images/demo/ubuntu-wallpaper.jpg</file>
+ <file>qml/ThreadChat.qml</file>
+ <file>qml/Profile.qml</file>
+ <file>qml/fonts/Ubuntu-L.ttf</file>
+ <file>qml/images/email.png</file>
+ <file>qml/images/home.png</file>
+ <file>qml/images/location.png</file>
+ <file>qml/images/phone.png</file>
+ <file>qml/images/share.png</file>
</qresource>
</RCC>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33935 - in gnunet-qt/SecureShare: . qml qml/fonts qml/images qml/images/demo,
gnunet <=