godock: github.com/sqp/godock/libs/gldi/confdata Index | Files

package confdata

import "github.com/sqp/godock/libs/gldi/confdata"

Package confdata provides a data source for the config, based on the gldi backend.

Index

Package Files

confdata.go

type AppletConf Uses

type AppletConf struct {
    gldi.VisitCard
    // contains filtered or unexported fields
}

AppletConf wraps a dock module and visitcard as Appleter for config data source.

func (*AppletConf) Activate Uses

func (v *AppletConf) Activate() string

Activate activates the applet and returns the path to the config file of the new instance.

func (*AppletConf) CanAdd Uses

func (v *AppletConf) CanAdd() bool

CanAdd returns whether the applet can be activated (again).

func (*AppletConf) CanUninstall Uses

func (v *AppletConf) CanUninstall() bool

CanUninstall returns whether the applet can be uninstalled or not.

func (*AppletConf) Deactivate Uses

func (v *AppletConf) Deactivate()

Deactivate does nothing. Only here for compatibility with datatype.Appleter

func (*AppletConf) Dir Uses

func (v *AppletConf) Dir() string

Dir gives the location of the package on disk.

func (*AppletConf) FormatCategory Uses

func (v *AppletConf) FormatCategory() string

FormatCategory formats the applet category text.

func (*AppletConf) FormatSize Uses

func (v *AppletConf) FormatSize() string

FormatSize does nothing. Only here for compatibility with datatype.Appleter

func (*AppletConf) FormatState Uses

func (v *AppletConf) FormatState() string

FormatState does nothing. Only here for compatibility with datatype.Appleter

func (*AppletConf) IconState Uses

func (v *AppletConf) IconState() string

IconState does nothing. Only here for compatibility with datatype.Appleter

func (*AppletConf) Install Uses

func (v *AppletConf) Install(options string) error

Install does nothing. Only here for compatibility with datatype.Appleter

func (*AppletConf) IsActive Uses

func (v *AppletConf) IsActive() bool

IsActive returns whether there is at least one active instance of the applet or not.

func (*AppletConf) IsInstalled Uses

func (v *AppletConf) IsInstalled() bool

IsInstalled returns whether the applet is installed or not.

func (*AppletConf) Uninstall Uses

func (v *AppletConf) Uninstall() error

Uninstall does nothing. Only here for compatibility with datatype.Appleter

type AppletDownload Uses

type AppletDownload struct {
    packages.AppletPackage
    // contains filtered or unexported fields
}

AppletDownload wraps a dock module and an external applet package as Appleter for config data source.

func (*AppletDownload) Activate Uses

func (v *AppletDownload) Activate() string

Activate activates the applet. TODO: May have to returns the path to the config file of the new instance.

func (*AppletDownload) CanAdd Uses

func (v *AppletDownload) CanAdd() bool

CanAdd returns whether the applet can be activated.

func (*AppletDownload) CanUninstall Uses

func (v *AppletDownload) CanUninstall() bool

CanUninstall returns whether the applet can be uninstalled or not.

func (*AppletDownload) Deactivate Uses

func (v *AppletDownload) Deactivate()

Deactivate deactivates the applet.

func (*AppletDownload) FormatCategory Uses

func (v *AppletDownload) FormatCategory() string

FormatCategory formats the applet category text.

func (*AppletDownload) GetAuthor Uses

func (v *AppletDownload) GetAuthor() string

GetAuthor returns the applet author.

func (*AppletDownload) GetIconFilePath Uses

func (v *AppletDownload) GetIconFilePath() string

GetIconFilePath returns the location of the applet icon. TODO: improve.

func (*AppletDownload) GetName Uses

func (v *AppletDownload) GetName() string

GetName returns the applet name to use as config key.

func (*AppletDownload) GetTitle Uses

func (v *AppletDownload) GetTitle() string

GetTitle returns the applet readable name.

func (*AppletDownload) IconState Uses

func (v *AppletDownload) IconState() string

IconState returns the icon location for the state for the applet.

func (*AppletDownload) Install Uses

func (v *AppletDownload) Install(options string) error

Install downloads and extract an external archive to package dir.

func (*AppletDownload) IsActive Uses

func (v *AppletDownload) IsActive() bool

IsActive returns whether there is at least one active instance of the applet or not.

func (*AppletDownload) Uninstall Uses

func (v *AppletDownload) Uninstall() error

Uninstall removes the external applet package dir.

type Data Uses

type Data struct {
    datatype.SourceCommon
    cdglobal.Crypto
}

Data provides a config Source interface based on the dock gldi backend.

func (Data) AppIcon Uses

func (Data) AppIcon() string

AppIcon returns the application icon path.

func (Data) CreateMainDock Uses

func (Data) CreateMainDock() string

CreateMainDock creates a new main dock to store a moved icon.

func (Data) CurrentThemeLoad Uses

func (Data) CurrentThemeLoad(themeName string, useBehaviour, useLaunchers bool) error

CurrentThemeLoad imports and loads a dock theme.

func (Data) CurrentThemeSave Uses

func (Data) CurrentThemeSave(themeName string, saveBehaviour, saveLaunchers, needPackage bool, dirPackage string) error

