page

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: ISC Imports: 46 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogPageID = "Log"
	LogOffset = 24000
)
View Source
const (
	OverviewNavID = iota
	TransactionsNavID
	WalletsNavID
	TicketsNavID
	ProposalsNavID
	MoreNavID
)
View Source
const AboutPageID = "About"
View Source
const AccountDetailsPageID = "AccountDetails"
View Source
const (
	CreateRestorePageID = "CreateRestore"
)
View Source
const DebugPageID = "Debug"
View Source
const (
	DefaultExchangeValue = "none"
)
View Source
const HelpPageID = "Help"
View Source
const LicensePageID = "License"
View Source
const MainPageID = "Main"
View Source
const MorePageID = "More"
View Source
const OverviewPageID = "Overview"
View Source
const PrivacyPageID = "Privacy"
View Source
const ReceivePageID = "Receive"
View Source
const SecurityToolsPageID = "SecurityTools"
View Source
const SettingsPageID = "Settings"
View Source
const SignMessagePageID = "SignMessage"
View Source
const StartPageID = "start_page"
View Source
const StatisticsPageID = "Statistics"
View Source
const TransactionDetailsPageID = "TransactionDetails"
View Source
const TransactionsPageID = "Transactions"
View Source
const ValidateAddressPageID = "ValidateAddress"
View Source
const VerifyMessagePageID = "VerifyMessage"
View Source
const WalletPageID = components.WalletsPageID
View Source
const WalletSettingsPageID = "WalletSettings"

Variables

View Source
var (
	NavDrawerWidth          = unit.Value{U: unit.UnitDp, V: 160}
	NavDrawerMinimizedWidth = unit.Value{U: unit.UnitDp, V: 72}
)
View Source
var (
	MaxWidth = components.MaxWidth
)

Functions

func DisableLog

func DisableLog()

DisableLog disables all library log output. Logging output is disabled by default until UseLogger is called.

func EditorsNotEmpty

func EditorsNotEmpty(editors ...*widget.Editor) bool

func GenerateRandomNumber

func GenerateRandomNumber() int

func GetAbsolutePath

func GetAbsolutePath() (string, error)

func HandleSubmitEvent

func HandleSubmitEvent(editors ...*widget.Editor) bool

func NewStartPage

func NewStartPage(l *load.Load) load.Page

func UseLogger

func UseLogger(logger slog.Logger)

UseLogger uses a specified Logger to output package logging info.

Types

type AboutPage

type AboutPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewAboutPage

func NewAboutPage(l *load.Load) *AboutPage

func (*AboutPage) Handle

func (pg *AboutPage) Handle()

func (*AboutPage) ID

func (pg *AboutPage) ID() string

func (*AboutPage) Layout

func (pg *AboutPage) Layout(gtx layout.Context) layout.Dimensions

func (*AboutPage) OnClose

func (pg *AboutPage) OnClose()

func (*AboutPage) OnResume

func (pg *AboutPage) OnResume()

type AcctDetailsPage

type AcctDetailsPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewAcctDetailsPage

func NewAcctDetailsPage(l *load.Load, account *dcrlibwallet.Account) *AcctDetailsPage

func (*AcctDetailsPage) Handle

func (pg *AcctDetailsPage) Handle()

func (*AcctDetailsPage) ID

func (pg *AcctDetailsPage) ID() string

func (*AcctDetailsPage) Layout

func (*AcctDetailsPage) OnClose

func (pg *AcctDetailsPage) OnClose()

func (*AcctDetailsPage) OnResume

func (pg *AcctDetailsPage) OnResume()

type C

type C = layout.Context

type CreateRestore

type CreateRestore struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewCreateRestorePage

func NewCreateRestorePage(l *load.Load) *CreateRestore

Loading lays out the loading widget with a faded background

func (*CreateRestore) Handle

func (pg *CreateRestore) Handle()

func (*CreateRestore) ID

func (pg *CreateRestore) ID() string

func (*CreateRestore) Layout

func (pg *CreateRestore) Layout(gtx layout.Context) layout.Dimensions

func (*CreateRestore) OnClose

func (pg *CreateRestore) OnClose()

func (*CreateRestore) OnResume

func (pg *CreateRestore) OnResume()

type D

type D = layout.Dimensions

type DebugPage

type DebugPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewDebugPage

func NewDebugPage(l *load.Load) *DebugPage

func (*DebugPage) Handle

func (pg *DebugPage) Handle()

func (*DebugPage) ID

func (pg *DebugPage) ID() string

func (*DebugPage) Layout

func (pg *DebugPage) Layout(gtx C) D

func (*DebugPage) OnClose

func (pg *DebugPage) OnClose()

func (*DebugPage) OnResume

func (pg *DebugPage) OnResume()

type HelpPage

type HelpPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewHelpPage

func NewHelpPage(l *load.Load) *HelpPage

func (*HelpPage) Handle

func (pg *HelpPage) Handle()

func (*HelpPage) ID

func (pg *HelpPage) ID() string

func (*HelpPage) Layout

func (pg *HelpPage) Layout(gtx layout.Context) layout.Dimensions

main settings layout

func (*HelpPage) OnClose

func (pg *HelpPage) OnClose()

func (*HelpPage) OnResume

func (pg *HelpPage) OnResume()

type LicensePage

type LicensePage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewLicensePage

func NewLicensePage(l *load.Load) *LicensePage

func (*LicensePage) Handle

func (pg *LicensePage) Handle()

func (*LicensePage) ID

func (pg *LicensePage) ID() string

func (*LicensePage) Layout

func (pg *LicensePage) Layout(gtx layout.Context) layout.Dimensions

main page layout

func (*LicensePage) OnClose

func (pg *LicensePage) OnClose()

func (*LicensePage) OnResume

func (pg *LicensePage) OnResume()

type LogPage

type LogPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewLogPage

func NewLogPage(l *load.Load) *LogPage

func (*LogPage) Handle

func (pg *LogPage) Handle()

func (*LogPage) ID

func (pg *LogPage) ID() string

func (*LogPage) Layout

func (pg *LogPage) Layout(gtx C) D

func (*LogPage) OnClose

func (pg *LogPage) OnClose()

func (*LogPage) OnResume

func (pg *LogPage) OnResume()

type MainPage

type MainPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewMainPage

func NewMainPage(l *load.Load) *MainPage

func (*MainPage) CalculateTotalWalletsBalance

func (mp *MainPage) CalculateTotalWalletsBalance() (dcrutil.Amount, error)

func (*MainPage) Debug

func (mp *MainPage) Debug(debugInfo *dcrlibwallet.DebugInfo)

func (*MainPage) Handle

func (mp *MainPage) Handle()

func (*MainPage) ID

func (mp *MainPage) ID() string

func (*MainPage) Layout

func (mp *MainPage) Layout(gtx layout.Context) layout.Dimensions

func (*MainPage) LayoutTopBar

func (mp *MainPage) LayoutTopBar(gtx layout.Context) layout.Dimensions

func (*MainPage) LayoutUSDBalance

func (mp *MainPage) LayoutUSDBalance(gtx layout.Context) layout.Dimensions

func (*MainPage) OnAccountMixerEnded

func (mp *MainPage) OnAccountMixerEnded(walletID int)

func (*MainPage) OnAccountMixerStarted

func (mp *MainPage) OnAccountMixerStarted(walletID int)

Account mixer

func (*MainPage) OnAddressDiscoveryProgress

func (mp *MainPage) OnAddressDiscoveryProgress(addressDiscoveryProgress *dcrlibwallet.AddressDiscoveryProgressReport)

func (*MainPage) OnBlockAttached

func (mp *MainPage) OnBlockAttached(walletID int, blockHeight int32)

func (*MainPage) OnBlocksRescanEnded

func (mp *MainPage) OnBlocksRescanEnded(walletID int, err error)

func (*MainPage) OnBlocksRescanProgress

func (mp *MainPage) OnBlocksRescanProgress(progress *dcrlibwallet.HeadersRescanProgressReport)

func (*MainPage) OnBlocksRescanStarted

func (mp *MainPage) OnBlocksRescanStarted(walletID int)

func (*MainPage) OnCFiltersFetchProgress

func (mp *MainPage) OnCFiltersFetchProgress(cfiltersFetchProgress *dcrlibwallet.CFiltersFetchProgressReport)

func (*MainPage) OnClose

func (mp *MainPage) OnClose()

func (*MainPage) OnHeadersFetchProgress

func (mp *MainPage) OnHeadersFetchProgress(headersFetchProgress *dcrlibwallet.HeadersFetchProgressReport)

func (*MainPage) OnHeadersRescanProgress

func (mp *MainPage) OnHeadersRescanProgress(headersRescanProgress *dcrlibwallet.HeadersRescanProgressReport)

func (*MainPage) OnNewProposal

func (mp *MainPage) OnNewProposal(proposal *dcrlibwallet.Proposal)

func (*MainPage) OnPeerConnectedOrDisconnected

func (mp *MainPage) OnPeerConnectedOrDisconnected(numberOfConnectedPeers int32)

func (*MainPage) OnProposalVoteFinished

func (mp *MainPage) OnProposalVoteFinished(proposal *dcrlibwallet.Proposal)

func (*MainPage) OnProposalVoteStarted

func (mp *MainPage) OnProposalVoteStarted(proposal *dcrlibwallet.Proposal)

func (*MainPage) OnProposalsSynced

