author | sandman <sandman> | 2002-12-22 23:59:13 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-12-22 23:59:13 (UTC) |
commit | c513f413c7d901cc9945714c8e7eb47292f63306 (patch) (unidiff) | |
tree | 9ce6af28225f006dffbeb536eb2fd520e903e08d /library/qpeapplication.h | |
parent | 5c7694a7baadec8afe128ad2541e0a8acfc23737 (diff) | |
download | opie-c513f413c7d901cc9945714c8e7eb47292f63306.zip opie-c513f413c7d901cc9945714c8e7eb47292f63306.tar.gz opie-c513f413c7d901cc9945714c8e7eb47292f63306.tar.bz2 |
Totally reworked the key grabbing, which always had problems:
- applications get *all* key events now, as long as they have the focus
- an application decides if it has the keyboard grabbed or not
- if it's grabbed, the app consumes the key press
- if it's not grabbed and a F1-F29 key is pressed, the app sends a QCop
call to the launcher (deviceButtonPressed(...))
- when the launcher receives a QCop deviceButtonPressed it simply sends
the configured QCopEnvelope
- all "special" actions (like menu, home) are now accessible via QCop
calls (see buttonsettings)
-rw-r--r-- | library/qpeapplication.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/library/qpeapplication.h b/library/qpeapplication.h index f712077..7d956a3 100644 --- a/library/qpeapplication.h +++ b/library/qpeapplication.h | |||
@@ -62,49 +62,48 @@ public: | |||
62 | Normal, | 62 | Normal, |
63 | AlwaysOff, | 63 | AlwaysOff, |
64 | AlwaysOn | 64 | AlwaysOn |
65 | }; | 65 | }; |
66 | 66 | ||
67 | enum screenSaverHint { | 67 | enum screenSaverHint { |
68 | Disable = 0, | 68 | Disable = 0, |
69 | DisableLightOff = 1, | 69 | DisableLightOff = 1, |
70 | DisableSuspend = 2, | 70 | DisableSuspend = 2, |
71 | Enable = 100 | 71 | Enable = 100 |
72 | }; | 72 | }; |
73 | 73 | ||
74 | static void setInputMethodHint( QWidget *, InputMethodHint ); | 74 | static void setInputMethodHint( QWidget *, InputMethodHint ); |
75 | static InputMethodHint inputMethodHint( QWidget * ); | 75 | static InputMethodHint inputMethodHint( QWidget * ); |
76 | 76 | ||
77 | void showMainWidget( QWidget*, bool nomax=FALSE ); | 77 | void showMainWidget( QWidget*, bool nomax=FALSE ); |
78 | void showMainDocumentWidget( QWidget*, bool nomax=FALSE ); | 78 | void showMainDocumentWidget( QWidget*, bool nomax=FALSE ); |
79 | static void showDialog( QDialog*, bool nomax=FALSE ); | 79 | static void showDialog( QDialog*, bool nomax=FALSE ); |
80 | static int execDialog( QDialog*, bool nomax=FALSE ); | 80 | static int execDialog( QDialog*, bool nomax=FALSE ); |
81 | 81 | ||
82 | static void setKeepRunning(); | 82 | static void setKeepRunning(); |
83 | bool keepRunning() const; | 83 | bool keepRunning() const; |
84 | 84 | ||
85 | bool keyboardGrabbed() const; | 85 | bool keyboardGrabbed() const; |
86 | QString keyboardGrabbedBy ( ) const; | ||
87 | 86 | ||
88 | int exec(); | 87 | int exec(); |
89 | 88 | ||
90 | signals: | 89 | signals: |
91 | void clientMoused(); | 90 | void clientMoused(); |
92 | void timeChanged(); | 91 | void timeChanged(); |
93 | void clockChanged( bool pm ); | 92 | void clockChanged( bool pm ); |
94 | void micChanged( bool muted ); | 93 | void micChanged( bool muted ); |
95 | void volumeChanged( bool muted ); | 94 | void volumeChanged( bool muted ); |
96 | void appMessage( const QCString& msg, const QByteArray& data); | 95 | void appMessage( const QCString& msg, const QByteArray& data); |
97 | void weekChanged( bool startOnMonday ); | 96 | void weekChanged( bool startOnMonday ); |
98 | void dateFormatChanged( DateFormat ); | 97 | void dateFormatChanged( DateFormat ); |
99 | void flush(); | 98 | void flush(); |
100 | void reload(); | 99 | void reload(); |
101 | 100 | ||
102 | private slots: | 101 | private slots: |
103 | void systemMessage( const QCString &msg, const QByteArray &data ); | 102 | void systemMessage( const QCString &msg, const QByteArray &data ); |
104 | void pidMessage( const QCString &msg, const QByteArray &data ); | 103 | void pidMessage( const QCString &msg, const QByteArray &data ); |
105 | void removeSenderFromStylusDict(); | 104 | void removeSenderFromStylusDict(); |
106 | void hideOrQuit(); | 105 | void hideOrQuit(); |
107 | 106 | ||
108 | protected: | 107 | protected: |
109 | bool qwsEventFilter( QWSEvent * ); | 108 | bool qwsEventFilter( QWSEvent * ); |
110 | void internalSetStyle( const QString &style ); | 109 | void internalSetStyle( const QString &style ); |