extendet error handling for game table styles. every missing field or picture will be filled up by default style.
This commit is contained in:
+61
-53
@@ -39,99 +39,107 @@
|
||||
#define POKERTH_CD_STYLE_FILE_VERSION 1
|
||||
|
||||
enum ServerMode {
|
||||
SERVER_MODE_LAN,
|
||||
SERVER_MODE_INTERNET_NOAUTH,
|
||||
SERVER_MODE_INTERNET_AUTH
|
||||
SERVER_MODE_LAN,
|
||||
SERVER_MODE_INTERNET_NOAUTH,
|
||||
SERVER_MODE_INTERNET_AUTH
|
||||
};
|
||||
|
||||
enum ServerTransportProtocol {
|
||||
TRANSPORT_PROTOCOL_TCP = 1,
|
||||
TRANSPORT_PROTOCOL_SCTP = 2,
|
||||
TRANSPORT_PROTOCOL_TCP_SCTP = 3};
|
||||
TRANSPORT_PROTOCOL_TCP = 1,
|
||||
TRANSPORT_PROTOCOL_SCTP = 2,
|
||||
TRANSPORT_PROTOCOL_TCP_SCTP = 3};
|
||||
|
||||
enum GameState {
|
||||
GAME_STATE_PREFLOP = 0,
|
||||
GAME_STATE_FLOP,
|
||||
GAME_STATE_TURN,
|
||||
GAME_STATE_RIVER,
|
||||
GAME_STATE_POST_RIVER,
|
||||
GAME_STATE_PREFLOP_SMALL_BLIND = 0xF0,
|
||||
GAME_STATE_PREFLOP_BIG_BLIND = 0xF1 };
|
||||
GAME_STATE_PREFLOP = 0,
|
||||
GAME_STATE_FLOP,
|
||||
GAME_STATE_TURN,
|
||||
GAME_STATE_RIVER,
|
||||
GAME_STATE_POST_RIVER,
|
||||
GAME_STATE_PREFLOP_SMALL_BLIND = 0xF0,
|
||||
GAME_STATE_PREFLOP_BIG_BLIND = 0xF1 };
|
||||
|
||||
enum PlayerAction {
|
||||
PLAYER_ACTION_NONE = 0,
|
||||
PLAYER_ACTION_FOLD,
|
||||
PLAYER_ACTION_CHECK,
|
||||
PLAYER_ACTION_CALL,
|
||||
PLAYER_ACTION_BET,
|
||||
PLAYER_ACTION_RAISE,
|
||||
PLAYER_ACTION_ALLIN };
|
||||
PLAYER_ACTION_NONE = 0,
|
||||
PLAYER_ACTION_FOLD,
|
||||
PLAYER_ACTION_CHECK,
|
||||
PLAYER_ACTION_CALL,
|
||||
PLAYER_ACTION_BET,
|
||||
PLAYER_ACTION_RAISE,
|
||||
PLAYER_ACTION_ALLIN };
|
||||
|
||||
enum PlayerActionCode
|
||||
{
|
||||
ACTION_CODE_VALID = 0,
|
||||
ACTION_CODE_INVALID_STATE,
|
||||
ACTION_CODE_NOT_YOUR_TURN,
|
||||
ACTION_CODE_NOT_ALLOWED
|
||||
ACTION_CODE_VALID = 0,
|
||||
ACTION_CODE_INVALID_STATE,
|
||||
ACTION_CODE_NOT_YOUR_TURN,
|
||||
ACTION_CODE_NOT_ALLOWED
|
||||
};
|
||||
|
||||
enum DenyKickPlayerReason
|
||||
{
|
||||
KICK_DENIED_INVALID_STATE = 0,
|
||||
KICK_DENIED_TOO_FEW_PLAYERS,
|
||||
KICK_DENIED_TEMPORARY,
|
||||
KICK_DENIED_OTHER_IN_PROGRESS,
|
||||
KICK_DENIED_INVALID_PLAYER_ID
|
||||
KICK_DENIED_INVALID_STATE = 0,
|
||||
KICK_DENIED_TOO_FEW_PLAYERS,
|
||||
KICK_DENIED_TEMPORARY,
|
||||
KICK_DENIED_OTHER_IN_PROGRESS,
|
||||
KICK_DENIED_INVALID_PLAYER_ID
|
||||
};
|
||||
|
||||
enum KickVote
|
||||
{
|
||||
KICK_VOTE_AGAINST = 0,
|
||||
KICK_VOTE_IN_FAVOUR
|
||||
KICK_VOTE_AGAINST = 0,
|
||||
KICK_VOTE_IN_FAVOUR
|
||||
};
|
||||
|
||||
enum DenyVoteReason
|
||||
{
|
||||
VOTE_DENIED_INVALID_PETITION = 0,
|
||||
VOTE_DENIED_ALREADY_VOTED
|
||||
VOTE_DENIED_INVALID_PETITION = 0,
|
||||
VOTE_DENIED_ALREADY_VOTED
|
||||
};
|
||||
|
||||
enum EndPetitionReason
|
||||
{
|
||||
PETITION_END_ENOUGH_VOTES = 0,
|
||||
PETITION_END_NOT_ENOUGH_PLAYERS,
|
||||
PETITION_END_PLAYER_LEFT,
|
||||
PETITION_END_TIMEOUT
|
||||
PETITION_END_ENOUGH_VOTES = 0,
|
||||
PETITION_END_NOT_ENOUGH_PLAYERS,
|
||||
PETITION_END_PLAYER_LEFT,
|
||||
PETITION_END_TIMEOUT
|
||||
};
|
||||
|
||||
enum DenyGameInvitationReason
|
||||
{
|
||||
DENY_GAME_INVITATION_NO = 0,
|
||||
DENY_GAME_INVITATION_BUSY
|
||||
DENY_GAME_INVITATION_NO = 0,
|
||||
DENY_GAME_INVITATION_BUSY
|
||||
};
|
||||
|
||||
enum Button {
|
||||
BUTTON_NONE = 0,
|
||||
BUTTON_DEALER,
|
||||
BUTTON_SMALL_BLIND,
|
||||
BUTTON_BIG_BLIND };
|
||||
BUTTON_NONE = 0,
|
||||
BUTTON_DEALER,
|
||||
BUTTON_SMALL_BLIND,
|
||||
BUTTON_BIG_BLIND };
|
||||
|
||||
enum NetTimeoutReason {
|
||||
NETWORK_TIMEOUT_GENERIC = 0,
|
||||
NETWORK_TIMEOUT_GAME_ADMIN_IDLE
|
||||
NETWORK_TIMEOUT_GENERIC = 0,
|
||||
NETWORK_TIMEOUT_GAME_ADMIN_IDLE
|
||||
};
|
||||
|
||||
struct ServerStats
|
||||
{
|
||||
ServerStats()
|
||||
ServerStats()
|
||||
: numberOfPlayersOnServer(0), numberOfGamesOpen(0), totalPlayersEverLoggedIn(0),
|
||||
totalGamesEverCreated(0), maxGamesOpen(0), maxPlayersLoggedIn(0) {}
|
||||
unsigned numberOfPlayersOnServer;
|
||||
unsigned numberOfGamesOpen;
|
||||
unsigned totalPlayersEverLoggedIn;
|
||||
unsigned totalGamesEverCreated;
|
||||
unsigned maxGamesOpen;
|
||||
unsigned maxPlayersLoggedIn;
|
||||
totalGamesEverCreated(0), maxGamesOpen(0), maxPlayersLoggedIn(0) {}
|
||||
unsigned numberOfPlayersOnServer;
|
||||
unsigned numberOfGamesOpen;
|
||||
unsigned totalPlayersEverLoggedIn;
|
||||
unsigned totalGamesEverCreated;
|
||||
unsigned maxGamesOpen;
|
||||
unsigned maxPlayersLoggedIn;
|
||||
};
|
||||
|
||||
enum StyleState {
|
||||
OK = 0,
|
||||
OUTDATED,
|
||||
FIELDS_EMPTY,
|
||||
PICTURES_MISSING,
|
||||
NOT_READABLE
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 752 B |
@@ -49,6 +49,7 @@
|
||||
<file>text-html.png</file>
|
||||
<file>text-plain.png</file>
|
||||
<file>document-open-folder.png</file>
|
||||
<file>emblem-important.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="/cflags">
|
||||
<file>cflags/ad.png</file>
|
||||
|
||||
@@ -571,11 +571,6 @@ p, li { white-space: pre-wrap; }
|
||||
<string>Maintainer</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>State</string>
|
||||
</property>
|
||||
</column>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
||||
@@ -255,6 +255,9 @@ void settingsDialogImpl::exec() {
|
||||
defaultTableItem->setData(0, 15, QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str())+"gfx/gui/table/default/defaulttablestyle.xml");
|
||||
defaultTableItem->setData(0, 16, POKERTH_DISTRIBUTED_STYLE);
|
||||
defaultTableItem->setData(0, Qt::ToolTipRole, QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str())+"gfx/gui/table/default/defaulttablestyle.xml");
|
||||
defaultTableItem->setData(2, Qt::ToolTipRole, defaultTableStyle.getMyStateToolTipInfo());
|
||||
if(defaultTableStyle.getState()) defaultTableItem->setIcon(2, QIcon(":/gfx/emblem-important.png"));
|
||||
else defaultTableItem->setIcon(2, QIcon(":/gfx/dialog_ok_apply.png"));
|
||||
}
|
||||
//add danuxi table
|
||||
GameTableStyleReader danuxi1TableStyle(myConfig, this);
|
||||
@@ -266,6 +269,9 @@ void settingsDialogImpl::exec() {
|
||||
danuxi1TableItem->setData(0, 15, QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str())+"gfx/gui/table/danuxi1/danuxi1tablestyle.xml");
|
||||
danuxi1TableItem->setData(0, 16, POKERTH_DISTRIBUTED_STYLE);
|
||||
danuxi1TableItem->setData(0, Qt::ToolTipRole, QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str())+"gfx/gui/table/danuxi1/danuxi1tablestyle.xml");
|
||||
danuxi1TableItem->setData(2, Qt::ToolTipRole, danuxi1TableStyle.getMyStateToolTipInfo());
|
||||
if(danuxi1TableStyle.getState()) danuxi1TableItem->setIcon(2, QIcon(":/gfx/emblem-important.png"));
|
||||
else danuxi1TableItem->setIcon(2, QIcon(":/gfx/dialog_ok_apply.png"));
|
||||
}
|
||||
|
||||
//load secondary styles into list (if fallback no entry)
|
||||
@@ -281,6 +287,9 @@ void settingsDialogImpl::exec() {
|
||||
nextItem->setData(0, 15,QString::fromUtf8(it1->c_str()));
|
||||
nextItem->setData(0, 16, ADDITIONAL_STYLE);
|
||||
nextItem->setData(0, Qt::ToolTipRole,QString::fromUtf8(it1->c_str()));
|
||||
nextItem->setData(2, Qt::ToolTipRole, nextStyle.getMyStateToolTipInfo());
|
||||
if(nextStyle.getState()) nextItem->setIcon(2, QIcon(":/gfx/emblem-important.png"));
|
||||
else nextItem->setIcon(2, QIcon(":/gfx/dialog_ok_apply.png"));
|
||||
treeWidget_gameTableStyles->addTopLevelItem(nextItem);
|
||||
}
|
||||
}
|
||||
@@ -1052,6 +1061,9 @@ void settingsDialogImpl::addGameTableStyle()
|
||||
newItem->setData(0, 15,fileName);
|
||||
newItem->setData(0, 16, ADDITIONAL_STYLE);
|
||||
newItem->setData(0, Qt::ToolTipRole,fileName);
|
||||
newItem->setData(2, Qt::ToolTipRole, newStyle.getMyStateToolTipInfo());
|
||||
if(newStyle.getState()) newItem->setIcon(2, QIcon(":/gfx/emblem-important.png"));
|
||||
else newItem->setIcon(2, QIcon(":/gfx/dialog-ok-apply.png"));
|
||||
treeWidget_gameTableStyles->addTopLevelItem(newItem);
|
||||
treeWidget_gameTableStyles->setCurrentItem(newItem);
|
||||
treeWidget_gameTableStyles->sortItems(0, Qt::AscendingOrder);
|
||||
@@ -1266,7 +1278,7 @@ void settingsDialogImpl::saveLogFileAs()
|
||||
if(selectedItem) {
|
||||
QString fileName = QFileDialog::getSaveFileName(this, tr("Save PokerTH log file"),
|
||||
QDir::homePath()+"/"+selectedItem->text(0),
|
||||
tr("PokerTH SQL log (*.pdb)"));
|
||||
tr("PokerTH SQL log (*.pdb)"));
|
||||
|
||||
if(!fileName.isEmpty()) {
|
||||
QFile::copy(selectedItem->data(0, Qt::UserRole).toString(), fileName);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -23,6 +23,7 @@
|
||||
#include "tinyxml.h"
|
||||
#include "configfile.h"
|
||||
#include "gametableimpl.h"
|
||||
#include "game_defs.h"
|
||||
#include <string>
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
@@ -30,264 +31,271 @@
|
||||
class gameTableImpl;
|
||||
|
||||
class GameTableStyleReader : public QObject {
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
public:
|
||||
GameTableStyleReader(ConfigFile *c, QWidget *w);
|
||||
~GameTableStyleReader();
|
||||
|
||||
void readStyleFile(QString);
|
||||
GameTableStyleReader(ConfigFile *c, QWidget *w);
|
||||
~GameTableStyleReader();
|
||||
|
||||
void showLeftItemsErrorMessage(QString, QStringList, QString);
|
||||
void showItemPicsLeftErrorMessage(QString, QStringList, QString);
|
||||
void readStyleFile(QString);
|
||||
|
||||
QString getStyleDescription() const { return StyleDescription; }
|
||||
QString getStyleMaintainerName() const { return StyleMaintainerName; }
|
||||
QString getStyleMaintainerEMail() const { return StyleMaintainerEMail; }
|
||||
QString getStyleCreateDate() const { return StyleCreateDate; }
|
||||
void showLeftItemsErrorMessage();
|
||||
void showItemPicsLeftErrorMessage();
|
||||
void showOutdatedErrorMessage();
|
||||
|
||||
QString getCurrentFileName() const { return currentFileName; }
|
||||
QString getPreview() const { return Preview; }
|
||||
QString getDefaultAvatar() const { return DefaultAvatar; }
|
||||
QString getDealerPuck() const { return DealerPuck; }
|
||||
QString getSmallBlindPuck() const { return SmallBlindPuck; }
|
||||
QString getBigBlindPuck() const { return BigBlindPuck; }
|
||||
QString getHandRanking() const { return HandRanking; }
|
||||
QString getActionPic(int);
|
||||
QString getStyleDescription() const { return StyleDescription; }
|
||||
QString getStyleMaintainerName() const { return StyleMaintainerName; }
|
||||
QString getStyleMaintainerEMail() const { return StyleMaintainerEMail; }
|
||||
QString getStyleCreateDate() const { return StyleCreateDate; }
|
||||
|
||||
QString getFKeyIndicatorColor() const { return FKeyIndicatorColor; }
|
||||
QString getChanceLabelImpossibleColor() const { return ChanceLabelImpossibleColor; }
|
||||
QString getChanceLabelPossibleColor() const { return ChanceLabelPossibleColor; }
|
||||
QString getChatLogTextColor() const { return ChatLogTextColor; }
|
||||
QString getChatTextNickNotifyColor() const { return ChatTextNickNotifyColor; }
|
||||
QString getLogWinnerMainPotColor() const { return LogWinnerMainPotColor; }
|
||||
QString getLogWinnerSidePotColor() const { return LogWinnerSidePotColor; }
|
||||
QString getLogPlayerSitsOutColor() const { return LogPlayerSitsOutColor; }
|
||||
QString getLogNewGameAdminColor() const { return LogNewGameAdminColor; }
|
||||
QString getBreakLobbyButtonBgColor() const { return BreakLobbyButtonBgColor; }
|
||||
QString getCurrentFileName() const { return currentFileName; }
|
||||
QString getPreview() const { return Preview; }
|
||||
QString getDefaultAvatar() const { return DefaultAvatar; }
|
||||
QString getDealerPuck() const { return DealerPuck; }
|
||||
QString getSmallBlindPuck() const { return SmallBlindPuck; }
|
||||
QString getBigBlindPuck() const { return BigBlindPuck; }
|
||||
QString getHandRanking() const { return HandRanking; }
|
||||
QString getActionPic(int);
|
||||
|
||||
QString getMinimumWindowWidth() const { return MinimumWindowWidth; }
|
||||
QString getMinimumWindowHeight() const { return MinimumWindowHeight; }
|
||||
QString getMaximumWindowWidth() const { return MaximumWindowWidth; }
|
||||
QString getMaximumWindowHeight() const { return MaximumWindowHeight; }
|
||||
QString getFixedWindowWidth() const { return FixedWindowWidth; }
|
||||
QString getFixedWindowHeight() const { return FixedWindowHeight; }
|
||||
QString getIfFixedWindowSize() const { return IfFixedWindowSize; }
|
||||
|
||||
bool getFallBack() const { return fallBack; }
|
||||
bool getLoadedSuccessfull() const { return loadedSuccessfull; }
|
||||
QString getFKeyIndicatorColor() const { return FKeyIndicatorColor; }
|
||||
QString getChanceLabelImpossibleColor() const { return ChanceLabelImpossibleColor; }
|
||||
QString getChanceLabelPossibleColor() const { return ChanceLabelPossibleColor; }
|
||||
QString getChatLogTextColor() const { return ChatLogTextColor; }
|
||||
QString getChatTextNickNotifyColor() const { return ChatTextNickNotifyColor; }
|
||||
QString getLogWinnerMainPotColor() const { return LogWinnerMainPotColor; }
|
||||
QString getLogWinnerSidePotColor() const { return LogWinnerSidePotColor; }
|
||||
QString getLogPlayerSitsOutColor() const { return LogPlayerSitsOutColor; }
|
||||
QString getLogNewGameAdminColor() const { return LogNewGameAdminColor; }
|
||||
QString getBreakLobbyButtonBgColor() const { return BreakLobbyButtonBgColor; }
|
||||
|
||||
//set pictures
|
||||
void setTableBackground(gameTableImpl*);
|
||||
void setCardHolderStyle(QLabel*, int /*bero*/);
|
||||
void setPlayerSeatActiveStyle(QGroupBox*);
|
||||
void setPlayerSeatInactiveStyle(QGroupBox*);
|
||||
void setToolBoxBackground(QGroupBox*);
|
||||
QString getMinimumWindowWidth() const { return MinimumWindowWidth; }
|
||||
QString getMinimumWindowHeight() const { return MinimumWindowHeight; }
|
||||
QString getMaximumWindowWidth() const { return MaximumWindowWidth; }
|
||||
QString getMaximumWindowHeight() const { return MaximumWindowHeight; }
|
||||
QString getFixedWindowWidth() const { return FixedWindowWidth; }
|
||||
QString getFixedWindowHeight() const { return FixedWindowHeight; }
|
||||
QString getIfFixedWindowSize() const { return IfFixedWindowSize; }
|
||||
|
||||
//set fonts + colors
|
||||
void setChatLogStyle(QTextBrowser*);
|
||||
void setChatInputStyle(QLineEdit*);
|
||||
void setCashLabelStyle(QLabel*);
|
||||
void setSetLabelStyle(QLabel*);
|
||||
void setPlayerNameLabelStyle(QLabel*);
|
||||
void setSmallFontBoardStyle(QLabel*);
|
||||
void setBigFontBoardStyle(QLabel*);
|
||||
void setMenuBarStyle(QMenuBar*);
|
||||
void setBreakButtonStyle(QPushButton*, int);
|
||||
void setSpeedStringStyle(QLabel*);
|
||||
void setVoteButtonStyle(QPushButton*);
|
||||
void setVoteStringsStyle(QLabel*);
|
||||
void setBetValueInputStyle(QLineEdit*);
|
||||
void setSliderStyle(QSlider*);
|
||||
|
||||
void setTabWidgetStyle(QTabWidget*, QTabBar*);
|
||||
bool getFallBack() const { return fallBack; }
|
||||
bool getLoadedSuccessfull() const { return loadedSuccessfull; }
|
||||
StyleState getState() const { return myState; }
|
||||
|
||||
void setWindowsGeometry(gameTableImpl*);
|
||||
//set pictures
|
||||
void setTableBackground(gameTableImpl*);
|
||||
void setCardHolderStyle(QLabel*, int /*bero*/);
|
||||
void setPlayerSeatActiveStyle(QGroupBox*);
|
||||
void setPlayerSeatInactiveStyle(QGroupBox*);
|
||||
void setToolBoxBackground(QGroupBox*);
|
||||
|
||||
//set pics and fonts and colors
|
||||
void setButtonsStyle(MyActionButton*, MyActionButton*, MyActionButton*, MyActionButton*, int);
|
||||
void setShowMyCardsButtonStyle( MyActionButton *sc);
|
||||
void setAwayRadioButtonsStyle(QRadioButton*);
|
||||
//set fonts + colors
|
||||
void setChatLogStyle(QTextBrowser*);
|
||||
void setChatInputStyle(QLineEdit*);
|
||||
void setCashLabelStyle(QLabel*);
|
||||
void setSetLabelStyle(QLabel*);
|
||||
void setPlayerNameLabelStyle(QLabel*);
|
||||
void setSmallFontBoardStyle(QLabel*);
|
||||
void setBigFontBoardStyle(QLabel*);
|
||||
void setMenuBarStyle(QMenuBar*);
|
||||
void setBreakButtonStyle(QPushButton*, int);
|
||||
void setSpeedStringStyle(QLabel*);
|
||||
void setVoteButtonStyle(QPushButton*);
|
||||
void setVoteStringsStyle(QLabel*);
|
||||
void setBetValueInputStyle(QLineEdit*);
|
||||
void setSliderStyle(QSlider*);
|
||||
|
||||
void setTabWidgetStyle(QTabWidget*, QTabBar*);
|
||||
|
||||
void setWindowsGeometry(gameTableImpl*);
|
||||
|
||||
//set pics and fonts and colors
|
||||
void setButtonsStyle(MyActionButton*, MyActionButton*, MyActionButton*, MyActionButton*, int);
|
||||
void setShowMyCardsButtonStyle( MyActionButton *sc);
|
||||
void setAwayRadioButtonsStyle(QRadioButton*);
|
||||
|
||||
QString getActionAllInI18NString() const { return ActionAllInI18NString; }
|
||||
QString getActionRaiseI18NString() const { return ActionRaiseI18NString; }
|
||||
QString getActionBetI18NString() const { return ActionBetI18NString; }
|
||||
QString getActionCallI18NString() const { return ActionCallI18NString; }
|
||||
QString getActionCheckI18NString() const { return ActionCheckI18NString; }
|
||||
QString getActionFoldI18NString() const { return ActionFoldI18NString; }
|
||||
QString getRiverI18NString() const { return RiverI18NString; }
|
||||
QString getTurnI18NString() const { return TurnI18NString; }
|
||||
QString getFlopI18NString() const { return FlopI18NString; }
|
||||
QString getPreflopI18NString() const { return PreflopI18NString; }
|
||||
QString getHandI18NString() const { return HandI18NString; }
|
||||
QString getGameI18NString() const { return GameI18NString; }
|
||||
QString getBetsI18NString() const { return BetsI18NString; }
|
||||
QString getTotalI18NString() const { return TotalI18NString; }
|
||||
QString getPotI18NString() const { return PotI18NString; }
|
||||
|
||||
QString getFallBackFieldContent(QString field, int type); // type: 0 = string, 1= picture
|
||||
QString getMyStateToolTipInfo();
|
||||
|
||||
QString getActionAllInI18NString() const { return ActionAllInI18NString; }
|
||||
QString getActionRaiseI18NString() const { return ActionRaiseI18NString; }
|
||||
QString getActionBetI18NString() const { return ActionBetI18NString; }
|
||||
QString getActionCallI18NString() const { return ActionCallI18NString; }
|
||||
QString getActionCheckI18NString() const { return ActionCheckI18NString; }
|
||||
QString getActionFoldI18NString() const { return ActionFoldI18NString; }
|
||||
QString getRiverI18NString() const { return RiverI18NString; }
|
||||
QString getTurnI18NString() const { return TurnI18NString; }
|
||||
QString getFlopI18NString() const { return FlopI18NString; }
|
||||
QString getPreflopI18NString() const { return PreflopI18NString; }
|
||||
QString getHandI18NString() const { return HandI18NString; }
|
||||
QString getGameI18NString() const { return GameI18NString; }
|
||||
QString getBetsI18NString() const { return BetsI18NString; }
|
||||
QString getTotalI18NString() const { return TotalI18NString; }
|
||||
QString getPotI18NString() const { return PotI18NString; }
|
||||
|
||||
private:
|
||||
//style values
|
||||
// INFOS
|
||||
QString StyleDescription;
|
||||
QString StyleMaintainerName;
|
||||
QString StyleMaintainerEMail;
|
||||
QString StyleCreateDate;
|
||||
QString PokerTHStyleFileVersion;
|
||||
// WINDOWS SETTINGS
|
||||
QString IfFixedWindowSize;
|
||||
QString FixedWindowWidth;
|
||||
QString FixedWindowHeight;
|
||||
QString MinimumWindowWidth;
|
||||
QString MinimumWindowHeight;
|
||||
QString MaximumWindowWidth;
|
||||
QString MaximumWindowHeight;
|
||||
// PICS
|
||||
QString Preview;
|
||||
QString ActionAllInI18NPic;
|
||||
QString ActionRaiseI18NPic;
|
||||
QString ActionBetI18NPic;
|
||||
QString ActionCallI18NPic;
|
||||
QString ActionCheckI18NPic;
|
||||
QString ActionFoldI18NPic;
|
||||
QString ActionWinnerI18NPic;
|
||||
QString BigBlindPuck;
|
||||
QString SmallBlindPuck;
|
||||
QString DealerPuck;
|
||||
QString DefaultAvatar;
|
||||
QString CardHolderFlop;
|
||||
QString CardHolderTurn;
|
||||
QString CardHolderRiver;
|
||||
QString FoldButtonDefault;
|
||||
QString FoldButtonHover;
|
||||
QString FoldButtonChecked;
|
||||
QString FoldButtonCheckedHover;
|
||||
QString CheckCallButtonDefault;
|
||||
QString CheckCallButtonHover;
|
||||
QString CheckCallButtonChecked;
|
||||
QString CheckCallButtonCheckedHover;
|
||||
QString BetRaiseButtonDefault;
|
||||
QString BetRaiseButtonHover;
|
||||
QString BetRaiseButtonChecked;
|
||||
QString BetRaiseButtonCheckedHover;
|
||||
QString AllInButtonDefault;
|
||||
QString AllInButtonHover;
|
||||
QString AllInButtonChecked;
|
||||
QString AllInButtonCheckedHover;
|
||||
QString RadioButtonPressed;
|
||||
QString RadioButtonChecked;
|
||||
QString RadioButtonCheckedHover;
|
||||
QString RadioButtonUnchecked;
|
||||
QString RadioButtonUncheckedHover;
|
||||
QString PlayerTopSeatInactive;
|
||||
QString PlayerTopSeatActive;
|
||||
QString PlayerBottomSeatInactive;
|
||||
QString PlayerBottomSeatActive;
|
||||
QString Table;
|
||||
QString HandRanking;
|
||||
QString ToolBoxBackground;
|
||||
QString ShowMyCardsButtonDefault;
|
||||
QString ShowMyCardsButtonHover;
|
||||
//style values
|
||||
// INFOS
|
||||
QString StyleDescription;
|
||||
QString StyleMaintainerName;
|
||||
QString StyleMaintainerEMail;
|
||||
QString StyleCreateDate;
|
||||
QString PokerTHStyleFileVersion;
|
||||
// WINDOWS SETTINGS
|
||||
QString IfFixedWindowSize;
|
||||
QString FixedWindowWidth;
|
||||
QString FixedWindowHeight;
|
||||
QString MinimumWindowWidth;
|
||||
QString MinimumWindowHeight;
|
||||
QString MaximumWindowWidth;
|
||||
QString MaximumWindowHeight;
|
||||
// PICS
|
||||
QString Preview;
|
||||
QString ActionAllInI18NPic;
|
||||
QString ActionRaiseI18NPic;
|
||||
QString ActionBetI18NPic;
|
||||
QString ActionCallI18NPic;
|
||||
QString ActionCheckI18NPic;
|
||||
QString ActionFoldI18NPic;
|
||||
QString ActionWinnerI18NPic;
|
||||
QString BigBlindPuck;
|
||||
QString SmallBlindPuck;
|
||||
QString DealerPuck;
|
||||
QString DefaultAvatar;
|
||||
QString CardHolderFlop;
|
||||
QString CardHolderTurn;
|
||||
QString CardHolderRiver;
|
||||
QString FoldButtonDefault;
|
||||
QString FoldButtonHover;
|
||||
QString FoldButtonChecked;
|
||||
QString FoldButtonCheckedHover;
|
||||
QString CheckCallButtonDefault;
|
||||
QString CheckCallButtonHover;
|
||||
QString CheckCallButtonChecked;
|
||||
QString CheckCallButtonCheckedHover;
|
||||
QString BetRaiseButtonDefault;
|
||||
QString BetRaiseButtonHover;
|
||||
QString BetRaiseButtonChecked;
|
||||
QString BetRaiseButtonCheckedHover;
|
||||
QString AllInButtonDefault;
|
||||
QString AllInButtonHover;
|
||||
QString AllInButtonChecked;
|
||||
QString AllInButtonCheckedHover;
|
||||
QString RadioButtonPressed;
|
||||
QString RadioButtonChecked;
|
||||
QString RadioButtonCheckedHover;
|
||||
QString RadioButtonUnchecked;
|
||||
QString RadioButtonUncheckedHover;
|
||||
QString PlayerTopSeatInactive;
|
||||
QString PlayerTopSeatActive;
|
||||
QString PlayerBottomSeatInactive;
|
||||
QString PlayerBottomSeatActive;
|
||||
QString Table;
|
||||
QString HandRanking;
|
||||
QString ToolBoxBackground;
|
||||
QString ShowMyCardsButtonDefault;
|
||||
QString ShowMyCardsButtonHover;
|
||||
|
||||
// I18N ACTION STRINGS
|
||||
QString ActionAllInI18NString;
|
||||
QString ActionRaiseI18NString;
|
||||
QString ActionBetI18NString;
|
||||
QString ActionCallI18NString;
|
||||
QString ActionCheckI18NString;
|
||||
QString ActionFoldI18NString;
|
||||
QString PotI18NString;
|
||||
QString TotalI18NString;
|
||||
QString BetsI18NString;
|
||||
QString GameI18NString;
|
||||
QString HandI18NString;
|
||||
QString PreflopI18NString;
|
||||
QString FlopI18NString;
|
||||
QString TurnI18NString;
|
||||
QString RiverI18NString;
|
||||
// I18N ACTION STRINGS
|
||||
QString ActionAllInI18NString;
|
||||
QString ActionRaiseI18NString;
|
||||
QString ActionBetI18NString;
|
||||
QString ActionCallI18NString;
|
||||
QString ActionCheckI18NString;
|
||||
QString ActionFoldI18NString;
|
||||
QString PotI18NString;
|
||||
QString TotalI18NString;
|
||||
QString BetsI18NString;
|
||||
QString GameI18NString;
|
||||
QString HandI18NString;
|
||||
QString PreflopI18NString;
|
||||
QString FlopI18NString;
|
||||
QString TurnI18NString;
|
||||
QString RiverI18NString;
|
||||
|
||||
// COLORS
|
||||
QString FKeyIndicatorColor;
|
||||
QString ChanceLabelPossibleColor;
|
||||
QString ChanceLabelImpossibleColor;
|
||||
QString ChatTextNickNotifyColor;
|
||||
QString ChatLogTextColor;
|
||||
QString ChatLogBgColor;
|
||||
QString ChatLogScrollBarBorderColor;
|
||||
QString ChatLogScrollBarBgColor;
|
||||
QString ChatLogScrollBarHandleBorderColor;
|
||||
QString ChatLogScrollBarHandleBgColor;
|
||||
QString ChatLogScrollBarArrowBorderColor;
|
||||
QString ChatLogScrollBarArrowBgColor;
|
||||
QString LogWinnerMainPotColor;
|
||||
QString LogWinnerSidePotColor;
|
||||
QString LogPlayerSitsOutColor;
|
||||
QString LogNewGameAdminColor;
|
||||
QString TabWidgetBorderColor;
|
||||
QString TabWidgetBgColor;
|
||||
QString TabWidgetTextColor;
|
||||
QString MenuBgColor;
|
||||
QString MenuTextColor;
|
||||
QString BreakLobbyButtonBgColor;
|
||||
QString BreakLobbyButtonTextColor;
|
||||
QString BreakLobbyButtonBgDisabledColor;
|
||||
QString BreakLobbyButtonTextDisabledColor;
|
||||
QString BreakLobbyButtonBgBlinkColor;
|
||||
QString BreakLobbyButtonTextBlinkColor;
|
||||
QString PlayerCashTextColor;
|
||||
QString PlayerBetTextColor;
|
||||
QString PlayerNickTextColor;
|
||||
QString BoardBigTextColor;
|
||||
QString BoardSmallTextColor;
|
||||
QString SpeedTextColor;
|
||||
QString VoteButtonBgColor;
|
||||
QString VoteButtonTextColor;
|
||||
QString BetInputTextColor;
|
||||
QString BetInputBgColor;
|
||||
QString BetInputDisabledTextColor;
|
||||
QString BetInputDisabledBgColor;
|
||||
QString FoldButtonTextColor;
|
||||
QString FoldButtonCheckableTextColor;
|
||||
QString CheckCallButtonTextColor;
|
||||
QString CheckCallButtonCheckableTextColor;
|
||||
QString BetRaiseButtonTextColor;
|
||||
QString BetRaiseButtonCheckableTextColor;
|
||||
QString AllInButtonTextColor;
|
||||
QString AllInButtonCheckableTextColor;
|
||||
QString BetSpeedSliderGrooveBgColor;
|
||||
QString BetSpeedSliderGrooveBorderColor;
|
||||
QString BetSpeedSliderHandleBgColor;
|
||||
QString BetSpeedSliderHandleBorderColor;
|
||||
QString ShowMyCardsButtonTextColor;
|
||||
// COLORS
|
||||
QString FKeyIndicatorColor;
|
||||
QString ChanceLabelPossibleColor;
|
||||
QString ChanceLabelImpossibleColor;
|
||||
QString ChatTextNickNotifyColor;
|
||||
QString ChatLogTextColor;
|
||||
QString ChatLogBgColor;
|
||||
QString ChatLogScrollBarBorderColor;
|
||||
QString ChatLogScrollBarBgColor;
|
||||
QString ChatLogScrollBarHandleBorderColor;
|
||||
QString ChatLogScrollBarHandleBgColor;
|
||||
QString ChatLogScrollBarArrowBorderColor;
|
||||
QString ChatLogScrollBarArrowBgColor;
|
||||
QString LogWinnerMainPotColor;
|
||||
QString LogWinnerSidePotColor;
|
||||
QString LogPlayerSitsOutColor;
|
||||
QString LogNewGameAdminColor;
|
||||
QString TabWidgetBorderColor;
|
||||
QString TabWidgetBgColor;
|
||||
QString TabWidgetTextColor;
|
||||
QString MenuBgColor;
|
||||
QString MenuTextColor;
|
||||
QString BreakLobbyButtonBgColor;
|
||||
QString BreakLobbyButtonTextColor;
|
||||
QString BreakLobbyButtonBgDisabledColor;
|
||||
QString BreakLobbyButtonTextDisabledColor;
|
||||
QString BreakLobbyButtonBgBlinkColor;
|
||||
QString BreakLobbyButtonTextBlinkColor;
|
||||
QString PlayerCashTextColor;
|
||||
QString PlayerBetTextColor;
|
||||
QString PlayerNickTextColor;
|
||||
QString BoardBigTextColor;
|
||||
QString BoardSmallTextColor;
|
||||
QString SpeedTextColor;
|
||||
QString VoteButtonBgColor;
|
||||
QString VoteButtonTextColor;
|
||||
QString BetInputTextColor;
|
||||
QString BetInputBgColor;
|
||||
QString BetInputDisabledTextColor;
|
||||
QString BetInputDisabledBgColor;
|
||||
QString FoldButtonTextColor;
|
||||
QString FoldButtonCheckableTextColor;
|
||||
QString CheckCallButtonTextColor;
|
||||
QString CheckCallButtonCheckableTextColor;
|
||||
QString BetRaiseButtonTextColor;
|
||||
QString BetRaiseButtonCheckableTextColor;
|
||||
QString AllInButtonTextColor;
|
||||
QString AllInButtonCheckableTextColor;
|
||||
QString BetSpeedSliderGrooveBgColor;
|
||||
QString BetSpeedSliderGrooveBorderColor;
|
||||
QString BetSpeedSliderHandleBgColor;
|
||||
QString BetSpeedSliderHandleBorderColor;
|
||||
QString ShowMyCardsButtonTextColor;
|
||||
|
||||
// SIZES
|
||||
QString ChatLogTextSize;
|
||||
// SIZES
|
||||
QString ChatLogTextSize;
|
||||
|
||||
//internal
|
||||
QString font2String;
|
||||
QString font1String;
|
||||
QString textBrowserFontsize;
|
||||
QString cashFontSize;
|
||||
QString setLabelFontSize;
|
||||
QString playerNameLabelFontSize;
|
||||
QString smallBoardFontSize;
|
||||
QString bigBoardFontSize;
|
||||
QString humanPlayerButtonFontSize;
|
||||
QString betValueFontSize;
|
||||
//internal
|
||||
QString font2String;
|
||||
QString font1String;
|
||||
QString textBrowserFontsize;
|
||||
QString cashFontSize;
|
||||
QString setLabelFontSize;
|
||||
QString playerNameLabelFontSize;
|
||||
QString smallBoardFontSize;
|
||||
QString bigBoardFontSize;
|
||||
QString humanPlayerButtonFontSize;
|
||||
QString betValueFontSize;
|
||||
|
||||
QString tabBarPaddingTop;
|
||||
QString tabBarPaddingSide;
|
||||
QString tabBarPaddingTop;
|
||||
QString tabBarPaddingSide;
|
||||
|
||||
QByteArray fileContent;
|
||||
QString currentFileName;
|
||||
QString currentDir;
|
||||
QByteArray fileContent;
|
||||
QString currentFileName;
|
||||
QString currentDir;
|
||||
|
||||
QStringList leftItems;
|
||||
QStringList itemPicsLeft;
|
||||
|
||||
ConfigFile *myConfig;
|
||||
QWidget *myW;
|
||||
QStringList leftItems;
|
||||
QStringList itemPicsLeft;
|
||||
|
||||
ConfigFile *myConfig;
|
||||
QWidget *myW;
|
||||
|
||||
bool fallBack;
|
||||
bool loadedSuccessfull;
|
||||
StyleState myState;
|
||||
|
||||
bool fallBack;
|
||||
bool loadedSuccessfull;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user