func (mp *MainPage) OnProposalsSynced()

Politeia notifications

func (*MainPage) OnResume

func (mp *MainPage) OnResume()

func (*MainPage) OnSyncCanceled

func (mp *MainPage) OnSyncCanceled(willRestart bool)

func (*MainPage) OnSyncCompleted

func (mp *MainPage) OnSyncCompleted()

func (*MainPage) OnSyncEndedWithError

func (mp *MainPage) OnSyncEndedWithError(err error)

func (*MainPage) OnSyncStarted

func (mp *MainPage) OnSyncStarted(wasRestarted bool)

func (*MainPage) OnTransaction

func (mp *MainPage) OnTransaction(transaction string)

func (*MainPage) OnTransactionConfirmed

func (mp *MainPage) OnTransactionConfirmed(walletID int, hash string, blockHeight int32)

func (*MainPage) StartSyncing

func (mp *MainPage) StartSyncing()

func (*MainPage) UnlockWalletForSyncing

func (mp *MainPage) UnlockWalletForSyncing(wal *dcrlibwallet.Wallet)

func (*MainPage) UpdateBalance

func (mp *MainPage) UpdateBalance()

func (*MainPage) UpdateNotification

func (mp *MainPage) UpdateNotification(signal interface{})

UpdateNotification sends notification to the notification channel depending on which channel the page uses

type MorePage

type MorePage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewMorePage

func NewMorePage(l *load.Load) *MorePage

func (*MorePage) Handle

func (pg *MorePage) Handle()

func (*MorePage) ID

func (pg *MorePage) ID() string

func (*MorePage) Layout

func (pg *MorePage) Layout(gtx layout.Context) layout.Dimensions

func (*MorePage) OnClose

func (pg *MorePage) OnClose()

func (*MorePage) OnResume

func (pg *MorePage) OnResume()
type NavHandler struct {
	Clickable     *widget.Clickable
	Image         *decredmaterial.Image
	ImageInactive *decredmaterial.Image
	Title         string
	PageID        string
}

type OverviewPage

type OverviewPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewOverviewPage

func NewOverviewPage(l *load.Load) *OverviewPage

func (*OverviewPage) Handle

func (pg *OverviewPage) Handle()

func (*OverviewPage) ID

func (pg *OverviewPage) ID() string

func (*OverviewPage) Layout

func (pg *OverviewPage) Layout(gtx layout.Context) layout.Dimensions

Layout lays out the entire content for overview pg.

func (*OverviewPage) OnClose

func (pg *OverviewPage) OnClose()

func (*OverviewPage) OnResume

func (pg *OverviewPage) OnResume()

type PrivacyPage

type PrivacyPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewPrivacyPage

func NewPrivacyPage(l *load.Load, wallet *dcrlibwallet.Wallet) *PrivacyPage

func (*PrivacyPage) Handle

func (pg *PrivacyPage) Handle()

func (*PrivacyPage) ID

func (pg *PrivacyPage) ID() string

func (*PrivacyPage) Layout

func (pg *PrivacyPage) Layout(gtx layout.Context) layout.Dimensions

func (*PrivacyPage) OnClose

func (pg *PrivacyPage) OnClose()

func (*PrivacyPage) OnResume

func (pg *PrivacyPage) OnResume()

type ReceivePage

type ReceivePage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewReceivePage

func NewReceivePage(l *load.Load) *ReceivePage

func (*ReceivePage) Handle

func (pg *ReceivePage) Handle()

func (*ReceivePage) ID

func (pg *ReceivePage) ID() string

func (*ReceivePage) Layout

func (pg *ReceivePage) Layout(gtx layout.Context) layout.Dimensions

func (*ReceivePage) OnClose

func (pg *ReceivePage) OnClose()

func (*ReceivePage) OnResume

func (pg *ReceivePage) OnResume()

type SecurityToolsPage

type SecurityToolsPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewSecurityToolsPage

func NewSecurityToolsPage(l *load.Load) *SecurityToolsPage

func (*SecurityToolsPage) Handle

func (pg *SecurityToolsPage) Handle()

func (*SecurityToolsPage) ID

func (pg *SecurityToolsPage) ID() string

func (*SecurityToolsPage) Layout

main settings layout

func (*SecurityToolsPage) OnClose

func (pg *SecurityToolsPage) OnClose()

func (*SecurityToolsPage) OnResume

func (pg *SecurityToolsPage) OnResume()

type SettingsPage

type SettingsPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewSettingsPage

func NewSettingsPage(l *load.Load) *SettingsPage

func (*SettingsPage) Handle

func (pg *SettingsPage) Handle()

func (*SettingsPage) ID

func (pg *SettingsPage) ID() string

func (*SettingsPage) Layout

func (pg *SettingsPage) Layout(gtx layout.Context) layout.Dimensions

