diff --git a/src/config/configfile.cpp b/src/config/configfile.cpp
index afae8efe..4c17f152 100644
--- a/src/config/configfile.cpp
+++ b/src/config/configfile.cpp
@@ -31,7 +31,7 @@ using namespace std;
ConfigFile::ConfigFile()
{
// !!!! Revisionsnummer der Configdefaults !!!!!
- configRev = 2;
+ configRev = 3;
// Pfad und Dateinamen setzen
#ifdef _WIN32
@@ -131,6 +131,9 @@ void ConfigFile::createDefaultConfig() {
TiXmlElement * confElement15 = new TiXmlElement( "ShowFadeOutCardsAnimation" );
config->LinkEndChild( confElement15 );
confElement15->SetAttribute("value", 1);
+ TiXmlElement * confElement19 = new TiXmlElement( "ShowFlipCardsAnimation" );
+ config->LinkEndChild( confElement19 );
+ confElement19->SetAttribute("value", 1);
TiXmlElement * confElement16 = new TiXmlElement( "FlipsideTux" );
config->LinkEndChild( confElement16 );
confElement16->SetAttribute("value", 1);
diff --git a/src/gui/qt/cards/mycardspixmaplabel.cpp b/src/gui/qt/cards/mycardspixmaplabel.cpp
index 0e3af8a7..1d09a478 100644
--- a/src/gui/qt/cards/mycardspixmaplabel.cpp
+++ b/src/gui/qt/cards/mycardspixmaplabel.cpp
@@ -73,20 +73,22 @@ void MyCardsPixmapLabel::nextFadeOutFrame() {
void MyCardsPixmapLabel::startFlipCards(int speed, QPixmap frontPix, QPixmap *flipsidePix) {
+ QLabel::setPixmap(frontPix);
+
frameFlipCardsAction1Size = 1.0;
frameFlipCardsAction2Size = 0.0;
*front = frontPix;
flipside = flipsidePix;
-// if(speed <= 4) { opacityRaiseIntervall = 0.01; }
-// if(speed > 4 && speed <= 7) { opacityRaiseIntervall = 0.02; }
-// if(speed > 7 && speed <= 10) { opacityRaiseIntervall = 0.04; }
-//
- flipCardsScaleIntervall = 0.1;
+ if(speed <= 4) { flipCardsScaleIntervall = 0.1; }
+ if(speed > 4 && speed <= 6) { flipCardsScaleIntervall = 0.20; }
+ if(speed > 6 && speed <= 8) { flipCardsScaleIntervall = 0.25; }
+ if(speed > 8 && speed <= 10) { flipCardsScaleIntervall = 0.5; }
+//
+
if(speed != 11) {
flipCardsAction1 = TRUE;
-// frameOpacity = 0.0;
flipCardsTimer->start(40);
}
@@ -105,7 +107,7 @@ void MyCardsPixmapLabel::nextFlipCardsFrame() {
flipCardsAction2 = TRUE;
}
else {
- //dann front aufdecken
+ //dann front vergrößern
if (frameFlipCardsAction2Size < 0.9 ) {
frameFlipCardsAction2Size += flipCardsScaleIntervall;
diff --git a/src/gui/qt/cards/mycardspixmaplabel.h b/src/gui/qt/cards/mycardspixmaplabel.h
index 9639854d..e80df509 100644
--- a/src/gui/qt/cards/mycardspixmaplabel.h
+++ b/src/gui/qt/cards/mycardspixmaplabel.h
@@ -27,7 +27,10 @@ public:
void setIsFlipside(bool theValue){ isFlipside = theValue;}
bool getIsFlipside() const{ return isFlipside;}
-
+
+ void setFadeOutAction(bool theValue) { fadeOutAction = theValue; }
+ bool getFadeOutAction() const { return fadeOutAction;}
+
void startFadeOut(int);
void startFlipCards(int, QPixmap, QPixmap*);
@@ -40,6 +43,8 @@ public slots:
void nextFadeOutFrame();
void nextFlipCardsFrame();
+
+
private:
qreal frameOpacity;
diff --git a/src/gui/qt/mainwindow.ui b/src/gui/qt/mainwindow.ui
index 3ef5d3ab..5da807d1 100644
--- a/src/gui/qt/mainwindow.ui
+++ b/src/gui/qt/mainwindow.ui
@@ -3992,7 +3992,7 @@
0
0
874
- 29
+ 30
- -
+
-
Flipside of Cards
@@ -291,20 +305,6 @@ p, li { white-space: pre-wrap; }
- -
-
-
- Show Fade-Out Animation for Non-Winning Cards
-
-
-
- -
-
-
- Show Toolbox (F2 to switch on/off)
-
-
-
-
@@ -312,16 +312,23 @@ p, li { white-space: pre-wrap; }
- -
-
-
-
- 75
- true
-
+
-
+
+
+ Qt::Vertical
+
+
+ 20
+ 40
+
+
+
+
+ -
+
- Interface
+ Show Flip-Card Animation
@@ -519,14 +526,24 @@ p, li { white-space: pre-wrap; }
spinBox_quantityPlayers
spinBox_startCash
spinBox_smallBlind
+ spinBox_handsBeforeRaiseSmallBlind
spinBox_gameSpeed
+ checkBox_pauseBetweenHands
checkBox_showGameSettingsDialogOnNewGame
- buttonBox
+ checkBox_showIntro
+ checkBox_showToolbox
+ checkBox_showFadeOutCardsAnimation
+ checkBox_showFlipCardsAnimation
+ radioButton_flipsideTux
+ radioButton_flipsideOwn
+ lineEdit_OwnFlipsideFilename
+ pushButton_openFlipsidePicture
lineEdit_humanPlayerName
lineEdit_Opponent1Name
lineEdit_Opponent2Name
lineEdit_Opponent3Name
lineEdit_Opponent4Name
+ buttonBox
diff --git a/src/gui/qt/settingsdialogimpl.cpp b/src/gui/qt/settingsdialogimpl.cpp
index 2a367e3f..757427a3 100644
--- a/src/gui/qt/settingsdialogimpl.cpp
+++ b/src/gui/qt/settingsdialogimpl.cpp
@@ -53,6 +53,7 @@ settingsDialogImpl::settingsDialogImpl(QWidget *parent, const char *name)
checkBox_showToolbox->setChecked(myConfig.readConfigInt("ShowToolBox", 1));
checkBox_showIntro->setChecked(myConfig.readConfigInt("ShowIntro", 1));
checkBox_showFadeOutCardsAnimation->setChecked(myConfig.readConfigInt("ShowFadeOutCardsAnimation", 1));
+ checkBox_showFlipCardsAnimation->setChecked(myConfig.readConfigInt("ShowFlipCardsAnimation", 1));
radioButton_flipsideTux->setChecked(myConfig.readConfigInt("FlipsideTux", 1));
radioButton_flipsideOwn->setChecked(myConfig.readConfigInt("FlipsideOwn", 0));
if(radioButton_flipsideOwn->isChecked()) {
@@ -98,6 +99,7 @@ void settingsDialogImpl::isAccepted() {
myConfig.writeConfigInt("ShowToolBox", checkBox_showToolbox->isChecked());
myConfig.writeConfigInt("ShowIntro", checkBox_showIntro->isChecked());
myConfig.writeConfigInt("ShowFadeOutCardsAnimation", checkBox_showFadeOutCardsAnimation->isChecked());
+ myConfig.writeConfigInt("ShowFlipCardsAnimation", checkBox_showFlipCardsAnimation->isChecked());
myConfig.writeConfigInt("FlipsideTux", radioButton_flipsideTux->isChecked());
myConfig.writeConfigInt("FlipsideOwn", radioButton_flipsideOwn->isChecked());
myConfig.writeConfigString("FlipsideOwnFile", lineEdit_OwnFlipsideFilename->text().toStdString());