mainwindow

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomWidgetDrawLoop added in v0.9.0

func CustomWidgetDrawLoop(
	cw *walk.CustomWidget,
	mw *walk.MainWindow,
	capturer screen.ScreenCapturer,
	currentSettings *config.CaptureConfig,
	previewChannel chan image.Image,
	recordingChannel chan *image.Paletted,

)

func RunAboutDialog added in v0.6.0

func RunAboutDialog(owner walk.Form) (int, error)

func RunManageFittingsDialog added in v0.7.0

func RunManageFittingsDialog(owner walk.Form, conf interface{}, fm *fittings.FittingsManager, pilots []string) (int, error)

func RunNewPresetDialog added in v0.6.0

func RunNewPresetDialog(owner walk.Form, presetValue config.Preset, c *config.CaptureConfig) (int, error)

func RunSettingsDialog added in v0.7.0

func RunSettingsDialog(owner walk.Form, conf interface{}, onSettingsSubmit func(c *config.CaptureConfig)) (int, error)

func WidgetDrawFn added in v0.9.0

func WidgetDrawFn(
	previewChannel chan image.Image,
	recordingChannel chan *image.Paletted,
) walk.PaintFunc

DrawStuff returns draw function main window preview custom widget.

Types

type AbyssRecorderWindow

type AbyssRecorderWindow struct {
	MainWindow             *walk.MainWindow
	FilteredPreview        *walk.CheckBox
	DataBinder             *walk.DataBinder
	CaptureWidget          *walk.CustomWidget
	XSetting               *walk.NumberEdit
	YSetting               *walk.NumberEdit
	HSetting               *walk.NumberEdit
	RecordingButton        *walk.PushButton
	CaptureWindowComboBox  *walk.ComboBox
	UIScalingComboBox      *walk.ComboBox
	RunnerCharacterGroup   *walk.GroupBox
	RunnerTableView        *walk.TableView
	CaptureSettingsGroup   *walk.GroupBox
	CapturePreviewGroupBox *walk.GroupBox
	TestServer             *walk.CheckBox
	CharacterSwitcherMenu  *walk.Menu
	Toolbar                *walk.ToolBar
	AutoUploadCheckbox     *walk.CheckBox
	SettingsAction         *walk.Action
	PresetSwitcherMenu     *walk.Menu
	PresetSaveButton       *walk.PushButton
	PreviewScrollView      *walk.ScrollView
	AbyssTypeToolbar       *walk.ToolBar
	ManageFittingsButton   *walk.PushButton
	FittingManager         *fittings.FittingsManager
	RecorderWidth          int
}

func NewAbyssRecorderWindow

func NewAbyssRecorderWindow(
	c interface{},
	customWidgetPaintFunc walk.PaintFunc,
	comboBoxModel []*WindowComboBoxItem,
	actions map[string]walk.EventHandler,
	clr *combatlog.Reader,
	fm *fittings.FittingsManager,
	serverProvider domain.ServerProvider,
) *AbyssRecorderWindow

NewAbyssRecorderWindow creates new main window of recorder.

func (*AbyssRecorderWindow) RefreshPresets added in v0.6.0

func (m *AbyssRecorderWindow) RefreshPresets(c *config.CaptureConfig)

type AbyssTypeChooser added in v0.6.0

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

func NewAbyssTypeChooser added in v0.6.0

func NewAbyssTypeChooser(t *walk.ToolBar, c *config.CaptureConfig) *AbyssTypeChooser

func (*AbyssTypeChooser) Init added in v0.6.0

func (a *AbyssTypeChooser) Init()

type Runner added in v0.7.0

type Runner struct {
	Index         int
	CharacterName string
	FittingName   string
	FittingID     string
	ShipType      string
	ShipBitmap    *walk.Bitmap
	// contains filtered or unexported fields
}

type RunnerModel added in v0.7.0

type RunnerModel struct {
	walk.TableModelBase
	walk.SorterBase
	// contains filtered or unexported fields
}

func NewRunnerModel added in v0.7.0

func NewRunnerModel(characters map[string]combatlog.CombatLogFile, fm *fittings.FittingsManager) *RunnerModel

func (*RunnerModel) Checked added in v0.7.0

func (m *RunnerModel) Checked(row int) bool

Called by the TableView to retrieve if a given row is checked.

func (*RunnerModel) GetCheckedCharacters added in v0.7.0

func (m *RunnerModel) GetCheckedCharacters() (characters []string)

func (*RunnerModel) RefreshList added in v0.7.0

func (m *RunnerModel) RefreshList()

func (*RunnerModel) RowCount added in v0.7.0

func (m *RunnerModel) RowCount() int

Called by the TableView from SetModel and every time the model publishes a RowsReset event.

func (*RunnerModel) SetChecked added in v0.7.0

func (m *RunnerModel) SetChecked(row int, checked bool) error

Called by the TableView when the user toggled the check box of a given row.

func (*RunnerModel) Sort added in v0.7.0

func (m *RunnerModel) Sort(col int, order walk.SortOrder) error

Called by the TableView to sort the model.

func (*RunnerModel) StyleCell added in v0.7.0

func (m *RunnerModel) StyleCell(style *walk.CellStyle)

func (*RunnerModel) Value added in v0.7.0

func (m *RunnerModel) Value(row, col int) interface{}

Called by the TableView when it needs the text to display for a given cell.

type ShortcutSetter added in v0.3.0

type ShortcutSetter interface {
	SetRecorderShortcut(int, walk.Shortcut)
}

type UIScalingComboBoxItem added in v0.8.1

type UIScalingComboBoxItem struct {
	UIScalingTitle string
	RecorderWidth  int
}

type WindowComboBoxItem

type WindowComboBoxItem struct {
	WindowTitle  string
	WindowHandle syscall.Handle
}

Jump to

Keyboard shortcuts

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