func (*SettingsPage) OnClose

func (pg *SettingsPage) OnClose()

func (*SettingsPage) OnResume

func (pg *SettingsPage) OnResume()

type SignMessagePage

type SignMessagePage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewSignMessagePage

func NewSignMessagePage(l *load.Load, wallet *dcrlibwallet.Wallet) *SignMessagePage

func (*SignMessagePage) Handle

func (pg *SignMessagePage) Handle()

func (*SignMessagePage) ID

func (pg *SignMessagePage) ID() string

func (*SignMessagePage) Layout

func (*SignMessagePage) OnClose

func (pg *SignMessagePage) OnClose()

func (*SignMessagePage) OnResume

func (pg *SignMessagePage) OnResume()

type StatPage

type StatPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewStatPage

func NewStatPage(l *load.Load) *StatPage

func (*StatPage) Handle

func (pg *StatPage) Handle()

func (*StatPage) ID

func (pg *StatPage) ID() string

func (*StatPage) Layout

func (pg *StatPage) Layout(gtx layout.Context) layout.Dimensions

func (*StatPage) OnClose

func (pg *StatPage) OnClose()

func (*StatPage) OnResume

func (pg *StatPage) OnResume()

type TransactionDetailsPage

type TransactionDetailsPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewTransactionDetailsPage

func NewTransactionDetailsPage(l *load.Load, transaction *dcrlibwallet.Transaction) *TransactionDetailsPage

func (*TransactionDetailsPage) Handle

func (pg *TransactionDetailsPage) Handle()

func (*TransactionDetailsPage) ID

func (pg *TransactionDetailsPage) ID() string

func (*TransactionDetailsPage) Layout

func (*TransactionDetailsPage) OnClose

func (pg *TransactionDetailsPage) OnClose()

func (*TransactionDetailsPage) OnResume

func (pg *TransactionDetailsPage) OnResume()

type TransactionsPage

type TransactionsPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewTransactionsPage

func NewTransactionsPage(l *load.Load) *TransactionsPage

func (*TransactionsPage) Handle

func (pg *TransactionsPage) Handle()

func (*TransactionsPage) ID

func (pg *TransactionsPage) ID() string

func (*TransactionsPage) Layout

func (*TransactionsPage) OnClose

func (pg *TransactionsPage) OnClose()

func (*TransactionsPage) OnResume

func (pg *TransactionsPage) OnResume()

type ValidateAddressPage

type ValidateAddressPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewValidateAddressPage

func NewValidateAddressPage(l *load.Load) *ValidateAddressPage

func (*ValidateAddressPage) Handle

func (pg *ValidateAddressPage) Handle()

func (*ValidateAddressPage) ID

func (pg *ValidateAddressPage) ID() string

func (*ValidateAddressPage) Layout

func (*ValidateAddressPage) OnClose

func (pg *ValidateAddressPage) OnClose()

func (*ValidateAddressPage) OnResume

func (pg *ValidateAddressPage) OnResume()

type VerifyMessagePage

type VerifyMessagePage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewVerifyMessagePage

func NewVerifyMessagePage(l *load.Load) *VerifyMessagePage

func (*VerifyMessagePage) Handle

func (pg *VerifyMessagePage) Handle()

func (*VerifyMessagePage) ID

func (pg *VerifyMessagePage) ID() string

func (*VerifyMessagePage) Layout

func (*VerifyMessagePage) OnClose

func (pg *VerifyMessagePage) OnClose()

func (*VerifyMessagePage) OnResume

func (pg *VerifyMessagePage) OnResume()

type WalletPage

type WalletPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewWalletPage

func NewWalletPage(l *load.Load) *WalletPage

func (*WalletPage) Handle

func (pg *WalletPage) Handle()

func (*WalletPage) ID

func (pg *WalletPage) ID() string

func (*WalletPage) Layout

func (pg *WalletPage) Layout(gtx layout.Context) layout.Dimensions

Layout lays out the widgets for the main wallets pg.

func (*WalletPage) OnClose

func (pg *WalletPage) OnClose()

func (*WalletPage) OnResume

func (pg *WalletPage) OnResume()

type WalletSettingsPage

type WalletSettingsPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewWalletSettingsPage

func NewWalletSettingsPage(l *load.Load, wal *dcrlibwallet.Wallet) *WalletSettingsPage

func (*WalletSettingsPage) Handle

func (pg *WalletSettingsPage) Handle()

func (*WalletSettingsPage) ID

func (pg *WalletSettingsPage) ID() string

func (*WalletSettingsPage) Layout

func (*WalletSettingsPage) OnClose

func (pg *WalletSettingsPage) OnClose()

func (*WalletSettingsPage) OnResume

func (pg *WalletSettingsPage) OnResume()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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