Documentation ¶
Index ¶
- type Controller
- type Entry
- type Gui
- func (g *Gui) AddNewTab(title string, id int, host, request, response string)
- func (g *Gui) AddToHistory(tabId int, idTabContent int, label string)
- func (g *Gui) GetModuleGui() interface{}
- func (g *Gui) GetSettings() interface{}
- func (g *Gui) NewTab(title string, id int, host, request, response string) widgets.QWidget_ITF
- func (g *Gui) Title() string
- type Repeater
- type Tab
- type TabContent
- type TabGui
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { core.ControllerModule Module *Repeater Gui *Gui Sess *core.Session Tabs map[int]*Tab }
Controller represents the controller of the repeater module
func LoadRepeaterModule ¶
func LoadRepeaterModule(s *core.Session) *Controller
LoadRepeaterModule loads the repeater module in the given session
func NewController ¶
func NewController(module *Repeater, gui *Gui, s *core.Session) *Controller
NewController creates a new controller for the repeater module
func (*Controller) ExecCommand ¶
func (c *Controller) ExecCommand(m string, args ...interface{})
ExecCommand execs commands submitted by other modules
func (*Controller) GetGui ¶
func (c *Controller) GetGui() core.GuiModule
GetGui returns the Gui of the current controller
func (*Controller) GetModule ¶
func (c *Controller) GetModule() core.Module
GetModule returns the module of the current controller
func (*Controller) GoClick ¶
func (c *Controller) GoClick(id int, host, request string, ch chan string)
GoClick is the event fired when clicking the Go button in a repeater tab func (c *Controller) GoClick(t *TabGui) {
func (*Controller) NewTab ¶
func (c *Controller) NewTab(host, request string)
type Gui ¶
type Gui struct { core.GuiModule Sess *core.Session //GoClick func(*TabGui) GoClick func(int, string, string, chan string) ChangeTabName func(int, string) NewTabEvent func(string, string) RemoveTabEvent func(int) Load func() GetStuff func(int, int) (string, string, string) // contains filtered or unexported fields }
Gui represents the Gui of the repeater module
func (*Gui) GetModuleGui ¶
func (g *Gui) GetModuleGui() interface{}
GetModuleGui returns the Gui for the current module
func (*Gui) GetSettings ¶
func (g *Gui) GetSettings() interface{}
type Repeater ¶
type Repeater struct { core.Module Gui *core.GuiModule Sess *core.Session // contains filtered or unexported fields }
Repeater represents the repeater module
func NewRepeater ¶
NewRepeater returns a new repeater module
func (*Repeater) Description ¶
Description returns the description of the current module
type TabContent ¶
TabContent describes the content of a tab