state

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WinState

type WinState struct {
	HideInactive         bool
	ConfigColumnSort     string
	OpenFileName         string
	StartingBalance      int
	StartDate            string
	EndDate              string
	SelectedConfIDs      map[string]bool
	ShowMessageDialog    *func(m string, t gtk.MessageType)
	ConfigListStore      *gtk.ListStore
	ResultsListStore     *gtk.ListStore
	TX                   *[]lib.TX // transaction definitions for the current window
	Results              *[]lib.Result
	App                  *gtk.Application
	Win                  *gtk.ApplicationWindow
	Header               *gtk.HeaderBar
	Notebook             *gtk.Notebook
	ConfigScrolledWindow *gtk.ScrolledWindow
	ConfigTreeView       *gtk.TreeView
	ConfigVScroll        float64 // for recalling where to scroll when clearing liststore
	ConfigHScroll        float64 // for recalling where to scroll when clearing liststore
}

contains the user's configuration on a per-window basis - for example, HideInactive is a value that differs on a per-window basis. Other state values, such as the currently sorted column, should also be stored here. Additionally, utility functions such as ones that allow an error dialog to be shown from anywhere, should be stored here as pointers.

Jump to

Keyboard shortcuts

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