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

Working on UML

parent 8ebf57d6
No related branches found
No related tags found
No related merge requests found
doc/uml/core-classes.png

48.2 KiB | W: | H:

doc/uml/core-classes.png

55.5 KiB | W: | H:

doc/uml/core-classes.png
doc/uml/core-classes.png
doc/uml/core-classes.png
doc/uml/core-classes.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -57,9 +57,19 @@ package core { ...@@ -57,9 +57,19 @@ package core {
-- Properties -- -- Properties --
network network
-- Methods -- -- Methods --
} }
Community "1" --* "1" Network App --> Identity
class Identity {
{static} _identities
{static} load(data : dict)
{static} lookup(search : str)
}
}
package net {
class Network { class Network {
-- Signals -- -- Signals --
node_found(int : index) node_found(int : index)
...@@ -71,6 +81,7 @@ package core { ...@@ -71,6 +81,7 @@ package core {
root_nodes root_nodes
-- Methods -- -- Methods --
} }
Community "1" --* "1" Network
Network "1" --* "*" Node Network "1" --* "*" Node
class Node { class Node {
...@@ -86,15 +97,5 @@ package core { ...@@ -86,15 +97,5 @@ package core {
-- Methods -- -- Methods --
} }
App --> Identity
class Identity {
{static} _identities
{static} load(data : dict)
{static} lookup(search : str)
}
} }
@enduml @enduml
\ No newline at end of file
doc/uml/cutecoin.png

203 KiB | W: | H:

doc/uml/cutecoin.png

261 KiB | W: | H:

doc/uml/cutecoin.png
doc/uml/cutecoin.png
doc/uml/cutecoin.png
doc/uml/cutecoin.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
!include core-classes.pu !include core-classes.pu
!include gui-classes.pu !include gui-classes.pu
!include models-classes.pu !include models-classes.pu
!include api.pu
MainWindow "1" --> "1" App MainWindow "1" --> "1" App
...@@ -24,4 +25,12 @@ ConfigureCommunityDialog --> RootNodesTableModel ...@@ -24,4 +25,12 @@ ConfigureCommunityDialog --> RootNodesTableModel
ConfigureAccountDialog --> Account ConfigureAccountDialog --> Account
ConfigureCommunityDialog --> Community ConfigureCommunityDialog --> Community
Account ..> BMADataAccess
Community ..> BMADataAccess
Wallet ..> BMADataAccess
Transfer ..> BMADataAccess
Identity ..> BMADataAccess
BMADataAccess .left.> Network
@enduml @enduml
\ No newline at end of file
doc/uml/gui-classes.png

31.5 KiB | W: | H:

doc/uml/gui-classes.png

38.8 KiB | W: | H:

doc/uml/gui-classes.png
doc/uml/gui-classes.png
doc/uml/gui-classes.png
doc/uml/gui-classes.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -38,11 +38,13 @@ package gui { ...@@ -38,11 +38,13 @@ package gui {
class WotTab { class WotTab {
} }
package dialogs {
class CertificationDialog class CertificationDialog
class TransferDialog class TransferDialog
class ContactDialog class ContactDialog
class ConfigureAccountDialog class ConfigureAccountDialog
class ConfigureCommunityDialog class ConfigureCommunityDialog
}
MainWindow --> CertificationDialog MainWindow --> CertificationDialog
MainWindow --> TransferDialog MainWindow --> TransferDialog
......
...@@ -24,7 +24,6 @@ includefiles = [] ...@@ -24,7 +24,6 @@ includefiles = []
if sys.platform == "win32": if sys.platform == "win32":
app = QtCore.QCoreApplication(sys.argv) app = QtCore.QCoreApplication(sys.argv)
pyqt_path = QtCore.QCoreApplication.libraryPaths()[0] pyqt_path = QtCore.QCoreApplication.libraryPaths()[0]
print(pyqt_path)
libEGL_path = os.path.join(os.path.dirname(pyqt_path), "libEGL.dll") libEGL_path = os.path.join(os.path.dirname(pyqt_path), "libEGL.dll")
includefiles.append(libEGL_path) includefiles.append(libEGL_path)
includefiles.append("platforms/win32/libsodium.dll") includefiles.append("platforms/win32/libsodium.dll")
......
...@@ -418,6 +418,6 @@ class Application(QObject): ...@@ -418,6 +418,6 @@ class Application(QObject):
version = (__version__ == latest_version, version = (__version__ == latest_version,
latest_version, latest_version,
latest["html_url"]) latest["html_url"])
self.available_version = version
logging.debug("Current version : {0}".format(__version__)) logging.debug("Current version : {0}".format(__version__))
self.available_version = version
self.version_requested.emit() self.version_requested.emit()
...@@ -199,7 +199,7 @@ class Network(QObject): ...@@ -199,7 +199,7 @@ class Network(QObject):
logging.debug("New node found : {0}".format(peer.pubkey[:5])) logging.debug("New node found : {0}".format(peer.pubkey[:5]))
pubkeys = [n.pubkey for n in self.nodes] pubkeys = [n.pubkey for n in self.nodes]
if peer.pubkey not in pubkeys: if peer.pubkey not in pubkeys:
node = Node.from_peer(self._currency, peer) node = Node.from_peer(self.network_manager, self.currency, peer)
self.add_node(node) self.add_node(node)
self.nodes_changed.emit() self.nodes_changed.emit()
......
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