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

#include <Keypad.h>

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

Public Slots

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

Signals

void requestPopupSignal ()
 
void requestHideSignal ()
 

Public Member Functions

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

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 setupButton (Button *b, char insert_char, bool add_to_lookup=true)
 
void setupButton (Button *b)
 
void backspace ()
 
void focusPreviousWidget ()
 
void focusNextWidget ()
 
void updateFocusGroups ()
 
void complete ()
 
void clear ()
 
void unsetCurrent ()
 

Protected Attributes

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

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()

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 files: