qnetdice
diff src/mainwin.h @ 1:92377189a5c6
moving along
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 22 Dec 2013 04:08:50 +0200 |
parents | 0e9c16d77e47 |
children |
line diff
1.1 --- a/src/mainwin.h Thu Dec 19 13:34:40 2013 +0200 1.2 +++ b/src/mainwin.h Sun Dec 22 04:08:50 2013 +0200 1.3 @@ -1,22 +1,31 @@ 1.4 -#ifndef MAINWIN_H 1.5 -#define MAINWIN_H 1.6 +#ifndef MAINWIN_H_ 1.7 +#define MAINWIN_H_ 1.8 1.9 #include <QMainWindow> 1.10 +#include <QVBoxLayout> 1.11 +#include "rollwidget.h" 1.12 1.13 namespace Ui { 1.14 class MainWindow; 1.15 } 1.16 1.17 -class MainWindow : public QMainWindow 1.18 -{ 1.19 - Q_OBJECT 1.20 +class MainWindow : public QMainWindow { 1.21 + Q_OBJECT 1.22 +private: 1.23 + Ui::MainWindow *ui; 1.24 + QVBoxLayout *dicebox; 1.25 + 1.26 +private slots: 1.27 + void roll_all(); 1.28 + void add_dice(); 1.29 + void clear_dice(); 1.30 + 1.31 + void start_client(); 1.32 + void start_server(); 1.33 1.34 public: 1.35 - explicit MainWindow(QWidget *parent = 0); 1.36 - ~MainWindow(); 1.37 - 1.38 -private: 1.39 - Ui::MainWindow *ui; 1.40 + explicit MainWindow(QWidget *parent = 0); 1.41 + ~MainWindow(); 1.42 }; 1.43 1.44 -#endif // MAINWIN_H 1.45 +#endif // MAINWIN_H_