gui

package
v0.0.5-0...-5f39efd Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const NOT_RUNNING_STR = "Not running"

Variables

View Source
var (
	Navigations = map[string]Navigation{
		"localSync": {
			"Local Sync",
			"",
			getBatchLocalSyncComponent,
		},
		"localBatchSync": {
			"Local Batch Sync",
			"Click start button to begin sync",
			getBatchLocalSyncComponent,
		},
		"localSingleSync": {
			"Local Single Sync",
			"Click start button to begin sync.",
			getSingleLocalSyncComponent,
		},
		"partitionSync": {
			"Partition Sync",
			"Click start button to begin sync",
			getPartitionSyncComponent,
		},
		"remoteSync": {
			"Remote Single Sync",
			"Click start button to begin sync.",
			getManageRemoteQNQComponent,
		},
		"manageRemoteQNQ": {
			"Mange Remote QNQ",
			"Manage remote qnq.\nPlease auth the connection first!",
			getManageRemoteQNQComponent,
		},
		"remoteSingleSync": {
			"Remote Single Sync",
			"This is a demo!",
			getRemoteSingleComponent,
		},
		"systemInfo": {
			"System Information",
			"",
			getLocalSystemInfoComponent,
		},
		"diskInfo": {
			"Disk Information",
			"Basic Disk Information",
			getDiskInfoComponent,
		},
		"testDiskSpeed": {
			"Test Disk Speed",
			"The recommended buffer size is 4MB.",
			getTestDiskSpeedComponent,
		},
		"systemSetting": {
			"QNQ System Setting",
			"",
			getTestDiskSpeedComponent,
		},
		"setting": {
			"QNQ System Setting",
			"",
			getTestDiskSpeedComponent,
		},
		"olog": {
			"QNQ Log",
			"",
			getLogComponent,
		},
		"snapshot": {
			"Snapshot",
			"",
			getTimePointComponent,
		},
		"timePoint": {
			"Time Point",
			"Currently, only the same disk creation time point is supported.",
			getTimePointComponent,
		},
	}
	//设置菜单树
	NavigationIndex = map[string][]string{
		"":           {"localSync", "remoteSync", "systemInfo", "systemSetting"},
		"localSync":  {"localBatchSync", "localSingleSync", "partitionSync"},
		"remoteSync": {"manageRemoteQNQ", "remoteSingleSync"},

		"systemInfo":    {"diskInfo", "testDiskSpeed"},
		"systemSetting": {"olog"},
	}
)
View Source
var FileSyncComponent fyne.CanvasObject

Functions

func SetMainWin

func SetMainWin(win *fyne.Window)

func StartGUI

func StartGUI()

Types

type Navigation struct {
	Title, Intro string
	View         func(w fyne.Window) fyne.CanvasObject
}

type Storage

type Storage struct {
	Name       string
	FileSystem string
	Total      uint64
	Free       uint64
}

Jump to

Keyboard shortcuts

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