2015-04-01 10:56:05 +02:00
|
|
|
// Copyright (c) 2014-2015, The Monero Project
|
|
|
|
//
|
|
|
|
// All rights reserved.
|
|
|
|
//
|
|
|
|
// Redistribution and use in source and binary forms, with or without modification, are
|
|
|
|
// permitted provided that the following conditions are met:
|
|
|
|
//
|
|
|
|
// 1. Redistributions of source code must retain the above copyright notice, this list of
|
|
|
|
// conditions and the following disclaimer.
|
|
|
|
//
|
|
|
|
// 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
|
|
|
// of conditions and the following disclaimer in the documentation and/or other
|
|
|
|
// materials provided with the distribution.
|
|
|
|
//
|
|
|
|
// 3. Neither the name of the copyright holder nor the names of its contributors may be
|
|
|
|
// used to endorse or promote products derived from this software without specific
|
|
|
|
// prior written permission.
|
|
|
|
//
|
|
|
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
|
|
|
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
|
|
|
// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
|
|
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
|
|
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
|
|
|
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
2014-07-07 19:08:30 +02:00
|
|
|
import QtQuick 2.0
|
|
|
|
import "../components"
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
color: "#F0EEEE"
|
|
|
|
|
|
|
|
SearchInput {
|
|
|
|
id: searchInput
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: parent.top
|
2014-07-16 16:48:17 +02:00
|
|
|
anchors.leftMargin: 17
|
|
|
|
anchors.rightMargin: 17
|
|
|
|
anchors.topMargin: 17
|
2014-07-07 19:08:30 +02:00
|
|
|
z: 1
|
|
|
|
}
|
|
|
|
|
|
|
|
Text {
|
|
|
|
id: quickTransferText
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: searchInput.bottom
|
|
|
|
anchors.topMargin: 20
|
|
|
|
elide: Text.ElideRight
|
|
|
|
anchors.margins: 17
|
|
|
|
font.family: "Arial"
|
|
|
|
font.pixelSize: 18
|
|
|
|
color: "#4A4949"
|
2016-07-20 21:28:11 +02:00
|
|
|
text: qsTr("Quick transfer") + translationManager.emptyString
|
2014-07-07 19:08:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
LineEdit {
|
|
|
|
id: quickTransferLine
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: quickTransferText.bottom
|
|
|
|
anchors.topMargin: 18
|
|
|
|
anchors.leftMargin: 17
|
|
|
|
anchors.rightMargin: 17
|
|
|
|
}
|
|
|
|
|
|
|
|
Row {
|
|
|
|
id: row
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: quickTransferLine.bottom
|
|
|
|
anchors.topMargin: 18
|
|
|
|
anchors.leftMargin: 17
|
|
|
|
anchors.rightMargin: 17
|
|
|
|
spacing: 17
|
|
|
|
|
|
|
|
LineEdit {
|
|
|
|
id: amountLine
|
|
|
|
width: 148
|
|
|
|
placeholderText: "amount..."
|
|
|
|
}
|
|
|
|
|
|
|
|
StandardButton {
|
|
|
|
id: sendButton
|
|
|
|
width: 60
|
|
|
|
text: qsTr("SEND")
|
2014-07-09 17:44:13 +02:00
|
|
|
shadowReleasedColor: "#FF4304"
|
|
|
|
shadowPressedColor: "#B32D00"
|
2014-07-07 19:08:30 +02:00
|
|
|
releasedColor: "#FF6C3C"
|
|
|
|
pressedColor: "#FF4304"
|
|
|
|
}
|
|
|
|
|
|
|
|
Text {
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
font.family: "Arial"
|
|
|
|
font.pixelSize: 12
|
|
|
|
color: "#545454"
|
2014-07-09 16:18:48 +02:00
|
|
|
textFormat: Text.RichText
|
|
|
|
text: qsTr("<style type='text/css'>a {text-decoration: none; color: #FF6C3C; font-size: 14px;}</style>\
|
2016-08-31 22:43:37 +02:00
|
|
|
looking for security level and address book? go to <a href='#'>Transfer</a> tab")
|
2016-07-20 21:28:11 +02:00
|
|
|
+ translationManager.emptyString
|
2014-07-09 16:18:48 +02:00
|
|
|
font.underline: false
|
2014-07-13 14:27:50 +02:00
|
|
|
onLinkActivated: appWindow.showPageRequest("Transfer")
|
2014-07-07 19:08:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.top: row.bottom
|
|
|
|
anchors.topMargin: 17
|
|
|
|
color: "#FFFFFF"
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: parent.top
|
|
|
|
height: 1
|
|
|
|
color: "#DBDBDB"
|
|
|
|
}
|
|
|
|
|
2014-07-09 16:18:48 +02:00
|
|
|
ListModel {
|
|
|
|
id: columnsModel
|
2014-07-09 17:44:13 +02:00
|
|
|
ListElement { columnName: "Date"; columnWidth: 97 }
|
2014-07-09 16:18:48 +02:00
|
|
|
ListElement { columnName: "Amount"; columnWidth: 158 }
|
|
|
|
ListElement { columnName: "Balance"; columnWidth: 168 }
|
|
|
|
}
|
|
|
|
|
2014-07-07 19:08:30 +02:00
|
|
|
TableHeader {
|
|
|
|
id: header
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 17
|
|
|
|
anchors.leftMargin: 14
|
|
|
|
anchors.rightMargin: 14
|
2014-07-09 16:18:48 +02:00
|
|
|
dataModel: columnsModel
|
2014-07-09 17:44:13 +02:00
|
|
|
offset: 145
|
2014-07-07 19:08:30 +02:00
|
|
|
onSortRequest: console.log("column: " + column + " desc: " + desc)
|
|
|
|
}
|
|
|
|
|
|
|
|
ListModel {
|
|
|
|
id: testModel
|
2014-07-23 11:25:27 +02:00
|
|
|
ListElement { paymentId: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798"; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798"; date: "Jan 12, 2014"; time: "12:23 <font size='2'>AM</font>"; amount: "0.<font size='2'>000709159241</font>"; balance: "19301.<font size='2'>870709159241</font>"; description: "Client from Australia"; out: false }
|
|
|
|
ListElement { paymentId: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798"; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798"; date: "Jan 12, 2014"; time: "12:23 <font size='2'>AM</font>"; amount: "0.<font size='2'>000709159241</font>"; balance: "19301.<font size='2'>870709159241</font>"; description: ""; out: true }
|
|
|
|
ListElement { paymentId: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798"; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798"; date: "Jan 12, 2014"; time: "12:23 <font size='2'>AM</font>"; amount: "0.<font size='2'>000709159241</font>"; balance: "19301.<font size='2'>870709159241</font>"; description: ""; out: true }
|
|
|
|
ListElement { paymentId: ""; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798"; date: "Jan 12, 2014"; time: "12:23 <font size='2'>AM</font>"; amount: "0.<font size='2'>000709159241</font>"; balance: "19301.<font size='2'>870709159241</font>"; description: ""; out: false }
|
|
|
|
ListElement { paymentId: ""; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798"; date: "Jan 12, 2014"; time: "12:23 <font size='2'>AM</font>"; amount: "0.<font size='2'>000709159241</font>"; balance: "19301.<font size='2'>870709159241</font>"; description: "Client from Australia"; out: false }
|
|
|
|
ListElement { paymentId: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798"; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798"; date: "Jan 12, 2014"; time: "12:23 <font size='2'>AM</font>"; amount: "0.<font size='2'>000709159241</font>"; balance: "19301.<font size='2'>870709159241</font>"; description: ""; out: false }
|
|
|
|
ListElement { paymentId: ""; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798"; date: "Jan 12, 2014"; time: "12:23 <font size='2'>AM</font>"; amount: "0.<font size='2'>000709159241</font>"; balance: "19301.<font size='2'>870709159241</font>"; description: ""; out: false }
|
|
|
|
ListElement { paymentId: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798"; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798"; date: "Jan 12, 2014"; time: "12:23 <font size='2'>AM</font>"; amount: "0.<font size='2'>000709159241</font>"; balance: "19301.<font size='2'>870709159241</font>"; description: ""; out: false }
|
|
|
|
ListElement { paymentId: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798"; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798"; date: "Jan 12, 2014"; time: "12:23 <font size='2'>AM</font>"; amount: "0.<font size='2'>000709159241</font>"; balance: "19301.<font size='2'>870709159241</font>"; description: "Client from Australia"; out: false }
|
|
|
|
ListElement { paymentId: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798"; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798"; date: "Jan 12, 2014"; time: "12:23 <font size='2'>AM</font>"; amount: "0.<font size='2'>000709159241</font>"; balance: "19301.<font size='2'>870709159241</font>"; description: ""; out: false }
|
2014-07-09 16:18:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Scroll {
|
|
|
|
id: flickableScroll
|
2014-07-23 12:39:35 +02:00
|
|
|
anchors.right: table.right
|
2014-07-09 16:18:48 +02:00
|
|
|
anchors.rightMargin: -14
|
2014-07-23 12:39:35 +02:00
|
|
|
anchors.top: table.top
|
|
|
|
anchors.bottom: table.bottom
|
2014-07-09 16:18:48 +02:00
|
|
|
flickable: table
|
2014-07-07 19:08:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
DashboardTable {
|
2014-07-09 16:18:48 +02:00
|
|
|
id: table
|
2014-07-07 19:08:30 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: header.bottom
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.leftMargin: 14
|
|
|
|
anchors.rightMargin: 14
|
2014-07-09 16:18:48 +02:00
|
|
|
onContentYChanged: flickableScroll.flickableContentYChanged()
|
2014-07-07 19:08:30 +02:00
|
|
|
model: testModel
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|