gui

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MenuItemMain         = "> Menu"
	MenuItemMainSettings = "Settings"
	MenuItemMainAbout    = "About"
	AboutText            = "@Author: Manuel Reschke\n " +
		"@Github: https://github.com/ManuelReschke/go-pd-gui\n\n " +
		"This tool was made by Manuel Reschke under MIT Licence.\n\n " +
		"Version: " + Version
)
View Source
const (
	FormLabel               = "API KEY:"
	FormLabelInput          = "*optional"
	SettingAPIKey           = "setting.apikey"
	SettingUserInfoJSON     = "setting.user.info.json"
	SettingUsername         = "setting.user.name"
	SettingUserSubscription = "setting.user.subscription"
)
View Source
const (
	Version      = "v1.1.0"
	AppID        = "com.gopdgui.app"
	WindowTitle  = "Go-PD-GUI - DRAINY - PixelDrain Upload Tool"
	WindowWidth  = 550
	WindowHeight = 600

	Headline     = "PixelDrain.com Upload Tool"
	ButtonCopy   = "Copy"
	ButtonUpload = "Upload"
	EmptyString  = ""
	FooterText   = "This tool was made by Manuel Reschke under MIT Licence. "
)

Variables

This section is empty.

Functions

func BuildHistoryWindow

func BuildHistoryWindow()

func BuildMainMenu

func BuildMainMenu() *fyne.MainMenu

func BuildSettingsWindow

func BuildSettingsWindow()

func BuildStart

func BuildStart()

Types

type AppData

type AppData struct {
	App        fyne.App
	Window     fyne.Window
	Containers map[string]*fyne.Container
	Settings   Settings
	Storage    Storage
}
var MyApp AppData

type HistoryItems

type HistoryItems map[int]pd.FileGetUser

HistoryItems is a custom wrapper for the custom sort

func (HistoryItems) Len

func (m HistoryItems) Len() int

func (HistoryItems) Less

func (m HistoryItems) Less(i, j int) bool

func (HistoryItems) Swap

func (m HistoryItems) Swap(i, j int)

type Settings

type Settings struct {
	APIKey       binding.String
	Username     binding.String
	Subscription binding.String
}

type Storage

type Storage struct {
	Username      string
	LastElement   UploadHistory
	UploadHistory []UploadHistory
}

type UploadHistory

type UploadHistory struct {
	UploadDate time.Time
	FileName   string
	URL        string
}

Jump to

Keyboard shortcuts

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