Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ButtonSettings Class Reference

#include </home/clem/local/src/opie/core/settings/button/buttonsettings.h>

Collaboration diagram for ButtonSettings:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ButtonSettings (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags f=0)
 ~ButtonSettings ()
virtual void accept ()
virtual void done (int r)

Static Public Member Functions

static QString appName ()

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *e)
virtual void keyReleaseEvent (QKeyEvent *e)

Private Slots

void keyTimeout ()
void updateLabels ()

Private Member Functions

buttoninfobuttonInfoForKeycode (ushort key)
void edit (buttoninfo *bi, bool hold)
QString qcopToString (const Opie::Core::OQCopMessage &c)

Private Attributes

QTimer * m_timer
buttoninfom_last_button
QList< buttoninfom_infos
bool m_lock

Constructor & Destructor Documentation

ButtonSettings::ButtonSettings QWidget *  parent = 0,
const char *  name = 0,
bool  modal = FALSE,
WFlags  f = 0
 

Definition at line 61 of file buttonsettings.cpp.

References begin, end, f, QPEApplication::grabKeyboard(), i, ButtonUtils::inst(), keyTimeout(), l, m_infos, m_last_button, m_lock, m_timer, AppLnk::smallIconSize(), tr, and updateLabels().

ButtonSettings::~ButtonSettings  ) 
 

Definition at line 157 of file buttonsettings.cpp.

References QCopChannel::send(), and QPEApplication::ungrabKeyboard().


Member Function Documentation

void ButtonSettings::accept  )  [virtual]
 

Definition at line 252 of file buttonsettings.cpp.

References m_infos.

static QString ButtonSettings::appName  )  [inline, static]
 

Definition at line 47 of file buttonsettings.h.

References QString::fromLatin1().

buttoninfo * ButtonSettings::buttonInfoForKeycode ushort  key  )  [private]
 

Definition at line 181 of file buttonsettings.cpp.

References keycode, and m_infos.

Referenced by keyPressEvent(), and keyReleaseEvent().

void ButtonSettings::done int  r  )  [virtual]
 

Definition at line 265 of file buttonsettings.cpp.

void ButtonSettings::edit buttoninfo bi,
bool  hold
[private]
 

Definition at line 223 of file buttonsettings.cpp.

References d, QPEApplication::execDialog(), m_lock, message, and updateLabels().

Referenced by keyReleaseEvent(), and keyTimeout().

void ButtonSettings::keyPressEvent QKeyEvent *  e  )  [protected, virtual]
 

Definition at line 190 of file buttonsettings.cpp.

References buttonInfoForKeycode(), m_last_button, m_timer, and start.

void ButtonSettings::keyReleaseEvent QKeyEvent *  e  )  [protected, virtual]
 

Definition at line 203 of file buttonsettings.cpp.

References buttonInfoForKeycode(), edit(), and m_timer.

void ButtonSettings::keyTimeout  )  [private, slot]
 

Definition at line 215 of file buttonsettings.cpp.

References edit(), and m_last_button.

Referenced by ButtonSettings().

QString ButtonSettings::qcopToString const Opie::Core::OQCopMessage c  )  [private]
 

void ButtonSettings::updateLabels  )  [private, slot]
 

Definition at line 163 of file buttonsettings.cpp.

References ButtonUtils::inst(), qCopInfo::m_icon, m_infos, m_name, and AppLnk::smallIconSize().

Referenced by ButtonSettings(), and edit().


Member Data Documentation

QList<buttoninfo> ButtonSettings::m_infos [private]
 

Definition at line 69 of file buttonsettings.h.

Referenced by accept(), buttonInfoForKeycode(), ButtonSettings(), and updateLabels().

buttoninfo* ButtonSettings::m_last_button [private]
 

Definition at line 67 of file buttonsettings.h.

Referenced by ButtonSettings(), keyPressEvent(), and keyTimeout().

bool ButtonSettings::m_lock [private]
 

Definition at line 70 of file buttonsettings.h.

Referenced by ButtonSettings(), and edit().

QTimer* ButtonSettings::m_timer [private]
 

Definition at line 66 of file buttonsettings.h.

Referenced by ButtonSettings(), keyPressEvent(), and keyReleaseEvent().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:27:42 2005 for OPIE by  doxygen 1.4.2