API Documentation
Loading...
Searching...
No Matches
BasicKeyController Class Referenceabstract

The core class for assigning actions to key-presses and registering them as a program-wide service. More...

#include <KeyController.h>

Inheritance diagram for BasicKeyController:
[legend]
Collaboration diagram for BasicKeyController:
[legend]

Public Member Functions

NDEVR_BASE_API BasicKeyController (const TranslatedString &key_controller_title)
 
NDEVR_BASE_API bool processKeyEvent (const KeyEvent &key_event, DesignObjectLookup *lookup, Camera *camera) final override
 
virtual NDEVR_BASE_API bool processKeyEvent (const String &id, const KeyEvent &key_event, DesignObjectLookup *lookup, Camera *camera)=0
 
virtual NDEVR_BASE_API void resetKeyControllerToDefaults ()=0
 
NDEVR_BASE_API const TranslatedStringkeyControllerTitle () const
 
NDEVR_BASE_API const Buffer< KeyOption > & currentKeyMaps () const
 
virtual NDEVR_BASE_API void setKeyOption (const KeyOption &option)
 
virtual NDEVR_BASE_API void getINI (INIFactory &factory) override
 
virtual NDEVR_BASE_API void addKeyOption (const KeyOption &option)
 
- Public Member Functions inherited from KeyControllerBase
- Public Member Functions inherited from INIInterface
 INIInterface (const File &default_ini)
 
virtual ~INIInterface ()
 
virtual void writeToLog (ProgressInfo *log, uint01 log_level=2U)
 
virtual void writeToLog (const String &title, ProgressInfo *log, uint01 log_level=2U)
 
void setDefaultINIFile (const File &file)
 
virtual bool readINIOptions ()
 
virtual bool readINIOptions (File &ini_file)
 
virtual void finishReadingINI (INIFactory &)
 
virtual void prepareForINI (INIFactory &)
 
virtual bool saveINIOptions (bool multithead=false)
 
virtual bool saveINIOptions (File &ini_file, bool multithead=false)
 

Protected Attributes

bool m_save_ini_on_change_key_option_change = false
 
Buffer< KeyOptionm_key_options
 
TranslatedString m_key_controller_title
 
- Protected Attributes inherited from INIInterface
File m_default_ini
 

Detailed Description

The core class for assigning actions to key-presses and registering them as a program-wide service.


Class: AsciiFactory

autotoc_md334

Constructor & Destructor Documentation

◆ BasicKeyController()

BasicKeyController ( const TranslatedString & key_controller_title)

Member Function Documentation

◆ addKeyOption()

void addKeyOption ( const KeyOption & option)
virtual

◆ currentKeyMaps()

NDEVR_BASE_API const Buffer< KeyOption > & currentKeyMaps ( ) const
inline

◆ getINI()

void getINI ( INIFactory & factory)
overridevirtual

Implements INIInterface.

◆ keyControllerTitle()

NDEVR_BASE_API const TranslatedString & keyControllerTitle ( ) const
inline

◆ processKeyEvent() [1/2]

bool processKeyEvent ( const KeyEvent & key_event,
DesignObjectLookup * lookup,
Camera * camera )
finaloverridevirtual

Implements KeyControllerBase.

◆ processKeyEvent() [2/2]

virtual NDEVR_BASE_API bool processKeyEvent ( const String & id,
const KeyEvent & key_event,
DesignObjectLookup * lookup,
Camera * camera )
pure virtual

◆ resetKeyControllerToDefaults()

virtual NDEVR_BASE_API void resetKeyControllerToDefaults ( )
pure virtual

◆ setKeyOption()

void setKeyOption ( const KeyOption & option)
virtual

Member Data Documentation

◆ m_key_controller_title

TranslatedString m_key_controller_title
protected

◆ m_key_options

Buffer<KeyOption> m_key_options
protected

◆ m_save_ini_on_change_key_option_change

bool m_save_ini_on_change_key_option_change = false
protected

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