CueListView:DispatchAction

From Moving Light Assistant
Jump to: navigation, search

DispatchAction( action, optionalParameter )

action is a string.
optionalParameter is a string (only some actions require the optionalParameter).

This function sends a user interface action to the Cue List view. These actions would normally by triggered by clicking on the user interface, i.e. clicking on a toolbar button, or selecting a cue row in the Cue List table.

Example.

CueListView:DispatchAction("Select All")

This would send an action that would be the same as selecting the Select All menu item from the Edit menu.

Action Strings

Select All

Will select all the displayed cue rows in the cue table in the Cue List view.

Deselect All

Will deselect all the displayed cue rows in the cue table in the Cue List view.

Select First Cue Row

Will select the first cue row in the cue table in the Cue List view. It is the same as if you had clicked on the first cue row in the cue table. Note that table will not scroll to show the selection.

Select Last Cue Row

Will select the last cue row in the cue table in the Cue List view. It is the same as if you had clicked on the last cue row in the cue table. Note that table will not scroll to show the selection.

Select Next Cue Row

Will select the next cue row in the cue table in the Cue List view. If no cue row was previously selected, it will select the first cue row. Note that table will not scroll to show the selection.

Select Previous Cue Row

Will select the previous cue row in the cue table in the Cue List view. If no cue row was previously selected, it will not do anything. Note that table will not scroll to show the selection.

Select Cue

optionalParameter (string) = Cue Number. i.e.45.

Will select the cue specified in the parameter.

Take Cue Photo

Set Cue Selection Auto Photo To True

Will set the Auto' photo' checkbox to on for the currently selected cue rows in the cue list.

Set Cue Selection Auto Photo To False

Will set the Auto photo checkbox to off for the currently selected cue rows in the cue list.

Example

Selecting all the cue rows and to set the Auto photo checkbox to on. Ensure that the cue table has the focus (i.e. you have clicked somewhere in the table first). CueListView:DispatchAction("Select All") CueListView:DispatchAction("Set Cue Selection Auto Photo To True") CueListView:DispatchAction("Deselect All")