Documentation ¶
Index ¶
- Constants
- func CreateActionsList(stateList []fixture.State, selectedState int) fixture.Action
- func GetFixtureLabelsForSwitches(fixtures *fixture.Fixtures) []string
- func NewChannelEditor(w fyne.Window, id int, channels []fixture.Channel, fp *FixturesPanel, ...) (modal *widget.PopUp, err error)
- func NewFixturePanel(sequences []*common.Sequence, w fyne.Window, groupConfig *fixture.Groups, ...) (popupFixturePanel *widget.PopUp, err error)
- func NewStatesEditor(w fyne.Window, fixtureID int, useFixtureName string, fp *FixturesPanel, ...) (modal *widget.PopUp, err error)
- func SetFromCheckState(cp *ColorPanel)
- func SetRectangleColorsFromString(cp *ColorPanel, colors []string)
- func UpdateFixture(fixtures []fixture.Fixture, id int, newItem fixture.Fixture) []fixture.Fixture
- type ActionPanel
- type ActiveHeader
- type Button
- type ChannelPanel
- type ColorPanel
- type FixturesPanel
- type SettingsPanel
- type StatePanel
Constants ¶
View Source
const ( LABEL int = iota SELECT COLOR_SELECTION_BOX RADIO_BUTTON )
View Source
const ( COLOR1 int = iota COLOR2 COLOR3 COLOR4 COLOR5 COLOR6 COLOR7 COLOR8 COLOR9 COLOR10 )
View Source
const ( ACTIONS_MODE int = iota ACTIONS_COLORS ACTIONS_FADE ACTIONS_SIZE ACTIONS_SPEED ACTIONS_ROTATE ACTIONS_ROTATESPEED ACTIONS_PROGRAM ACTIONS_PROGRAM_SPEED ACTIONS_STROBE ACTIONS_GOBO ACTIONS_GOBO_SPEED )
View Source
const ( CHANNEL_NUMBER int = iota CHANNEL_NAME CHANNEL_DELETE CHANNEL_ADD CHANNEL_SETTINGS )
View Source
const ( FIXTURE_ID int = iota FIXTURE_TYPE FIXTURE_GROUP FIXTURE_NUMBER FIXTURE_NAME FIXTURE_LABEL FIXTURE_ADDRESS FIXTURE_DESCRIPTION FIXTURE_DELETE FIXTURE_ADD FIXTURE_CHANNELS )
View Source
const ( SETTING_NUMBER int = iota SETTING_NAME SETTING_CHANNEL SETTING_VALUE SETTING_SELECT_VALUE SETTING_DELETE SETTING_ADD )
View Source
const ( COLUMN_ID int = iota COLUMN_NAME COLUMN_CHANNEL COLUMN_VALUE COLUMN_SELECT_VALUE COLUMN_DELETE COLUMN_ADD )
View Source
const ( TITLE int = iota MESSAGE REPORT )
View Source
const ( STATE_NUMBER int = iota STATE_NAME STATE_BUTTONCOLOR STATE_DELETE STATE_ADD STATE_ACTIONS STATE_SETTINGS )
View Source
const MAX_NUMBER_SETTINGS = 512
View Source
const RECTANGLE = 0
View Source
const TABLE_HEIGHT int = 7
View Source
const TEXT = 1
Variables ¶
This section is empty.
Functions ¶
func CreateActionsList ¶
func NewChannelEditor ¶
func NewFixturePanel ¶
func NewStatesEditor ¶
func NewStatesEditor(w fyne.Window, fixtureID int, useFixtureName string, fp *FixturesPanel, fixtures *fixture.Fixtures) (modal *widget.PopUp, err error)
Show a list of States.
func SetFromCheckState ¶
func SetFromCheckState(cp *ColorPanel)
func SetRectangleColorsFromString ¶
func SetRectangleColorsFromString(cp *ColorPanel, colors []string)
Types ¶
type ActionPanel ¶
type ActionPanel struct { ActionsPanel *widget.List ActionsList []fixture.Action ActionNameOptions []string ActionColorsOptions []string ActionMapOptions []string ActionModeOptions []string ActionFadeOptions []string ActionSizeOptions []string ActionSpeedOptions []string ActionRotateOptions []string ActionRotateSpeedOptions []string ActionMusicOptions []string ActionProgramOptions []string ActionProgramSpeedOptions []string ActionStrobeOptions []string ActionGoboOptions []string ActionGoboSpeedOptions []string UpdateActions bool UpdateThisAction int CurrentState int CurrentStateName string }
func NewActionsPanel ¶
func NewActionsPanel(w fyne.Window, actionsList []fixture.Action, fixtureInfo fixture.FixtureInfo) *ActionPanel
type ActiveHeader ¶
func (*ActiveHeader) Tapped ¶
func (h *ActiveHeader) Tapped(_ *fyne.PointEvent)
func (*ActiveHeader) TappedSecondary ¶
func (h *ActiveHeader) TappedSecondary(_ *fyne.PointEvent)
type ChannelPanel ¶
type ChannelPanel struct { ChannelPanel *widget.Table ChannelList []fixture.Channel ChannelOptions []string }
func NewChannelPanel ¶
func NewChannelPanel(thisFixture fixture.Fixture, channels []fixture.Channel, st *SettingsPanel) *ChannelPanel
type ColorPanel ¶
type ColorPanel struct { Panel *fyne.Container UpdateThisAction int UpdateColors bool ColorSelection string // Coma seperated string of color names, Upcase first letter. Buttons map[string]Button ActionNumber int Rectanges []*canvas.Rectangle // Display rectangles. Modal *widget.PopUp }
func NewColorPickerPanel ¶
func NewColorPickerPanel() *ColorPanel
type FixturesPanel ¶
type FixturesPanel struct { FixturePanel *widget.Table FixtureList []fixture.Fixture UpdateThisFixture int UpdateChannels bool UpdateStates bool UpdatedChannelsList []fixture.Channel UpdatedStatesList []fixture.State UpdateUseFixture bool UseFixture string UpdateDescription bool Description string GroupOptions []string NumberOptions []string TypeOptions []string DMXAddressEntryError map[int]bool NameEntryError map[int]bool LabelEntryError map[int]bool DescriptionEntryError map[int]bool Fixtures *fixture.Fixtures }
type SettingsPanel ¶
type SettingsPanel struct { UseFixtureName string SettingsPanel *widget.Table SettingsList []fixture.Setting SettingMaxDegrees *int SettingsOptions []string ChannelOptions []string SelectedValueOptions []string CurrentChannel int UpdateThisChannel int UpdateSettings bool MaxNumberSettings int NameEntryError map[int]bool DMXValueEntryError map[int]bool Fixtures *fixture.Fixtures }
func NewSettingsPanel ¶
type StatePanel ¶
type StatePanel struct { StatePanel *widget.Table StatesList []fixture.State ButtonColorOptions []string StateOptions []string }
func NewStatePanel ¶
func NewStatePanel(statesList []fixture.State, ap *ActionPanel, st *SettingsPanel) *StatePanel
Click to show internal directories.
Click to hide internal directories.