You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
870 B
C++
43 lines
870 B
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
#include <stdlib.h>
|
|
#include <time.h>
|
|
#include <vector>
|
|
|
|
#include <QDebug>
|
|
#include <QGenericMatrix>
|
|
#include <QMainWindow>
|
|
#include <QPushButton>
|
|
#include <QSettings>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui { class MainWindow; }
|
|
QT_END_NAMESPACE
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MainWindow(QWidget *parent = nullptr);
|
|
~MainWindow();
|
|
// initialisation functions
|
|
void initialiseGameGrid();
|
|
void initialiseGameMatrix();
|
|
void initialiseWindow();
|
|
void initialiseMenuBar();
|
|
|
|
// events
|
|
void buttonPressed(QPushButton *button);
|
|
|
|
private:
|
|
Ui::MainWindow *ui;
|
|
const int n_rows;
|
|
const int n_columns;
|
|
const QStringList colors;
|
|
|
|
// mein Instinkt sagt mir, dass das hier hässlich ist:
|
|
std::vector<std::vector<QString>> gameMatrix;
|
|
};
|
|
#endif // MAINWINDOW_H
|