Q3270
A Qt-based 3270 Terminal Emulator
Loading...
Searching...
No Matches
KeyboardMapWidget Class Reference
Inheritance diagram for KeyboardMapWidget:

Signals

void mappingClicked (int row, const QString &functionName, const QStringList &mappings)
 

Public Member Functions

 KeyboardMapWidget (QWidget *parent=nullptr)
 KeyboardMapWidget::KeyboardMapWidget - widget to display the keyboard map.
 
 ~KeyboardMapWidget ()
 KeyboardMapWidget::~KeyboardMapWidget - destructor.
 
void setTheme (const KeyboardMap &map)
 KeyboardMapWidget::setTheme - set the keyboard map to display.
 
QString functionNameForRow (int row) const
 KeyboardMapWidget::functionNameForRow - get the function name for a given row.
 
QStringList mappingsForRow (int row) const
 KeyboardMapWidget::mappingsForRow - get the key mappings for a given row.
 
KeyboardMap currentMappings () const
 KeyboardMapWidget::currentMappings - get the current keyboard map from the table.
 

Constructor & Destructor Documentation

◆ KeyboardMapWidget()

KeyboardMapWidget::KeyboardMapWidget ( QWidget *  parent = nullptr)
explicit

KeyboardMapWidget::KeyboardMapWidget - widget to display the keyboard map.

Parameters
parent- the parent widget

Initialise the widget and set up the table to display the keyboard map.

◆ ~KeyboardMapWidget()

KeyboardMapWidget::~KeyboardMapWidget ( )

KeyboardMapWidget::~KeyboardMapWidget - destructor.

Clean up the widget.

Member Function Documentation

◆ currentMappings()

KeyboardMap KeyboardMapWidget::currentMappings ( ) const

KeyboardMapWidget::currentMappings - get the current keyboard map from the table.

Returns
the current keyboard map from the table

currentMappings reads the current state of the table and constructs a KeyboardMap object representing the mappings currently displayed in the table. Used by the Preferences dialog to save changes made by the user to the keyboard map.

◆ functionNameForRow()

QString KeyboardMapWidget::functionNameForRow ( int  row) const

KeyboardMapWidget::functionNameForRow - get the function name for a given row.

Parameters
row- the row to get the function name for
Returns
the function name for the given row, or an empty string if not found

Helper to get the function name for a given row in the table.

◆ mappingsForRow()

QStringList KeyboardMapWidget::mappingsForRow ( int  row) const

KeyboardMapWidget::mappingsForRow - get the key mappings for a given row.

Parameters
row- the row to get the key mappings for
Returns
the key mappings for the given row, or an empty list if not found

Helper to get the key mappings for a given row in the table.

◆ setTheme()

void KeyboardMapWidget::setTheme ( const KeyboardMap map)

KeyboardMapWidget::setTheme - set the keyboard map to display.

Parameters
map- the keyboard map to display

setTheme takes a keyboard map and sets up the mappings of keys to function names in the table.


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