godock: github.com/sqp/godock/widgets/appletlist Index | Files

package appletlist

import "github.com/sqp/godock/widgets/appletlist"

Package appletlist provides an applets list treeview widget.

Index

Package Files

appletlist.go appletlist.xml.go

Constants

const (
    RowKey = iota
    RowIcon
    RowName
    RowCategory
    RowNameWeight // Display param
)

Rows defines liststore rows. Must match the ListStore declaration type and order.

type ControlDownload Uses

type ControlDownload interface {
    OnSelect(datatype.Appleter)
    SetControlInstall(ControlInstall)
    Save()
}

ControlDownload is the interface to the main GUI for the download page.

type ControlInstall Uses

type ControlInstall interface {
    Selected() datatype.Appleter
    SetActive(state bool)
}

ControlInstall is the interface to the download page for the main GUI.

type List Uses

type List struct {
    gtk.ScrolledWindow // Main widget is the container. The ScrolledWindow will handle list scrollbars.
    // contains filtered or unexported fields
}

List defines an applets list widget.

func NewList Uses

func NewList(control ControlDownload, log cdtype.Logger) *List

NewList creates a new applets list widget.

func (*List) Clear Uses

func (widget *List) Clear()

Clear clears the widget data.

func (*List) Delete Uses

func (widget *List) Delete(key string)

Delete deletes a row.

func (*List) Selected Uses

func (widget *List) Selected() datatype.Appleter

Selected returns the applet package for the selected line.

func (*List) SetActive Uses

func (widget *List) SetActive(state bool)

SetActive sets the active state of selected line.

type ListAdd Uses

type ListAdd struct {
    ListPack
    // contains filtered or unexported fields
}

ListAdd defines an applet list widget with applets allowed to be enabled.

func NewListAdd Uses

func NewListAdd(control ControlDownload, log cdtype.Logger) *ListAdd

NewListAdd creates an applet list widget with applets allowed to be enabled.

func (*ListAdd) Clear Uses

func (widget *ListAdd) Clear()

Clear clears the widget data.

func (*ListAdd) Load Uses

func (widget *ListAdd) Load(list map[string]datatype.Appleter)

Load loads the applet list into the widget.

func (*ListAdd) UpdateModuleState Uses

func (widget *ListAdd) UpdateModuleState(name string, active bool)

UpdateModuleState updates the state of the given applet, from a dock event.

type ListEditApp Uses

type ListEditApp struct {
    ListPack
}

ListEditApp defines an applet list widget with applets allowed to be enabled.

func NewListEditApp Uses

func NewListEditApp(control ControlDownload, log cdtype.Logger) *ListEditApp

NewListEditApp creates an applet list widget with editable applet info.

func (*ListEditApp) Load Uses

func (widget *ListEditApp) Load(list map[string]datatype.Appleter)

Load loads the applet list into the widget.

type ListExternal Uses

type ListExternal struct {
    List
}

ListExternal defines an applet list widget with external applets to install.

func NewListExternal Uses

func NewListExternal(control ControlDownload, log cdtype.Logger) *ListExternal

NewListExternal creates an applet list widget with external applets to install.

func (*ListExternal) Load Uses

func (widget *ListExternal) Load(list map[string]datatype.Appleter)

Load loads the applet list into the widget.

type ListPack Uses

type ListPack struct {
    List
}

ListPack defines an applet list widget with applets allowed to be enabled.

func (*ListPack) AddRow Uses

func (widget *ListPack) AddRow(name string, app datatype.Appleter)

AddRow adds a row for the applet in the applet list.

type ListThemes Uses

type ListThemes struct {
    List
}

ListThemes defines an list and preview widget with dock themes to install.

func NewListThemes Uses

func NewListThemes(control ControlDownload, log cdtype.Logger) *ListThemes

NewListThemes creates a list and preview widget with dock themes to install.

func (*ListThemes) Load Uses

func (widget *ListThemes) Load(list map[string]datatype.Appleter)

Load loads the applet list into the widget.

type Row Uses

type Row struct {
    Iter *gtk.TreeIter
    Pack datatype.Appleter
}

Row defines a pointer to link the package reference with its iter.

Package appletlist imports 13 packages (graph) and is imported by 2 packages. Updated 2017-10-06. Refresh now. Tools for package owners.