ui

package
v0.0.0-...-d59d07f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2020 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Address = int(core.Qt__UserRole) + 1<<iota
	Checked
)
View Source
const (
	WEI  = 0
	GWEI = 1
	ETH  = 2
)
View Source
const (
	USR_BACK    = iota // User selecting menu 'back'
	USR_APPROVE = iota // User select menu 'approve'
	USR_REJECT  = iota // User select menu 'Reject'
)
View Source
const (
	From = int(core.Qt__UserRole) + 1<<iota
	Method
	FromSrc
	IsUnknown
)
View Source
const (
	Text = int(core.Qt__UserRole) + 1<<iota
)

Variables

View Source
var KnownAccounts = make(map[common.Address]struct{})

Functions

This section is empty.

Types

type AccountListItem

type AccountListItem struct {
	// contains filtered or unexported fields
}

type ApproveListingCtx

type ApproveListingCtx struct {
	core.QObject

	ClefUI *ClefUI
	// contains filtered or unexported fields
}

func (*ApproveListingCtx) ClickResponse

func (ctx *ApproveListingCtx) ClickResponse(res chan *core2.ListResponse)

func (*ApproveListingCtx) ExternalSetAccounts

func (ctx *ApproveListingCtx) ExternalSetAccounts(accounts []accounts.Account)

ExternalSetAccounts should be used to update the model from not-gui-thread, e.g. when new data arrives from the network.

func (*ApproveListingCtx) Reset

func (ctx *ApproveListingCtx) Reset()

type ApproveListingRequest

type ApproveListingRequest struct {
	Params     core2.ListRequest
	ResponseCh chan *core2.ListResponse
}

type ApproveListingUI

type ApproveListingUI struct {
	UI               *quick.QQuickWidget
	ContextObject    *ApproveListingCtx
	AccountListModel *CustomListModel
}

func NewApproveListingUI

func NewApproveListingUI(clefUi *ClefUI) *ApproveListingUI

type ApproveNewAccount

type ApproveNewAccount struct {
	UI            *quick.QQuickWidget
	ContextObject *ApproveNewAccountCtx
}

func NewApproveNewAccountUI

func NewApproveNewAccountUI(clefUi *ClefUI) *ApproveNewAccount

type ApproveNewAccountCtx

type ApproveNewAccountCtx struct {
	core.QObject

	ClefUI *ClefUI
	// contains filtered or unexported fields
}

func (*ApproveNewAccountCtx) ClickResponse

func (t *ApproveNewAccountCtx) ClickResponse(replyCh chan *core2.NewAccountResponse)

func (*ApproveNewAccountCtx) Reset

func (t *ApproveNewAccountCtx) Reset()

type ApproveNewAccountRequest

type ApproveNewAccountRequest struct {
	Params     *core2.NewAccountRequest
	ResponseCh chan *core2.NewAccountResponse
}

type ApproveSignDataCtx

type ApproveSignDataCtx struct {
	core.QObject

	ClefUI *ClefUI
	// contains filtered or unexported fields
}

func (*ApproveSignDataCtx) ClickResponse

func (t *ApproveSignDataCtx) ClickResponse(res chan *core2.SignDataResponse)

func (*ApproveSignDataCtx) Reset

func (t *ApproveSignDataCtx) Reset()

type ApproveSignDataRequest

type ApproveSignDataRequest struct {
	Params   *core2.SignDataRequest
	Response chan *core2.SignDataResponse
}

type ApproveSignDataUI

type ApproveSignDataUI struct {
	UI            *quick.QQuickWidget
	ContextObject *ApproveSignDataCtx
}

func NewApproveSignDataUI

func NewApproveSignDataUI(clefUi *ClefUI) *ApproveSignDataUI

type ApproveTxCtx

type ApproveTxCtx struct {
	core.QObject

	ClefUI *ClefUI
	// contains filtered or unexported fields
}

func (*ApproveTxCtx) ClickResponse

func (t *ApproveTxCtx) ClickResponse(responseCh chan *core2.SignTxResponse)

func (*ApproveTxCtx) Reset

func (t *ApproveTxCtx) Reset()

Reset clears the form and signals to go back to main

func (*ApproveTxCtx) SetTransaction

func (t *ApproveTxCtx) SetTransaction(tx core2.SendTxArgs)

type ApproveTxRequest

type ApproveTxRequest struct {
	Params     *core2.SignTxRequest
	ResponseCh chan *core2.SignTxResponse
}

type ApproveTxUI

type ApproveTxUI struct {
	UI            *quick.QQuickWidget
	ContextObject *ApproveTxCtx
}

func NewApproveTxUI

func NewApproveTxUI(clefUi *ClefUI) *ApproveTxUI

type ClefUI

type ClefUI struct {
	App   *widgets.QApplication
	Mainw *widgets.QWidget

	BackToMain      chan bool
	IncomingRequest chan IncomingRequestItem

	ErrorDialog chan string
	// contains filtered or unexported fields
}

func NewClefUI

func NewClefUI(ctx context.Context, uiClose chan bool, readyToStart chan string) *ClefUI

func (*ClefUI) RequestUserInput

func (c *ClefUI) RequestUserInput(title, message string, isPassword bool) (string, error)

RequestUserInput synchronously asks for user input

func (*ClefUI) Start

func (c *ClefUI) Start()

type CustomListModel

type CustomListModel struct {
	core.QAbstractListModel
	// contains filtered or unexported fields
}

CustomListModel implements a custom list model to handle the list of accounts

type IncomingRequestItem

type IncomingRequestItem struct {
	From        string
	Description string
	RPC         requestInvocation
	IsUnknown   int
	OnRemove    chan int
	ID          int
}

func (*IncomingRequestItem) Remove

func (item *IncomingRequestItem) Remove()

type LoginContext

type LoginContext struct {
	core.QObject

	ClefUI       *ClefUI
	ReadyToStart chan string
	// contains filtered or unexported fields
}

func NewLogin

func NewLogin(rootContext *qml.QQmlContext, readytoStart chan string) *LoginContext

type TxListAccountsModel

type TxListAccountsModel struct {
	core.QAbstractListModel
	// contains filtered or unexported fields
}

type TxListCtx

type TxListCtx struct {
	core.QObject

	ClefUI *ClefUI
	// contains filtered or unexported fields
}

Context Object for the view

type TxListModel

type TxListModel struct {
	core.QAbstractListModel
	// contains filtered or unexported fields
}

type TxListUI

type TxListUI struct {
	UI        *quick.QQuickWidget
	CtxObject *TxListCtx
}

func NewTxListUI

func NewTxListUI(clefUi *ClefUI) *TxListUI

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL