Control();
// One button per sound the device holds, numbered by the file id the
// firmware expects, the same way presets are addressed. The id is carried
// in the command name (audioPlay12) because the control request has no
// general way to attach a parameter to a button.
$min = $control->MinAudioFile();
$max = $control->MaxAudioFile();
ob_start();
?>
TargetMonitor();
if ( !$target or !canView('Control', $target->Id()) )
continue;
$label = $action->Label() ? $action->Label() :
translate('Action'.$action->ActionType()).' - '.$target->Name();
?>
Control();
$actionControls = monitorActionControls($monitor);
// A monitor with manual actions but no control of its own still gets a
// panel; there is simply nothing but the action buttons in it.
if ( !$control or !$control->Id() ) {
if ( $actionControls === '' )
return '';
return '
'.$actionControls.'
';
}
$cmds = $control->commands();
ob_start();
?>
CanFocus() )
echo controlFocus($monitor, $cmds);
if ( $control->CanZoom() )
echo controlZoom($monitor, $cmds);
if ( $control->CanIris() )
echo controlIris($monitor, $cmds);
if ( $control->CanWhite() )
echo controlWhite($monitor, $cmds);
if ( $control->CanLight() )
echo controlLight($monitor, $cmds);
if ( $control->CanIndicatorLight() )
echo controlIndicatorLight($monitor, $cmds);
if ( $control->CanAudioPlay() || $control->CanAudioVolume() )
echo controlAudio($monitor, $cmds);
if ( $control->CanMove() ) {
?>