MythTV  0.27pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
MythRemoteLineEdit Class Reference

A LineEdit that does special things when you press number keys (enter letters with multiple presses, just like a phone keypad) More...

#include <mythwidgets.h>

Collaboration diagram for MythRemoteLineEdit:
Collaboration graph
[legend]

Public Slots

virtual void deleteLater (void)
virtual void setText (const QString &text)

Signals

void shiftState (bool)
void cycleState (QString current_choice, QString set)
void changeHelpText (QString)
void gotFocus ()
void lostFocus ()
void tryingToLooseFocus (bool up_or_down)
void textChanged (QString)

Public Member Functions

 MythRemoteLineEdit (QWidget *parent, const char *name="MythRemoteLineEdit")
 MythRemoteLineEdit (const QString &contents, QWidget *parent, const char *name="MythRemoteLineEdit")
 MythRemoteLineEdit (QFont *a_font, QWidget *parent, const char *name="MythRemoteLineEdit")
 MythRemoteLineEdit (int lines, QWidget *parent, const char *name="MythRemoteLineEdit")
void setHelpText (const QString &)
void setCycleTime (float desired_interval)
void setCharacterColors (QColor unselected, QColor selected, QColor special)
void insert (QString text)
void backspace ()
void del ()
void setPopupPosition (PopupPositionQt pos)
PopupPositionQt getPopupPosition (void)
virtual QString text ()

Protected Member Functions

void Teardown (void)
virtual ~MythRemoteLineEdit ()
virtual void focusInEvent (QFocusEvent *e)
virtual void focusOutEvent (QFocusEvent *e)
virtual void keyPressEvent (QKeyEvent *e)
virtual void popupVirtualKeyboard (void)

Private Slots

void startCycle (QString current_choice, QString set)
void updateCycle (QString current_choice, QString set)
void endCycle (bool select)
void endCycle (void)

Private Member Functions

void Init (void)
void cycleKeys (QString cycleList)
void toggleShift (void)

Private Attributes

QFont * my_font
bool shift
QTimer * cycle_timer
bool active_cycle
QString current_choice
QString current_set
int cycle_time
QString helptext
int pre_cycle_pos
QString pre_cycle_text_before_cursor
QString pre_cycle_text_after_cursor
QColor col_unselected
QColor col_selected
QColor col_special
QString hex_unselected
QString hex_selected
QString hex_special
int m_lines
VirtualKeyboardQtpopup
bool useVirtualKeyboard
PopupPositionQt popupPosition

Detailed Description

A LineEdit that does special things when you press number keys (enter letters with multiple presses, just like a phone keypad)

Definition at line 195 of file mythwidgets.h.

Constructor & Destructor Documentation

MythRemoteLineEdit::MythRemoteLineEdit ( QWidget *  parent,
const char *  name = "MythRemoteLineEdit" 
)

Definition at line 577 of file mythwidgets.cpp.

MythRemoteLineEdit::MythRemoteLineEdit ( const QString &  contents,
QWidget *  parent,
const char *  name = "MythRemoteLineEdit" 
)

Definition at line 586 of file mythwidgets.cpp.

MythRemoteLineEdit::MythRemoteLineEdit ( QFont *  a_font,
QWidget *  parent,
const char *  name = "MythRemoteLineEdit" 
)

Definition at line 597 of file mythwidgets.cpp.

MythRemoteLineEdit::MythRemoteLineEdit ( int  lines,
QWidget *  parent,
const char *  name = "MythRemoteLineEdit" 
)

Definition at line 607 of file mythwidgets.cpp.

MythRemoteLineEdit::~MythRemoteLineEdit ( )
protectedvirtual

Definition at line 1118 of file mythwidgets.cpp.

Member Function Documentation

void MythRemoteLineEdit::setHelpText ( const QString &  help)

Definition at line 1085 of file mythwidgets.cpp.

void MythRemoteLineEdit::setCycleTime ( float  desired_interval)

Definition at line 1007 of file mythwidgets.cpp.

void MythRemoteLineEdit::setCharacterColors ( QColor  unselected,
QColor  selected,
QColor  special 
)

Definition at line 653 of file mythwidgets.cpp.

Referenced by Init().

void MythRemoteLineEdit::insert ( QString  text)

Definition at line 1152 of file mythwidgets.cpp.

Referenced by UIKeyboardType::insertChar().

void MythRemoteLineEdit::backspace ( )

Definition at line 1164 of file mythwidgets.cpp.

Referenced by UIKeyboardType::backspaceKey().

void MythRemoteLineEdit::del ( )

Definition at line 1158 of file mythwidgets.cpp.

Referenced by UIKeyboardType::delKey().

void MythRemoteLineEdit::setPopupPosition ( PopupPositionQt  pos)
inline

Definition at line 215 of file mythwidgets.h.

PopupPositionQt MythRemoteLineEdit::getPopupPosition ( void  )
inline

Definition at line 216 of file mythwidgets.h.

Referenced by VirtualKeyboardQt::SwitchLayout().

QString MythRemoteLineEdit::text ( void  )
virtual

Definition at line 862 of file mythwidgets.cpp.

Referenced by MythPopupBox::showGetTextPopup().

void MythRemoteLineEdit::shiftState ( bool  )
signal
void MythRemoteLineEdit::cycleState ( QString  current_choice,
QString  set 
)
signal
void MythRemoteLineEdit::changeHelpText ( QString  )
signal

Referenced by focusInEvent(), and setHelpText().

void MythRemoteLineEdit::gotFocus ( )
signal

Referenced by focusInEvent().

void MythRemoteLineEdit::lostFocus ( )
signal

Referenced by focusOutEvent().

void MythRemoteLineEdit::tryingToLooseFocus ( bool  up_or_down)
signal

Referenced by keyPressEvent().

void MythRemoteLineEdit::textChanged ( QString  )
signal
void MythRemoteLineEdit::deleteLater ( void  )
virtualslot

Definition at line 1123 of file mythwidgets.cpp.

void MythRemoteLineEdit::setText ( const QString &  text)
virtualslot
void MythRemoteLineEdit::Teardown ( void  )
protected

Definition at line 1129 of file mythwidgets.cpp.

Referenced by deleteLater(), and ~MythRemoteLineEdit().

void MythRemoteLineEdit::focusInEvent ( QFocusEvent *  e)
protectedvirtual

Definition at line 1093 of file mythwidgets.cpp.

void MythRemoteLineEdit::focusOutEvent ( QFocusEvent *  e)
protectedvirtual

Definition at line 1107 of file mythwidgets.cpp.

void MythRemoteLineEdit::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

Definition at line 867 of file mythwidgets.cpp.

void MythRemoteLineEdit::popupVirtualKeyboard ( void  )
protectedvirtual

Definition at line 1141 of file mythwidgets.cpp.

Referenced by keyPressEvent().

void MythRemoteLineEdit::startCycle ( QString  current_choice,
QString  set 
)
privateslot

Definition at line 675 of file mythwidgets.cpp.

Referenced by cycleKeys().

void MythRemoteLineEdit::updateCycle ( QString  current_choice,
QString  set 
)
privateslot

Definition at line 709 of file mythwidgets.cpp.

Referenced by cycleKeys(), startCycle(), and toggleShift().

void MythRemoteLineEdit::endCycle ( bool  select)
privateslot

Definition at line 804 of file mythwidgets.cpp.

void MythRemoteLineEdit::endCycle ( void  )
inlineprivateslot

Definition at line 245 of file mythwidgets.h.

Referenced by cycleKeys(), endCycle(), Init(), and keyPressEvent().

void MythRemoteLineEdit::Init ( void  )
private

Definition at line 617 of file mythwidgets.cpp.

Referenced by MythRemoteLineEdit().

void MythRemoteLineEdit::cycleKeys ( QString  cycleList)
private

