RSeries astromech firmware
ChoiceStrArrayScreen Class Referenceabstract

#include <menus/utility/ChoiceStrArrayScreen.h>

+ Inheritance diagram for ChoiceStrArrayScreen:
+ Collaboration diagram for ChoiceStrArrayScreen:

Public Member Functions

 ChoiceStrArrayScreen (ScreenID id, const char **strings, const unsigned *values, uint8_t siz=0)
 
virtual void init ()
 
virtual void buttonUpPressed (bool repeat) override
 
virtual void buttonLeftPressed (bool repeat) override
 
virtual void buttonDownPressed (bool repeat) override
 
virtual void buttonInReleased () override
 
virtual void render () override
 
- Public Member Functions inherited from CommandScreen
 CommandScreen (CommandScreenHandler &handler, ScreenID id, SerialCommand *cmds=nullptr, uint8_t siz=0)
 
ScreenID ID () const
 
uint8_t getSelected () const
 
virtual void exit ()
 
virtual void handleSelection (uint8_t selection)
 
virtual bool handleEvent ()
 
virtual bool isActive ()
 
virtual bool isStatus ()
 
void switchToScreen (ScreenID id)
 
void pushScreen (ScreenID id)
 
void popScreen ()
 
void restoreScreen ()
 
unsigned getKeyRepeatRate () const
 
void setKeyRepeatRate (unsigned ms)
 
virtual void buttonRightPressed (bool repeat=false)
 
virtual void buttonInPressed (bool repeat=false)
 
virtual void buttonUpReleased ()
 
virtual void buttonLeftReleased ()
 
virtual void buttonDownReleased ()
 
virtual void buttonRightReleased ()
 
virtual void buttonDial (long newValue, long oldValue=0)
 

Protected Member Functions

virtual unsigned getValueToIndex (unsigned value)
 
virtual unsigned getValue ()=0
 
virtual void setValue (unsigned newValue)=0
 
virtual void saveValue (unsigned newValue)=0
 
- Protected Member Functions inherited from CommandScreen
void clearSelection ()
 
bool hasMenu ()
 

Protected Attributes

unsigned fDisplayValue = ~0u
 
unsigned fStartValue
 
const char ** fStrings
 
const unsigned * fValues
 
uint8_t fNumValues
 
- Protected Attributes inherited from CommandScreen
ScreenID fID
 
CommandMenu fMenu
 
uint8_t fLastTag
 
unsigned fKeyRepeatRateMS = 0
 

Additional Inherited Members

- Static Protected Member Functions inherited from CommandScreen
static void toggleMaskBit (uint8_t &mask, uint8_t bit)
 
static void toggleMaskBit (uint16_t &mask, uint16_t bit)
 

Constructor & Destructor Documentation

◆ ChoiceStrArrayScreen()

ChoiceStrArrayScreen::ChoiceStrArrayScreen ( ScreenID  id,
const char **  strings,
const unsigned *  values,
uint8_t  siz = 0 
)
inline

Member Function Documentation

◆ buttonDownPressed()

virtual void ChoiceStrArrayScreen::buttonDownPressed ( bool  repeat)
inlineoverridevirtual

Reimplemented from CommandScreen.

◆ buttonInReleased()

virtual void ChoiceStrArrayScreen::buttonInReleased ( )
inlineoverridevirtual

Reimplemented from CommandScreen.

◆ buttonLeftPressed()

virtual void ChoiceStrArrayScreen::buttonLeftPressed ( bool  repeat)
inlineoverridevirtual

Reimplemented from CommandScreen.

◆ buttonUpPressed()

virtual void ChoiceStrArrayScreen::buttonUpPressed ( bool  repeat)
inlineoverridevirtual

Reimplemented from CommandScreen.

◆ getValue()

virtual unsigned ChoiceStrArrayScreen::getValue ( )
protectedpure virtual

◆ getValueToIndex()

virtual unsigned ChoiceStrArrayScreen::getValueToIndex ( unsigned  value)
inlineprotectedvirtual

◆ init()

virtual void ChoiceStrArrayScreen::init ( )
inlinevirtual

Reimplemented from CommandScreen.

◆ render()

virtual void ChoiceStrArrayScreen::render ( )
inlineoverridevirtual

Implements CommandScreen.

◆ saveValue()

virtual void ChoiceStrArrayScreen::saveValue ( unsigned  newValue)
protectedpure virtual

◆ setValue()

virtual void ChoiceStrArrayScreen::setValue ( unsigned  newValue)
protectedpure virtual

Member Data Documentation

◆ fDisplayValue

unsigned ChoiceStrArrayScreen::fDisplayValue = ~0u
protected

◆ fNumValues

uint8_t ChoiceStrArrayScreen::fNumValues
protected

◆ fStartValue

unsigned ChoiceStrArrayScreen::fStartValue
protected

◆ fStrings

const char** ChoiceStrArrayScreen::fStrings
protected

◆ fValues

const unsigned* ChoiceStrArrayScreen::fValues
protected

The documentation for this class was generated from the following file: