-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdialog.go
51 lines (37 loc) · 813 Bytes
/
dialog.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package main
var Dialogs = make([]Dialog, 0, 4)
type Dialog interface {
GetWidth() int
GetHeight() int
GetDialogStrings() []string
PrintLine(lineIndex int)
}
type MenuDialog struct {
}
func (d MenuDialog) GetWidth() {
}
func (d MenuDialog) GetHeight() {
}
func (d MenuDialog) GetDialogStrings() []string {
return []string{
" +------------------------+ ",
" | Info [I] | ",
" | Rename [R] | ",
" | Delete [D] | ",
" | Parent Folder [P] | ",
" | Close [C] | ",
" +------------------------+ ",
}
}
func (d MenuDialog) PrintLine(lineIndex int) {
}
func addDialogToArr(d Dialog) {
Dialogs = append(Dialogs, d)
}
func removeLastDialog() {
if len(Dialogs) > 0 {
Dialogs = Dialogs[:len(Dialogs)-1]
}
}
func printDialogs() {
}