Documentation ¶
Index ¶
- type BookmarkForm
- func (n *BookmarkForm) Blur()
- func (n *BookmarkForm) Clear()
- func (n *BookmarkForm) Draw(screen tcell.Screen)
- func (n *BookmarkForm) Focus(delegate func(p tview.Primitive))
- func (n *BookmarkForm) GetFocusable() tview.Focusable
- func (n *BookmarkForm) GetRect() (int, int, int, int)
- func (n *BookmarkForm) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (n *BookmarkForm) SetDoneFunc(doneFunc func())
- func (n *BookmarkForm) SetRect(x, y, width, height int)
- func (n *BookmarkForm) SetSearchFunc(search func(key, value string) ([]string, error))
- func (n *BookmarkForm) SetVisible(visible bool)
- type DeleteBookmark
- type Help
- type ImportData
- type ImportForm
- type Menu
- type MenuAction
- type Modify
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookmarkForm ¶
type BookmarkForm struct {
// contains filtered or unexported fields
}
func NewBookmarkForm ¶
func NewBookmarkForm(createFunc func(bookmark *models.Bookmark)) *BookmarkForm
func (*BookmarkForm) Blur ¶
func (n *BookmarkForm) Blur()
func (*BookmarkForm) Clear ¶
func (n *BookmarkForm) Clear()
func (*BookmarkForm) Draw ¶
func (n *BookmarkForm) Draw(screen tcell.Screen)
func (*BookmarkForm) Focus ¶
func (n *BookmarkForm) Focus(delegate func(p tview.Primitive))
func (*BookmarkForm) GetFocusable ¶
func (n *BookmarkForm) GetFocusable() tview.Focusable
func (*BookmarkForm) InputHandler ¶
func (n *BookmarkForm) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
func (*BookmarkForm) SetDoneFunc ¶
func (n *BookmarkForm) SetDoneFunc(doneFunc func())
func (*BookmarkForm) SetRect ¶
func (n *BookmarkForm) SetRect(x, y, width, height int)
func (*BookmarkForm) SetSearchFunc ¶
func (n *BookmarkForm) SetSearchFunc(search func(key, value string) ([]string, error))
func (*BookmarkForm) SetVisible ¶
func (n *BookmarkForm) SetVisible(visible bool)
type DeleteBookmark ¶
func NewDeleteBookmark ¶
func NewDeleteBookmark(doneFunc func(bool), bookmark *models.Bookmark) *DeleteBookmark
func (*DeleteBookmark) SetDoneFunc ¶
func (d *DeleteBookmark) SetDoneFunc(doneFunc func())
func (*DeleteBookmark) SetVisible ¶
func (d *DeleteBookmark) SetVisible(visible bool)
type Help ¶
func (*Help) InputHandler ¶
func (*Help) Update ¶
func (h *Help) Update(stats *storage.Statistics)
type ImportForm ¶
func NewImportForm ¶
func NewImportForm() *ImportForm
func (*ImportForm) ImportDone ¶
func (i *ImportForm) ImportDone(count int, msg string, ok bool)
func (*ImportForm) Reset ¶
func (i *ImportForm) Reset()
Reset resets form, which must be called before creating new import
func (*ImportForm) SetCreateFunc ¶
func (i *ImportForm) SetCreateFunc(importFunc func(data *ImportData))
func (*ImportForm) SetDoneFunc ¶
func (i *ImportForm) SetDoneFunc(doneFunc func())
func (*ImportForm) SetVisible ¶
func (i *ImportForm) SetVisible(visible bool)
type Menu ¶
Menu provides modal to perform multiple actions
func (*Menu) InputHandler ¶
func (*Menu) SetActionFunc ¶
func (m *Menu) SetActionFunc(doneFunc func(action MenuAction))
type MenuAction ¶
type MenuAction int
const ( MenuActionNone MenuAction = iota MenuActionImport MenuActionExport MenuActionModify )
Click to show internal directories.
Click to hide internal directories.