説明なし

mainwindow.h 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. // RAN - 2015-06-26 - Removed some old slots that were not being used
  2. #ifndef MAINWINDOW_H
  3. #define MAINWINDOW_H
  4. #include <QMainWindow>
  5. #include <QtGui>
  6. #include "secondwindow.h"
  7. #include <QGridLayout>
  8. #include <QPushButton>
  9. #include <QLineEdit>
  10. #include <QLabel>
  11. #include <QComboBox>
  12. #include <QString>
  13. #include <QImage>
  14. #include <QVector>
  15. namespace Ui {
  16. class MainWindow;
  17. }
  18. class MainWindow : public QMainWindow
  19. {
  20. Q_OBJECT
  21. public:
  22. explicit MainWindow(QWidget *parent = 0);
  23. ~MainWindow();
  24. void diceAlpha();
  25. void diceBeta();
  26. void diceGamma();
  27. void diceDelta();
  28. void APFTAlpha();
  29. void APFTBeta();
  30. void APFTGamma();
  31. void APFTDelta();
  32. private slots:
  33. void on_SortsButton_clicked();
  34. void on_DiceButton_clicked();
  35. void on_RPSButton_clicked();
  36. void on_ZuluButton_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. void paintDice();
  56. private:
  57. Ui::MainWindow *ui;
  58. secondwindow *window;
  59. QGridLayout *layout;
  60. QPushButton *button[2];
  61. int buttonSize;
  62. QLineEdit *line[7];
  63. int lineSize;
  64. QLabel *label[7];
  65. int labelSize;
  66. QComboBox *method, *cmbPlayer01, *cmbPlayer02;
  67. QString option;
  68. QImage dice1;
  69. QImage dice2;
  70. int diceFinal01, diceFinal02;
  71. QTimer *aTimer;
  72. int timerCounter;
  73. int score1, score2;
  74. QVector<QImage> diceImages;
  75. };
  76. #endif // MAINWINDOW_H