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" />
|
||||
<MaximumWindowWidth value="1980" />
|
||||
<MaximumWindowHeight value="1200" />
|
||||
<ActionAllIn value="action_allin.png" />
|
||||
<ActionRaise value="action_raise.png" />
|
||||
<ActionBet value="action_bet.png" />
|
||||
<ActionCall value="action_call.png" />
|
||||
<ActionCheck value="action_check.png" />
|
||||
<ActionFold value="action_fold.png" />
|
||||
<ActionWinner value="action_winner.png" />
|
||||
<ActionAllInI18N value="action_allin.png" />
|
||||
<ActionRaiseI18N value="action_raise.png" />
|
||||
<ActionBetI18N value="action_bet.png" />
|
||||
<ActionCallI18N value="action_call.png" />
|
||||
<ActionCheckI18N value="action_check.png" />
|
||||
<ActionFoldI18N value="action_fold.png" />
|
||||
<ActionWinnerI18N value="action_winner.png" />
|
||||
<BigBlindPuck value="bigblindPuck.png" />
|
||||
<SmallBlindPuck value="smallblindPuck.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 -->
|
||||
|
||||
<!-- 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] -->
|
||||
<SmallBlindPuck value="smallblindPuck.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] -->
|
||||
<ToolBoxBackground value="toolboxbg.png" /> <!-- minimal size width:height in px [260:188] -->
|
||||
<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 "#" -->
|
||||
<FKeyIndicatorColor value="FFFFFF" />
|
||||
<ChanceLabelPossibleColor value="9CD500" />
|
||||
|
||||
@@ -48,7 +48,7 @@ ConfigFile::ConfigFile(char *argv0, bool readonly) : noWriteAccess(readonly)
|
||||
myQtToolsInterface = CreateQtToolsWrapper();
|
||||
|
||||
// !!!! Revisionsnummer der Configdefaults !!!!!
|
||||
configRev = 64;
|
||||
configRev = 65;
|
||||
|
||||
//standard defaults
|
||||
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("ShowBlindButtons", 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("AlternateFKeysUserActionMode", CONFIG_TYPE_INT, "0"));
|
||||
configList.push_back(ConfigInfo("EnableBetInputFocusSwitch", CONFIG_TYPE_INT, "0"));
|
||||
|
||||
@@ -212,13 +212,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</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" >
|
||||
<widget class="QCheckBox" name="checkBox_showFlipCardsAnimation" >
|
||||
<property name="text" >
|
||||
@@ -240,6 +233,20 @@
|
||||
</property>
|
||||
</widget>
|
||||
</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>
|
||||
</item>
|
||||
<item row="4" column="0" >
|
||||
@@ -3399,7 +3406,6 @@ p, li { white-space: pre-wrap; }
|
||||
<tabstop>checkBox_showRightToolbox</tabstop>
|
||||
<tabstop>checkBox_showFadeOutCardsAnimation</tabstop>
|
||||
<tabstop>checkBox_alternateFKeysUserActionMode</tabstop>
|
||||
<tabstop>checkBox_showBlindButtons</tabstop>
|
||||
<tabstop>checkBox_enableBetInputFocusSwitch</tabstop>
|
||||
<tabstop>radioButton_flipsideTux</tabstop>
|
||||
<tabstop>radioButton_flipsideOwn</tabstop>
|
||||
|
||||
@@ -228,6 +228,7 @@ void settingsDialogImpl::exec() {
|
||||
checkBox_alternateFKeysUserActionMode->setChecked(myConfig->readConfigInt("AlternateFKeysUserActionMode"));
|
||||
checkBox_enableBetInputFocusSwitch->setChecked(myConfig->readConfigInt("EnableBetInputFocusSwitch"));
|
||||
checkBox_cardsChanceMonitor->setChecked(myConfig->readConfigInt("ShowCardsChanceMonitor"));
|
||||
checkBox_dontTranslatePokerStrings->setChecked(myConfig->readConfigInt("DontTranslateInternationalPokerStringsFromStyle"));
|
||||
|
||||
radioButton_flipsideTux->setChecked(myConfig->readConfigInt("FlipsideTux"));
|
||||
radioButton_flipsideOwn->setChecked(myConfig->readConfigInt("FlipsideOwn"));
|
||||
@@ -513,6 +514,7 @@ void settingsDialogImpl::isAccepted() {
|
||||
myConfig->writeConfigInt("ShowCardsChanceMonitor", checkBox_cardsChanceMonitor->isChecked());
|
||||
myConfig->writeConfigInt("AntiPeekMode", checkBox_antiPeekMode->isChecked());
|
||||
myConfig->writeConfigInt("AlternateFKeysUserActionMode", checkBox_alternateFKeysUserActionMode->isChecked());
|
||||
myConfig->writeConfigInt("DontTranslateInternationalPokerStringsFromStyle", checkBox_dontTranslatePokerStrings->isChecked());
|
||||
myConfig->writeConfigInt("EnableBetInputFocusSwitch", checkBox_enableBetInputFocusSwitch->isChecked());
|
||||
myConfig->writeConfigInt("FlipsideTux", radioButton_flipsideTux->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()); }
|
||||
// PICS
|
||||
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() == "ActionRaise") { ActionRaise = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||
else if (itemsList->ValueStr() == "ActionBet") { ActionBet = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||
else if (itemsList->ValueStr() == "ActionCall") { ActionCall = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||
else if (itemsList->ValueStr() == "ActionCheck") { ActionCheck = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||
else if (itemsList->ValueStr() == "ActionFold") { ActionFold = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||
else if (itemsList->ValueStr() == "ActionWinner") { ActionWinner = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||
else if (itemsList->ValueStr() == "ActionAllInI18N") { ActionAllInI18N = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||
else if (itemsList->ValueStr() == "ActionRaiseI18N") { ActionRaiseI18N = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||
else if (itemsList->ValueStr() == "ActionBetI18N") { ActionBetI18N = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||
else if (itemsList->ValueStr() == "ActionCallI18N") { ActionCallI18N = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||
else if (itemsList->ValueStr() == "ActionCheckI18N") { ActionCheckI18N = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||
else if (itemsList->ValueStr() == "ActionFoldI18N") { ActionFoldI18N = 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() == "SmallBlindPuck") { SmallBlindPuck = 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;
|
||||
}
|
||||
}
|
||||
wrongItems.clear();
|
||||
|
||||
//check if style items are left and if pictures where not found and show warning
|
||||
leftItems.clear();
|
||||
itemPicsLeft.clear();
|
||||
|
||||
// INFOS
|
||||
if(StyleDescription == "") { wrongItems << "StyleDescription"; }
|
||||
if(StyleDescription == "") { leftItems << "StyleDescription"; }
|
||||
// WINDOWS SETTINGS
|
||||
if(IfFixedWindowSize == "") { wrongItems << "IfFixedWindowSize"; }
|
||||
if(FixedWindowWidth == "") { wrongItems << "FixedWindowWidth"; }
|
||||
if(FixedWindowHeight == "") { wrongItems << "FixedWindowHeight"; }
|
||||
if(MinimumWindowWidth == "") { wrongItems << "MinimumWindowWidth"; }
|
||||
if(MinimumWindowHeight == "") { wrongItems << "MinimumWindowHeight"; }
|
||||
if(MaximumWindowWidth == "") { wrongItems << "MaximumWindowWidth"; }
|
||||
if(MaximumWindowHeight == "") { wrongItems << "MaximumWindowHeight"; }
|
||||
if(IfFixedWindowSize == "") { leftItems << "IfFixedWindowSize"; }
|
||||
if(FixedWindowWidth == "") { leftItems << "FixedWindowWidth"; }
|
||||
if(FixedWindowHeight == "") { leftItems << "FixedWindowHeight"; }
|
||||
if(MinimumWindowWidth == "") { leftItems << "MinimumWindowWidth"; }
|
||||
if(MinimumWindowHeight == "") { leftItems << "MinimumWindowHeight"; }
|
||||
if(MaximumWindowWidth == "") { leftItems << "MaximumWindowWidth"; }
|
||||
if(MaximumWindowHeight == "") { leftItems << "MaximumWindowHeight"; }
|
||||
// PICS
|
||||
if(ActionAllIn == "") { wrongItems << "ActionAllIn"; }
|
||||
if(ActionRaise == "") { wrongItems << "ActionRaise"; }
|
||||
if(ActionBet == "") { wrongItems << "ActionBet"; }
|
||||
if(ActionCall == "") { wrongItems << "ActionCall"; }
|
||||
if(ActionCheck == "") { wrongItems << "ActionCheck"; }
|
||||
if(ActionFold == "") { wrongItems << "ActionFold"; }
|
||||
if(ActionWinner == "") { wrongItems << "ActionWinner"; }
|
||||
if(BigBlindPuck == "") { wrongItems << "BigBlindPuck"; }
|
||||
if(SmallBlindPuck == "") { wrongItems << "SmallBlindPuck"; }
|
||||
if(DealerPuck == "") { wrongItems << "DealerPuck"; }
|
||||
if(DefaultAvatar == "") { wrongItems << "DefaultAvatar"; }
|
||||
if(CardHolderFlop == "") { wrongItems << "CardHolderFlop"; }
|
||||
if(CardHolderTurn == "") { wrongItems << "CardHolderTurn"; }
|
||||
if(CardHolderRiver == "") { wrongItems << "CardHolderRiver"; }
|
||||
if(FoldButtonDefault == "") { wrongItems << "FoldButtonDefault"; }
|
||||
if(FoldButtonHover == "") { wrongItems << "FoldButtonHover"; }
|
||||
if(FoldButtonChecked == "") { wrongItems << "FoldButtonChecked"; }
|
||||
if(FoldButtonCheckedHover == "") { wrongItems << "FoldButtonCheckedHover"; }
|
||||
if(CheckCallButtonDefault == "") { wrongItems << "CheckCallButtonDefault"; }
|
||||
if(CheckCallButtonHover == "") { wrongItems << "CheckCallButtonHover"; }
|
||||
if(CheckCallButtonChecked == "") { wrongItems << "CheckCallButtonChecked"; }
|
||||
if(CheckCallButtonCheckedHover == "") { wrongItems << "CheckCallButtonCheckedHover"; }
|
||||
if(BetRaiseButtonDefault == "") { wrongItems << "BetRaiseButtonDefault"; }
|
||||
if(BetRaiseButtonHover == "") { wrongItems << "BetRaiseButtonHover"; }
|
||||
if(BetRaiseButtonChecked == "") { wrongItems << "BetRaiseButtonChecked"; }
|
||||
if(BetRaiseButtonCheckedHover == "") { wrongItems << "BetRaiseButtonCheckedHover"; }
|
||||
if(AllInButtonDefault == "") { wrongItems << "AllInButtonDefault"; }
|
||||
if(AllInButtonHover == "") { wrongItems << "AllInButtonHover"; }
|
||||
if(AllInButtonChecked == "") { wrongItems << "AllInButtonChecked"; }
|
||||
if(AllInButtonCheckedHover == "") { wrongItems << "AllInButtonCheckedHover"; }
|
||||
if(RadioButtonPressed == "") { wrongItems << "RadioButtonPressed"; }
|
||||
if(RadioButtonChecked == "") { wrongItems << "RadioButtonChecked"; }
|
||||
if(RadioButtonCheckedHover == "") { wrongItems << "RadioButtonCheckedHover"; }
|
||||
if(RadioButtonUnchecked == "") { wrongItems << "RadioButtonUnchecked"; }
|
||||
if(RadioButtonUncheckedHover == "") { wrongItems << "RadioButtonUncheckedHover"; }
|
||||
if(PlayerTopSeatActive == "") { wrongItems << "PlayerTopSeatActive"; }
|
||||
if(PlayerTopSeatInactive == "") { wrongItems << "PlayerTopSeatInactive"; }
|
||||
if(PlayerBottomSeatActive == "") { wrongItems << "PlayerBottomSeatActive"; }
|
||||
if(PlayerBottomSeatInactive == "") { wrongItems << "PlayerBottomSeatInactive"; }
|
||||
if(Table == "") { wrongItems << "Table"; }
|
||||
if(HandRanking == "") { wrongItems << "HandRanking"; }
|
||||
if(ToolBoxBackground == "") { wrongItems << "ToolBoxBackground"; }
|
||||
if(ActionAllInI18N == "") { leftItems << "ActionAllInI18N"; }
|
||||
else if(ActionAllInI18N != QString(currentDir+"NULL") && !QFile(ActionAllInI18N).exists()) { itemPicsLeft << "ActionAllInI18N = "+ActionAllInI18N; }
|
||||
if(ActionRaiseI18N == "") { leftItems << "ActionRaiseI18N"; }
|
||||
else if(ActionRaiseI18N != QString(currentDir+"NULL") && !QFile(ActionRaiseI18N).exists()) { itemPicsLeft << "ActionRaiseI18N = "+ActionRaiseI18N; }
|
||||
if(ActionBetI18N == "") { leftItems << "ActionBetI18N"; }
|
||||
else if(ActionBetI18N != QString(currentDir+"NULL") && !QFile(ActionBetI18N).exists()) { itemPicsLeft << "ActionBetI18N = "+ActionBetI18N; }
|
||||
if(ActionCallI18N == "") { leftItems << "ActionCallI18N"; }
|
||||
else if(ActionCallI18N != QString(currentDir+"NULL") && !QFile(ActionCallI18N).exists()) { itemPicsLeft << "ActionCallI18N = "+ActionCallI18N; }
|
||||
if(ActionCheckI18N == "") { leftItems << "ActionCheckI18N"; }
|
||||
if(ActionFoldI18N == "") { leftItems << "ActionFoldI18N"; }
|
||||
if(ActionWinnerI18N == "") { leftItems << "ActionWinnerI18N"; }
|
||||
if(BigBlindPuck == "") { leftItems << "BigBlindPuck"; }
|
||||
if(SmallBlindPuck == "") { leftItems << "SmallBlindPuck"; }
|
||||
if(DealerPuck == "") { leftItems << "DealerPuck"; }
|
||||
if(DefaultAvatar == "") { leftItems << "DefaultAvatar"; }
|
||||
if(CardHolderFlop == "") { leftItems << "CardHolderFlop"; }
|
||||
if(CardHolderTurn == "") { leftItems << "CardHolderTurn"; }
|
||||
if(CardHolderRiver == "") { leftItems << "CardHolderRiver"; }
|
||||
if(FoldButtonDefault == "") { leftItems << "FoldButtonDefault"; }
|
||||
if(FoldButtonHover == "") { leftItems << "FoldButtonHover"; }
|
||||
if(FoldButtonChecked == "") { leftItems << "FoldButtonChecked"; }
|
||||
if(FoldButtonCheckedHover == "") { leftItems << "FoldButtonCheckedHover"; }
|
||||
if(CheckCallButtonDefault == "") { leftItems << "CheckCallButtonDefault"; }
|
||||
if(CheckCallButtonHover == "") { leftItems << "CheckCallButtonHover"; }
|
||||
if(CheckCallButtonChecked == "") { leftItems << "CheckCallButtonChecked"; }
|
||||
if(CheckCallButtonCheckedHover == "") { leftItems << "CheckCallButtonCheckedHover"; }
|
||||
if(BetRaiseButtonDefault == "") { leftItems << "BetRaiseButtonDefault"; }
|
||||
if(BetRaiseButtonHover == "") { leftItems << "BetRaiseButtonHover"; }
|
||||
if(BetRaiseButtonChecked == "") { leftItems << "BetRaiseButtonChecked"; }
|
||||
if(BetRaiseButtonCheckedHover == "") { leftItems << "BetRaiseButtonCheckedHover"; }
|
||||
if(AllInButtonDefault == "") { leftItems << "AllInButtonDefault"; }
|
||||
if(AllInButtonHover == "") { leftItems << "AllInButtonHover"; }
|
||||
if(AllInButtonChecked == "") { leftItems << "AllInButtonChecked"; }
|
||||
if(AllInButtonCheckedHover == "") { leftItems << "AllInButtonCheckedHover"; }
|
||||
if(RadioButtonPressed == "") { leftItems << "RadioButtonPressed"; }
|
||||
if(RadioButtonChecked == "") { leftItems << "RadioButtonChecked"; }
|
||||
if(RadioButtonCheckedHover == "") { leftItems << "RadioButtonCheckedHover"; }
|
||||
if(RadioButtonUnchecked == "") { leftItems << "RadioButtonUnchecked"; }
|
||||
if(RadioButtonUncheckedHover == "") { leftItems << "RadioButtonUncheckedHover"; }
|
||||
if(PlayerTopSeatActive == "") { leftItems << "PlayerTopSeatActive"; }
|
||||
if(PlayerTopSeatInactive == "") { leftItems << "PlayerTopSeatInactive"; }
|
||||
if(PlayerBottomSeatActive == "") { leftItems << "PlayerBottomSeatActive"; }
|
||||
if(PlayerBottomSeatInactive == "") { leftItems << "PlayerBottomSeatInactive"; }
|
||||
if(Table == "") { leftItems << "Table"; }
|
||||
if(HandRanking == "") { leftItems << "HandRanking"; }
|
||||
if(ToolBoxBackground == "") { leftItems << "ToolBoxBackground"; }
|
||||
// COLORS
|
||||
if(FKeyIndicatorColor == "") { wrongItems << "FKeyIndicatorColor"; }
|
||||
if(ChanceLabelPossibleColor == "") { wrongItems << "ChanceLabelPossibleColor"; }
|
||||
if(ChanceLabelImpossibleColor == "") { wrongItems << "ChanceLabelImpossibleColor"; }
|
||||
if(ChatLogTextColor == "") { wrongItems << "ChatLogTextColor"; }
|
||||
if(ChatTextNickNotifyColor == "") { wrongItems << "ChatTextNickNotifyColor"; }
|
||||
if(ChatLogBgColor == "") { wrongItems << "ChatLogBgColor"; }
|
||||
if(ChatLogScrollBarBorderColor == "") { wrongItems << "ChatLogScrollBarBorderColor"; }
|
||||
if(ChatLogScrollBarBgColor == "") { wrongItems << "ChatLogScrollBarBgColor"; }
|
||||
if(ChatLogScrollBarHandleBorderColor == "") { wrongItems << "ChatLogScrollBarHandleBorderColor"; }
|
||||
if(ChatLogScrollBarHandleBgColor == "") { wrongItems << "ChatLogScrollBarHandleBgColor"; }
|
||||
if(ChatLogScrollBarArrowBorderColor == "") { wrongItems << "ChatLogScrollBarArrowBorderColor"; }
|
||||
if(ChatLogScrollBarArrowBgColor == "") { wrongItems << "ChatLogScrollBarArrowBgColor"; }
|
||||
if(LogWinnerMainPotColor == "") { wrongItems << "LogWinnerMainPotColor"; }
|
||||
if(LogWinnerSidePotColor == "") { wrongItems << "LogWinnerSidePotColor"; }
|
||||
if(LogPlayerSitsOutColor == "") { wrongItems << "LogPlayerSitsOutColor"; }
|
||||
if(LogNewGameAdminColor == "") { wrongItems << "LogNewGameAdminColor"; }
|
||||
if(TabWidgetBorderColor == "") { wrongItems << "TabWidgetBorderColor"; }
|
||||
if(TabWidgetBgColor == "") { wrongItems << "TabWidgetBgColor"; }
|
||||
if(TabWidgetTextColor == "") { wrongItems << "TabWidgetTextColor"; }
|
||||
if(MenuBgColor == "") { wrongItems << "MenuBgColor"; }
|
||||
if(MenuTextColor == "") { wrongItems << "MenuTextColor"; }
|
||||
if(BreakLobbyButtonBgColor == "") { wrongItems << "BreakLobbyButtonBgColor"; }
|
||||
if(BreakLobbyButtonTextColor == "") { wrongItems << "BreakLobbyButtonTextColor"; }
|
||||
if(BreakLobbyButtonBgDisabledColor == "") { wrongItems << "BreakLobbyButtonBgDisabledColor"; }
|
||||
if(BreakLobbyButtonTextDisabledColor == "") { wrongItems << "BreakLobbyButtonTextDisabledColor"; }
|
||||
if(BreakLobbyButtonBgBlinkColor == "") { wrongItems << "BreakLobbyButtonBgBlinkColor"; }
|
||||
if(BreakLobbyButtonTextBlinkColor == "") { wrongItems << "BreakLobbyButtonTextBlinkColor"; }
|
||||
if(PlayerCashTextColor == "") { wrongItems << "PlayerCashTextColor"; }
|
||||
if(PlayerBetTextColor == "") { wrongItems << "PlayerBetTextColor"; }
|
||||
if(PlayerNickTextColor == "") { wrongItems << "PlayerNickTextColor"; }
|
||||
if(BoardBigTextColor == "") { wrongItems << "BoardBigTextColor"; }
|
||||
if(BoardSmallTextColor == "") { wrongItems << "BoardSmallTextColor"; }
|
||||
if(SpeedTextColor == "") { wrongItems << "SpeedTextColor"; }
|
||||
if(VoteButtonBgColor == "") { wrongItems << "VoteButtonBgColor"; }
|
||||
if(VoteButtonTextColor == "") { wrongItems << "VoteButtonTextColor"; }
|
||||
if(BetInputTextColor == "") { wrongItems << "BetInputTextColor"; }
|
||||
if(BetInputBgColor == "") { wrongItems << "BetInputBgColor"; }
|
||||
if(BetInputDisabledTextColor == "") { wrongItems << "BetInputDisabledTextColor"; }
|
||||
if(BetInputDisabledBgColor == "") { wrongItems << "BetInputDisabledBgColor"; }
|
||||
if(FoldButtonTextColor == "") { wrongItems << "FoldButtonTextColor"; }
|
||||
if(FoldButtonCheckableTextColor == "") { wrongItems << "FoldButtonCheckableTextColor"; }
|
||||
if(CheckCallButtonTextColor == "") { wrongItems << "CheckCallButtonTextColor"; }
|
||||
if(CheckCallButtonCheckableTextColor == "") { wrongItems << "CheckCallButtonCheckableTextColor"; }
|
||||
if(BetRaiseButtonTextColor == "") { wrongItems << "BetRaiseButtonTextColor"; }
|
||||
if(BetRaiseButtonCheckableTextColor == "") { wrongItems << "BetRaiseButtonCheckableTextColor"; }
|
||||
if(AllInButtonTextColor == "") { wrongItems << "AllInButtonTextColor"; }
|
||||
if(AllInButtonCheckableTextColor == "") { wrongItems << "AllInButtonCheckableTextColor"; }
|
||||
if(BetSpeedSliderGrooveBgColor == "") { wrongItems << "BetSpeedSliderGrooveBgColor"; }
|
||||
if(BetSpeedSliderGrooveBorderColor == "") { wrongItems << "BetSpeedSliderGrooveBorderColor"; }
|
||||
if(BetSpeedSliderHandleBgColor == "") { wrongItems << "BetSpeedSliderHandleBgColor"; }
|
||||
if(BetSpeedSliderHandleBorderColor == "") { wrongItems << "BetSpeedSliderHandleBorderColor"; }
|
||||
if(FKeyIndicatorColor == "") { leftItems << "FKeyIndicatorColor"; }
|
||||
if(ChanceLabelPossibleColor == "") { leftItems << "ChanceLabelPossibleColor"; }
|
||||
if(ChanceLabelImpossibleColor == "") { leftItems << "ChanceLabelImpossibleColor"; }
|
||||
if(ChatLogTextColor == "") { leftItems << "ChatLogTextColor"; }
|
||||
if(ChatTextNickNotifyColor == "") { leftItems << "ChatTextNickNotifyColor"; }
|
||||
if(ChatLogBgColor == "") { leftItems << "ChatLogBgColor"; }
|
||||
if(ChatLogScrollBarBorderColor == "") { leftItems << "ChatLogScrollBarBorderColor"; }
|
||||
if(ChatLogScrollBarBgColor == "") { leftItems << "ChatLogScrollBarBgColor"; }
|
||||
if(ChatLogScrollBarHandleBorderColor == "") { leftItems << "ChatLogScrollBarHandleBorderColor"; }
|
||||
if(ChatLogScrollBarHandleBgColor == "") { leftItems << "ChatLogScrollBarHandleBgColor"; }
|
||||
if(ChatLogScrollBarArrowBorderColor == "") { leftItems << "ChatLogScrollBarArrowBorderColor"; }
|
||||
if(ChatLogScrollBarArrowBgColor == "") { leftItems << "ChatLogScrollBarArrowBgColor"; }
|
||||
if(LogWinnerMainPotColor == "") { leftItems << "LogWinnerMainPotColor"; }
|
||||
if(LogWinnerSidePotColor == "") { leftItems << "LogWinnerSidePotColor"; }
|
||||
if(LogPlayerSitsOutColor == "") { leftItems << "LogPlayerSitsOutColor"; }
|
||||
if(LogNewGameAdminColor == "") { leftItems << "LogNewGameAdminColor"; }
|
||||
if(TabWidgetBorderColor == "") { leftItems << "TabWidgetBorderColor"; }
|
||||
if(TabWidgetBgColor == "") { leftItems << "TabWidgetBgColor"; }
|
||||
if(TabWidgetTextColor == "") { leftItems << "TabWidgetTextColor"; }
|
||||
if(MenuBgColor == "") { leftItems << "MenuBgColor"; }
|
||||
if(MenuTextColor == "") { leftItems << "MenuTextColor"; }
|
||||
if(BreakLobbyButtonBgColor == "") { leftItems << "BreakLobbyButtonBgColor"; }
|
||||
if(BreakLobbyButtonTextColor == "") { leftItems << "BreakLobbyButtonTextColor"; }
|
||||
if(BreakLobbyButtonBgDisabledColor == "") { leftItems << "BreakLobbyButtonBgDisabledColor"; }
|
||||
if(BreakLobbyButtonTextDisabledColor == "") { leftItems << "BreakLobbyButtonTextDisabledColor"; }
|
||||
if(BreakLobbyButtonBgBlinkColor == "") { leftItems << "BreakLobbyButtonBgBlinkColor"; }
|
||||
if(BreakLobbyButtonTextBlinkColor == "") { leftItems << "BreakLobbyButtonTextBlinkColor"; }
|
||||
if(PlayerCashTextColor == "") { leftItems << "PlayerCashTextColor"; }
|
||||
if(PlayerBetTextColor == "") { leftItems << "PlayerBetTextColor"; }
|
||||
if(PlayerNickTextColor == "") { leftItems << "PlayerNickTextColor"; }
|
||||
if(BoardBigTextColor == "") { leftItems << "BoardBigTextColor"; }
|
||||
if(BoardSmallTextColor == "") { leftItems << "BoardSmallTextColor"; }
|
||||
if(SpeedTextColor == "") { leftItems << "SpeedTextColor"; }
|
||||
if(VoteButtonBgColor == "") { leftItems << "VoteButtonBgColor"; }
|
||||
if(VoteButtonTextColor == "") { leftItems << "VoteButtonTextColor"; }
|
||||
if(BetInputTextColor == "") { leftItems << "BetInputTextColor"; }
|
||||
if(BetInputBgColor == "") { leftItems << "BetInputBgColor"; }
|
||||
if(BetInputDisabledTextColor == "") { leftItems << "BetInputDisabledTextColor"; }
|
||||
if(BetInputDisabledBgColor == "") { leftItems << "BetInputDisabledBgColor"; }
|
||||
if(FoldButtonTextColor == "") { leftItems << "FoldButtonTextColor"; }
|
||||
if(FoldButtonCheckableTextColor == "") { leftItems << "FoldButtonCheckableTextColor"; }
|
||||
if(CheckCallButtonTextColor == "") { leftItems << "CheckCallButtonTextColor"; }
|
||||
if(CheckCallButtonCheckableTextColor == "") { leftItems << "CheckCallButtonCheckableTextColor"; }
|
||||
if(BetRaiseButtonTextColor == "") { leftItems << "BetRaiseButtonTextColor"; }
|
||||
if(BetRaiseButtonCheckableTextColor == "") { leftItems << "BetRaiseButtonCheckableTextColor"; }
|
||||
if(AllInButtonTextColor == "") { leftItems << "AllInButtonTextColor"; }
|
||||
if(AllInButtonCheckableTextColor == "") { leftItems << "AllInButtonCheckableTextColor"; }
|
||||
if(BetSpeedSliderGrooveBgColor == "") { leftItems << "BetSpeedSliderGrooveBgColor"; }
|
||||
if(BetSpeedSliderGrooveBorderColor == "") { leftItems << "BetSpeedSliderGrooveBorderColor"; }
|
||||
if(BetSpeedSliderHandleBgColor == "") { leftItems << "BetSpeedSliderHandleBgColor"; }
|
||||
if(BetSpeedSliderHandleBorderColor == "") { leftItems << "BetSpeedSliderHandleBorderColor"; }
|
||||
// SIZE
|
||||
if(ChatLogTextSize == "") { wrongItems << "ChatLogTextSize"; }
|
||||
if(ChatLogTextSize == "") { leftItems << "ChatLogTextSize"; }
|
||||
|
||||
//if one or more items are wrong or left show detailed error message
|
||||
if(!wrongItems.isEmpty() && myW != 0) showErrorMessage(StyleDescription, wrongItems, StyleMaintainerEMail);
|
||||
//if one or more items are left show detailed error message
|
||||
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(); }
|
||||
}
|
||||
|
||||
void GameTableStyleReader::showErrorMessage(QString style, QStringList failedItems, QString email)
|
||||
void GameTableStyleReader::showLeftItemsErrorMessage(QString style, QStringList failedItems, QString email)
|
||||
{
|
||||
QString items = failedItems.join(", ");
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -465,19 +483,19 @@ QString GameTableStyleReader::getActionPic(int action)
|
||||
{
|
||||
// 1 = fold, 2 = check, 3 = call, 4 = bet, 5 = raise, 6 = allin, 7 = winner
|
||||
switch(action) {
|
||||
case 1: { return ActionFold; }
|
||||
case 1: { return ActionFoldI18N; }
|
||||
break;
|
||||
case 2: { return ActionCheck; }
|
||||
case 2: { return ActionCheckI18N; }
|
||||
break;
|
||||
case 3: { return ActionCall; }
|
||||
case 3: { return ActionCallI18N; }
|
||||
break;
|
||||
case 4: { return ActionBet; }
|
||||
case 4: { return ActionBetI18N; }
|
||||
break;
|
||||
case 5: { return ActionRaise; }
|
||||
case 5: { return ActionRaiseI18N; }
|
||||
break;
|
||||
case 6: { return ActionAllIn; }
|
||||
case 6: { return ActionAllInI18N; }
|
||||
break;
|
||||
case 7: { return ActionWinner; }
|
||||
case 7: { return ActionWinnerI18N; }
|
||||
break;
|
||||
default: return QString("");
|
||||
}
|
||||
|
||||
@@ -37,7 +37,8 @@ public:
|
||||
|
||||
void readStyleFile(QString);
|
||||
|
||||
void showErrorMessage(QString, QStringList, QString);
|
||||
void showLeftItemsErrorMessage(QString, QStringList, QString);
|
||||
void showItemPicsLeftErrorMessage(QString, QStringList, QString);
|
||||
|
||||
QString getStyleDescription() const { return StyleDescription; }
|
||||
QString getCurrentFileName() const { return currentFileName; }
|
||||
@@ -114,13 +115,13 @@ private:
|
||||
QString MaximumWindowHeight;
|
||||
// PICS
|
||||
QString Preview;
|
||||
QString ActionAllIn;
|
||||
QString ActionRaise;
|
||||
QString ActionBet;
|
||||
QString ActionCall;
|
||||
QString ActionCheck;
|
||||
QString ActionFold;
|
||||
QString ActionWinner;
|
||||
QString ActionAllInI18N;
|
||||
QString ActionRaiseI18N;
|
||||
QString ActionBetI18N;
|
||||
QString ActionCallI18N;
|
||||
QString ActionCheckI18N;
|
||||
QString ActionFoldI18N;
|
||||
QString ActionWinnerI18N;
|
||||
QString BigBlindPuck;
|
||||
QString SmallBlindPuck;
|
||||
QString DealerPuck;
|
||||
@@ -229,8 +230,9 @@ private:
|
||||
QString currentFileName;
|
||||
QString currentDir;
|
||||
|
||||
QStringList wrongItems;
|
||||
|
||||
QStringList leftItems;
|
||||
QStringList itemPicsLeft;
|
||||
|
||||
ConfigFile *myConfig;
|
||||
gameTableImpl *myW;
|
||||
|
||||
|
||||