Definition at line 1022 of file mythwidgets.cpp.

Referenced by keyPressEvent().

void MythRemoteLineEdit::toggleShift ( void  )
private

Definition at line 1061 of file mythwidgets.cpp.

Referenced by keyPressEvent().

Member Data Documentation

QFont* MythRemoteLineEdit::my_font
private

Definition at line 248 of file mythwidgets.h.

Referenced by Init(), and MythRemoteLineEdit().

bool MythRemoteLineEdit::shift
private

Definition at line 253 of file mythwidgets.h.

Referenced by endCycle(), Init(), toggleShift(), and updateCycle().

QTimer* MythRemoteLineEdit::cycle_timer
private

Definition at line 254 of file mythwidgets.h.

Referenced by cycleKeys(), Init(), startCycle(), and Teardown().

bool MythRemoteLineEdit::active_cycle
private

Definition at line 255 of file mythwidgets.h.

Referenced by cycleKeys(), endCycle(), Init(), keyPressEvent(), startCycle(), and toggleShift().

QString MythRemoteLineEdit::current_choice
private

Definition at line 256 of file mythwidgets.h.

Referenced by cycleKeys(), endCycle(), Init(), toggleShift(), and updateCycle().

QString MythRemoteLineEdit::current_set
private

Definition at line 257 of file mythwidgets.h.

Referenced by cycleKeys(), endCycle(), Init(), and toggleShift().

int MythRemoteLineEdit::cycle_time
private

Definition at line 258 of file mythwidgets.h.

Referenced by cycleKeys(), Init(), setCycleTime(), and startCycle().

QString MythRemoteLineEdit::helptext
private

Definition at line 259 of file mythwidgets.h.

Referenced by focusInEvent(), and setHelpText().

int MythRemoteLineEdit::pre_cycle_pos
private

Definition at line 261 of file mythwidgets.h.

Referenced by endCycle(), startCycle(), and updateCycle().

QString MythRemoteLineEdit::pre_cycle_text_before_cursor
private

Definition at line 262 of file mythwidgets.h.

Referenced by endCycle(), Init(), startCycle(), and updateCycle().

QString MythRemoteLineEdit::pre_cycle_text_after_cursor
private

Definition at line 263 of file mythwidgets.h.

Referenced by endCycle(), Init(), startCycle(), and updateCycle().

QColor MythRemoteLineEdit::col_unselected
private

Definition at line 265 of file mythwidgets.h.

Referenced by setCharacterColors().

QColor MythRemoteLineEdit::col_selected
private

Definition at line 266 of file mythwidgets.h.

Referenced by setCharacterColors().

QColor MythRemoteLineEdit::col_special
private

Definition at line 267 of file mythwidgets.h.

Referenced by setCharacterColors().

QString MythRemoteLineEdit::hex_unselected
private

Definition at line 269 of file mythwidgets.h.

Referenced by setCharacterColors(), and updateCycle().

QString MythRemoteLineEdit::hex_selected
private

Definition at line 270 of file mythwidgets.h.

Referenced by setCharacterColors(), and updateCycle().

QString MythRemoteLineEdit::hex_special
private

Definition at line 271 of file mythwidgets.h.

Referenced by setCharacterColors(), and updateCycle().

int MythRemoteLineEdit::m_lines
private

Definition at line 273 of file mythwidgets.h.

Referenced by Init(), and MythRemoteLineEdit().

VirtualKeyboardQt* MythRemoteLineEdit::popup
private

Definition at line 275 of file mythwidgets.h.

Referenced by focusOutEvent(), Init(), keyPressEvent(), popupVirtualKeyboard(), and Teardown().

bool MythRemoteLineEdit::useVirtualKeyboard
private

Definition at line 276 of file mythwidgets.h.

Referenced by Init(), and keyPressEvent().

PopupPositionQt MythRemoteLineEdit::popupPosition
private

Definition at line 277 of file mythwidgets.h.

Referenced by Init().


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