Documentation ¶
Overview ¶
Package cfwidget implements key widgets for the config file builder.
Index ¶
- Constants
- Variables
- func CheckButton(key *cftype.Key)
- func ColorSelector(key *cftype.Key)
- func Float(key *cftype.Key)
- func FontSelector(key *cftype.Key)
- func Frame(key *cftype.Key)
- func Handbook(key *cftype.Key)
- func IntegerScale(key *cftype.Key)
- func IntegerSize(key *cftype.Key)
- func IntegerSpin(key *cftype.Key)
- func JumpToModule(key *cftype.Key)
- func LaunchCommand(key *cftype.Key)
- func Link(key *cftype.Key)
- func ListAnimation(key *cftype.Key)
- func ListDeskletDecoration(key *cftype.Key)
- func ListDialogDecorator(key *cftype.Key)
- func ListDock(key *cftype.Key)
- func ListIconsMainDock(key *cftype.Key)
- func ListScreens(key *cftype.Key)
- func ListThemeApplet(key *cftype.Key)
- func ListThemeDesktopIcon(key *cftype.Key)
- func ListView(key *cftype.Key)
- func Lists(key *cftype.Key)
- func MainCSS() *gtk.CssProvider
- func Maker(key *cftype.Key) func()
- func NewComboBox(key *cftype.Key, withEntry, numbered bool, current string, ...) (widget *gtk.ComboBox, model *gtk.ListStore, getValue func() interface{}, ...)
- func NewComboBoxWithModel(model *gtk.ListStore, log cdtype.Logger, ...) (widget *gtk.ComboBox, getValue func() interface{})
- func Nil(key *cftype.Key)
- func PackComboBoxWithIndexHandbooker(key *cftype.Key, index map[string]datatype.Handbooker)
- func PackComboBoxWithListField(key *cftype.Key, withEntry, numbered bool, getList func() []datatype.Field) *gtk.ComboBox
- func PackReset(key *cftype.Key, value interface{}) *gtk.Button
- func PackValuerAsInt(key *cftype.Key, w gtk.IWidget, valuer WidgetValuer, value int)
- func Separator(key *cftype.Key)
- func Strings(key *cftype.Key)
- func Text(key *cftype.Key)
- func TreeView(key *cftype.Key)
- func WrapKeyScale(key *cftype.Key, child *gtk.Scale) gtk.IWidget
- type WidgetValuer
Constants ¶
const ( RowKey = iota RowName RowIcon RowDesc )
Rows defines liststore rows. Must match the ListStore declaration type and order.
Variables ¶
var Types = map[cftype.KeyType]func(key *cftype.Key){ cftype.KeyTextLabel: Text, cftype.KeyLink: Link, cftype.KeySeparator: Separator, cftype.KeyFrame: Frame, cftype.KeyExpander: Frame, cftype.KeyBoolButton: CheckButton, cftype.KeyBoolCtrl: CheckButton, cftype.KeyIntSpin: IntegerSpin, cftype.KeyIntScale: IntegerScale, cftype.KeyIntSize: IntegerSize, cftype.KeyFloatSpin: Float, cftype.KeyFloatScale: Float, cftype.KeyColorSelectorRGB: ColorSelector, cftype.KeyColorSelectorRGBA: ColorSelector, cftype.KeyFontSelector: FontSelector, cftype.KeyStringEntry: Strings, cftype.KeyPasswordEntry: Strings, cftype.KeyFileSelector: Strings, cftype.KeyFolderSelector: Strings, cftype.KeySoundSelector: Strings, cftype.KeyShortkeySelector: Strings, cftype.KeyClassSelector: Strings, cftype.KeyImageSelector: Strings, cftype.KeyListSimple: Lists, cftype.KeyListEntry: Lists, cftype.KeyListNumbered: Lists, cftype.KeyListNbCtrlSimple: Lists, cftype.KeyListNbCtrlSelect: Lists, cftype.KeyTreeViewSortSimple: TreeView, cftype.KeyTreeViewSortModify: TreeView, cftype.KeyTreeViewMultiChoice: TreeView, cftype.KeyLaunchCmdSimple: LaunchCommand, cftype.KeyLaunchCmdIf: LaunchCommand, cftype.KeyEmptyWidget: Nil, cftype.KeyEmptyFull: Nil, cftype.KeyListThemeApplet: ListThemeApplet, cftype.KeyListDocks: ListDock, cftype.KeyListViews: ListView, cftype.KeyListThemeDesktopIcon: ListThemeDesktopIcon, cftype.KeyListAnimation: ListAnimation, cftype.KeyListDialogDecorator: ListDialogDecorator, cftype.KeyListDeskletDecoSimple: ListDeskletDecoration, cftype.KeyListDeskletDecoDefault: ListDeskletDecoration, cftype.KeyListIconsMainDock: ListIconsMainDock, cftype.KeyListScreens: ListScreens, cftype.KeyHandbook: Handbook, }
Types defines widget build methods by key type.
Functions ¶
func ColorSelector ¶
ColorSelector adds a color selector widget.
func JumpToModule ¶
JumpToModule adds a redirect button widget. USED?
func LaunchCommand ¶
LaunchCommand adds a launch command widget. HELP ONLY
func ListAnimation ¶
ListAnimation adds an animation list widget.
func ListDeskletDecoration ¶
ListDeskletDecoration adds a desklet decoration list widget.
func ListDialogDecorator ¶
ListDialogDecorator adds an dialog decorator list widget.
func ListIconsMainDock ¶
ListIconsMainDock adds an icon list widget.
func ListThemeApplet ¶
ListThemeApplet adds an theme list widget.
func ListThemeDesktopIcon ¶
ListThemeDesktopIcon adds a desktop icon-themes list widget.
func NewComboBox ¶
func NewComboBox(key *cftype.Key, withEntry, numbered bool, current string, list []datatype.Field) ( widget *gtk.ComboBox, model *gtk.ListStore, getValue func() interface{}, setValue func(interface{}))
NewComboBox creates a combo box.
func NewComboBoxWithModel ¶
func NewComboBoxWithModel(model *gtk.ListStore, log cdtype.Logger, bAddPreviewWidgets, bWithEntry, bHorizontalPackaging bool) ( widget *gtk.ComboBox, getValue func() interface{})
NewComboBoxWithModel adds a combo box with the given model (can be nil).
_add_combo_from_modele used do/while. find why
func PackComboBoxWithIndexHandbooker ¶
func PackComboBoxWithIndexHandbooker(key *cftype.Key, index map[string]datatype.Handbooker)
PackComboBoxWithIndexHandbooker creates a combo box filled with the getList call.
func PackComboBoxWithListField ¶
func PackComboBoxWithListField(key *cftype.Key, withEntry, numbered bool, getList func() []datatype.Field) *gtk.ComboBox
PackComboBoxWithListField creates a combo box filled with the getList call.
func PackValuerAsInt ¶
PackValuerAsInt packs a valuer widget with its reset button (to given value). Values are get and set as int.
Types ¶
type WidgetValuer ¶
WidgetValuer defines a widget with GetValue and SetValue methods.