Skip to content
Snippets Groups Projects
Unverified Commit d32fe8cc authored by LittleTux89's avatar LittleTux89 Committed by GitHub
Browse files

Merge pull request #4 from kelvinblockchain/cleaning

[-] Removed from the project too much. Renamed the KelvinGUI sibmodule in libdap-qt-ui-qml
parents afc8b8e3 06525131
No related branches found
No related tags found
1 merge request!11Cellframe clone
Showing
with 2 additions and 346 deletions
[submodule "KelvinGUI"]
path = KelvinGUI
[submodule "libdap-qt-ui-qml"]
path = libdap-qt-ui-qml
url = git://github.com/kelvinblockchain/libdap-qt-ui-qml.git
branch = master
import QtQuick 2.0
ListModel {
id: listModelMenu
ListElement {
name: qsTr("Blockchain explorer")
page: "DapUiQmlWidgetChainBlockExplorer.ui.qml"
}
ListElement {
name: qsTr("Exchanges")
page: "DapUiQmlWidgetChainExchanges.ui.qml"
}
ListElement {
name: qsTr("Services client")
page: "DapUiQmlWidgetChainServicesClient.ui.qml"
}
ListElement {
name: qsTr("Services share control")
page: "DapUiQmlWidgetChainServicesShareControl.ui.qml"
}
ListElement {
name: qsTr("Settings")
page: "DapUiQmlWidgetChainSettings.ui.qml"
}
ListElement {
name: qsTr("Wallet")
page: "DapUiQmlWidgetChainWallet.ui.qml"
}
}
#include "DapUiQmlScreenDashboard.h"
DapUiQmlScreenDashboard::DapUiQmlScreenDashboard()
{
}
#ifndef DAPUIQMLSCREENDASHBOARD_H
#define DAPUIQMLSCREENDASHBOARD_H
class DapUiQmlScreenDashboard
{
public:
DapUiQmlScreenDashboard();
};
#endif // DAPUIQMLSCREENDASHBOARD_H
\ No newline at end of file
import QtQuick 2.9
import QtQuick.Controls 1.4
import QtQuick.Controls 2.2
import QtQuick.Controls.Styles 1.4
Page {
id: dapUiQmlScreenDashboard
title: qsTr("General")
ListView {
id: listViewTabs
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: parent.left
width: dapUiQmlScreenDashboard.width/5
model: listModelTabs
ListModel {
id: listModelTabs
ListElement {
name: qsTr("Login")
page: "DapUiQmlScreenLogin.ui.qml"
}
ListElement {
name: qsTr("Dashboard")
page: "DapUiQmlScreenDialog.qml"
}
}
delegate:
Component {
id: componentTab
Item {
width: listViewTabs.width
height: textTab.height + 10
Rectangle {
id: canvas
border.color: "whitesmoke"
color: "Transparent"
anchors.fill: parent
Row {
anchors.margins: 5
anchors.fill: parent
Text
{
id: textTab
text: qsTr(name)
}
}
}
MouseArea {
anchors.fill: parent
onClicked:
{
listViewTabs.currentIndex = index
stackViewScreenDashboard.setSource(Qt.resolvedUrl(page))
}
}
}
}
highlight: Rectangle { color: "aliceblue"; radius: 1 }
focus: true
}
Rectangle {
anchors.left: listViewTabs.right
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.right: parent.right
border.color: "whitesmoke"
Loader {
id: stackViewScreenDashboard
anchors.fill: parent
anchors.margins: 1
source: "DapUiQmlScreenLogin.ui.qml"
}
}
}
#include "DapUiQmlScreenDialog.h"
DapUiQmlScreenDialog::DapUiQmlScreenDialog()
{
}
#ifndef DAPUIQMLSCREENDIALOG_H
#define DAPUIQMLSCREENDIALOG_H
class DapUiQmlScreenDialog
{
public:
DapUiQmlScreenDialog();
};
#endif // DAPUIQMLSCREENDIALOG_H
import QtQuick 2.9
import QtQuick.Controls 2.4
Page {
id: dapUiQmlScreenDialog
title: qsTr("Dashboard")
anchors.fill: parent
Rectangle {
color: "white"
anchors.fill: parent
GridView {
id: gridViewDashboard
anchors.fill: parent
cellWidth: width/3; cellHeight: height/2
focus: true
model: DapUiQmlListModelWidgets {}
highlight: Rectangle { width: gridViewDashboard.cellWidth; height: gridViewDashboard.cellHeight; radius: width/50; color: "aliceblue" }
delegate: Item {
width: gridViewDashboard.cellWidth
height: gridViewDashboard.cellHeight
Rectangle {
anchors.fill: parent
border.color: "grey"
color: "transparent"
radius: width/50
anchors.margins: 5
clip: true
Column {
width: parent.width
anchors.centerIn: parent
spacing: width / 10
anchors.margins: width / 10
Image {
id: iconWidget
source: "qrc:/Resources/Icons/add.png"
width: parent.width * 2/3
height: width
anchors.horizontalCenter: parent.horizontalCenter
}
Text {
text: name
color: "darkgrey"
anchors.horizontalCenter: parent.horizontalCenter
}
}
}
MouseArea {
anchors.fill: parent
onClicked:
{
parent.GridView.view.currentIndex = index;
stackView.push(Qt.resolvedUrl(page), StackView.Immediate);
}
}
}
}
}
}
import QtQuick 2.9
import QtQuick.Controls 2.2
Page {
id: dapUiQmlScreenLogin
title: qsTr("Login")
Column {
anchors.centerIn: parent
spacing: 10
TextField {
id: textFieldPassword
placeholderText: "Password"
echoMode: TextInput.Password
}
Button {
text: "Log in"
width: textFieldPassword.width
anchors.horizontalCenter: parent.horizontalCenter
}
}
}
import QtQuick 2.9
import QtQuick.Controls 1.4
import QtQuick.Controls 2.4
Page {
title: qsTr("General")
}
#include "DapUiQmlWidgeChainOperations.h"
DapUiQmlWidgeChainOperations::DapUiQmlWidgeChainOperations()
{
}
#ifndef DAPUIQMLWIDGECHAINOPERATIONS_H
#define DAPUIQMLWIDGECHAINOPERATIONS_H
#include "DapUiQmlWidget.h"
class DapUiQmlWidgeChainOperations : public DapUiQmlWidget
{
public:
DapUiQmlWidgeChainOperations();
};
#endif // DAPUIQMLWIDGECHAINOPERATIONS_H
#include "DapUiQmlWidget.h"
DapUiQmlWidget::DapUiQmlWidget()
{
}
#ifndef DAPUIQMLWIDGET_H
#define DAPUIQMLWIDGET_H
class DapUiQmlWidget
{
public:
DapUiQmlWidget();
};
#endif // DAPUIQMLWIDGET_H
\ No newline at end of file
#include "DapUiQmlWidgetChainBallance.h"
DapUiQmlWidgetChainBallance::DapUiQmlWidgetChainBallance()
{
}
#ifndef DAPUIQMLWIDGETCHAINBALLANCE_H
#define DAPUIQMLWIDGETCHAINBALLANCE_H
#include "DapUiQmlWidget.h"
class DapUiQmlWidgetChainBallance : public DapUiQmlWidget
{
public:
DapUiQmlWidgetChainBallance();
};
#endif // DAPUIQMLWIDGETCHAINBALLANCE_H
#include "DapUiQmlWidgetChainBlockExplorer.h"
DapUiQmlWidgetChainBlockExplorer::DapUiQmlWidgetChainBlockExplorer()
{
}
#ifndef DAPUIQMLWIDGETCHAINBLOCKEXPLORER_H
#define DAPUIQMLWIDGETCHAINBLOCKEXPLORER_H
#include "DapUiQmlWidget.h"
class DapUiQmlWidgetChainBlockExplorer : public DapUiQmlWidget
{
public:
DapUiQmlWidgetChainBlockExplorer();
};
#endif // DAPUIQMLWIDGETCHAINBLOCKEXPLORER_H
import QtQuick 2.9
import QtQuick.Controls 2.2
Page {
id: dapUiQmlWidgetChainBlockExplorer
title: qsTr("Blockchain explorer")
Text {
id: name
anchors.centerIn: parent
text: qsTr("Blockchain explorer")
}
}
import QtQuick 2.9
import QtQuick.Controls 2.2
Page {
id: dapUiQmlWidgetChainExchanges
title: qsTr("Exchanges")
Text {
id: name
anchors.centerIn: parent
text: qsTr("Exchanges")
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment