summaryrefslogtreecommitdiff
path: root/structs.go
blob: 24f90ad681718d586a713ee2b0e747a317e47c1f (plain)
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
52
package main

import (
	"go.wit.com/gui"
	"go.wit.com/lib/fhelp"
	"go.wit.com/lib/gadgets"
	"go.wit.com/lib/protobuf/argvpb"
	"go.wit.com/lib/protobuf/gitpb"
	"go.wit.com/lib/protobuf/zoopb"
)

var me *mainType

// this app's variables
type mainType struct {
	sh      *argvpb.Argv   // shell autocomplete
	myGui   *fhelp.GuiPrep // the gui handle itself
	origGui *gui.Node      // the gui handle itself
	pb      *zoopb.Package // the .deb package protobuf
	repo    *gitpb.Repo    // this is the repo we are in
}

type controlBox struct {
	group *gui.Node // the group
	grid  *gui.Node // the grid

	Package      *gadgets.OneLiner
	Source       *gadgets.OneLiner
	Version      *gadgets.OneLiner
	Maintainer   *gadgets.OneLiner
	Packager     *gadgets.BasicEntry
	GoPath       *gadgets.BasicEntry
	Namespace    *gadgets.BasicEntry
	URL          *gadgets.BasicEntry
	Architecture *gadgets.BasicDropdown
	InstallPath  *gadgets.BasicCombobox
	Depends      *gadgets.OneLiner
	BuildDepends *gadgets.OneLiner
	Recommends   *gadgets.OneLiner
	Conflicts    *gadgets.BasicEntry
	Test         gui.Widget
	Description  *gadgets.OneLiner

	// repostatus things
	pathL   *gadgets.OneLiner
	lastTag *gadgets.OneLiner
	// dirtyL    *gadgets.OneLiner
	currentL  *gadgets.OneLiner
	buildDate *gadgets.OneLiner
	tagDate   *gadgets.BasicEntry
	// status    *repostatus.RepoStatus
}