mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-15 21:37:09 +09:00
Almost done terminal emulator
This commit is contained in:
@@ -4,13 +4,13 @@ import (
|
||||
"github.com/zyedidia/micro/cmd/micro/buffer"
|
||||
"github.com/zyedidia/micro/cmd/micro/display"
|
||||
"github.com/zyedidia/micro/cmd/micro/info"
|
||||
"github.com/zyedidia/micro/cmd/micro/views"
|
||||
)
|
||||
|
||||
type Pane interface {
|
||||
Handler
|
||||
display.Window
|
||||
ID() uint64
|
||||
Name() string
|
||||
}
|
||||
|
||||
type EditPane struct {
|
||||
@@ -34,18 +34,6 @@ func NewBufEditPane(x, y, width, height int, b *buffer.Buffer) *EditPane {
|
||||
return e
|
||||
}
|
||||
|
||||
func NewTabPane(x, y, width, height int, b *buffer.Buffer) *TabPane {
|
||||
t := new(TabPane)
|
||||
t.Node = views.NewRoot(x, y, width, height)
|
||||
t.UIWindow = display.NewUIWindow(t.Node)
|
||||
|
||||
e := NewBufEditPane(x, y, width, height, b)
|
||||
e.splitID = t.ID()
|
||||
|
||||
t.Panes = append(t.Panes, e)
|
||||
return t
|
||||
}
|
||||
|
||||
func NewInfoBar() *InfoPane {
|
||||
e := new(InfoPane)
|
||||
ib := info.NewBuffer()
|
||||
|
||||
Reference in New Issue
Block a user