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