ui

package
v0.0.0-...-d19560e Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2018 License: GPL-3.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginUI

type LoginUI struct {
	// contains filtered or unexported fields
}

LoginUI holds information about the LoginUI

func NewLoginUIStruct

func NewLoginUIStruct(windowWidth, windowHeight int, window *widgets.QMainWindow) (loginUIStruct LoginUI)

NewLoginUIStruct gives you a LoginUI struct with prefilled data

func NewLoginUIStructWithExistingConfig

func NewLoginUIStructWithExistingConfig(configStruct config, window *widgets.QMainWindow) (loginUIStruct LoginUI)

NewLoginUIStructWithExistingConfig gives you a LoginUI struct with prefilled data and data from a previous Config

func (*LoginUI) GetWidget

func (l *LoginUI) GetWidget() (widget *widgets.QWidget)

GetWidget gives you the widget of the LoginUI struct

func (*LoginUI) NewUI

func (l *LoginUI) NewUI() (err error)

NewUI initializes a new login Screen

type MainUI

type MainUI struct {
	RoomAvatar        *widgets.QLabel
	RoomTitle         *widgets.QLabel
	RoomTopic         *widgets.QLabel
	MainWidget        *widgets.QWidget
	MessageListLayout *QVBoxLayoutWithTriggerSlot
	// contains filtered or unexported fields
}

MainUI holds information about the MainUI

func NewMainUIStruct

func NewMainUIStruct(windowWidth, windowHeight int, window *widgets.QMainWindow) (mainUIStruct MainUI)

NewMainUIStruct gives you a MainUI struct with prefilled data

func NewMainUIStructWithExistingConfig

func NewMainUIStructWithExistingConfig(configStruct config, window *widgets.QMainWindow) (mainUIStruct MainUI)

NewMainUIStructWithExistingConfig gives you a MainUI struct with prefilled data and data from a previous Config

func (*MainUI) GetWidget

func (m *MainUI) GetWidget() (widget *widgets.QWidget)

GetWidget gives you the widget of the MainUI struct

func (*MainUI) NewUI

func (m *MainUI) NewUI() (err error)

NewUI initializes a new Main Screen

func (*MainUI) SetCli

func (m *MainUI) SetCli(cli *gomatrix.Client)

SetCli allows you to add a gomatrix.Client to your MainUI struct

func (*MainUI) SetCurrentRoom

func (m *MainUI) SetCurrentRoom(RoomID string)

SetCurrentRoom sets the new room ID of the MainUI

type QRoomVBoxLayoutWithTriggerSlot

type QRoomVBoxLayoutWithTriggerSlot struct {
	widgets.QVBoxLayout
	// contains filtered or unexported fields
}

QRoomVBoxLayoutWithTriggerSlot defines the QVBoxLayout with TriggerMessage slot to add messages to the View

func NewRoomList

func NewRoomList(scrollArea *widgets.QScrollArea, roomView *widgets.QWidget) (roomViewLayout *QRoomVBoxLayoutWithTriggerSlot)

NewRoomList generates a new QRoomVBoxLayoutWithTriggerSlot and adds it to the room scrollArea

func (*QRoomVBoxLayoutWithTriggerSlot) NewRoom

func (roomViewLayout *QRoomVBoxLayoutWithTriggerSlot) NewRoom(room *matrix.Room, scrollArea *widgets.QScrollArea, mainUIStruct *MainUI) (err error)

NewRoom adds a new room object to the view

type QVBoxLayoutWithTriggerSlot

type QVBoxLayoutWithTriggerSlot struct {
	widgets.QVBoxLayout
	// contains filtered or unexported fields
}

QVBoxLayoutWithTriggerSlot defines the QVBoxLayout with TriggerMessage slot to add messages to the View

func NewMessageList

func NewMessageList(scrollArea *widgets.QScrollArea, messageView *widgets.QWidget) (messageViewLayout *QVBoxLayoutWithTriggerSlot)

NewMessageList generates a new QVBoxLayoutWithTriggerSlot and adds it to the message scrollArea

func (*QVBoxLayoutWithTriggerSlot) NewMessage

func (messageViewLayout *QVBoxLayoutWithTriggerSlot) NewMessage(body string, cli *gomatrix.Client, sender string, timestamp int64, scrollArea *widgets.QScrollArea, own bool, mainUIStruct *MainUI) (err error)

NewMessage adds a new message object to the view

Jump to

Keyboard shortcuts

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