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

Working a uml class modeling

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

48.8 KiB

@startuml
package core {
class App {
-- Signals --
current_account_changed(str : account_name)
data_changed()
-- Slots --
-- Properties --
current_account
accounts
-- Methods --
}
App --* Account : accounts
class Account {
-- Signals --
wallets_changed(int : nb_wallets)
community_added(int : index)
community_removed(int : index)
data_changed()
-- Slots --
-- Properties --
communities
wallets
-- Methods --
}
Account "1" --* "*" Wallet
Account "1" --* "*" Community
class Wallet {
-- Signals --
money_received(Transfer)
money_sent(Transfer)
name_changed(str : new_name
data_changed()
-- Slots --
-- Properties --
transfers
-- Methods --
}
Wallet "1" --* "*" Transfer
class Transfer {
-- Signals --
state_changed(int : new_state)
-- Slots --
-- Properties --
-- Methods --
}
class Community {
-- Signals --
members_changed()
data_changed()
-- Slots --
-- Properties --
network
-- Methods --
}
Community "1" --* "1" Network
class Network {
-- Signals --
node_found(int : index)
node_removed(int : index)
block_found(int : block_number)
-- Slots --
-- Properties --
nodes
root_nodes
-- Methods --
}
Network "1" --* "*" Node
class Node {
-- Signals --
changed()
-- Slots --
-- Properties --
endpoints
pubkey
uid
block
state
-- Methods --
}
class Identity
class Contact
}
@enduml
\ No newline at end of file
doc/uml/cutecoin.png

262 KiB

@startuml
!include core-classes.pu
!include gui-classes.pu
!include models-classes.pu
MainWindow "1" --> "1" App
ContactDialog --> Contact
CertificationDialog --> Community
TransferDialog --> Community
CurrencyTab "1" --> "1" Community
CommunityTab --> IdentitiesFilterProxyModel
NetworkTab --> NetworkFilterProxyModel
WalletTab --> WalletsFilterProxyModel
WalletsFilterProxyModel --> Wallet
NetworkFilterProxyModel --> Network
TxHistoryFilterProxyModel --> Transfer
ConfigureAccountDialog --> CommunitiesListModel
ConfigureCommunityDialog --> RootNodesTableModel
ConfigureAccountDialog --> Account
ConfigureCommunityDialog --> Community
@enduml
\ No newline at end of file
doc/uml/gui-classes.png

45.4 KiB

@startuml
package gui {
package tabs {
class MainWindow {
}
MainWindow "1" --* "*" CurrencyTab
class CurrencyTab {
}
CurrencyTab "1" --* "1" CommunityTab
CurrencyTab "1" --* "1" WalletTab
CurrencyTab "1" --* "1" InformationsTab
CurrencyTab "1" --* "1" TransactionsTab
class CommunityTab {
}
CommunityTab "1" --* "1" IdentitiesTab
CommunityTab "1" --* "1" WotTab
class WalletTab {
}
class InformationsTab {
}
class TransactionsTab {
}
class NetworkTab {
}
CurrencyTab "1" --* "1" NetworkTab
class IdentitiesTab {
}
class WotTab {
}
}
package dialogs {
class CertificationDialog
class TransferDialog
class ContactDialog
class ConfigureAccountDialog
class ConfigureCommunityDialog
}
MainWindow --> CertificationDialog
MainWindow --> TransferDialog
MainWindow --> ContactDialog
MainWindow --> ConfigureAccountDialog
ConfigureAccountDialog --> ConfigureCommunityDialog
package views {
class Wot
WotTab --> Wot
}
}
@enduml
\ No newline at end of file
doc/uml/models-classes.png

14.8 KiB

@startuml
package models {
class WalletsFilterProxyModel {
}
WalletsFilterProxyModel --> WalletsTableModel : source
class WalletsTableModel {
}
class IdentitiesFilterProxyModel {
}
IdentitiesFilterProxyModel --> IdentitiesTableModel : source
class IdentitiesTableModel {
}
class NetworkFilterProxyModel {
}
NetworkFilterProxyModel --> NetworkTableModel : source
class NetworkTableModel {
}
class TxHistoryFilterProxyModel {
}
TxHistoryFilterProxyModel --> TxHistoryTableModel : source
class TxHistoryTableModel {
}
class CommunitiesListModel {
}
class RootNodesTableModel {
}
}
@enduml
\ No newline at end of file
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