APVQuiz  1
A multiplayer multithreaded quizzing application
mainwindow.h
Go to the documentation of this file.
1 
9 #ifndef MAINWINDOW_H
10 #define MAINWINDOW_H
11 
12 #include <QDialog>
13 #include "Player.h"
14 #include "gamewindow.h"
15 #include "contribute.h"
16 
17 namespace Ui {
18 class Mainwindow;
19 }
20 
26 class Mainwindow : public QDialog
27 {
28  Q_OBJECT
29 
30  /* Documentation for each of the function can be obtained in the
31  * corresponding mainwindow.cpp. The header contains all declaration.
32  */
33 
34 public:
35  explicit Mainwindow(Player usr, QString ip,QWidget *parent = 0);
36  ~Mainwindow();
37 
38 private slots:
39  void on_harryPotterPushButton_clicked();
40 
41  void on_gkPushButton_clicked();
42 
43  void on_windowLoaded();
44 
45  void on_animePushButton_clicked();
46 
47  void on_moviesPushButton_clicked();
48 
49  void on_computersPushButton_clicked();
50 
51  void on_sciencePushButton_clicked();
52 
53  void on_gotPushButton_clicked();
54 
55  void on_tiviaPushButton_clicked();
56 
57  void on_sportsPushButton_clicked();
58 
59  void on_contributePushButton_clicked();
60 
61 private:
62  void updateBoard();
63 
64  void setPics();
65 
66  void startGame(QString subject);
67 
68 protected:
69  void showEvent(QShowEvent *ev);
70 
71 signals:
72  void window_loaded();
73 
74 private:
75  Ui::Mainwindow *ui;
76  Player plr;
77  GameWindow *gw;
78  Contribute *cw;
79  QString ipaddress;
80 };
81 
82 #endif // MAINWINDOW_H
manages the openning contribute dialog
Definition: contribute.h:16
Gamewindow class.
Definition: gamewindow.h:28
Mainwindow class.
Definition: mainwindow.h:26
void showEvent(QShowEvent *ev)
Overridden showEvent function.
Definition: mainwindow.cpp:184
manages the openning first window
Mainwindow(Player usr, QString ip, QWidget *parent=0)
Constructor for mainwindow.
Definition: mainwindow.cpp:25
Player class.
Definition: Player.h:19
Contribute class.
Definition: contribute.h:25