Advertisement
Guest User

Untitled

a guest
Oct 4th, 2014
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.67 KB | None | 0 0
  1. #ifndef JOKER_H
  2. #define JOKER_H
  3.  
  4. #include <QObject>
  5. #include <QString>
  6. #include <QLabel>
  7. #include <QTimer>
  8. #include <QApplication>
  9. #include <QDesktopWidget>
  10. #include <QGraphicsDropShadowEffect>
  11. #include <QQueue>
  12.  
  13. #include "gui.h"
  14.  
  15. class joker : public QObject
  16. {
  17.     Q_OBJECT
  18. public:
  19.     explicit joker(QObject *parent = 0);
  20.     ~joker();
  21.  
  22.     void start();
  23.  
  24. signals:
  25.  
  26. public slots:
  27.     void show_window();
  28.     void hide_window();
  29.  
  30. private:
  31.     gui* window;
  32.     QTimer* hide_timer;
  33.     QQueue<QString>* msg_pull;
  34.  
  35.     bool is_msg_showing;
  36.  
  37.     void center_window();
  38.     void show_msg(QString);
  39.     void show_msg(QString, int);
  40. };
  41.  
  42. #endif // JOKER_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement