godock: github.com/sqp/godock/widgets/conficons Index | Files | Directories

package conficons

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

Package conficons provides an icons list and configuration widget.

Index

Package Files

conficons.go

type GuiIcons Uses

type GuiIcons struct {
    gtk.Paned
    // contains filtered or unexported fields
}

GuiIcons defines Icons configuration widget for currently actived cairo-dock Icons.

func New Uses

func New(data cftype.Source, log cdtype.Logger, switcher *pageswitch.Switcher, btn btnaction.Tune) *GuiIcons

New creates a GuiIcons widget to edit cairo-dock icons config.

func (*GuiIcons) Clear Uses

func (widget *GuiIcons) Clear() string

Clear clears the widget data.

func (*GuiIcons) Load Uses

func (widget *GuiIcons) Load()

Load loads the list of icons in the iconsList.

func (*GuiIcons) OnSelect Uses

func (widget *GuiIcons) OnSelect(icon datatype.Iconer, e error)

OnSelect reacts when a row is selected. Creates a new config for the icon.

func (*GuiIcons) Save Uses

func (widget *GuiIcons) Save()

Save saves the current page configuration

func (*GuiIcons) Select Uses

func (widget *GuiIcons) Select(conf string) bool

Select sets the selected icon based on its config file.

func (*GuiIcons) ShowWelcome Uses

func (widget *GuiIcons) ShowWelcome(setBtn bool)

ShowWelcome shows the welcome placeholder widget if nothing is displayed.

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 a dock icons management widget.

func NewList Uses

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

NewList creates a dock icons management widget.

func (*List) Clear Uses

func (widget *List) Clear()

Clear clears the widget data.

func (*List) Load Uses

func (widget *List) Load(icons *datatype.ListIcon)

Load loads icons list in the widget.

func (*List) Select Uses

func (widget *List) Select(conf string) bool

Select sets the selected icon based on its config file.

func (*List) SelectedConf Uses

func (widget *List) SelectedConf() string

SelectedConf returns the path to icon config file for the selected row.

func (*List) SelectedIcon Uses

func (widget *List) SelectedIcon() (datatype.Iconer, error)

SelectedIcon returns the iconer matching the selected row.

type ListControl Uses

type ListControl interface {
    OnSelect(datatype.Iconer, error)
}

ListControl forwards events to other widgets.

Directories

PathSynopsis
desktopclassPackage desktopclass extends the launcher builder with desktop class informations.

Package conficons imports 13 packages (graph) and is imported by 1 packages. Updated 2017-11-25. Refresh now. Tools for package owners.