confcore

package
v0.0.0-...-0caaa62 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: GPL-3.0-or-later Imports: 26 Imported by: 0

Documentation

Overview

Package confcore provides a cairo-dock core configuration widget.

Index

Constants

View Source
const (
	TabDownload  = "Download"  // Key for the download tab.
	TabShortkeys = "Shortkeys" // ...
	TabThemes    = "Themes"
	TabHelp      = "Help"
	TabReport    = "Report"
	TabDev       = "Dev"
)

Custom config tabs displayed with the core page.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfCore

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

ConfCore provides a configuration widget for the main cairo-dock config.

func New

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

New creates a ConfCore widget to edit the main cairo-dock config.

func (*ConfCore) Load

func (widget *ConfCore) Load()

Load loads config items in the widget.

func (*ConfCore) Save

func (widget *ConfCore) Save()

Save saves the current page configuration

func (*ConfCore) Select

func (widget *ConfCore) Select(key string) bool

Select sets the selected item based on its key name.

func (*ConfCore) ShowWelcome

func (widget *ConfCore) ShowWelcome(setBtn bool)

ShowWelcome shows the welcome placeholder widget if nothing is displayed.

func (*ConfCore) UpdateModuleState

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

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

func (*ConfCore) UpdateShortkeys

func (widget *ConfCore) UpdateShortkeys()

UpdateShortkeys updates the shortkey widget if it's loaded.

type Item

type Item struct {
	Key      string
	Title    string
	Icon     string
	Tooltip  string
	Managers []string
}

Item defines a core config page information.

type List

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

List is a widget to list and select cairo-dock main config pages references.

func NewList

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

NewList creates cairo-dock main config pages list.

func (*List) Load

func (widget *List) Load(shareData string)

Load loads the widget fields.

func (*List) Select

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

Select sets the selected row based on its name.

func (*List) Selected

func (widget *List) Selected() (*Item, error)

Selected returns the data about the selected item.

Jump to

Keyboard shortcuts

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