diff options
author | deva <deva> | 2005-05-25 12:31:59 +0000 |
---|---|---|
committer | deva <deva> | 2005-05-25 12:31:59 +0000 |
commit | 30741368102da5e5a8e4f8b897f2502edfa0165b (patch) | |
tree | 173a266f2f444e76526c0ca940d002ede9863779 /src/info_gui.h | |
parent | 764d85a9a398cb37e7b5c3eb2e4e5bfc9ff26cd3 (diff) |
Made info (error message system) work correctly.
Diffstat (limited to 'src/info_gui.h')
-rw-r--r-- | src/info_gui.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/info_gui.h b/src/info_gui.h index 6547496..8df1985 100644 --- a/src/info_gui.h +++ b/src/info_gui.h @@ -51,6 +51,25 @@ #include <pthread.h> #include <semaphore.h> +#include "messagebox.h" + +#define TYPE_SHOW_MESSAGEBOX 65432 + +class ShowMessageEvent : public QCustomEvent { +public: + ShowMessageEvent( MessageBox* msgbox ) + : QCustomEvent( TYPE_SHOW_MESSAGEBOX ), m( msgbox ) {} + MessageBox *messagebox() const { return m; } +private: + MessageBox *m;; +}; + +class InfoEventHandler : public QObject { +protected: + bool eventFilter( QObject *o, QEvent *e ); +}; + + class InfoGui: public Info { public: InfoGui(QApplication *a, QWidget *p); @@ -63,6 +82,8 @@ public: void setParent(QWidget *p); private: + void showmsg(char *msg, char *title, msg_icon icon); + QApplication *qapp; QWidget *parent; pthread_mutex_t mutex; |