Documentation ¶
Index ¶
- Variables
- func LoadDefaultCheckList()
- func LoadOrgCData()
- func PutCheckList(d CheckListOnly)
- func Remove(arr []string, item string) []string
- type BackupTreeObj
- type CheckListOnly
- type Mytree
- func (m *Mytree) AddItem(parent string, child string, branch bool) error
- func (m *Mytree) BackupChecks()
- func (m *Mytree) DeleteItem(parent string, child string, branch bool) error
- func (m *Mytree) ExportAs()
- func (m *Mytree) ExportCheckList(name string)
- func (m *Mytree) FindObject(name string) (*TreeObject, error)
- func (t *Mytree) GetContainer(w fyne.Window) *fyne.Container
- func (m *Mytree) ImportCheckList(d CheckListOnly)
- func (m *Mytree) SaveInstance()
- func (m *Mytree) SelectChecklist()
- func (m *Mytree) Store()
- func (m *Mytree) UpdateBar()
- func (m *Mytree) UpdateCheckStatus(uid string, status bool)
- func (m *Mytree) UpdateChecks()
- func (m *Mytree) UpdateFromDB()
- func (m *Mytree) UpdateFromInstance()
- func (m *Mytree) UpdateUsingInterface(dat interface{})
- func (m *Mytree) ViewItem(name string)
- type TreeBackup
- type TreeObject
Constants ¶
This section is empty.
Variables ¶
View Source
var Win fyne.Window
Win ...
Functions ¶
func LoadOrgCData ¶
func LoadOrgCData()
LoadOrgCData : Only invoke if type of checklist is Organization
Types ¶
type BackupTreeObj ¶
type BackupTreeObj struct { Heading string `bson:"heading"` Payload string `bson:"payload"` Notes string `bson:"notes"` Toolout []string `bson:"toolout"` }
BackupTreeObj
type CheckListOnly ¶
type CheckListOnly struct { Name string `bson:"checklistname"` TreeNodes map[string][]string `bson:"treenodes"` Descriptions map[string]*TreeObject `bson:"description"` }
CheckListOnly ...
var Default *CheckListOnly
Default USe this while creating CHecklists
var OrgCheck *CheckListOnly
OrgCheck ...
func GetAllCheckLists ¶
func GetAllCheckLists() []CheckListOnly
GetAllCheckLists Gets All CheckLists From db
type Mytree ¶
type Mytree struct { widget.Tree Nodes map[string][]string Panel *fyne.Container CheckBoxes map[string]binding.Bool BCheckBoxes map[string]bool Color color.Color ItemStore map[string]*TreeObject StatusBar binding.Float Bar *widget.ProgressBar TreeIdentifer string Coll string BackupInstance *TreeBackup HashMap map[string]string //only use is for fast indexing }
Mytree ...
func (*Mytree) DeleteItem ¶
DeleteItem : this will find and delete item if parent is found else returns error
func (*Mytree) ExportAs ¶
func (m *Mytree) ExportAs()
ExportAs : function to export checklist under different name
func (*Mytree) FindObject ¶
func (m *Mytree) FindObject(name string) (*TreeObject, error)
FindObject ...
func (*Mytree) GetContainer ¶
func (t *Mytree) GetContainer(w fyne.Window) *fyne.Container
GetContainer ...
func (*Mytree) SelectChecklist ¶
func (m *Mytree) SelectChecklist()
SelectChecklist : Creates a dialog box and select checklist and loads it
func (*Mytree) UpdateCheckStatus ¶
UpdateCheckStatus : Changing Status of Branch (Only works for a Branch Not nested ones)
func (*Mytree) UpdateUsingInterface ¶
func (m *Mytree) UpdateUsingInterface(dat interface{})
UpdateUsingInterface ...
type TreeBackup ¶
type TreeBackup struct { Nodes map[string][]string `bson:"nodes"` BCheckBoxes map[string]bool `bson:"bcheckboxes"` ItemStore map[string]*TreeObject `bson:"itemstore"` TreeIdentifer string `bson:"treeidentifer"` ProgressBar float64 `bson:"progressbar"` }
TreeBackup ...
type TreeObject ¶
type TreeObject struct { HeaderText string `bson:"headertext"` Heading *canvas.Text `bson:"-"` Payload string `bson:"payload"` Notes string `bson:"notes"` ToolEntry *hugetext.HugeEntry `bson:"-"` ToolEntryData []string `bson:"toolentry"` // contains filtered or unexported fields }
TreeObject
func (*TreeObject) Update ¶
func (t *TreeObject) Update()
Update Existing Values without changing original struct
Click to show internal directories.
Click to hide internal directories.