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