author | zecke <zecke> | 2002-10-15 21:38:43 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-15 21:38:43 (UTC) |
commit | b774e015816e51ac65e5d1c685306f8404a3a19e (patch) (side-by-side diff) | |
tree | ccb4881ffce2a027b6c0b95854623bb713b69554 /x11/libqpe-x11/qpe/qpeapplication.h | |
parent | fb99aec5215da635abfa28288d170f110114bba3 (diff) | |
download | opie-b774e015816e51ac65e5d1c685306f8404a3a19e.zip opie-b774e015816e51ac65e5d1c685306f8404a3a19e.tar.gz opie-b774e015816e51ac65e5d1c685306f8404a3a19e.tar.bz2 |
More OPIE X11 Stuff
Some empty stubs to compile against Qt2/X
it will not link though
Diffstat (limited to 'x11/libqpe-x11/qpe/qpeapplication.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | x11/libqpe-x11/qpe/qpeapplication.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/x11/libqpe-x11/qpe/qpeapplication.h b/x11/libqpe-x11/qpe/qpeapplication.h new file mode 100644 index 0000000..3713251 --- a/dev/null +++ b/x11/libqpe-x11/qpe/qpeapplication.h @@ -0,0 +1,60 @@ +#ifndef OPIE_QPE_APPLICATION_H +#define OPIE_QPE_APPLICATION_H + +/** + * LGPLed + */ + +#include <qapplication.h> + +#include <qpe/timestring.h> + +class QPEApplication : public QApplication { + Q_OBJECT +public: + QPEApplication(int& argc, char** argv, Type=GuiClient ); + ~QPEApplication(); + + static QString qpeDir(); + static QString documentDir(); + void applyStyle(); + + static int defaultRotation(); + static void setDefaultRotation( int r ); + static void grabKeyboard(); + static void ungrabKeyboard(); + + enum StylusMode { + LeftOnly, + RightOnHold + }; + static void setStylusOperation( QWidget*, StylusMode ); + static StylusMode stylusOperation( QWidget* ); + + void showMainWidget( QWidget*, bool nomax = FALSE ); + void showMainDocumentWidget( QWidget*, bool nomax = FALSE ); + + static void showDialog( QDialog*, bool nomax = FALSE ); + static void execDialog( QDialog*, bool nomax = FALSE ); + + static void setKeepRunning(); + bool keepRunning()const; + + bool keyboardGrabbed()const; + int exec(); + +signals: + void clientMoused(); + void timeChanged(); + void clockChanged( bool pm ); + void micChanged( bool muted ); + void volumeChanged( bool muted ); + void appMessage( const QCString& msg, const QByteArray& data); + void weekChanged( bool startOnMonday ); + void dateFormatChanged( DateFormat ); + void flush(); + void reload(); + +}; + +#endif |