Frontend  0.5.1
Loading...
Searching...
No Matches
Inheritance diagram for _ControllerState:
Collaboration diagram for _ControllerState:

Public Member Functions

override void initState ()
void _initLoco () async
void _initTurnout () async
override void dispose ()
override Widget build (BuildContext context)
void _syncFromCommands (List< Command > commands)
void _locoSyncFromCommands (List< Command > commands)
void _turnoutSyncFromCommands (List< Command > commands)
Stream< Command_stream ()
Widget _layoutGrid ()
Widget _cvGridArea ()
Widget _buttonsGridArea ()
Widget _locoDropdownMenuGridArea ()
Widget _locoImageGridArea ()
Widget _locoBidiGridArea ()
Widget _locoSliderGridArea ()
Widget _turnoutDropdownMenuGridArea ()
Widget _turnoutImageGridArea ()
void _locoOnPressed (int keyCode)
void _turnoutOnPressed (int keyCode)
void _lanXSetLocoDrive (Loco loco)
void _lanXSetLocoFunction (Loco loco, int state, int index)
void _lanXSetTurnout (int state)
override void setState (VoidCallback fn)

Public Attributes

Loco get loco => widget.item as Loco
Turnout get turnout => widget.item as Turnout
final KeyPressNotifier _allKeysNotifier = KeyPressNotifier()
final KeyPressNotifier _cvKeysNotifier = KeyPressNotifier()
final KeyPressNotifier _functionKeysNotifier = KeyPressNotifier()
Timer _timer
WeightSliderController _locoSliderController
Timer _settleTimer
bool _settleActive = false
final FocusNode _cvFocusNode = FocusNode()
bool _initialized = false
List< int > _turnoutPositions = []
int _turnoutState = -1

Static Public Attributes

static const _period = Duration(milliseconds: 500)
static const _settleDelay = Duration(milliseconds: 1000)

Detailed Description

Todo
document

Member Function Documentation

◆ _buttonsGridArea()

Widget _ControllerState::_buttonsGridArea ( )
inline
Todo
document

◆ _cvGridArea()

Widget _ControllerState::_cvGridArea ( )
inline
Todo
document

◆ _initLoco()

void _ControllerState::_initLoco ( )
inline
Todo
document

◆ _initTurnout()

void _ControllerState::_initTurnout ( )
inline
Todo
document

◆ _lanXSetLocoDrive()

void _ControllerState::_lanXSetLocoDrive ( Loco loco)
inline
Todo
document

◆ _lanXSetLocoFunction()

void _ControllerState::_lanXSetLocoFunction ( Loco loco,
int state,
int index )
inline
Todo
document

◆ _lanXSetTurnout()

void _ControllerState::_lanXSetTurnout ( int state)
inline
Todo
document

◆ _layoutGrid()

Widget _ControllerState::_layoutGrid ( )
inline
Todo
document

◆ _locoBidiGridArea()

Widget _ControllerState::_locoBidiGridArea ( )
inline
Todo
document

◆ _locoDropdownMenuGridArea()

Widget _ControllerState::_locoDropdownMenuGridArea ( )
inline
Todo
document

◆ _locoImageGridArea()

Widget _ControllerState::_locoImageGridArea ( )
inline
Todo
document

◆ _locoOnPressed()

void _ControllerState::_locoOnPressed ( int keyCode)
inline
Todo
document

◆ _locoSliderGridArea()

Widget _ControllerState::_locoSliderGridArea ( )
inline
Todo
document

◆ _locoSyncFromCommands()

void _ControllerState::_locoSyncFromCommands ( List< Command > commands)
inline
Todo
document

◆ _stream()

Stream< Command > _ControllerState::_stream ( )
inline
Todo
document

◆ _syncFromCommands()

void _ControllerState::_syncFromCommands ( List< Command > commands)
inline
Todo
document

◆ _turnoutDropdownMenuGridArea()

Widget _ControllerState::_turnoutDropdownMenuGridArea ( )
inline
Todo
document

◆ _turnoutImageGridArea()

Widget _ControllerState::_turnoutImageGridArea ( )
inline
Todo
document

◆ _turnoutOnPressed()

void _ControllerState::_turnoutOnPressed ( int keyCode)
inline
Todo
document

◆ _turnoutSyncFromCommands()

void _ControllerState::_turnoutSyncFromCommands ( List< Command > commands)
inline
Todo
document

◆ build()

override Widget _ControllerState::build ( BuildContext context)
inline
Todo
document

◆ dispose()

override void _ControllerState::dispose ( )
inline
Todo
document

◆ initState()

override void _ControllerState::initState ( )
inline
Todo
document

◆ setState()

override void _ControllerState::setState ( VoidCallback fn)
inline
Todo
document

Member Data Documentation

◆ _allKeysNotifier

final KeyPressNotifier _ControllerState::_allKeysNotifier = KeyPressNotifier()
Todo
document

◆ _cvFocusNode

final FocusNode _ControllerState::_cvFocusNode = FocusNode()
Todo
document

◆ _cvKeysNotifier

final KeyPressNotifier _ControllerState::_cvKeysNotifier = KeyPressNotifier()
Todo
document

◆ _functionKeysNotifier

final KeyPressNotifier _ControllerState::_functionKeysNotifier = KeyPressNotifier()
Todo
document

◆ _initialized

bool _ControllerState::_initialized = false
Todo
document

◆ _locoSliderController

WeightSliderController _ControllerState::_locoSliderController
Todo
document

◆ _period

const _ControllerState::_period = Duration(milliseconds: 500)
static

◆ _settleActive

bool _ControllerState::_settleActive = false
Todo
document

◆ _settleDelay

const _ControllerState::_settleDelay = Duration(milliseconds: 1000)
static
Todo
document

◆ _settleTimer

Timer _ControllerState::_settleTimer
Todo
document

◆ _timer

Timer _ControllerState::_timer
Todo
document

◆ _turnoutPositions

List<int> _ControllerState::_turnoutPositions = []
Todo
document

◆ _turnoutState

int _ControllerState::_turnoutState = -1
Todo
document

◆ loco

Loco get _ControllerState::loco => widget.item as Loco

◆ turnout

Turnout get _ControllerState::turnout => widget.item as Turnout

The documentation for this class was generated from the following file:
  • /home/runner/work/Frontend/Frontend/lib/widget/controller/controller.dart