Compare commits
No commits in common. "guimaster" and "v0.22.31" have entirely different histories.
|
@ -3,47 +3,15 @@
|
||||||
|
|
||||||
package gadgets
|
package gadgets
|
||||||
|
|
||||||
|
// This model works for 99.9% of all windows
|
||||||
|
// This is the Default Standard Window Model
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
|
|
||||||
"go.wit.com/gui"
|
"go.wit.com/gui"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This model works for 99.9% of all windows
|
|
||||||
// This is the Default Standard Window Model
|
|
||||||
//
|
|
||||||
/////////////////////// Win /////////////////////////////////
|
|
||||||
// / / //
|
|
||||||
// / Top / ///////////////////////////////////////
|
|
||||||
// / / / //
|
|
||||||
// / / / Group //
|
|
||||||
// / / / //////////////////////////////////
|
|
||||||
// / / / // //
|
|
||||||
// / / / // //
|
|
||||||
// ////////////////////////////////////////////////////
|
|
||||||
// / / // // // // //
|
|
||||||
// Shelf / / // // // // //
|
|
||||||
// / Middle / // // // // .... //
|
|
||||||
// / / // // // // //
|
|
||||||
// / / // // // // //
|
|
||||||
// ////////////////////////////////////////////////////
|
|
||||||
// / / //
|
|
||||||
// / Bottom //////////////////////////////////////////
|
|
||||||
// / / //
|
|
||||||
// / //////////////////////////////////////////
|
|
||||||
// / / //
|
|
||||||
// / / | //
|
|
||||||
// / / v //
|
|
||||||
// / / //
|
|
||||||
// ////////////////////////////////////////////////////
|
|
||||||
// / //
|
|
||||||
// / //
|
|
||||||
// ////////////////////////////////////////////////////
|
|
||||||
// / //
|
|
||||||
// / | //
|
|
||||||
// / v //
|
|
||||||
// / //
|
|
||||||
/////////////////////////////////////////////////////////////
|
|
||||||
type GenericWindow struct {
|
type GenericWindow struct {
|
||||||
// Win *BasicWindow // the window widget itself
|
// Win *BasicWindow // the window widget itself
|
||||||
Win *gui.Node // the window widget itself
|
Win *gui.Node // the window widget itself
|
||||||
|
@ -143,12 +111,9 @@ func NewGenericWindow(title string, grouptxt string) *GenericWindow {
|
||||||
// gw.Win.Make()
|
// gw.Win.Make()
|
||||||
|
|
||||||
gw.Win.Custom = func() {
|
gw.Win.Custom = func() {
|
||||||
log.Log(WARN, "GenericWindow.Custom()")
|
log.Log(WARN, "Found Window close. setting hidden=true")
|
||||||
// sets the hidden flag to false so Toggle() works
|
// sets the hidden flag to false so Toggle() works
|
||||||
gw.Win.Hide()
|
gw.Win.Hide()
|
||||||
if gw.Custom != nil {
|
|
||||||
gw.Custom()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
gw.Shelf = gw.Win.NewHorizontalBox("Shelf")
|
gw.Shelf = gw.Win.NewHorizontalBox("Shelf")
|
||||||
// gw.Shelf.Vertical().SetProgName("ShelfBox")
|
// gw.Shelf.Vertical().SetProgName("ShelfBox")
|
||||||
|
|
Loading…
Reference in New Issue