move action pics
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
@@ -11,13 +11,13 @@
|
|||||||
<MinimumWindowHeight value="600" />
|
<MinimumWindowHeight value="600" />
|
||||||
<MaximumWindowWidth value="1980" />
|
<MaximumWindowWidth value="1980" />
|
||||||
<MaximumWindowHeight value="1200" />
|
<MaximumWindowHeight value="1200" />
|
||||||
<ActionAllIn value="action_allin.png" />
|
<ActionAllInI18N value="action_allin.png" />
|
||||||
<ActionRaise value="action_raise.png" />
|
<ActionRaiseI18N value="action_raise.png" />
|
||||||
<ActionBet value="action_bet.png" />
|
<ActionBetI18N value="action_bet.png" />
|
||||||
<ActionCall value="action_call.png" />
|
<ActionCallI18N value="action_call.png" />
|
||||||
<ActionCheck value="action_check.png" />
|
<ActionCheckI18N value="action_check.png" />
|
||||||
<ActionFold value="action_fold.png" />
|
<ActionFoldI18N value="action_fold.png" />
|
||||||
<ActionWinner value="action_winner.png" />
|
<ActionWinnerI18N value="action_winner.png" />
|
||||||
<BigBlindPuck value="bigblindPuck.png" />
|
<BigBlindPuck value="bigblindPuck.png" />
|
||||||
<SmallBlindPuck value="smallblindPuck.png" />
|
<SmallBlindPuck value="smallblindPuck.png" />
|
||||||
<DealerPuck value="dealerPuck.png" />
|
<DealerPuck value="dealerPuck.png" />
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
@@ -15,13 +15,6 @@
|
|||||||
<MaximumWindowHeight value="1200" /> <!-- value [min 600] This will set the maximum window height if IfFixedWindowsSize=0 -->
|
<MaximumWindowHeight value="1200" /> <!-- value [min 600] This will set the maximum window height if IfFixedWindowsSize=0 -->
|
||||||
|
|
||||||
<!-- Table Pictures - values should contain filenames of pictures which have to be stored in the same folder as this xml file. if you wanna have an item to be not shown please write "NULL" instead of the picture file name -->
|
<!-- Table Pictures - values should contain filenames of pictures which have to be stored in the same folder as this xml file. if you wanna have an item to be not shown please write "NULL" instead of the picture file name -->
|
||||||
<ActionAllIn value="action_allin.png" /> <!-- optimal size width:height in px [100:40] -->
|
|
||||||
<ActionRaise value="action_raise.png" /> <!-- optimal size width:height in px [100:40] -->
|
|
||||||
<ActionBet value="action_bet.png" /> <!-- optimal size width:height in px [100:40] -->
|
|
||||||
<ActionCall value="action_call.png" /> <!-- optimal size width:height in px [100:40] -->
|
|
||||||
<ActionCheck value="action_check.png" /> <!-- optimal size width:height in px [100:40] -->
|
|
||||||
<ActionFold value="action_fold.png" /> <!-- optimal size width:height in px [100:40] -->
|
|
||||||
<ActionWinner value="action_winner.png" /> <!-- optimal size width:height in px [100:40] -->
|
|
||||||
<BigBlindPuck value="bigblindPuck.png" /> <!-- optimal size width:height in px [40:42] -->
|
<BigBlindPuck value="bigblindPuck.png" /> <!-- optimal size width:height in px [40:42] -->
|
||||||
<SmallBlindPuck value="smallblindPuck.png" /> <!-- optimal size width:height in px [40:42] -->
|
<SmallBlindPuck value="smallblindPuck.png" /> <!-- optimal size width:height in px [40:42] -->
|
||||||
<DealerPuck value="dealerPuck.png" /> <!-- optimal size width:height in px [40:42] -->
|
<DealerPuck value="dealerPuck.png" /> <!-- optimal size width:height in px [40:42] -->
|
||||||
@@ -57,7 +50,14 @@
|
|||||||
<Table value="table.png" /> <!-- minimal size width:height in px [1024:600] -->
|
<Table value="table.png" /> <!-- minimal size width:height in px [1024:600] -->
|
||||||
<ToolBoxBackground value="toolboxbg.png" /> <!-- minimal size width:height in px [260:188] -->
|
<ToolBoxBackground value="toolboxbg.png" /> <!-- minimal size width:height in px [260:188] -->
|
||||||
<HandRanking value="handranking.png" /> <!-- minimal size width:height in px [240:153] -->
|
<HandRanking value="handranking.png" /> <!-- minimal size width:height in px [240:153] -->
|
||||||
|
<!-- Action*I18N pictures if you wanna set action pics with specific language strings you can set them here. If you wanna use the default english strings just write "NULL" instead of picture files names. PokerTH will automatically display the english ones. -->
|
||||||
|
<ActionAllInI18N value="action_allin.png" /> <!-- optimal size width:height in px [100:40] -->
|
||||||
|
<ActionRaiseI18N value="action_raise.png" /> <!-- optimal size width:height in px [100:40] -->
|
||||||
|
<ActionBetI18N value="action_bet.png" /> <!-- optimal size width:height in px [100:40] -->
|
||||||
|
<ActionCallI18N value="action_call.png" /> <!-- optimal size width:height in px [100:40] -->
|
||||||
|
<ActionCheckI18N value="action_check.png" /> <!-- optimal size width:height in px [100:40] -->
|
||||||
|
<ActionFoldI18N value="action_fold.png" /> <!-- optimal size width:height in px [100:40] -->
|
||||||
|
<ActionWinnerI18N value="action_winner.png" /> <!-- optimal size width:height in px [100:40] -->
|
||||||
<!-- Table Colors - values should be set in hexcode RGB style without "#" -->
|
<!-- Table Colors - values should be set in hexcode RGB style without "#" -->
|
||||||
<FKeyIndicatorColor value="FFFFFF" />
|
<FKeyIndicatorColor value="FFFFFF" />
|
||||||
<ChanceLabelPossibleColor value="9CD500" />
|
<ChanceLabelPossibleColor value="9CD500" />
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ ConfigFile::ConfigFile(char *argv0, bool readonly) : noWriteAccess(readonly)
|
|||||||
myQtToolsInterface = CreateQtToolsWrapper();
|
myQtToolsInterface = CreateQtToolsWrapper();
|
||||||
|
|
||||||
// !!!! Revisionsnummer der Configdefaults !!!!!
|
// !!!! Revisionsnummer der Configdefaults !!!!!
|
||||||
configRev = 64;
|
configRev = 65;
|
||||||
|
|
||||||
//standard defaults
|
//standard defaults
|
||||||
logOnOffDefault = "1";
|
logOnOffDefault = "1";
|
||||||
@@ -139,6 +139,7 @@ ConfigFile::ConfigFile(char *argv0, bool readonly) : noWriteAccess(readonly)
|
|||||||
configList.push_back(ConfigInfo("ShowFlipCardsAnimation", CONFIG_TYPE_INT, "1"));
|
configList.push_back(ConfigInfo("ShowFlipCardsAnimation", CONFIG_TYPE_INT, "1"));
|
||||||
configList.push_back(ConfigInfo("ShowBlindButtons", CONFIG_TYPE_INT, "1"));
|
configList.push_back(ConfigInfo("ShowBlindButtons", CONFIG_TYPE_INT, "1"));
|
||||||
configList.push_back(ConfigInfo("ShowCardsChanceMonitor", CONFIG_TYPE_INT, "1"));
|
configList.push_back(ConfigInfo("ShowCardsChanceMonitor", CONFIG_TYPE_INT, "1"));
|
||||||
|
configList.push_back(ConfigInfo("DontTranslateInternationalPokerStringsFromStyle", CONFIG_TYPE_INT, "0"));
|
||||||
configList.push_back(ConfigInfo("AntiPeekMode", CONFIG_TYPE_INT, "0"));
|
configList.push_back(ConfigInfo("AntiPeekMode", CONFIG_TYPE_INT, "0"));
|
||||||
configList.push_back(ConfigInfo("AlternateFKeysUserActionMode", CONFIG_TYPE_INT, "0"));
|
configList.push_back(ConfigInfo("AlternateFKeysUserActionMode", CONFIG_TYPE_INT, "0"));
|
||||||
configList.push_back(ConfigInfo("EnableBetInputFocusSwitch", CONFIG_TYPE_INT, "0"));
|
configList.push_back(ConfigInfo("EnableBetInputFocusSwitch", CONFIG_TYPE_INT, "0"));
|
||||||
|
|||||||
@@ -212,13 +212,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0" >
|
|
||||||
<widget class="QCheckBox" name="checkBox_showBlindButtons" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Show buttons for small blind and big blind</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1" >
|
<item row="1" column="1" >
|
||||||
<widget class="QCheckBox" name="checkBox_showFlipCardsAnimation" >
|
<widget class="QCheckBox" name="checkBox_showFlipCardsAnimation" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
@@ -240,6 +233,20 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="4" column="0" >
|
||||||
|
<widget class="QCheckBox" name="checkBox_showBlindButtons" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Show buttons for small blind and big blind</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0" colspan="2" >
|
||||||
|
<widget class="QCheckBox" name="checkBox_dontTranslatePokerStrings" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Don't translate poker strings like check, call, raise from game table style</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0" >
|
<item row="4" column="0" >
|
||||||
@@ -3399,7 +3406,6 @@ p, li { white-space: pre-wrap; }
|
|||||||
<tabstop>checkBox_showRightToolbox</tabstop>
|
<tabstop>checkBox_showRightToolbox</tabstop>
|
||||||
<tabstop>checkBox_showFadeOutCardsAnimation</tabstop>
|
<tabstop>checkBox_showFadeOutCardsAnimation</tabstop>
|
||||||
<tabstop>checkBox_alternateFKeysUserActionMode</tabstop>
|
<tabstop>checkBox_alternateFKeysUserActionMode</tabstop>
|
||||||
<tabstop>checkBox_showBlindButtons</tabstop>
|
|
||||||
<tabstop>checkBox_enableBetInputFocusSwitch</tabstop>
|
<tabstop>checkBox_enableBetInputFocusSwitch</tabstop>
|
||||||
<tabstop>radioButton_flipsideTux</tabstop>
|
<tabstop>radioButton_flipsideTux</tabstop>
|
||||||
<tabstop>radioButton_flipsideOwn</tabstop>
|
<tabstop>radioButton_flipsideOwn</tabstop>
|
||||||
|
|||||||
@@ -228,6 +228,7 @@ void settingsDialogImpl::exec() {
|
|||||||
checkBox_alternateFKeysUserActionMode->setChecked(myConfig->readConfigInt("AlternateFKeysUserActionMode"));
|
checkBox_alternateFKeysUserActionMode->setChecked(myConfig->readConfigInt("AlternateFKeysUserActionMode"));
|
||||||
checkBox_enableBetInputFocusSwitch->setChecked(myConfig->readConfigInt("EnableBetInputFocusSwitch"));
|
checkBox_enableBetInputFocusSwitch->setChecked(myConfig->readConfigInt("EnableBetInputFocusSwitch"));
|
||||||
checkBox_cardsChanceMonitor->setChecked(myConfig->readConfigInt("ShowCardsChanceMonitor"));
|
checkBox_cardsChanceMonitor->setChecked(myConfig->readConfigInt("ShowCardsChanceMonitor"));
|
||||||
|
checkBox_dontTranslatePokerStrings->setChecked(myConfig->readConfigInt("DontTranslateInternationalPokerStringsFromStyle"));
|
||||||
|
|
||||||
radioButton_flipsideTux->setChecked(myConfig->readConfigInt("FlipsideTux"));
|
radioButton_flipsideTux->setChecked(myConfig->readConfigInt("FlipsideTux"));
|
||||||
radioButton_flipsideOwn->setChecked(myConfig->readConfigInt("FlipsideOwn"));
|
radioButton_flipsideOwn->setChecked(myConfig->readConfigInt("FlipsideOwn"));
|
||||||
@@ -513,6 +514,7 @@ void settingsDialogImpl::isAccepted() {
|
|||||||
myConfig->writeConfigInt("ShowCardsChanceMonitor", checkBox_cardsChanceMonitor->isChecked());
|
myConfig->writeConfigInt("ShowCardsChanceMonitor", checkBox_cardsChanceMonitor->isChecked());
|
||||||
myConfig->writeConfigInt("AntiPeekMode", checkBox_antiPeekMode->isChecked());
|
myConfig->writeConfigInt("AntiPeekMode", checkBox_antiPeekMode->isChecked());
|
||||||
myConfig->writeConfigInt("AlternateFKeysUserActionMode", checkBox_alternateFKeysUserActionMode->isChecked());
|
myConfig->writeConfigInt("AlternateFKeysUserActionMode", checkBox_alternateFKeysUserActionMode->isChecked());
|
||||||
|
myConfig->writeConfigInt("DontTranslateInternationalPokerStringsFromStyle", checkBox_dontTranslatePokerStrings->isChecked());
|
||||||
myConfig->writeConfigInt("EnableBetInputFocusSwitch", checkBox_enableBetInputFocusSwitch->isChecked());
|
myConfig->writeConfigInt("EnableBetInputFocusSwitch", checkBox_enableBetInputFocusSwitch->isChecked());
|
||||||
myConfig->writeConfigInt("FlipsideTux", radioButton_flipsideTux->isChecked());
|
myConfig->writeConfigInt("FlipsideTux", radioButton_flipsideTux->isChecked());
|
||||||
myConfig->writeConfigInt("FlipsideOwn", radioButton_flipsideOwn->isChecked());
|
myConfig->writeConfigInt("FlipsideOwn", radioButton_flipsideOwn->isChecked());
|
||||||
|
|||||||
@@ -117,13 +117,13 @@ void GameTableStyleReader::readStyleFile(QString file) {
|
|||||||
else if (itemsList->ValueStr() == "MaximumWindowHeight") { MaximumWindowHeight = QString::fromUtf8(tempString1.c_str()); }
|
else if (itemsList->ValueStr() == "MaximumWindowHeight") { MaximumWindowHeight = QString::fromUtf8(tempString1.c_str()); }
|
||||||
// PICS
|
// PICS
|
||||||
else if (itemsList->ValueStr() == "Preview") { Preview = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
else if (itemsList->ValueStr() == "Preview") { Preview = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||||
else if (itemsList->ValueStr() == "ActionAllIn") { ActionAllIn = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
else if (itemsList->ValueStr() == "ActionAllInI18N") { ActionAllInI18N = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||||
else if (itemsList->ValueStr() == "ActionRaise") { ActionRaise = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
else if (itemsList->ValueStr() == "ActionRaiseI18N") { ActionRaiseI18N = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||||
else if (itemsList->ValueStr() == "ActionBet") { ActionBet = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
else if (itemsList->ValueStr() == "ActionBetI18N") { ActionBetI18N = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||||
else if (itemsList->ValueStr() == "ActionCall") { ActionCall = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
else if (itemsList->ValueStr() == "ActionCallI18N") { ActionCallI18N = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||||
else if (itemsList->ValueStr() == "ActionCheck") { ActionCheck = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
else if (itemsList->ValueStr() == "ActionCheckI18N") { ActionCheckI18N = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||||
else if (itemsList->ValueStr() == "ActionFold") { ActionFold = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
else if (itemsList->ValueStr() == "ActionFoldI18N") { ActionFoldI18N = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||||
else if (itemsList->ValueStr() == "ActionWinner") { ActionWinner = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
else if (itemsList->ValueStr() == "ActionWinnerI18N") { ActionWinnerI18N = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||||
else if (itemsList->ValueStr() == "BigBlindPuck") { BigBlindPuck = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
else if (itemsList->ValueStr() == "BigBlindPuck") { BigBlindPuck = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||||
else if (itemsList->ValueStr() == "SmallBlindPuck") { SmallBlindPuck = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
else if (itemsList->ValueStr() == "SmallBlindPuck") { SmallBlindPuck = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||||
else if (itemsList->ValueStr() == "DealerPuck") { DealerPuck = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
else if (itemsList->ValueStr() == "DealerPuck") { DealerPuck = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||||
@@ -217,128 +217,146 @@ void GameTableStyleReader::readStyleFile(QString file) {
|
|||||||
// std::cout << "ÖLP" << itemsList->ValueStr() <<"§4s"<< itemsList->ValueStr()<<"§89"<< endl;
|
// std::cout << "ÖLP" << itemsList->ValueStr() <<"§4s"<< itemsList->ValueStr()<<"§89"<< endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
wrongItems.clear();
|
|
||||||
|
//check if style items are left and if pictures where not found and show warning
|
||||||
|
leftItems.clear();
|
||||||
|
itemPicsLeft.clear();
|
||||||
|
|
||||||
// INFOS
|
// INFOS
|
||||||
if(StyleDescription == "") { wrongItems << "StyleDescription"; }
|
if(StyleDescription == "") { leftItems << "StyleDescription"; }
|
||||||
// WINDOWS SETTINGS
|
// WINDOWS SETTINGS
|
||||||
if(IfFixedWindowSize == "") { wrongItems << "IfFixedWindowSize"; }
|
if(IfFixedWindowSize == "") { leftItems << "IfFixedWindowSize"; }
|
||||||
if(FixedWindowWidth == "") { wrongItems << "FixedWindowWidth"; }
|
if(FixedWindowWidth == "") { leftItems << "FixedWindowWidth"; }
|
||||||
if(FixedWindowHeight == "") { wrongItems << "FixedWindowHeight"; }
|
if(FixedWindowHeight == "") { leftItems << "FixedWindowHeight"; }
|
||||||
if(MinimumWindowWidth == "") { wrongItems << "MinimumWindowWidth"; }
|
if(MinimumWindowWidth == "") { leftItems << "MinimumWindowWidth"; }
|
||||||
if(MinimumWindowHeight == "") { wrongItems << "MinimumWindowHeight"; }
|
if(MinimumWindowHeight == "") { leftItems << "MinimumWindowHeight"; }
|
||||||
if(MaximumWindowWidth == "") { wrongItems << "MaximumWindowWidth"; }
|
if(MaximumWindowWidth == "") { leftItems << "MaximumWindowWidth"; }
|
||||||
if(MaximumWindowHeight == "") { wrongItems << "MaximumWindowHeight"; }
|
if(MaximumWindowHeight == "") { leftItems << "MaximumWindowHeight"; }
|
||||||
// PICS
|
// PICS
|
||||||
if(ActionAllIn == "") { wrongItems << "ActionAllIn"; }
|
if(ActionAllInI18N == "") { leftItems << "ActionAllInI18N"; }
|
||||||
if(ActionRaise == "") { wrongItems << "ActionRaise"; }
|
else if(ActionAllInI18N != QString(currentDir+"NULL") && !QFile(ActionAllInI18N).exists()) { itemPicsLeft << "ActionAllInI18N = "+ActionAllInI18N; }
|
||||||
if(ActionBet == "") { wrongItems << "ActionBet"; }
|
if(ActionRaiseI18N == "") { leftItems << "ActionRaiseI18N"; }
|
||||||
if(ActionCall == "") { wrongItems << "ActionCall"; }
|
else if(ActionRaiseI18N != QString(currentDir+"NULL") && !QFile(ActionRaiseI18N).exists()) { itemPicsLeft << "ActionRaiseI18N = "+ActionRaiseI18N; }
|
||||||
if(ActionCheck == "") { wrongItems << "ActionCheck"; }
|
if(ActionBetI18N == "") { leftItems << "ActionBetI18N"; }
|
||||||
if(ActionFold == "") { wrongItems << "ActionFold"; }
|
else if(ActionBetI18N != QString(currentDir+"NULL") && !QFile(ActionBetI18N).exists()) { itemPicsLeft << "ActionBetI18N = "+ActionBetI18N; }
|
||||||
if(ActionWinner == "") { wrongItems << "ActionWinner"; }
|
if(ActionCallI18N == "") { leftItems << "ActionCallI18N"; }
|
||||||
if(BigBlindPuck == "") { wrongItems << "BigBlindPuck"; }
|
else if(ActionCallI18N != QString(currentDir+"NULL") && !QFile(ActionCallI18N).exists()) { itemPicsLeft << "ActionCallI18N = "+ActionCallI18N; }
|
||||||
if(SmallBlindPuck == "") { wrongItems << "SmallBlindPuck"; }
|
if(ActionCheckI18N == "") { leftItems << "ActionCheckI18N"; }
|
||||||
if(DealerPuck == "") { wrongItems << "DealerPuck"; }
|
if(ActionFoldI18N == "") { leftItems << "ActionFoldI18N"; }
|
||||||
if(DefaultAvatar == "") { wrongItems << "DefaultAvatar"; }
|
if(ActionWinnerI18N == "") { leftItems << "ActionWinnerI18N"; }
|
||||||
if(CardHolderFlop == "") { wrongItems << "CardHolderFlop"; }
|
if(BigBlindPuck == "") { leftItems << "BigBlindPuck"; }
|
||||||
if(CardHolderTurn == "") { wrongItems << "CardHolderTurn"; }
|
if(SmallBlindPuck == "") { leftItems << "SmallBlindPuck"; }
|
||||||
if(CardHolderRiver == "") { wrongItems << "CardHolderRiver"; }
|
if(DealerPuck == "") { leftItems << "DealerPuck"; }
|
||||||
if(FoldButtonDefault == "") { wrongItems << "FoldButtonDefault"; }
|
if(DefaultAvatar == "") { leftItems << "DefaultAvatar"; }
|
||||||
if(FoldButtonHover == "") { wrongItems << "FoldButtonHover"; }
|
if(CardHolderFlop == "") { leftItems << "CardHolderFlop"; }
|
||||||
if(FoldButtonChecked == "") { wrongItems << "FoldButtonChecked"; }
|
if(CardHolderTurn == "") { leftItems << "CardHolderTurn"; }
|
||||||
if(FoldButtonCheckedHover == "") { wrongItems << "FoldButtonCheckedHover"; }
|
if(CardHolderRiver == "") { leftItems << "CardHolderRiver"; }
|
||||||
if(CheckCallButtonDefault == "") { wrongItems << "CheckCallButtonDefault"; }
|
if(FoldButtonDefault == "") { leftItems << "FoldButtonDefault"; }
|
||||||
if(CheckCallButtonHover == "") { wrongItems << "CheckCallButtonHover"; }
|
if(FoldButtonHover == "") { leftItems << "FoldButtonHover"; }
|
||||||
if(CheckCallButtonChecked == "") { wrongItems << "CheckCallButtonChecked"; }
|
if(FoldButtonChecked == "") { leftItems << "FoldButtonChecked"; }
|
||||||
if(CheckCallButtonCheckedHover == "") { wrongItems << "CheckCallButtonCheckedHover"; }
|
if(FoldButtonCheckedHover == "") { leftItems << "FoldButtonCheckedHover"; }
|
||||||
if(BetRaiseButtonDefault == "") { wrongItems << "BetRaiseButtonDefault"; }
|
if(CheckCallButtonDefault == "") { leftItems << "CheckCallButtonDefault"; }
|
||||||
if(BetRaiseButtonHover == "") { wrongItems << "BetRaiseButtonHover"; }
|
if(CheckCallButtonHover == "") { leftItems << "CheckCallButtonHover"; }
|
||||||
if(BetRaiseButtonChecked == "") { wrongItems << "BetRaiseButtonChecked"; }
|
if(CheckCallButtonChecked == "") { leftItems << "CheckCallButtonChecked"; }
|
||||||
if(BetRaiseButtonCheckedHover == "") { wrongItems << "BetRaiseButtonCheckedHover"; }
|
if(CheckCallButtonCheckedHover == "") { leftItems << "CheckCallButtonCheckedHover"; }
|
||||||
if(AllInButtonDefault == "") { wrongItems << "AllInButtonDefault"; }
|
if(BetRaiseButtonDefault == "") { leftItems << "BetRaiseButtonDefault"; }
|
||||||
if(AllInButtonHover == "") { wrongItems << "AllInButtonHover"; }
|
if(BetRaiseButtonHover == "") { leftItems << "BetRaiseButtonHover"; }
|
||||||
if(AllInButtonChecked == "") { wrongItems << "AllInButtonChecked"; }
|
if(BetRaiseButtonChecked == "") { leftItems << "BetRaiseButtonChecked"; }
|
||||||
if(AllInButtonCheckedHover == "") { wrongItems << "AllInButtonCheckedHover"; }
|
if(BetRaiseButtonCheckedHover == "") { leftItems << "BetRaiseButtonCheckedHover"; }
|
||||||
if(RadioButtonPressed == "") { wrongItems << "RadioButtonPressed"; }
|
if(AllInButtonDefault == "") { leftItems << "AllInButtonDefault"; }
|
||||||
if(RadioButtonChecked == "") { wrongItems << "RadioButtonChecked"; }
|
if(AllInButtonHover == "") { leftItems << "AllInButtonHover"; }
|
||||||
if(RadioButtonCheckedHover == "") { wrongItems << "RadioButtonCheckedHover"; }
|
if(AllInButtonChecked == "") { leftItems << "AllInButtonChecked"; }
|
||||||
if(RadioButtonUnchecked == "") { wrongItems << "RadioButtonUnchecked"; }
|
if(AllInButtonCheckedHover == "") { leftItems << "AllInButtonCheckedHover"; }
|
||||||
if(RadioButtonUncheckedHover == "") { wrongItems << "RadioButtonUncheckedHover"; }
|
if(RadioButtonPressed == "") { leftItems << "RadioButtonPressed"; }
|
||||||
if(PlayerTopSeatActive == "") { wrongItems << "PlayerTopSeatActive"; }
|
if(RadioButtonChecked == "") { leftItems << "RadioButtonChecked"; }
|
||||||
if(PlayerTopSeatInactive == "") { wrongItems << "PlayerTopSeatInactive"; }
|
if(RadioButtonCheckedHover == "") { leftItems << "RadioButtonCheckedHover"; }
|
||||||
if(PlayerBottomSeatActive == "") { wrongItems << "PlayerBottomSeatActive"; }
|
if(RadioButtonUnchecked == "") { leftItems << "RadioButtonUnchecked"; }
|
||||||
if(PlayerBottomSeatInactive == "") { wrongItems << "PlayerBottomSeatInactive"; }
|
if(RadioButtonUncheckedHover == "") { leftItems << "RadioButtonUncheckedHover"; }
|
||||||
if(Table == "") { wrongItems << "Table"; }
|
if(PlayerTopSeatActive == "") { leftItems << "PlayerTopSeatActive"; }
|
||||||
if(HandRanking == "") { wrongItems << "HandRanking"; }
|
if(PlayerTopSeatInactive == "") { leftItems << "PlayerTopSeatInactive"; }
|
||||||
if(ToolBoxBackground == "") { wrongItems << "ToolBoxBackground"; }
|
if(PlayerBottomSeatActive == "") { leftItems << "PlayerBottomSeatActive"; }
|
||||||
|
if(PlayerBottomSeatInactive == "") { leftItems << "PlayerBottomSeatInactive"; }
|
||||||
|
if(Table == "") { leftItems << "Table"; }
|
||||||
|
if(HandRanking == "") { leftItems << "HandRanking"; }
|
||||||
|
if(ToolBoxBackground == "") { leftItems << "ToolBoxBackground"; }
|
||||||
// COLORS
|
// COLORS
|
||||||
if(FKeyIndicatorColor == "") { wrongItems << "FKeyIndicatorColor"; }
|
if(FKeyIndicatorColor == "") { leftItems << "FKeyIndicatorColor"; }
|
||||||
if(ChanceLabelPossibleColor == "") { wrongItems << "ChanceLabelPossibleColor"; }
|
if(ChanceLabelPossibleColor == "") { leftItems << "ChanceLabelPossibleColor"; }
|
||||||
if(ChanceLabelImpossibleColor == "") { wrongItems << "ChanceLabelImpossibleColor"; }
|
if(ChanceLabelImpossibleColor == "") { leftItems << "ChanceLabelImpossibleColor"; }
|
||||||
if(ChatLogTextColor == "") { wrongItems << "ChatLogTextColor"; }
|
if(ChatLogTextColor == "") { leftItems << "ChatLogTextColor"; }
|
||||||
if(ChatTextNickNotifyColor == "") { wrongItems << "ChatTextNickNotifyColor"; }
|
if(ChatTextNickNotifyColor == "") { leftItems << "ChatTextNickNotifyColor"; }
|
||||||
if(ChatLogBgColor == "") { wrongItems << "ChatLogBgColor"; }
|
if(ChatLogBgColor == "") { leftItems << "ChatLogBgColor"; }
|
||||||
if(ChatLogScrollBarBorderColor == "") { wrongItems << "ChatLogScrollBarBorderColor"; }
|
if(ChatLogScrollBarBorderColor == "") { leftItems << "ChatLogScrollBarBorderColor"; }
|
||||||
if(ChatLogScrollBarBgColor == "") { wrongItems << "ChatLogScrollBarBgColor"; }
|
if(ChatLogScrollBarBgColor == "") { leftItems << "ChatLogScrollBarBgColor"; }
|
||||||
if(ChatLogScrollBarHandleBorderColor == "") { wrongItems << "ChatLogScrollBarHandleBorderColor"; }
|
if(ChatLogScrollBarHandleBorderColor == "") { leftItems << "ChatLogScrollBarHandleBorderColor"; }
|
||||||
if(ChatLogScrollBarHandleBgColor == "") { wrongItems << "ChatLogScrollBarHandleBgColor"; }
|
if(ChatLogScrollBarHandleBgColor == "") { leftItems << "ChatLogScrollBarHandleBgColor"; }
|
||||||
if(ChatLogScrollBarArrowBorderColor == "") { wrongItems << "ChatLogScrollBarArrowBorderColor"; }
|
if(ChatLogScrollBarArrowBorderColor == "") { leftItems << "ChatLogScrollBarArrowBorderColor"; }
|
||||||
if(ChatLogScrollBarArrowBgColor == "") { wrongItems << "ChatLogScrollBarArrowBgColor"; }
|
if(ChatLogScrollBarArrowBgColor == "") { leftItems << "ChatLogScrollBarArrowBgColor"; }
|
||||||
if(LogWinnerMainPotColor == "") { wrongItems << "LogWinnerMainPotColor"; }
|
if(LogWinnerMainPotColor == "") { leftItems << "LogWinnerMainPotColor"; }
|
||||||
if(LogWinnerSidePotColor == "") { wrongItems << "LogWinnerSidePotColor"; }
|
if(LogWinnerSidePotColor == "") { leftItems << "LogWinnerSidePotColor"; }
|
||||||
if(LogPlayerSitsOutColor == "") { wrongItems << "LogPlayerSitsOutColor"; }
|
if(LogPlayerSitsOutColor == "") { leftItems << "LogPlayerSitsOutColor"; }
|
||||||
if(LogNewGameAdminColor == "") { wrongItems << "LogNewGameAdminColor"; }
|
if(LogNewGameAdminColor == "") { leftItems << "LogNewGameAdminColor"; }
|
||||||
if(TabWidgetBorderColor == "") { wrongItems << "TabWidgetBorderColor"; }
|
if(TabWidgetBorderColor == "") { leftItems << "TabWidgetBorderColor"; }
|
||||||
if(TabWidgetBgColor == "") { wrongItems << "TabWidgetBgColor"; }
|
if(TabWidgetBgColor == "") { leftItems << "TabWidgetBgColor"; }
|
||||||
if(TabWidgetTextColor == "") { wrongItems << "TabWidgetTextColor"; }
|
if(TabWidgetTextColor == "") { leftItems << "TabWidgetTextColor"; }
|
||||||
if(MenuBgColor == "") { wrongItems << "MenuBgColor"; }
|
if(MenuBgColor == "") { leftItems << "MenuBgColor"; }
|
||||||
if(MenuTextColor == "") { wrongItems << "MenuTextColor"; }
|
if(MenuTextColor == "") { leftItems << "MenuTextColor"; }
|
||||||
if(BreakLobbyButtonBgColor == "") { wrongItems << "BreakLobbyButtonBgColor"; }
|
if(BreakLobbyButtonBgColor == "") { leftItems << "BreakLobbyButtonBgColor"; }
|
||||||
if(BreakLobbyButtonTextColor == "") { wrongItems << "BreakLobbyButtonTextColor"; }
|
if(BreakLobbyButtonTextColor == "") { leftItems << "BreakLobbyButtonTextColor"; }
|
||||||
if(BreakLobbyButtonBgDisabledColor == "") { wrongItems << "BreakLobbyButtonBgDisabledColor"; }
|
if(BreakLobbyButtonBgDisabledColor == "") { leftItems << "BreakLobbyButtonBgDisabledColor"; }
|
||||||
if(BreakLobbyButtonTextDisabledColor == "") { wrongItems << "BreakLobbyButtonTextDisabledColor"; }
|
if(BreakLobbyButtonTextDisabledColor == "") { leftItems << "BreakLobbyButtonTextDisabledColor"; }
|
||||||
if(BreakLobbyButtonBgBlinkColor == "") { wrongItems << "BreakLobbyButtonBgBlinkColor"; }
|
if(BreakLobbyButtonBgBlinkColor == "") { leftItems << "BreakLobbyButtonBgBlinkColor"; }
|
||||||
if(BreakLobbyButtonTextBlinkColor == "") { wrongItems << "BreakLobbyButtonTextBlinkColor"; }
|
if(BreakLobbyButtonTextBlinkColor == "") { leftItems << "BreakLobbyButtonTextBlinkColor"; }
|
||||||
if(PlayerCashTextColor == "") { wrongItems << "PlayerCashTextColor"; }
|
if(PlayerCashTextColor == "") { leftItems << "PlayerCashTextColor"; }
|
||||||
if(PlayerBetTextColor == "") { wrongItems << "PlayerBetTextColor"; }
|
if(PlayerBetTextColor == "") { leftItems << "PlayerBetTextColor"; }
|
||||||
if(PlayerNickTextColor == "") { wrongItems << "PlayerNickTextColor"; }
|
if(PlayerNickTextColor == "") { leftItems << "PlayerNickTextColor"; }
|
||||||
if(BoardBigTextColor == "") { wrongItems << "BoardBigTextColor"; }
|
if(BoardBigTextColor == "") { leftItems << "BoardBigTextColor"; }
|
||||||
if(BoardSmallTextColor == "") { wrongItems << "BoardSmallTextColor"; }
|
if(BoardSmallTextColor == "") { leftItems << "BoardSmallTextColor"; }
|
||||||
if(SpeedTextColor == "") { wrongItems << "SpeedTextColor"; }
|
if(SpeedTextColor == "") { leftItems << "SpeedTextColor"; }
|
||||||
if(VoteButtonBgColor == "") { wrongItems << "VoteButtonBgColor"; }
|
if(VoteButtonBgColor == "") { leftItems << "VoteButtonBgColor"; }
|
||||||
if(VoteButtonTextColor == "") { wrongItems << "VoteButtonTextColor"; }
|
if(VoteButtonTextColor == "") { leftItems << "VoteButtonTextColor"; }
|
||||||
if(BetInputTextColor == "") { wrongItems << "BetInputTextColor"; }
|
if(BetInputTextColor == "") { leftItems << "BetInputTextColor"; }
|
||||||
if(BetInputBgColor == "") { wrongItems << "BetInputBgColor"; }
|
if(BetInputBgColor == "") { leftItems << "BetInputBgColor"; }
|
||||||
if(BetInputDisabledTextColor == "") { wrongItems << "BetInputDisabledTextColor"; }
|
if(BetInputDisabledTextColor == "") { leftItems << "BetInputDisabledTextColor"; }
|
||||||
if(BetInputDisabledBgColor == "") { wrongItems << "BetInputDisabledBgColor"; }
|
if(BetInputDisabledBgColor == "") { leftItems << "BetInputDisabledBgColor"; }
|
||||||
if(FoldButtonTextColor == "") { wrongItems << "FoldButtonTextColor"; }
|
if(FoldButtonTextColor == "") { leftItems << "FoldButtonTextColor"; }
|
||||||
if(FoldButtonCheckableTextColor == "") { wrongItems << "FoldButtonCheckableTextColor"; }
|
if(FoldButtonCheckableTextColor == "") { leftItems << "FoldButtonCheckableTextColor"; }
|
||||||
if(CheckCallButtonTextColor == "") { wrongItems << "CheckCallButtonTextColor"; }
|
if(CheckCallButtonTextColor == "") { leftItems << "CheckCallButtonTextColor"; }
|
||||||
if(CheckCallButtonCheckableTextColor == "") { wrongItems << "CheckCallButtonCheckableTextColor"; }
|
if(CheckCallButtonCheckableTextColor == "") { leftItems << "CheckCallButtonCheckableTextColor"; }
|
||||||
if(BetRaiseButtonTextColor == "") { wrongItems << "BetRaiseButtonTextColor"; }
|
if(BetRaiseButtonTextColor == "") { leftItems << "BetRaiseButtonTextColor"; }
|
||||||
if(BetRaiseButtonCheckableTextColor == "") { wrongItems << "BetRaiseButtonCheckableTextColor"; }
|
if(BetRaiseButtonCheckableTextColor == "") { leftItems << "BetRaiseButtonCheckableTextColor"; }
|
||||||
if(AllInButtonTextColor == "") { wrongItems << "AllInButtonTextColor"; }
|
if(AllInButtonTextColor == "") { leftItems << "AllInButtonTextColor"; }
|
||||||
if(AllInButtonCheckableTextColor == "") { wrongItems << "AllInButtonCheckableTextColor"; }
|
if(AllInButtonCheckableTextColor == "") { leftItems << "AllInButtonCheckableTextColor"; }
|
||||||
if(BetSpeedSliderGrooveBgColor == "") { wrongItems << "BetSpeedSliderGrooveBgColor"; }
|
if(BetSpeedSliderGrooveBgColor == "") { leftItems << "BetSpeedSliderGrooveBgColor"; }
|
||||||
if(BetSpeedSliderGrooveBorderColor == "") { wrongItems << "BetSpeedSliderGrooveBorderColor"; }
|
if(BetSpeedSliderGrooveBorderColor == "") { leftItems << "BetSpeedSliderGrooveBorderColor"; }
|
||||||
if(BetSpeedSliderHandleBgColor == "") { wrongItems << "BetSpeedSliderHandleBgColor"; }
|
if(BetSpeedSliderHandleBgColor == "") { leftItems << "BetSpeedSliderHandleBgColor"; }
|
||||||
if(BetSpeedSliderHandleBorderColor == "") { wrongItems << "BetSpeedSliderHandleBorderColor"; }
|
if(BetSpeedSliderHandleBorderColor == "") { leftItems << "BetSpeedSliderHandleBorderColor"; }
|
||||||
// SIZE
|
// SIZE
|
||||||
if(ChatLogTextSize == "") { wrongItems << "ChatLogTextSize"; }
|
if(ChatLogTextSize == "") { leftItems << "ChatLogTextSize"; }
|
||||||
|
|
||||||
//if one or more items are wrong or left show detailed error message
|
//if one or more items are left show detailed error message
|
||||||
if(!wrongItems.isEmpty() && myW != 0) showErrorMessage(StyleDescription, wrongItems, StyleMaintainerEMail);
|
if(!leftItems.isEmpty() && myW != 0) showLeftItemsErrorMessage(StyleDescription, leftItems, StyleMaintainerEMail);
|
||||||
|
//if one or more pictures where not found show detailed error message
|
||||||
|
if(!itemPicsLeft.isEmpty() && myW != 0) showItemPicsLeftErrorMessage(StyleDescription, itemPicsLeft, StyleMaintainerEMail);
|
||||||
}
|
}
|
||||||
else { qDebug() << "could not load game table style file: " << tinyFileName.c_str(); }
|
else { qDebug() << "could not load game table style file: " << tinyFileName.c_str(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameTableStyleReader::showErrorMessage(QString style, QStringList failedItems, QString email)
|
void GameTableStyleReader::showLeftItemsErrorMessage(QString style, QStringList failedItems, QString email)
|
||||||
{
|
{
|
||||||
QString items = failedItems.join(", ");
|
QString items = failedItems.join(", ");
|
||||||
|
|
||||||
QMessageBox::warning(myW, tr("Game Table Style Error"),
|
QMessageBox::warning(myW, tr("Game Table Style Error"),
|
||||||
tr("Selected game table style \"%1\" seems to be incomplete or defective. \nThe value(s) of \"%2\" is/are wrong or left. \n\nPlease contact the game table style builder %3.").arg(style).arg(items).arg(email),
|
tr("Current game table style \"%1\" seems to be incomplete or defective. \n\nThe value(s) of \"%2\" is/are left. \n\nPlease contact the game table style builder %3.").arg(style).arg(items).arg(email),
|
||||||
|
QMessageBox::Ok);
|
||||||
|
}
|
||||||
|
|
||||||
|
void GameTableStyleReader::showItemPicsLeftErrorMessage(QString style, QStringList picsLeft, QString email)
|
||||||
|
{
|
||||||
|
QString pics = picsLeft.join("\n");
|
||||||
|
|
||||||
|
QMessageBox::warning(myW, tr("Game Table Style Error"),
|
||||||
|
tr("One or more pictures from current game table style \"%1\" where not found: \n\n\"%2\" \n\nPlease contact the game table style builder %3.").arg(style).arg(pics).arg(email),
|
||||||
QMessageBox::Ok);
|
QMessageBox::Ok);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -465,19 +483,19 @@ QString GameTableStyleReader::getActionPic(int action)
|
|||||||
{
|
{
|
||||||
// 1 = fold, 2 = check, 3 = call, 4 = bet, 5 = raise, 6 = allin, 7 = winner
|
// 1 = fold, 2 = check, 3 = call, 4 = bet, 5 = raise, 6 = allin, 7 = winner
|
||||||
switch(action) {
|
switch(action) {
|
||||||
case 1: { return ActionFold; }
|
case 1: { return ActionFoldI18N; }
|
||||||
break;
|
break;
|
||||||
case 2: { return ActionCheck; }
|
case 2: { return ActionCheckI18N; }
|
||||||
break;
|
break;
|
||||||
case 3: { return ActionCall; }
|
case 3: { return ActionCallI18N; }
|
||||||
break;
|
break;
|
||||||
case 4: { return ActionBet; }
|
case 4: { return ActionBetI18N; }
|
||||||
break;
|
break;
|
||||||
case 5: { return ActionRaise; }
|
case 5: { return ActionRaiseI18N; }
|
||||||
break;
|
break;
|
||||||
case 6: { return ActionAllIn; }
|
case 6: { return ActionAllInI18N; }
|
||||||
break;
|
break;
|
||||||
case 7: { return ActionWinner; }
|
case 7: { return ActionWinnerI18N; }
|
||||||
break;
|
break;
|
||||||
default: return QString("");
|
default: return QString("");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,8 @@ public:
|
|||||||
|
|
||||||
void readStyleFile(QString);
|
void readStyleFile(QString);
|
||||||
|
|
||||||
void showErrorMessage(QString, QStringList, QString);
|
void showLeftItemsErrorMessage(QString, QStringList, QString);
|
||||||
|
void showItemPicsLeftErrorMessage(QString, QStringList, QString);
|
||||||
|
|
||||||
QString getStyleDescription() const { return StyleDescription; }
|
QString getStyleDescription() const { return StyleDescription; }
|
||||||
QString getCurrentFileName() const { return currentFileName; }
|
QString getCurrentFileName() const { return currentFileName; }
|
||||||
@@ -114,13 +115,13 @@ private:
|
|||||||
QString MaximumWindowHeight;
|
QString MaximumWindowHeight;
|
||||||
// PICS
|
// PICS
|
||||||
QString Preview;
|
QString Preview;
|
||||||
QString ActionAllIn;
|
QString ActionAllInI18N;
|
||||||
QString ActionRaise;
|
QString ActionRaiseI18N;
|
||||||
QString ActionBet;
|
QString ActionBetI18N;
|
||||||
QString ActionCall;
|
QString ActionCallI18N;
|
||||||
QString ActionCheck;
|
QString ActionCheckI18N;
|
||||||
QString ActionFold;
|
QString ActionFoldI18N;
|
||||||
QString ActionWinner;
|
QString ActionWinnerI18N;
|
||||||
QString BigBlindPuck;
|
QString BigBlindPuck;
|
||||||
QString SmallBlindPuck;
|
QString SmallBlindPuck;
|
||||||
QString DealerPuck;
|
QString DealerPuck;
|
||||||
@@ -229,8 +230,9 @@ private:
|
|||||||
QString currentFileName;
|
QString currentFileName;
|
||||||
QString currentDir;
|
QString currentDir;
|
||||||
|
|
||||||
QStringList wrongItems;
|
QStringList leftItems;
|
||||||
|
QStringList itemPicsLeft;
|
||||||
|
|
||||||
ConfigFile *myConfig;
|
ConfigFile *myConfig;
|
||||||
gameTableImpl *myW;
|
gameTableImpl *myW;
|
||||||
|
|
||||||
|
|||||||