API Documentation
Loading...
Searching...
No Matches
Keypad Class Reference

A popup for showing a virtual keyboard or keypad. Changes based on the allowed input to a widget. Usually shown in touch mode. More...

#include <Keypad.h>

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

Public Slots

void onFocusObjectDeleted ()
 
void requestHideSlot ()
 
void requestPopupSlot ()
 

Signals

void requestHideSignal ()
 
void requestPopupSignal ()
 

Public Member Functions

QWidget * currentWidget () const
 
QCustomLineEditeditor () const
 
void focusInEvent (QFocusEvent *focus) override
 
bool isFullKeyboard () const
 
 Keypad (QWidget *parent=nullptr)
 
QWidget * lastWidget () const
 
QSize minimumSizeHint () const override
 
void mousePressEvent (QMouseEvent *event) override
 
void setCurrentInputHints (Qt::InputMethodHints hints)
 
void setLineEdit (QLineEdit *line_edit)
 
void setTextEdit (QTextEdit *line_edit)
 
void setUpperCase (bool uppercase)
 
QSize sizeHint () const override
 
void slideInKeyboard (uint04 value)
 
void updateCurrentText ()
 
void updateUppercase ()
 
 ~Keypad ()
 

Static Public Member Functions

static KeypadDefaultKeypad ()
 

Static Public Attributes

static ApplicationOption< bool > use_keypad_in_touch
 

Protected Slots

void updateWindowTitle ()
 

Protected Member Functions

void addChar (char value)
 
void backspace ()
 
void clear ()
 
void complete ()
 
void focusNextWidget ()
 
void focusPreviousWidget ()
 
void setupButton (Button *b)
 
void setupButton (Button *b, char insert_char, bool add_to_lookup=true)
 
void unsetCurrent ()
 
void updateFocusGroups ()
 

Protected Attributes

Dictionary< char, Button * > m_buttons
 
String m_current_text
 
Qt::InputMethodHints m_input_hints
 
bool m_is_file
 
bool m_is_folder
 
bool m_is_full_keyboard
 
QWidget * m_last_widget
 
QLineEdit * m_line_edit
 
String m_original_text
 
QString m_original_window_title
 
Dictionary< String, Button * > m_symbols_a
 
Dictionary< String, Button * > m_symbols_b
 
QTextEdit * m_text_edit
 
QTimer * m_visibility_check_timer
 
Ui::KeypadUI * ui
 

Detailed Description

A popup for showing a virtual keyboard or keypad. Changes based on the allowed input to a widget. Usually shown in touch mode.


Constructor & Destructor Documentation

◆ Keypad()

Keypad ( QWidget * parent = nullptr)

◆ ~Keypad()

~Keypad ( )

Member Function Documentation

◆ addChar()

void addChar ( char value)
protected

◆ backspace()

void backspace ( )
protected

◆ clear()

void clear ( )
protected

◆ complete()

void complete ( )
protected

◆ currentWidget()

QWidget * currentWidget ( ) const
nodiscard

◆ DefaultKeypad()

static Keypad * DefaultKeypad ( )
staticnodiscard

◆ editor()

QCustomLineEdit * editor ( ) const
nodiscard

◆ focusInEvent()

void focusInEvent ( QFocusEvent * focus)
override

◆ focusNextWidget()

void focusNextWidget ( )
protected

◆ focusPreviousWidget()

void focusPreviousWidget ( )
protected

◆ isFullKeyboard()

bool isFullKeyboard ( ) const
inline

◆ lastWidget()

QWidget * lastWidget ( ) const
nodiscard

◆ minimumSizeHint()

QSize minimumSizeHint ( ) const
override

◆ mousePressEvent()

void mousePressEvent ( QMouseEvent * event)
override

◆ onFocusObjectDeleted

void onFocusObjectDeleted ( )
slot

◆ requestHideSignal

void requestHideSignal ( )
signal

◆ requestHideSlot

void requestHideSlot ( )
slot

◆ requestPopupSignal

void requestPopupSignal ( )
signal

◆ requestPopupSlot

void requestPopupSlot ( )
slot

◆ setCurrentInputHints()

void setCurrentInputHints ( Qt::InputMethodHints hints)

◆ setLineEdit()

void setLineEdit ( QLineEdit * line_edit)

◆ setTextEdit()

void setTextEdit ( QTextEdit * line_edit)

◆ setupButton() [1/2]

void setupButton ( Button * b)
protected

◆ setupButton() [2/2]

void setupButton ( Button * b,
char insert_char,
bool add_to_lookup = true )
protected

◆ setUpperCase()

void setUpperCase ( bool uppercase)

◆ sizeHint()

QSize sizeHint ( ) const
override

◆ slideInKeyboard()

void slideInKeyboard ( uint04 value)

◆ unsetCurrent()

void unsetCurrent ( )
protected

◆ updateCurrentText()

void updateCurrentText ( )

◆ updateFocusGroups()

void updateFocusGroups ( )
protected

◆ updateUppercase()

void updateUppercase ( )

◆ updateWindowTitle

void updateWindowTitle ( )
protectedslot

Member Data Documentation

◆ m_buttons

Dictionary<char, Button*> m_buttons
protected

◆ m_current_text

String m_current_text
protected

◆ m_input_hints

Qt::InputMethodHints m_input_hints
protected

◆ m_is_file

bool m_is_file
protected

◆ m_is_folder

bool m_is_folder
protected

◆ m_is_full_keyboard

bool m_is_full_keyboard
protected

◆ m_last_widget

QWidget* m_last_widget
protected

◆ m_line_edit

QLineEdit* m_line_edit
protected

◆ m_original_text

String m_original_text
protected

◆ m_original_window_title

QString m_original_window_title
protected

◆ m_symbols_a

Dictionary<String, Button*> m_symbols_a
protected

◆ m_symbols_b

Dictionary<String, Button*> m_symbols_b
protected

◆ m_text_edit

QTextEdit* m_text_edit
protected

◆ m_visibility_check_timer

QTimer* m_visibility_check_timer
protected

◆ ui

Ui::KeypadUI* ui
protected

◆ use_keypad_in_touch

ApplicationOption<bool> use_keypad_in_touch
static

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