ui

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContinueAccelLabel     = "_Continue"
	SelectGroupsAccelLabel = "Select _Groups <F2>"
	SkipGroupAccelLabel    = "_Skip Group <F3>"
	KeepGroupAccelLabel    = "_Keep Group <F4>"
	SkipFileAccelLabel     = "_Skip File <F8>"
	SaveFileAccelLabel     = "Save _File <F9>"
	QuitAccelLabel         = "_Quit <F10>"
)

Accelerator Button Labels

View Source
const (
	ContinueAccelTooltip     = "begin selecting and saving file changes"
	SelectGroupsAccelTooltip = "select which groups of changes to keep"
	SkipGroupAccelTooltip    = "skip this group of changes"
	KeepGroupAccelTooltip    = "keep this group of changes"
	SkipFileAccelTooltip     = "skip this file and proceed"
	SaveFileAccelTooltip     = "save this file and proceed"
	QuitAccelTooltip         = ""
)

Accelerator Button Tooltips

View Source
const (
	SelectGroupsAccelKey = cdk.KeyF2
	SkipGroupAccelKey    = cdk.KeyF3
	KeepGroupAccelKey    = cdk.KeyF4
	SkipFileAccelKey     = cdk.KeyF8
	SaveFileAccelKey     = cdk.KeyF9
)

Accelerator Keys

View Source
const (
	SelectGroupsAccelPath = "<rpl-window>/File/SelectGroups"
	SkipGroupAccelPath    = "<rpl-window>/File/SkipGroup"
	KeepGroupAccelPath    = "<rpl-window>/File/KeepGroup"
	SkipFileAccelPath     = "<rpl-window>/File/SkipFile"
	SaveFileAccelPath     = "<rpl-window>/File/SaveFile"
	QuitAccelPath         = "<rpl-window>/File/Quit"
	ExitAccelPath         = "<rpl-window>/File/Exit"
)

Accelerator Paths

View Source
const (
	ContinueAccelHandle     = "continue-accel"
	SelectGroupsAccelHandle = "select-groups-accel"
	SkipGroupAccelHandle    = "skip-group-accel"
	KeepGroupAccelHandle    = "keep-group-accel"
	SkipFileAccelHandle     = "skip-file-accel"
	SaveFileAccelHandle     = "save-file-accel"
	QuitAccelHandle         = "quit-accel"
	ExitAccelHandle         = "ctrl-c-accel"
)

Accelerator Handles

Variables

This section is empty.

Functions

This section is empty.

Types

type CUI

type CUI struct {
	App  ctk.Application
	Args []string

	Display            cdk.Display
	Window             ctk.Window
	HeaderLabel        ctk.Label
	FooterLabel        ctk.Label
	DiffView           ctk.ScrolledViewport
	DiffLabel          ctk.Label
	WorkAccel          ctk.AccelGroup
	ContinueButton     ctk.Button
	SelectGroupsButton ctk.Button
	KeepGroupButton    ctk.Button
	SkipGroupButton    ctk.Button
	SkipFileButton     ctk.Button
	SaveFileButton     ctk.Button
	QuitButton         ctk.Button

	ActionArea ctk.HButtonBox

	StateSpinner ctk.Spinner
	StatusLabel  ctk.Label

	LastError error

	sync.RWMutex
	// contains filtered or unexported fields
}

func NewUI

func NewUI(name, usage, description, manual, version, release, tag, title, ttyPath string, notifier notify.Notifier) (u *CUI)

func (*CUI) Run

func (u *CUI) Run(argv []string) (err error)

type ViewType

type ViewType uint8
const (
	NopeView ViewType = iota
	FileView
	SelectGroupsView
)

Jump to

Keyboard shortcuts

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