#include </home/clem/local/src/opie/libopie2/opiecore/okeyconfigmanager.h>
Collaboration diagram for Opie::Core::OKeyConfigItem:

Public Types | |
| typedef QValueList< OKeyConfigItem > | List |
Public Member Functions | |
| OKeyConfigItem (const QString &text=QString::null, const QCString &config_key=QCString(), const QPixmap &symbol=QPixmap(), int id=-1, const OKeyPair &def=OKeyPair::emptyKey(), QObject *caller=0, const char *slot=0) | |
| OKeyConfigItem (const Opie::Core::ODeviceButton &) | |
| ~OKeyConfigItem () | |
| bool | operator== (const OKeyConfigItem &) const |
| bool | operator!= (const OKeyConfigItem &) const |
| QString | text () const |
| QPixmap | pixmap () const |
| int | id () const |
| OKeyPair | keyPair () const |
| OKeyPair | defaultKeyPair () const |
| QCString | configKey () const |
| void | setText (const QString &text) |
| void | setPixmap (const QPixmap &) |
| void | setKeyPair (const OKeyPair &) |
| void | setDefaultKeyPair (const OKeyPair &) |
| bool | isEmpty () const |
Protected Member Functions | |
| QObject * | object () const |
| QCString | slot () const |
| void | setId (int id) |
| void | setConfigKey (const QCString &) |
Private Attributes | |
| QString | m_text |
| QCString | m_config |
| QPixmap | m_pix |
| int | m_id |
| OKeyPair | m_key |
| OKeyPair | m_def |
| QObject * | m_obj |
| QCString | m_str |
| Private * | d |
Friends | |
| class | OKeyConfigManager |
Definition at line 71 of file okeyconfigmanager.h.
|
|
Definition at line 74 of file okeyconfigmanager.h. |
|
||||||||||||||||||||||||||||||||
|
The normal Constructor to create a OKeyConfigItem You can set the the key paramater of this item but if you use this item with the OKeyConfigManager your setting will be overwritten. You can also specify a QObject and slot which sould get called once this item is activated. This slot only works if you use the OKeyConfigManager. The actual Key is read by load()
void MySlot::create(){ OKeyConfigItem item(tr("Delete"),"delete",Resource::loadPixmap("trash"), 123, OKeyPair(Qt::Key_D,Qt::ControlButton), this,SLOT(slotDelete(QWidget*,QKeyEvent*))); }
Definition at line 220 of file okeyconfigmanager.cpp. |
|
|
A special Constructor for converting from an Opie::Core::ODeviceButton delivered by Opie::Core::ODevice::buttons() There is no Config Key set and both default key and key are set to Opie::Core::ODeviceButton::keycode() and 0 to modifier
Definition at line 238 of file okeyconfigmanager.cpp. |
|
|
Destructor Definition at line 247 of file okeyconfigmanager.cpp. |
|
|
reutrn the Config Key. Setting it is only possible by the constructor Definition at line 298 of file okeyconfigmanager.cpp. References m_config. |
|
|
Return the default OKeyPair
Definition at line 281 of file okeyconfigmanager.cpp. References m_def. |
|
|
Return the Id you assigned to this item. setting is only possible by the constructor Definition at line 290 of file okeyconfigmanager.cpp. References m_id. Referenced by TestMainWindow::slotAction(). |
|
|
If the item is not configured isEmpty() will return true It is empty if no text is present and no default and no configured key Definition at line 378 of file okeyconfigmanager.cpp. References QString::isEmpty(), Opie::Core::OKeyPair::isEmpty(), m_def, m_id, m_key, and m_text. Referenced by Opie::Core::OKeyConfigManager::eventFilter(). |
|
|
Return the OKeyPair this OKeyConfigItem is configured for.
Definition at line 273 of file okeyconfigmanager.cpp. References m_key. Referenced by Opie::Ui::OKeyConfigWidget::slotListViewItem(), and Opie::Ui::Internal::OKeyListViewItem::updateText(). |
|
|
For internal use only.
Definition at line 305 of file okeyconfigmanager.cpp. References m_obj. Referenced by Opie::Core::OKeyConfigManager::eventFilter(). |
|
|
Definition at line 408 of file okeyconfigmanager.cpp. |
|
|
Check if the KeyPairs are the same Definition at line 390 of file okeyconfigmanager.cpp. |
|
|
The pixmap shown to the user for your action/key
Definition at line 264 of file okeyconfigmanager.cpp. References m_pix. |
|
|
For internal use only.
Definition at line 361 of file okeyconfigmanager.cpp. References m_config. |
|
|
Set the default KeyPair.
Definition at line 354 of file okeyconfigmanager.cpp. References m_def. |
|
|
For internal use only.
Definition at line 369 of file okeyconfigmanager.cpp. References m_id. |
|
|
Set the KeyPair the OKeyConfigItem uses. Your set Key could get overwritten if you use the manager or GUI to configure the key
Definition at line 344 of file okeyconfigmanager.cpp. References m_key. |
|
|
Set the pixmap of this action
Definition at line 332 of file okeyconfigmanager.cpp. References m_pix. |
|
|
Set the text
Definition at line 322 of file okeyconfigmanager.cpp. References m_text. |
|
|
For internal use only.
Definition at line 312 of file okeyconfigmanager.cpp. References m_str. Referenced by Opie::Core::OKeyConfigManager::eventFilter(). |
|
|
The text exposed to the user
Definition at line 255 of file okeyconfigmanager.cpp. References m_text. Referenced by TestMainWindow::slotAction(). |
|
|
Definition at line 72 of file okeyconfigmanager.h. |
|
|
Definition at line 119 of file okeyconfigmanager.h. |
|
|
Definition at line 112 of file okeyconfigmanager.h. Referenced by configKey(), and setConfigKey(). |
|
|
Definition at line 116 of file okeyconfigmanager.h. Referenced by defaultKeyPair(), isEmpty(), operator==(), and setDefaultKeyPair(). |
|
|
Definition at line 114 of file okeyconfigmanager.h. Referenced by id(), isEmpty(), operator==(), and setId(). |
|
|
Definition at line 115 of file okeyconfigmanager.h. Referenced by isEmpty(), keyPair(), operator==(), and setKeyPair(). |
|
|
Definition at line 117 of file okeyconfigmanager.h. Referenced by object(), and operator==(). |
|
|
Definition at line 113 of file okeyconfigmanager.h. Referenced by pixmap(), and setPixmap(). |
|
|
Definition at line 118 of file okeyconfigmanager.h. Referenced by slot(). |
|
|
Definition at line 111 of file okeyconfigmanager.h. Referenced by isEmpty(), operator==(), setText(), and text(). |
1.4.2