void MainForm::connectObjects() {
	// Ereignishandler fuer Widget registrieren
	connect(ButtonEnde, SIGNAL(clicked()), this, SLOT(close()));
	connect(ButtonStart, SIGNAL(clicked()), this, SLOT(btnStartClicked()));
	connect(ButtonAdd, SIGNAL(clicked()), this, SLOT(btnAddClicked()));
	connect(ButtonDel, SIGNAL(clicked()), this, SLOT(btnDelClicked()));
	connect(Gnuboy, SIGNAL(stateChanged(QProcess::ProcessState)), this, SLOT(gameStatusChanged(QProcess::ProcessState)));
	connect(ListViewSpiele->selectionModel(), SIGNAL(selectionChanged(const QItemSelection&, const QItemSelection&)), this, SLOT(selectedGameChanged(const QItemSelection&, const QItemSelection&)));
	connect(ComboEmulator, SIGNAL(currentIndexChanged(int)), this, SLOT(emulatorChanged(int)));
}
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent), ui(new Ui::MainWindow), game(), canvas(&game), networkManager(&game), help(new Help(this))
{
    ui->setupUi(this);
    canvas.setParent(ui->canvasBack);
    setFixedSize(WINDOW_WIDTH, WINDOW_HEIGHT + 22);
    ui->top->horizontalHeader()->setSectionResizeMode(QHeaderView::Fixed);
    ui->top->verticalHeader()->setSectionResizeMode(QHeaderView::Fixed);
    connect(&game, SIGNAL(gameStatusChanged(Game::STATUS)), this, SLOT(onGameStatusChanged(Game::STATUS)));
    connect(&game, SIGNAL(errorCodeChanged(int)), this, SLOT(onErrorCodeChanged(int)));
    connect(&game, SIGNAL(modelActualized()), this, SLOT(onModelActualized()));
}