Documentation ¶
Overview ¶
Copyright (c) 2018 Hervé Gouchet. All rights reserved. Use of this source code is governed by the MIT License that can be found in the LICENSE file.
Index ¶
- Variables
- func NewBuilder(xml string) (*gtk.Builder, error)
- func NewButton(label string, clicked Func, margin ...int) (*gtk.Button, error)
- func NewHBox() (*gtk.Box, error)
- func NewLabel(label, font string, margin ...int) (*gtk.Label, error)
- func NewLevelBar(val, min, max int) (*gtk.LevelBar, error)
- func NewScrolledWindow(h, v bool) (*gtk.ScrolledWindow, error)
- func NewSearchEntry(placeholder string, search FuncOne, margin ...int) (*gtk.SearchEntry, error)
- func NewVBox() (*gtk.Box, error)
- type Application
- type Builder
- type Clipboard
- type ConfirmDialog
- type Container
- type DataTable
- type Dialog
- type Func
- type FuncOne
- type FuncTwo
- type Listener
- type LoadVisibleWidgetContainer
- type Logger
- type Notebook
- type Object
- func (o *Object) Activate(id string, enable bool) error
- func (o *Object) ButtonClicked(id string, fn Func) (err error)
- func (o *Object) Closed(fn func()) (err error)
- func (o *Object) EditEntry(id, text string, ok bool) (err error)
- func (o *Object) EnterPressed(id string, fn Func) error
- func (o *Object) Error(id, msg string) (err error)
- func (o *Object) Focus(id string) (err error)
- func (o *Object) ID(name string) (glib.IObject, error)
- func (o *Object) IObject() glib.IObject
- func (o *Object) IsActivated(id string) (enable bool, err error)
- func (o *Object) ReadEntry(id string) (string, error)
- func (o *Object) ReadSpinButton(id string) (int, error)
- func (o *Object) WriteEntry(id, text string) (err error)
- func (o *Object) WriteSpinButton(id string, num int) error
- type Plugin
- type ReLoader
- type SignDialog
- type TagDialog
- type TreeView
- func (t *TreeView) AddRow(d []interface{}) error
- func (t *TreeView) DelRow(name string) error
- func (t *TreeView) Len() int
- func (t *TreeView) ScrollTreeView(v, h bool) (*gtk.ScrolledWindow, error)
- func (t *TreeView) Search(q string)
- func (t *TreeView) TreeView() *gtk.TreeView
- func (t *TreeView) UpdRow(name string, d []interface{}) error
- type VaultDialog
- type Visibility
- type VisibleWidgetContainer
- type WidgetContainer
- type Window
- func (w *Window) AddTag(name string) error
- func (w *Window) App() *app.Safe
- func (w *Window) AttachDialog(c VisibleWidgetContainer) error
- func (w *Window) Build() error
- func (w *Window) Close() error
- func (w *Window) DeleteVault(tag, vault string) error
- func (w *Window) Hide()
- func (w *Window) Log(format string, args ...interface{})
- func (w *Window) Run()
- func (w *Window) Show()
- func (w *Window) ShowDelVaultConfirm(tag, vault string)
- func (w *Window) ShowNewVaultDialog(tag string)
- func (w *Window) ShowTagDialog()
- func (w *Window) ShowUpdVaultDialog(tag, vault string)
- func (w *Window) ShowVaultInfo(tag, vault string)
- func (w *Window) UpsertVault(v *safe.Vault, add bool) error
- func (w *Window) Window() *gtk.Window
Constants ¶
This section is empty.
Variables ¶
var ( // ErrUnkDialog ... ErrUnkDialog = errors.New("unknown dialog") // ErrFileSystem ... ErrFileSystem = errors.New("invalid file system") // ErrUndColumn ... ErrUndColumn = errors.New("missing columns") // ErrUndObject ... ErrUndObject = errors.New("missing object") // ErrContainer ... ErrContainer = errors.New("invalid window") )
Functions ¶
func NewScrolledWindow ¶
func NewScrolledWindow(h, v bool) (*gtk.ScrolledWindow, error)
NewScrolledWindow ...
func NewSearchEntry ¶
NewSearchEntry ...
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
Application ...
type ConfirmDialog ¶
type ConfirmDialog struct { *Dialog // contains filtered or unexported fields }
ConfirmDialog ...
func (*ConfirmDialog) Init ¶
func (d *ConfirmDialog) Init() (err error)
func (*ConfirmDialog) Log ¶
func (d *ConfirmDialog) Log(format string, args ...interface{})
Log implements the Plugin interface.
func (*ConfirmDialog) Reload ¶
func (d *ConfirmDialog) Reload(tag string, vault ...string)
Reload ...
type DataTable ¶
type DataTable interface { Cols() []string ColSizes() []int ColID() int Rows() [][]interface{} Types() []glib.Type Title() string }
DataTable ...
type Dialog ¶
type Dialog struct { *Object // contains filtered or unexported fields }
Dialog ...
type LoadVisibleWidgetContainer ¶
type LoadVisibleWidgetContainer interface { VisibleWidgetContainer ReLoader }
LoadVisibleWidgetContainer ...
type Logger ¶
type Logger interface { // Printf logs a message at level Info on the standard logger. Printf(format string, args ...interface{}) }
Logger must be implemented by any logger.
type Notebook ¶
type Notebook struct {
// contains filtered or unexported fields
}
Notebook ...
func NewNotebook ¶
NewNotebook ...
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
Object ...
func (*Object) ButtonClicked ¶
ButtonClicked ...
func (*Object) EnterPressed ¶ added in v0.2.1
EnterPressed ...
func (*Object) IsActivated ¶
IsActivated ...
func (*Object) ReadSpinButton ¶
ReadSpinButton ...
type SignDialog ¶
type SignDialog struct {
*Dialog
}
SignDialog ...
func (*SignDialog) Log ¶
func (d *SignDialog) Log(format string, args ...interface{})
Log implements the Plugin interface.
type TagDialog ¶
type TagDialog struct {
*Dialog
}
TagDialog ...
type TreeView ¶
type TreeView struct {
// contains filtered or unexported fields
}
TreeView ...
func NewTreeView ¶
NewTreeView ...
func (*TreeView) ScrollTreeView ¶
func (t *TreeView) ScrollTreeView(v, h bool) (*gtk.ScrolledWindow, error)
ScrollTreeView ...
type VaultDialog ¶
type VaultDialog struct { *Dialog // contains filtered or unexported fields }
VaultDialog ...
func (*VaultDialog) Init ¶
func (d *VaultDialog) Init() (err error)
func (*VaultDialog) Log ¶
func (d *VaultDialog) Log(format string, args ...interface{})
Log implements the Plugin interface.
type VisibleWidgetContainer ¶
type VisibleWidgetContainer interface { WidgetContainer Visibility }
VisibleContainer ...
type WidgetContainer ¶
WidgetContainer
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
Window ...
func (*Window) AttachDialog ¶
func (w *Window) AttachDialog(c VisibleWidgetContainer) error
AttachDialog ...
func (*Window) ShowDelVaultConfirm ¶
ShowDelVaultConfirm ...
func (*Window) ShowNewVaultDialog ¶
ShowVaultDialog ...
func (*Window) ShowUpdVaultDialog ¶
ShowVaultDialog ...
func (*Window) UpsertVault ¶
AddVault ...