Skip to content

Commit

Permalink
all up-to-date and merged
Browse files Browse the repository at this point in the history
  • Loading branch information
OEtzi007 authored and OEtzi007 committed Mar 3, 2014
1 parent 8a45346 commit 40acae4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 30 deletions.
7 changes: 1 addition & 6 deletions userinterface/header/spielbrett.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@

#include <QWidget>
#include <QColor>
<<<<<<< HEAD
#include "../../game/header/Constants.h"
#include "../../game/header/State.h"
=======
#include "Konstant.h"
#include "State.h"
>>>>>>> refs/remotes/origin/master
#include "window.h"

class Window;
Expand All @@ -18,7 +13,7 @@ class Spielbrett: public QWidget
{
Q_OBJECT
public:
Spielbrett(Window* parentalWindow, QWidget* parent = 0);
Spielbrett(Window* parentalWindow);
//QSize minimumSizeHint ()const;
//QSize sizeHint ()const;

Expand Down
20 changes: 0 additions & 20 deletions userinterface/header/uiexec.h
Original file line number Diff line number Diff line change
@@ -1,38 +1,18 @@
#ifndef UIEXEC_H
#define UIEXEC_H
#include "window.h"
<<<<<<< HEAD
#include "../../game/header/Constants.h"
#include "../../game/header/Board.h"
#include "../../logger/header/SimulationLogger.h"
#include <QString>

class UIEXEC {

public:
UIEXEC();
Window* wp;
Board* board;
SimulationLogger* simulation;
void doTheMagic();
=======
#include"Konstant.h"
#include"Brett.h"
#include"Game.h"
#include <QString>


class UIEXEC
{

public:
UIEXEC();
Window* wp;
Brett* board;
Game* game1;
void doTheMagic();
>>>>>>> refs/remotes/origin/master

};

#endif // UIEXEC_H
1 change: 1 addition & 0 deletions userinterface/header/window.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Q_OBJECT
QLabel* player5;
QLabel* player6;
QLabel* toolBoxLabel;
QPushButton* newGameButton;
QSpinBox* vektorSpinBox;
QCheckBox* showTownsCheckBox;
QLCDNumber* counterLCD;
Expand Down
5 changes: 3 additions & 2 deletions userinterface/source/mainwindow.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#include "../header/mainwindow.h"
#include "../header/window.h"

MainWindow::MainWindow()
{
myGameExe = new UIEXEC;
wp = new Window(myGameExe->game1);
myGameExe = new UIEXEC;
wp = new Window(myGameExe->simulation);
myGameExe->doTheMagic();
setCentralWidget(wp);
myToolBar = addToolBar(tr("Test"));
Expand Down
2 changes: 1 addition & 1 deletion userinterface/source/spielbrett.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ QPixmap getPixmap(CITYCOLOUR i) {
return QPixmap(" ");
}

Spielbrett::Spielbrett(Window* parentalWindow, QWidget* parent) :
Spielbrett::Spielbrett(Window* parentalWindow) :
parentalWindow(parentalWindow) {

drawCity = false;
Expand Down
2 changes: 1 addition & 1 deletion userinterface/source/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Window::Window(SimulationLogger *game) :
vektorSpinBox = new QSpinBox;
showTownsCheckBox = new QCheckBox;
newGameButton = new QPushButton(tr("New Game"));
vektorSpinBox->setRange(0, gamep->zustandsListe.size());
vektorSpinBox->setRange(0, simulationp->gameList[0]->roundList[0]->moveList.size());
vektorSpinBox->setWrapping(false);
vektorSpinBox->setSuffix(tr(". Zustand"));
counterLCD = new QLCDNumber;
Expand Down

0 comments on commit 40acae4

Please sign in to comment.