summaryrefslogtreecommitdiff
path: root/libopie2
Side-by-side diff
Diffstat (limited to 'libopie2') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opieui/okeyconfigwidget.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libopie2/opieui/okeyconfigwidget.h b/libopie2/opieui/okeyconfigwidget.h
index d76ea46..bcbb579 100644
--- a/libopie2/opieui/okeyconfigwidget.h
+++ b/libopie2/opieui/okeyconfigwidget.h
@@ -22,75 +22,84 @@ public:
const QPixmap& symbol = QPixmap(),
int key = 0, int mod = 0,
int default_key = 0, int default_modified = 0 );
~OKeyConfigItem();
QString text()const;
QPixmap pixmap()const;
int key()const;
int modifier()const;
int defaultKey()const;
int defaultModifier()const;
void setText( const QString& text );
void setPixmap( const QPixmap& );
void setKey( int );
void setModied( int );
void setDefaultKey( int );
void setDefaultModifier( int );
bool isConfigured()const;
bool isEmpty()const;
private:
QString m_text;
QCString m_config;
QPixmap m_pix;
int m_key;
int m_mod;
int m_defKey;
int m_defMod;
class Private;
Private *d;
};
class OKeyConfig : public QObject {
Q_OBJECT
public:
OKeyConfig(Opie::Core::OConfig *conf = 0, bool grabkeyboard);
~OKeyConfig();
void load();
void save();
OKeyConfigItem handleKeyEvent( QKeyEvent* );
QString handleKeyEventString( QKeyEvent* );
void addKeyConfig( const OKeyConfigItem& );
void removeKeyConfig( const OKeyConfigItem& );
+
+ void handleWidget( QWidget* );
signals:
void keyConfigChanged( OKeyConfig* );
+ void actionActivated( QWidget*, QKeyEvent*, const OKeyConfigItem& );
private:
OKeyConfigItemList m_keys;
+ QValueList<QWidget*> m_widgets;
+ class Private;
+ Private *d;
};
class OKeyConfigWidget : public QHBox {
Q_OBJECT
public:
enum ChangeMode { Imediate, Queu };
OKeyConfigWidget( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
OKeyConfigWidget( OKeyConfig *, QWidget* parent = 0, const char* = 0, WFlags = 0 );
~OKeyConfigWidget();
void setChangeMode( enum ChangeMode );
ChangeMode changeMode()const;
void reload();
+private:
+ class Private;
+ Private *d;
};
}
}
#endif