CurrentThemeSave saves the current dock theme, and can also make an archive.

func (Data) DesktopClasser Uses

func (Data) DesktopClasser(class string) datatype.DesktopClasser

DesktopClasser allows to get desktop class informations for a given name.

func (Data) DirShareData Uses

func (Data) DirShareData(path ...string) string

DirShareData returns the path to the shared data dir.

func (Data) DirUserAppData Uses

func (Data) DirUserAppData(path ...string) (string, error)

DirUserAppData returns the path to the applications data dir (user saved data).

func (Data) DisplayMode Uses

func (Data) DisplayMode() cdglobal.DisplayMode

DisplayMode returns the display backend used.

func (Data) GrabWindowClass Uses

func (Data) GrabWindowClass() (string, error)

GrabWindowClass waits a user window selection and returns its class.

func (Data) Handbook Uses

func (Data) Handbook(name string) datatype.Handbooker

Handbook wraps a dock module visit card as Handbooker for config data source.

func (Data) ListAnimations Uses

func (Data) ListAnimations() (list []datatype.Field)

ListAnimations returns the list of animations.

func (Data) ListDeskletDecorations Uses

func (Data) ListDeskletDecorations() (list []datatype.Field)

ListDeskletDecorations returns the list of desklet decorations.

func (Data) ListDialogDecorator Uses

func (Data) ListDialogDecorator() (list []datatype.Field)

ListDialogDecorator returns the list of dialog decorators.

func (Data) ListDockThemeLoad Uses

func (d Data) ListDockThemeLoad() (map[string]datatype.Appleter, error)

ListDockThemeLoad builds the list of dock themes for load widget (local and distant).

func (Data) ListDockThemeSave Uses

func (d Data) ListDockThemeSave() []datatype.Field

ListDockThemeSave builds the list of dock themes for save widget (local).

func (Data) ListDocks Uses

func (Data) ListDocks(parent, subdock string) []datatype.Field

ListDocks builds the list of docks with readable name. Both options are docks to remove from the list. Subdock childrens are removed too.

func (Data) ListDownloadApplets Uses

func (d Data) ListDownloadApplets() (map[string]datatype.Appleter, error)

ListDownloadApplets builds the list of downloadable user applets (installed or not).

func (Data) ListIcons Uses

func (Data) ListIcons() *datatype.ListIcon

ListIcons builds the list of all icons.

func (Data) ListIconsMainDock Uses

func (Data) ListIconsMainDock() (list []datatype.Field)

ListIconsMainDock builds the list of icons in the maindock.

func (Data) ListKnownApplets Uses

func (Data) ListKnownApplets() map[string]datatype.Appleter

ListKnownApplets builds the list of all user applets.

func (Data) ListScreens Uses

func (Data) ListScreens() (list []datatype.Field)

ListScreens returns the list of screens.

func (Data) ListShortkeys Uses

func (Data) ListShortkeys() (list []cdglobal.Shortkeyer)

ListShortkeys returns the list of dock shortkeys.

func (Data) ListViews Uses

func (Data) ListViews() map[string]datatype.Handbooker

ListViews returns the list of views.

func (Data) MainConfigDefault Uses

func (Data) MainConfigDefault() string

MainConfigDefault returns the full path to the dock config file.

func (Data) MainConfigFile Uses

func (Data) MainConfigFile() string

MainConfigFile returns the full path to the dock config file.

func (Data) ManagerReload Uses

func (Data) ManagerReload(name string, b bool, keyf *keyfile.KeyFile)

ManagerReload reloads the manager matching the given name.

type HandbookDescTranslate Uses

type HandbookDescTranslate struct{ datatype.Handbooker }

HandbookDescTranslate improves Handbooker with a translated description.

func (*HandbookDescTranslate) GetDescription Uses

func (dv *HandbookDescTranslate) GetDescription() string

GetDescription returns the book description.

type IconConf Uses

type IconConf struct {
    gldi.Icon
}

IconConf wraps a dock icon as Iconer for config data source.

func (*IconConf) ConfigGroup Uses

func (icon *IconConf) ConfigGroup() string

ConfigGroup is unused on this backend.

func (*IconConf) GetClass Uses

func (icon *IconConf) GetClass() datatype.DesktopClasser

GetClass returns the class defined for the icon, able to get all related desktop class informations.

func (*IconConf) GetGettextDomain Uses

func (icon *IconConf) GetGettextDomain() string

GetGettextDomain returns the translation domain for the applet.

func (*IconConf) MoveAfterNext Uses

func (icon *IconConf) MoveAfterNext()

MoveAfterNext swaps the icon position with the next one.

func (*IconConf) MoveBeforePrevious Uses

func (icon *IconConf) MoveBeforePrevious()

MoveBeforePrevious swaps the icon position with the previous one.

func (*IconConf) OriginalConfigPath Uses

func (icon *IconConf) OriginalConfigPath() string

OriginalConfigPath gives the full path to the icon original config file. This is the default unchanged config file.

func (*IconConf) Reload Uses

func (icon *IconConf) Reload()

Reload reloads the icon to apply the new configuration.

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