Nessuna descrizione

mainwindow.h 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include <QtGui>
  5. #include "secondwindow.h"
  6. #include <QGridLayout>
  7. #include <QPushButton>
  8. #include <QLineEdit>
  9. #include <QLabel>
  10. #include <QComboBox>
  11. #include <QString>
  12. #include <QImage>
  13. namespace Ui {
  14. class MainWindow;
  15. }
  16. class MainWindow : public QMainWindow
  17. {
  18. Q_OBJECT
  19. public:
  20. explicit MainWindow(QWidget *parent = 0);
  21. ~MainWindow();
  22. void diceAlpha();
  23. void diceBeta();
  24. void diceGamma();
  25. void diceDelta();
  26. void APFTAlpha();
  27. void APFTBeta();
  28. void APFTGamma();
  29. void APFTDelta();
  30. private slots:
  31. void on_SortsButton_clicked();
  32. void on_DiceButton_clicked();
  33. void on_RPSButton_clicked();
  34. void on_CheckWriterButton_clicked();
  35. void on_ZuluButton_clicked();
  36. void on_APFTButton_clicked();
  37. void mostrar(bool si);
  38. void whatOption(QString str);
  39. void clearLines();
  40. void RPSnormalizer1(QString str);
  41. void RPSnormalizer2(QString str);
  42. void RPSnormalizer3(QString str);
  43. void CheckWnormalizer(QString str);
  44. void Zulunormalizer1(QString str);
  45. void Zulunormalizer2(QString str);
  46. void APFTnormalizer1(QString str);
  47. void APFTnormalizer2(QString str);
  48. void APFTnormalizer3(QString str);
  49. void sorts();
  50. void RPSs();
  51. void dices();
  52. void checkWs();
  53. void zulus();
  54. void APFTs();
  55. private:
  56. Ui::MainWindow *ui;
  57. secondwindow *window;
  58. QGridLayout *layout;
  59. QPushButton *button[2];
  60. int buttonSize;
  61. QLineEdit *line[7];
  62. int lineSize;
  63. QLabel *label[7];
  64. int labelSize;
  65. QComboBox *method;
  66. QString option;
  67. QImage dice1;
  68. QImage dice2;
  69. int score1, score2;
  70. };
  71. #endif // MAINWINDOW_H