gui

package
v1.0.0-alpha.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broxygui

type Broxygui struct {
	widgets.QMainWindow
	bcore.MainGui
	// contains filtered or unexported fields
}

Broxygui is the main GUI made of tabs

func (*Broxygui) AddGuiModule

func (g *Broxygui) AddGuiModule(m bcore.GuiModule)

AddGuiModule adds a new module to the main GUI

func (*Broxygui) InitWith

func (g *Broxygui) InitWith(s *bcore.Session)

func (*Broxygui) ShowErrorMessage

func (g *Broxygui) ShowErrorMessage(message string)

ShowErrorMessage shows a critical message box

type Delegate

type Delegate struct {
	widgets.QStyledItemDelegate
	// contains filtered or unexported fields
}

Delegate represents the listView delegate to list projects

func InitDelegate

func InitDelegate(qApp *widgets.QApplication) *Delegate

InitDelegate is used to initialize the delegate

type History

type History struct {
	H []*project.Project `json:"ProjectsHistory"`
	// contains filtered or unexported fields
}

History represents a history of projects

func LoadHistory

func LoadHistory(path string) *History

LoadHistory loads the projects history stored in path

func (*History) Add

func (h *History) Add(p *project.Project) error

SaveToHistory saves a new project to the history

func (*History) Remove

func (h *History) Remove(p *project.Project) error

RemoveFromHistory removes an entry from the history

type Projectgui

type Projectgui struct {
	widgets.QMainWindow
	// contains filtered or unexported fields
}

Projectgui shows a project history and allows to create a new project or load an existing one

func (*Projectgui) InitWith

func (g *Projectgui) InitWith(qApp *widgets.QApplication)

InitWith initializes Projectgui with a given history, configuration and QApplication

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL