Skip to content
Snippets Groups Projects
Commit ea1dbaf3 authored by inso's avatar inso
Browse files

First commit

parent 8c51087a
No related branches found
No related tags found
No related merge requests found
......@@ -34,3 +34,7 @@ nosetests.xml
.mr.developer.cfg
.project
.pydevproject
.settings
# Generated files
src/cutecoin/gen_ressources/*
......@@ -27,7 +27,7 @@
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<widget class="QWidget" name="walletsTab">
<attribute name="title">
......@@ -225,7 +225,7 @@
<x>0</x>
<y>0</y>
<width>452</width>
<height>21</height>
<height>20</height>
</rect>
</property>
<widget class="QMenu" name="menuTr_File">
......
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Dialog</class>
<widget class="QDialog" name="Dialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Account parameters</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Account name</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit"/>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>PGPKey </string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>Dialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>Dialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Dialog</class>
<widget class="QDialog" name="Dialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Account parameters</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Account name</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="accountName"/>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>PGPKey </string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="pgpkeyList"/>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>Communities membership</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QTableView" name="communitiesTable"/>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>Dialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>Dialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>452</width>
<height>400</height>
</rect>
</property>
<property name="windowTitle">
<string notr="true">CuteCoin</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QFrame" name="actionsFrame">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="walletsTab">
<attribute name="title">
<string>Wallets</string>
</attribute>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QListView" name="walletsList"/>
</item>
<item>
<widget class="QListView" name="walletContent"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="transactionsTab">
<attribute name="title">
<string>Transactions</string>
</attribute>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Sent</string>
</property>
</widget>
</item>
<item>
<widget class="QListView" name="transactionsSent"/>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Received</string>
</property>
</widget>
</item>
<item>
<widget class="QListView" name="transactionsReceived"/>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="communitiesTab">
<attribute name="title">
<string>Communities</string>
</attribute>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QTabWidget" name="tabWidget_2">
<property name="currentIndex">
<number>1</number>
</property>
<widget class="QWidget" name="ucoinTab">
<attribute name="title">
<string>Ucoin</string>
</attribute>
</widget>
<widget class="QWidget" name="freecoinTab">
<attribute name="title">
<string>FreeCoin</string>
</attribute>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Members</string>
</property>
</widget>
</item>
<item>
<widget class="QListView" name="communityMembers"/>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>Last issuance</string>
</property>
</widget>
</item>
<item>
<widget class="QListView" name="communityIssuance"/>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>452</width>
<height>20</height>
</rect>
</property>
<widget class="QMenu" name="menuTr_File">
<property name="title">
<string>Account</string>
</property>
<addaction name="actionChange_account"/>
<addaction name="actionManage_accounts"/>
<addaction name="actionConfigure_trustable_nodes"/>
</widget>
<widget class="QMenu" name="menuEdit">
<property name="title">
<string>Contacts</string>
</property>
<addaction name="separator"/>
<addaction name="actionAdd_a_contact"/>
</widget>
<addaction name="menuTr_File"/>
<addaction name="menuEdit"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<action name="actionChange_account">
<property name="text">
<string>Change account</string>
</property>
</action>
<action name="actionManage_accounts">
<property name="text">
<string>Manage accounts</string>
</property>
</action>
<action name="actionConfigure_trustable_nodes">
<property name="text">
<string>Configure trustable nodes</string>
</property>
</action>
<action name="actionAdd_a_contact">
<property name="text">
<string>Add a contact</string>
</property>
</action>
<action name="actionSend_a_message">
<property name="text">
<string>Send a message</string>
</property>
</action>
<action name="actionSend_money">
<property name="text">
<string>Send money</string>
</property>
</action>
<action name="actionRemove_contact">
<property name="text">
<string>Remove contact</string>
</property>
</action>
<action name="actionSend_a_message_2">
<property name="text">
<string>Send a message</string>
</property>
</action>
<action name="actionSend_money_2">
<property name="text">
<string>Send money</string>
</property>
</action>
<action name="actionRemove_contact_2">
<property name="text">
<string>Remove contact</string>
</property>
</action>
</widget>
<resources/>
<connections/>
</ui>
'''
Created on 1 févr. 2014
@author: inso
'''
import sys
from PyQt5.QtWidgets import QApplication, QDialog
from cutecoin.gui.mainWindow import MainWindow
from cutecoin.models.account import Account
if __name__ == '__main__':
app = QApplication(sys.argv)
acc = Account()
window = MainWindow()
window.show()
sys.exit(app.exec_())
pass
\ No newline at end of file
'''
Created on 1 févr. 2014
@author: inso
'''
from cutecoin.gen_resources.mainwindow_uic import Ui_MainWindow
from PyQt5.QtWidgets import QMainWindow
class MainWindow(QMainWindow, Ui_MainWindow):
'''
classdocs
'''
def __init__(self):
'''
Constructor
'''
# Set up the user interface from Designer.
super(MainWindow, self).__init__()
self.setupUi(self)
'''
Created on 1 févr. 2014
@author: inso
'''
import ucoinpy as ucoin
class Account(object):
'''
classdocs
'''
def __init__(self):
'''
Constructor
'''
self.transactionNodes = []
self.trustableNodes = []
def addTransactionNode(self, node):
self.transactionNodes.append(node)
def addTrustableNode(self, node):
self.trustableNodes.append(node)
'''
Created on 1 févr. 2014
@author: inso
'''
class communityModel(object):
'''
classdocs
'''
def __init__(self, params):
'''
Constructor
'''
'''
Created on 1 févr. 2014
@author: inso
'''
class Node(object):
'''
classdocs
'''
def __init__(self, server, port, auth):
'''
Constructor
'''
self.server = server
self.port = port
self.auth = auth
'''
Created on 1 févr. 2014
@author: inso
'''
class TransactionModel(object):
'''
classdocs
'''
def __init__(self, params):
'''
Constructor
'''
'''
Created on 1 févr. 2014
@author: inso
'''
class WalletModel(object):
'''
classdocs
'''
def __init__(self, params):
'''
Constructor
'''
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