diff --git a/pokerth.pro b/pokerth.pro
index 7fd26690..56cd8b30 100755
--- a/pokerth.pro
+++ b/pokerth.pro
@@ -8,10 +8,12 @@ TARGET.files += bin/*
TARGET.path = /usr/bin/
FORMS += mainwindow.ui \
aboutpokerth.ui \
- newgamedialog.ui
+ newgamedialog.ui \
+ settingsdialog.ui
HEADERS += mainwindowimpl.h \
newgamedialogimpl.h \
aboutpokerthimpl.h \
+ settingsdialogimpl.h \
log.h \
guiinterface.h \
guiwrapper.h \
@@ -40,6 +42,7 @@ SOURCES += pokerth.cpp \
mainwindowimpl.cpp \
newgamedialogimpl.cpp \
aboutpokerthimpl.cpp \
+ settingsdialogimpl.cpp \
log.cpp \
guiinterface.cpp \
guiwrapper.cpp \
diff --git a/src/gui/qt/mainwindow.ui b/src/gui/qt/mainwindow.ui
index f7865107..f492bce6 100644
--- a/src/gui/qt/mainwindow.ui
+++ b/src/gui/qt/mainwindow.ui
@@ -4114,6 +4114,7 @@
Game
+
@@ -4135,6 +4136,11 @@
About PokerTH ...
+
+
+ Settings ...
+
+
diff --git a/src/gui/qt/mainwindowimpl.cpp b/src/gui/qt/mainwindowimpl.cpp
index 71df16db..09a1ae8e 100755
--- a/src/gui/qt/mainwindowimpl.cpp
+++ b/src/gui/qt/mainwindowimpl.cpp
@@ -21,6 +21,7 @@
#include "newgamedialogimpl.h"
#include "aboutpokerthimpl.h"
+#include "settingsdialogimpl.h"
#include "handinterface.h"
#include "playerinterface.h"
@@ -155,6 +156,7 @@ mainWindowImpl::mainWindowImpl(QMainWindow *parent, const char *name)
connect( actionNewGame, SIGNAL( activated() ), this, SLOT( callNewGameDialog() ) );
connect( actionAboutPokerth, SIGNAL( activated() ), this, SLOT( callAboutPokerthDialog() ) );
+ connect( actionSettings, SIGNAL( activated() ), this, SLOT( callSettingsDialog() ) );
connect( actionQuit, SIGNAL( activated() ), qApp, SLOT( quit() ) );
connect( pushButton_raise, SIGNAL( clicked() ), this, SLOT( myRaise() ) );
@@ -218,6 +220,11 @@ void mainWindowImpl::callAboutPokerthDialog() {
v->exec();
}
+void mainWindowImpl::callSettingsDialog() {
+
+ settingsDialogImpl *v = new settingsDialogImpl();
+ v->exec();
+}
void mainWindowImpl::setGame(Game *g) { actualGame = g; }
diff --git a/src/gui/qt/mainwindowimpl.h b/src/gui/qt/mainwindowimpl.h
index 94899ea1..8d7a0d1c 100755
--- a/src/gui/qt/mainwindowimpl.h
+++ b/src/gui/qt/mainwindowimpl.h
@@ -89,6 +89,7 @@ public slots:
void callNewGameDialog() ;
void callAboutPokerthDialog();
+ void callSettingsDialog();
void myFold();
void myCheck();
void myCall();
diff --git a/src/gui/qt/settingsdialog.ui b/src/gui/qt/settingsdialog.ui
new file mode 100644
index 00000000..d49f304a
--- /dev/null
+++ b/src/gui/qt/settingsdialog.ui
@@ -0,0 +1,297 @@
+
+ settingsDialog
+
+
+
+ 0
+ 0
+ 487
+ 339
+
+
+
+ PokerTH - Settings
+
+
+
+ 9
+
+
+ 6
+
+ -
+
+
+ 0
+
+
+
+
+ 9
+
+
+ 6
+
+
-
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+ -
+
+
+ show game settings dialog on every new game
+
+
+
+ -
+
+
+ Start Cash
+
+
+
+ -
+
+
+ 500
+
+
+ 5
+
+
+ 10
+
+
+
+ -
+
+
+ Game-Speed
+
+
+
+ -
+
+
+ 5000
+
+
+ 1000
+
+
+ 2000
+
+
+
+ -
+
+
+ Small Blind
+
+
+
+ -
+
+
+ 11
+
+
+ 1
+
+
+ 1
+
+
+ 4
+
+
+
+ -
+
+
+ 5
+
+
+ 2
+
+
+ 5
+
+
+
+ -
+
+
+ Number of Players
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ -
+
+
+
+ 75
+ true
+
+
+
+ Default Game Settings
+
+
+
+
+
+
+
+
+ 9
+
+
+ 6
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ -
+
+
+
+ 75
+ true
+
+
+
+ Log Settings
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+ 150
+ 16777215
+
+
+
-
+
+ Game Settings
+
+
+ -
+
+ Log
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok
+
+
+
+
+
+
+
+
+ buttonBox
+ accepted()
+ settingsDialog
+ accept()
+
+
+ 227
+ 316
+
+
+ 157
+ 274
+
+
+
+
+ buttonBox
+ rejected()
+ settingsDialog
+ reject()
+
+
+ 295
+ 322
+
+
+ 286
+ 274
+
+
+
+
+ listWidget
+ currentRowChanged(int)
+ stackedWidget
+ setCurrentIndex(int)
+
+
+ 127
+ 60
+
+
+ 281
+ 85
+
+
+
+
+
diff --git a/src/gui/qt/settingsdialogimpl.cpp b/src/gui/qt/settingsdialogimpl.cpp
new file mode 100644
index 00000000..56558c62
--- /dev/null
+++ b/src/gui/qt/settingsdialogimpl.cpp
@@ -0,0 +1,28 @@
+/***************************************************************************
+ * Copyright (C) 2006 by FThauer FHammer *
+ * f.thauer@web.de *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+#include "settingsdialogimpl.h"
+
+settingsDialogImpl::settingsDialogImpl(QWidget *parent, const char *name)
+ : QDialog(parent, name)
+{
+
+ setupUi(this);
+
+}
diff --git a/src/gui/qt/settingsdialogimpl.h b/src/gui/qt/settingsdialogimpl.h
new file mode 100644
index 00000000..36d6a254
--- /dev/null
+++ b/src/gui/qt/settingsdialogimpl.h
@@ -0,0 +1,32 @@
+/***************************************************************************
+ * Copyright (C) 2006 by FThauer FHammer *
+ * f.thauer@web.de *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+#ifndef SETTINGSDIALOGIMPL_H
+#define SETTINGSDIALOGIMPL_H
+
+#include "ui_settingsdialog.h"
+
+
+class settingsDialogImpl: public QDialog, public Ui::settingsDialog {
+Q_OBJECT
+public:
+ settingsDialogImpl(QWidget *parent = 0, const char *name = 0);
+};
+
+#endif