Maliit Plugins  0.92.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
Public Types | Public Member Functions | Private Attributes
MaliitKeyboard::Key Class Reference

#include <key.h>

List of all members.

Public Types

enum  Action {
  ActionInsert, ActionShift, ActionBackspace, ActionSpace,
  ActionCycle, ActionLayoutMenu, ActionSym, ActionReturn,
  ActionCommit, ActionDecimalSeparator, ActionPlusMinusToggle, ActionSwitch,
  ActionOnOffToggle, ActionCompose, ActionLeft, ActionUp,
  ActionRight, ActionDown, ActionClose, ActionTab,
  ActionDead, NumActions
}

Public Member Functions

 Key ()
bool valid () const
QRect rect () const
QPoint origin () const
void setOrigin (const QPoint &origin)
Area area () const
ArearArea ()
void setArea (const Area &area)
Label label () const
LabelrLabel ()
void setLabel (const Label &label)
Action action () const
void setAction (Action action)
QMargins margins () const
void setMargins (const QMargins &margins)
QByteArray icon () const
void setIcon (const QByteArray &icon)
bool hasExtendedKeys () const
void setExtendedKeysEnabled (bool enable)

Private Attributes

QPoint m_origin
Area m_area
Label m_label
Action m_action
QMargins m_margins
QByteArray m_icon
bool m_has_extended_keys: 1
int m_flags_padding: 7

Member Enumeration Documentation

Enumerator:
ActionInsert 

Key's label is inserted into text editor.

ActionShift 

Switches keyboard to shows uppercase variant.

ActionBackspace 

Key deletes previous character in text editor.

ActionSpace 

Key inserts space into text editor.

ActionCycle 

Key loops through set of characters when pressed in rapid succession and inserts currently shown key label into text editor after short time out.

ActionLayoutMenu 

Key brings up a menu to choose other language(s).

ActionSym 

Switches keyboard to symbol view.

ActionReturn 

Key inserts return into text editor.

ActionCommit 

Key commits preedit to text editor.

ActionDecimalSeparator 

Shown key is a decimal separator that might require localization.

ActionPlusMinusToggle 
ActionSwitch 

Key switches through symbol view pages.

ActionOnOffToggle 
ActionCompose 

Key is used to compose character.

ActionLeft 

Key moves cursor position to left, in text editor.

ActionUp 

Key moves cursor position to previous line, in text editor.

ActionRight 

Key moves cursor position to right, in text editor.

ActionDown 

Key moves cursor position to next line, in text editor.

ActionClose 

Key closes the virtual keyboard.

ActionTab 

Key moves cursor position by one tab, in text editor.

ActionDead 

Switches keyboard to deadkey variation, using key's label as lookup.

NumActions 

Constructor & Destructor Documentation

MaliitKeyboard::Key::Key ( )
explicit

Member Function Documentation

Key::Action MaliitKeyboard::Key::action ( ) const
Area MaliitKeyboard::Key::area ( ) const
bool MaliitKeyboard::Key::hasExtendedKeys ( ) const
QByteArray MaliitKeyboard::Key::icon ( ) const
Label MaliitKeyboard::Key::label ( ) const
QMargins MaliitKeyboard::Key::margins ( ) const
QPoint MaliitKeyboard::Key::origin ( ) const
Area & MaliitKeyboard::Key::rArea ( )
QRect MaliitKeyboard::Key::rect ( ) const
Label & MaliitKeyboard::Key::rLabel ( )
void MaliitKeyboard::Key::setAction ( Action  action)
void MaliitKeyboard::Key::setArea ( const Area area)
void MaliitKeyboard::Key::setExtendedKeysEnabled ( bool  enable)
void MaliitKeyboard::Key::setIcon ( const QByteArray &  icon)
void MaliitKeyboard::Key::setLabel ( const Label label)
void MaliitKeyboard::Key::setMargins ( const QMargins &  margins)
void MaliitKeyboard::Key::setOrigin ( const QPoint &  origin)
bool MaliitKeyboard::Key::valid ( ) const

Member Data Documentation

Action MaliitKeyboard::Key::m_action
private
Area MaliitKeyboard::Key::m_area
private
int MaliitKeyboard::Key::m_flags_padding
private
bool MaliitKeyboard::Key::m_has_extended_keys
private
QByteArray MaliitKeyboard::Key::m_icon
private
Label MaliitKeyboard::Key::m_label
private
QMargins MaliitKeyboard::Key::m_margins
private
QPoint MaliitKeyboard::Key::m_origin
private

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