This commit is contained in:
doitux
2007-09-30 11:15:03 +00:00
parent f903e4ae6d
commit 9d702b3fcc
3 changed files with 29 additions and 1 deletions
+1 -1
View File
@@ -3106,7 +3106,7 @@ void mainWindowImpl::localGameModification() {
}
//Set the playing mode to "manual"
playingMode = 0;
playingMode = 1;
}
@@ -63,6 +63,9 @@ settingsDialogImpl::settingsDialogImpl(QWidget *parent, ConfigFile *c, selectAva
connect( checkBox_UseInternetGamePassword, SIGNAL( toggled(bool) ), this, SLOT( clearInternetGamePassword(bool)) );
connect( spinBox_netFirstSmallBlind, SIGNAL( valueChanged(int) ), this, SLOT ( checkProperNetFirstSmallBlind(int)));
connect( spinBox_firstSmallBlind, SIGNAL( valueChanged(int) ), this, SLOT ( checkProperFirstSmallBlind(int)));
//temporarely unused until ai is enabled in network
// label_36->hide();
// spinBox_netGameSpeed->hide();
@@ -491,3 +494,25 @@ void settingsDialogImpl::callNetManualBlindsOrderDialog() {
myNetAfterMBStayAtLastBlind = myManualBlindsOrderDialog->radioButton_stayAtLastBlind->isChecked();
}
}
void settingsDialogImpl::checkProperNetFirstSmallBlind(int currentSB) {
if(currentSB > myNetManualBlindsList.front()) {
QMessageBox::warning(this, tr("Blinds Error"),
tr("The first element in your manual-blinds-list is smaller than the first-blind-value you want to set.\nPlease check your manual-blinds-list."),
QMessageBox::Close);
}
}
void settingsDialogImpl::checkProperFirstSmallBlind(int currentSB) {
if(currentSB > myManualBlindsList.front()) {
QMessageBox::warning(this, tr("Blinds Error"),
tr("The first element in your manual-blinds-list is smaller than the first-blind-value you want to set.\nPlease check your manual-blinds-list."),
QMessageBox::Close);
}
}
@@ -68,6 +68,9 @@ public slots:
void clearInternetGamePassword(bool);
void checkProperNetFirstSmallBlind(int);
void checkProperFirstSmallBlind(int);
private: