123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- // RAN - 2015-06-26 - Removed some old slots that were not being used
-
- #ifndef MAINWINDOW_H
- #define MAINWINDOW_H
-
- #include <QMainWindow>
- #include <QtGui>
- #include "secondwindow.h"
-
- #include <QGridLayout>
- #include <QPushButton>
- #include <QLineEdit>
- #include <QLabel>
- #include <QComboBox>
- #include <QString>
- #include <QImage>
- #include <QVector>
-
- namespace Ui {
- class MainWindow;
- }
-
- class MainWindow : public QMainWindow
- {
- Q_OBJECT
-
- public:
- explicit MainWindow(QWidget *parent = 0);
- ~MainWindow();
-
- void diceAlpha();
- void diceBeta();
- void diceGamma();
- void diceDelta();
-
- void APFTAlpha();
- void APFTBeta();
- void APFTGamma();
- void APFTDelta();
-
- private slots:
- void on_SortsButton_clicked();
- void on_DiceButton_clicked();
- void on_RPSButton_clicked();
- void on_ZuluButton_clicked();
-
- void mostrar(bool si);
-
- void whatOption(QString str);
-
- void clearLines();
-
- void RPSnormalizer1(QString str);
-
- void RPSnormalizer2(QString str);
-
- void RPSnormalizer3(QString str);
-
- void CheckWnormalizer(QString str);
-
- void Zulunormalizer1(QString str);
-
- void Zulunormalizer2(QString str);
-
- void APFTnormalizer1(QString str);
-
- void APFTnormalizer2(QString str);
-
- void APFTnormalizer3(QString str);
-
- void sorts();
-
- void RPSs();
-
- void dices();
-
- void checkWs();
-
- void zulus();
-
- void APFTs();
-
- void paintDice();
-
- private:
- Ui::MainWindow *ui;
- secondwindow *window;
- QGridLayout *layout;
- QPushButton *button[2];
- int buttonSize;
- QLineEdit *line[7];
- int lineSize;
- QLabel *label[7];
- int labelSize;
- QComboBox *method, *cmbPlayer01, *cmbPlayer02;
- QString option;
- QImage dice1;
- QImage dice2;
- int diceFinal01, diceFinal02;
- QTimer *aTimer;
- int timerCounter;
- int score1, score2;
-
- QVector<QImage> diceImages;
- };
-
- #endif // MAINWINDOW_H
|