view

package
v0.0.0-...-0765a50 Latest Latest
Warning

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

Go to latest
Published: May 14, 2017 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelAdd

type ChannelAdd struct {
	Module
	// contains filtered or unexported fields
}

ChannelAdd represent the channel addition view

func (*ChannelAdd) Load

func (v *ChannelAdd) Load(parent *gtk.Window) (err error)

Load load and fill all the component of the add channel module

type ContactAdd

type ContactAdd struct {
	Module
	// contains filtered or unexported fields
}

ContactAdd represent the contact addition view

func (*ContactAdd) Load

func (v *ContactAdd) Load(parent *gtk.Window) (err error)

Load load and fill all the component of the add contact module

type Identity

type Identity struct {
	Module
	// contains filtered or unexported fields
}

Identity represent the login view

func (*Identity) Load

func (v *Identity) Load(onLoginSucceed func() error) (err error)

Load load and fill all the component of the login module

type Main

type Main struct {
	Module
	// contains filtered or unexported fields
}

Main represent the main view

func (*Main) ChannelsRefresh

func (v *Main) ChannelsRefresh() (err error)

func (*Main) Load

func (v *Main) Load() (err error)

Load load and fill all the component of the main module

func (*Main) MessagesRefresh

func (v *Main) MessagesRefresh(messages []*message.Message) (err error)

type Module

type Module struct {
	WindowBaseTitle string
	Window          *gtk.Window
}

Module represent a module of the application (login, chat, ...)

func (*Module) AttachButtonClickedSignal

func (m *Module) AttachButtonClickedSignal(builder *gtk.Builder, buttonName string, onClick OnClickEvent) (err error)

AttachButtonClickedSignal attach the clicked sign to a button

func (*Module) Dialog

func (m *Module) Dialog(messageType gtk.MessageType, format string, args ...interface{})

Dialog open a modal box and display a message

func (*Module) FindButtonWithBuilder

func (m *Module) FindButtonWithBuilder(builder *gtk.Builder, buttonName string) (button *gtk.Button, err error)

FindButtonWithBuilder return a button stored in a builder, based on his name nolint: dupl

func (*Module) FindDialogWithBuilder

func (m *Module) FindDialogWithBuilder(builder *gtk.Builder, dialogName string) (dialog *gtk.Dialog, err error)

FindDialogWithBuilder return a dialog stored in a builder, based on his name nolint: dupl

func (*Module) FindEntryWithBuilder

func (m *Module) FindEntryWithBuilder(builder *gtk.Builder, entryName string) (button *gtk.Entry, err error)

FindEntryWithBuilder return an entry stored in a builder, based on his name nolint: dupl

func (*Module) FindFileChooserButtonWithBuilder

func (m *Module) FindFileChooserButtonWithBuilder(builder *gtk.Builder, fileChooserName string) (button *gtk.FileChooserButton, err error)

FindFileChooserButtonWithBuilder return an file chooser button stored in a builder, based on his name nolint: dupl

func (*Module) FindLabelWithBuilder

func (m *Module) FindLabelWithBuilder(builder *gtk.Builder, labelName string) (l *gtk.Label, err error)

FindLabelWithBuilder return a text view stored in a builder, based on his name nolint: dupl

func (*Module) FindListBoxWithBuilder

func (m *Module) FindListBoxWithBuilder(builder *gtk.Builder, tvName string) (tv *gtk.ListBox, err error)

FindListBoxWithBuilder return a list box stored in a builder, based on his name nolint: dupl

func (*Module) FindListStoreWithBuilder

func (m *Module) FindListStoreWithBuilder(builder *gtk.Builder, tvName string) (tv *gtk.ListStore, err error)

FindListStoreWithBuilder return a list store stored in a builder, based on his name nolint: dupl

func (*Module) FindMenuItemWithBuilder

func (m *Module) FindMenuItemWithBuilder(builder *gtk.Builder, imiName string) (menuItem *gtk.MenuItem, err error)

FindMenuItemWithBuilder return a menuitem stored in a builder, based on his name nolint: dupl

func (*Module) FindPanedWithBuilder

func (m *Module) FindPanedWithBuilder(builder *gtk.Builder, panedName string) (menuItem *gtk.Paned, err error)

FindPanedWithBuilder return a paned stored in a builder, based on his name nolint: dupl

func (*Module) FindTextViewWithBuilder

func (m *Module) FindTextViewWithBuilder(builder *gtk.Builder, tvName string) (tv *gtk.TextView, err error)

FindTextViewWithBuilder return a text view stored in a builder, based on his name nolint: dupl

func (*Module) FindTreeViewWithBuilder

func (m *Module) FindTreeViewWithBuilder(builder *gtk.Builder, tvName string) (tv *gtk.TreeView, err error)

FindTreeViewWithBuilder return a tree view stored in a builder, based on his name nolint: dupl

func (*Module) FindWindowWithBuilder

func (m *Module) FindWindowWithBuilder(builder *gtk.Builder, windowName string) (window *gtk.Window, err error)

FindWindowWithBuilder return an window stored in a builder, based on his name nolint: dupl

type OnClickEvent

type OnClickEvent func() error

OnClickEvent is the prototype of a button clicked event

Jump to

Keyboard shortcuts

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