gui

package
v0.0.0-...-a3a3860 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2017 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gui

type Gui struct {
	core.QObject
	// contains filtered or unexported fields
}

Gui struct

func MakeGui

func MakeGui(settings *core.QSettings) *Gui

MakeGui returns new Gui struct

func (*Gui) DownloadTorrentCompleted

func (g *Gui) DownloadTorrentCompleted(row int, percent int)

DownloadTorrentCompleted slot

func (*Gui) DownloadTorrentStarted

func (g *Gui) DownloadTorrentStarted(name string)

DownloadTorrentStarted slot

func (*Gui) DownloadTorrentsCompleted

func (g *Gui) DownloadTorrentsCompleted()

DownloadTorrentsCompleted slot

func (*Gui) ErrorOccured

func (g *Gui) ErrorOccured(err string)

ErrorOccured slot

func (*Gui) RenameSeriesCompleted

func (g *Gui) RenameSeriesCompleted()

RenameSeriesCompleted slot

func (*Gui) SearchCompleted

func (g *Gui) SearchCompleted(torrents [][]byte)

SearchCompleted slot

func (*Gui) SyncSettings

func (g *Gui) SyncSettings()

SyncSettings sync the app settings

type List

type List struct {
	core.QObject
	*widgets.QTreeView
	// contains filtered or unexported fields
}

List struct

func MakeList

func MakeList() *List

MakeList new

func (*List) AddRow

func (list *List) AddRow(torrent common.Torrent)

AddRow method

func (*List) RemoveAllRows

func (list *List) RemoveAllRows()

RemoveAllRows remove all rows

func (*List) ResizeAllColumnToContents

func (list *List) ResizeAllColumnToContents()

ResizeAllColumnToContents resize all columns to contents

func (*List) RowCount

func (list *List) RowCount() int

RowCount returns the number of rows

func (*List) RowData

func (list *List) RowData(index int) common.Torrent

RowData returns data for row at index

func (*List) RowSelected

func (list *List) RowSelected(index int) bool

RowSelected returns true if the row at index is selected

func (*List) RowsSelected

func (list *List) RowsSelected() int

RowsSelected returns the number of rows selected

func (*List) UncheckRow

func (list *List) UncheckRow(index int)

UncheckRow uncheck a row at index

type QVFormLayout

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

QVFormLayout struct

func MakeQVFormLayout

func MakeQVFormLayout() *QVFormLayout

MakeQVFormLayout returns a new QVFormLayout

func (*QVFormLayout) AddBlock

func (layout *QVFormLayout) AddBlock(title string)

AddBlock add a group box

func (*QVFormLayout) AddRow

func (layout *QVFormLayout) AddRow(block int, label string, widget widgets.QWidget_ITF)

AddRow add a new row

type SettingsDialog

type SettingsDialog struct {
	core.QObject
	*widgets.QDialog
	// contains filtered or unexported fields
}

SettingsDialog struct

func MakeSettingsDialog

func MakeSettingsDialog(window *widgets.QMainWindow, settings *core.QSettings) *SettingsDialog

MakeSettingsDialog returns new SettingsDialog struct

func (*SettingsDialog) Exec

func (sd *SettingsDialog) Exec(settingKey string)

Exec override

type StatusBar

type StatusBar struct {
	*widgets.QStatusBar

	ProgressBar *widgets.QProgressBar
	// contains filtered or unexported fields
}

StatusBar stuct

func MakeStatusBar

func MakeStatusBar() *StatusBar

MakeStatusBar returns a new StatusBar

func (*StatusBar) ClearStatusMessage

func (sb *StatusBar) ClearStatusMessage()

ClearStatusMessage clear the status message and the icon

func (*StatusBar) SetErrorStatusMessage

func (sb *StatusBar) SetErrorStatusMessage(message string)

SetErrorStatusMessage set a status error

func (*StatusBar) SetOkStatusMessage

func (sb *StatusBar) SetOkStatusMessage(message string)

SetOkStatusMessage set a ok status message

func (*StatusBar) SetStatusMessage

func (sb *StatusBar) SetStatusMessage(message, iconUnicode string)

SetStatusMessage set a status message and the icon (font awesome UTF code)

func (*StatusBar) StartProgress

func (sb *StatusBar) StartProgress(pulse bool)

StartProgress start pulse the progress bar

Jump to

Keyboard shortcuts

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