Filtering on tags, Rounding on 'time'
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
*/
|
||||
type PromptForTagWiddle struct {
|
||||
active bool
|
||||
visible bool
|
||||
x, y, w, h int
|
||||
|
||||
origKey, origVal string
|
||||
@@ -36,8 +37,8 @@ func NewPromptForTagWiddle(x, y, w, h int, key, val string) *PromptForTagWiddle
|
||||
origKey: key, origVal: val,
|
||||
keyInput: keyInp,
|
||||
valInput: widdles.NewToggleField("Value", val, 0, 0, 0, 0),
|
||||
cancelButton: widdles.NewButton("Cancel", 0, 0, 0, 0),
|
||||
doneButton: widdles.NewButton("Done", 0, 0, 0, 0),
|
||||
cancelButton: widdles.NewButton("Cancel"),
|
||||
doneButton: widdles.NewButton("Done"),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,9 +87,11 @@ func (w *PromptForTagWiddle) View(style wandle.Style) {
|
||||
wandle.Print(w.x+1, w.y+w.h-2, style, w.msg)
|
||||
}
|
||||
|
||||
func (w *PromptForTagWiddle) IsActive() bool { return w.active }
|
||||
func (w *PromptForTagWiddle) SetActive(b bool) { w.active = b }
|
||||
func (w *PromptForTagWiddle) Focusable() bool { return true }
|
||||
func (w *PromptForTagWiddle) SetVisible(v bool) { w.visible = v }
|
||||
func (w *PromptForTagWiddle) IsVisible() bool { return w.visible }
|
||||
func (w *PromptForTagWiddle) IsActive() bool { return w.active }
|
||||
func (w *PromptForTagWiddle) SetActive(b bool) { w.active = b }
|
||||
func (w *PromptForTagWiddle) Focusable() bool { return true }
|
||||
func (w *PromptForTagWiddle) SetX(x int) {
|
||||
w.x = x
|
||||
w.Measure()
|
||||
|
||||
Reference in New Issue
Block a user