-rw-r--r-- | library/qpeapplication.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/qpeapplication.h b/library/qpeapplication.h index 2515f1b..86affa6 100644 --- a/library/qpeapplication.h +++ b/library/qpeapplication.h | |||
@@ -69,88 +69,90 @@ public: | |||
69 | DisableSuspend = 2, | 69 | DisableSuspend = 2, |
70 | Enable = 100 | 70 | Enable = 100 |
71 | }; | 71 | }; |
72 | 72 | ||
73 | static void setInputMethodHint( QWidget *, InputMethodHint ); | 73 | static void setInputMethodHint( QWidget *, InputMethodHint ); |
74 | static InputMethodHint inputMethodHint( QWidget * ); | 74 | static InputMethodHint inputMethodHint( QWidget * ); |
75 | 75 | ||
76 | void showMainWidget( QWidget*, bool nomax=FALSE ); | 76 | void showMainWidget( QWidget*, bool nomax=FALSE ); |
77 | void showMainDocumentWidget( QWidget*, bool nomax=FALSE ); | 77 | void showMainDocumentWidget( QWidget*, bool nomax=FALSE ); |
78 | static void showDialog( QDialog*, bool nomax=FALSE ); | 78 | static void showDialog( QDialog*, bool nomax=FALSE ); |
79 | static int execDialog( QDialog*, bool nomax=FALSE ); | 79 | static int execDialog( QDialog*, bool nomax=FALSE ); |
80 | 80 | ||
81 | static void setKeepRunning(); | 81 | static void setKeepRunning(); |
82 | bool keepRunning() const; | 82 | bool keepRunning() const; |
83 | 83 | ||
84 | bool keyboardGrabbed() const; | 84 | bool keyboardGrabbed() const; |
85 | 85 | ||
86 | int exec(); | 86 | int exec(); |
87 | 87 | ||
88 | signals: | 88 | signals: |
89 | void clientMoused(); | 89 | void clientMoused(); |
90 | void timeChanged(); | 90 | void timeChanged(); |
91 | void clockChanged( bool pm ); | 91 | void clockChanged( bool pm ); |
92 | void micChanged( bool muted ); | 92 | void micChanged( bool muted ); |
93 | void volumeChanged( bool muted ); | 93 | void volumeChanged( bool muted ); |
94 | void appMessage( const QCString& msg, const QByteArray& data); | 94 | void appMessage( const QCString& msg, const QByteArray& data); |
95 | void weekChanged( bool startOnMonday ); | 95 | void weekChanged( bool startOnMonday ); |
96 | void dateFormatChanged( DateFormat ); | 96 | void dateFormatChanged( DateFormat ); |
97 | void flush(); | 97 | void flush(); |
98 | void reload(); | 98 | void reload(); |
99 | 99 | ||
100 | private slots: | 100 | private slots: |
101 | void systemMessage( const QCString &msg, const QByteArray &data ); | 101 | void systemMessage( const QCString &msg, const QByteArray &data ); |
102 | void pidMessage( const QCString &msg, const QByteArray &data ); | 102 | void pidMessage( const QCString &msg, const QByteArray &data ); |
103 | void removeSenderFromStylusDict(); | 103 | void removeSenderFromStylusDict(); |
104 | void hideOrQuit(); | 104 | void hideOrQuit(); |
105 | 105 | ||
106 | protected: | 106 | protected: |
107 | bool qwsEventFilter( QWSEvent * ); | 107 | bool qwsEventFilter( QWSEvent * ); |
108 | void internalSetStyle( const QString &style ); | 108 | void internalSetStyle( const QString &style ); |
109 | void prepareForTermination(bool willrestart); | 109 | void prepareForTermination(bool willrestart); |
110 | virtual void restart(); | 110 | virtual void restart(); |
111 | virtual void shutdown(); | 111 | virtual void shutdown(); |
112 | bool eventFilter( QObject *, QEvent * ); | 112 | bool eventFilter( QObject *, QEvent * ); |
113 | void timerEvent( QTimerEvent * ); | 113 | void timerEvent( QTimerEvent * ); |
114 | bool raiseAppropriateWindow(); | 114 | bool raiseAppropriateWindow(); |
115 | virtual void tryQuit(); | 115 | virtual void tryQuit(); |
116 | 116 | ||
117 | virtual void polish ( QWidget * ); // this is actually implemented in qt_override.cpp (!) | ||
118 | |||
117 | private: | 119 | private: |
118 | void mapToDefaultAction( QWSKeyEvent *ke, int defKey ); | 120 | void mapToDefaultAction( QWSKeyEvent *ke, int defKey ); |
119 | 121 | ||
120 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) | 122 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) |
121 | QCopChannel *sysChannel; | 123 | QCopChannel *sysChannel; |
122 | QCopChannel *pidChannel; | 124 | QCopChannel *pidChannel; |
123 | #endif | 125 | #endif |
124 | QPEApplicationData *d; | 126 | QPEApplicationData *d; |
125 | 127 | ||
126 | bool reserved_sh; | 128 | bool reserved_sh; |
127 | 129 | ||
128 | 130 | ||
129 | 131 | ||
130 | }; | 132 | }; |
131 | 133 | ||
132 | inline void QPEApplication::showDialog( QDialog* d, bool nomax ) | 134 | inline void QPEApplication::showDialog( QDialog* d, bool nomax ) |
133 | { | 135 | { |
134 | QSize sh = d->sizeHint(); | 136 | QSize sh = d->sizeHint(); |
135 | int w = QMAX(sh.width(),d->width()); | 137 | int w = QMAX(sh.width(),d->width()); |
136 | int h = QMAX(sh.height(),d->height()); | 138 | int h = QMAX(sh.height(),d->height()); |
137 | if ( !nomax | 139 | if ( !nomax |
138 | && ( w > qApp->desktop()->width()*3/4 | 140 | && ( w > qApp->desktop()->width()*3/4 |
139 | || h > qApp->desktop()->height()*3/4 ) ) | 141 | || h > qApp->desktop()->height()*3/4 ) ) |
140 | { | 142 | { |
141 | d->showMaximized(); | 143 | d->showMaximized(); |
142 | } else { | 144 | } else { |
143 | d->resize(w,h); | 145 | d->resize(w,h); |
144 | d->show(); | 146 | d->show(); |
145 | } | 147 | } |
146 | } | 148 | } |
147 | 149 | ||
148 | inline int QPEApplication::execDialog( QDialog* d, bool nomax ) | 150 | inline int QPEApplication::execDialog( QDialog* d, bool nomax ) |
149 | { | 151 | { |
150 | showDialog(d,nomax); | 152 | showDialog(d,nomax); |
151 | return d->exec(); | 153 | return d->exec(); |
152 | } | 154 | } |
153 | 155 | ||
154 | 156 | ||
155 | #endif | 157 | #endif |
156 | 158 | ||