controller

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func New

func New(ui CoreUI) *Controller

func (*Controller) ExportDataset

func (c *Controller) ExportDataset(dest string, balanced bool)

func (*Controller) GetImagePaths

func (c *Controller) GetImagePaths(binID int) []string

func (*Controller) GetPreview

func (c *Controller) GetPreview(path string) image.Image

Getthumbnail to be used by controller clients and retrieve the preview from the in memory cache

func (*Controller) GetThumbnail

func (c *Controller) GetThumbnail(path string) image.Image

func (*Controller) LoadDataset

func (c *Controller) LoadDataset(path string)

func (*Controller) MoveImages

func (c *Controller) MoveImages(paths []string, sourceID, destID int) error

type CoreUI

type CoreUI interface {
	ShowProgressDialog(msg string)
	SetProgress(progress float64, f string)
	ShowErrorDialog(err error)
	HideProgressDialog()
	GetBinCount() int
	LoadContent()
}

Jump to

Keyboard shortcuts

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