automatically save and restore gametable geometry (including fullscreen)
This commit is contained in:
@@ -219,6 +219,9 @@ void GameTableStyleReader::readStyleFile(QString file) {
|
||||
}
|
||||
wrongItems.clear();
|
||||
|
||||
// INFOS
|
||||
if(StyleDescription == "") { wrongItems << "StyleDescription"; }
|
||||
// WINDOWS SETTINGS
|
||||
if(IfFixedWindowSize == "") { wrongItems << "IfFixedWindowSize"; }
|
||||
if(FixedWindowWidth == "") { wrongItems << "FixedWindowWidth"; }
|
||||
if(FixedWindowHeight == "") { wrongItems << "FixedWindowHeight"; }
|
||||
@@ -226,6 +229,7 @@ void GameTableStyleReader::readStyleFile(QString file) {
|
||||
if(MinimumWindowHeight == "") { wrongItems << "MinimumWindowHeight"; }
|
||||
if(MaximumWindowWidth == "") { wrongItems << "MaximumWindowWidth"; }
|
||||
if(MaximumWindowHeight == "") { wrongItems << "MaximumWindowHeight"; }
|
||||
// PICS
|
||||
if(ActionAllIn == "") { wrongItems << "ActionAllIn"; }
|
||||
if(ActionRaise == "") { wrongItems << "ActionRaise"; }
|
||||
if(ActionBet == "") { wrongItems << "ActionBet"; }
|
||||
@@ -268,6 +272,7 @@ void GameTableStyleReader::readStyleFile(QString file) {
|
||||
if(Table == "") { wrongItems << "Table"; }
|
||||
if(HandRanking == "") { wrongItems << "HandRanking"; }
|
||||
if(ToolBoxBackground == "") { wrongItems << "ToolBoxBackground"; }
|
||||
// COLORS
|
||||
if(FKeyIndicatorColor == "") { wrongItems << "FKeyIndicatorColor"; }
|
||||
if(ChanceLabelPossibleColor == "") { wrongItems << "ChanceLabelPossibleColor"; }
|
||||
if(ChanceLabelImpossibleColor == "") { wrongItems << "ChanceLabelImpossibleColor"; }
|
||||
@@ -319,6 +324,7 @@ void GameTableStyleReader::readStyleFile(QString file) {
|
||||
if(BetSpeedSliderGrooveBorderColor == "") { wrongItems << "BetSpeedSliderGrooveBorderColor"; }
|
||||
if(BetSpeedSliderHandleBgColor == "") { wrongItems << "BetSpeedSliderHandleBgColor"; }
|
||||
if(BetSpeedSliderHandleBorderColor == "") { wrongItems << "BetSpeedSliderHandleBorderColor"; }
|
||||
// SIZE
|
||||
if(ChatLogTextSize == "") { wrongItems << "ChatLogTextSize"; }
|
||||
|
||||
//if one or more items are wrong or left show detailed error message
|
||||
@@ -554,7 +560,9 @@ void GameTableStyleReader::setWindowsGeometry(gameTableImpl *gt)
|
||||
gt->actionFullScreen->setEnabled(TRUE);
|
||||
}
|
||||
else {
|
||||
gt->actionFullScreen->setDisabled(TRUE);
|
||||
gt->actionFullScreen->setDisabled(TRUE);
|
||||
if(gt->isFullScreen())
|
||||
gt->showNormal();
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -569,7 +577,9 @@ void GameTableStyleReader::setWindowsGeometry(gameTableImpl *gt)
|
||||
gt->actionFullScreen->setEnabled(TRUE);
|
||||
}
|
||||
else {
|
||||
gt->actionFullScreen->setDisabled(TRUE);
|
||||
gt->actionFullScreen->setDisabled(TRUE);
|
||||
if(gt->isFullScreen())
|
||||
gt->showNormal();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -47,14 +47,25 @@ public:
|
||||
QString getSmallBlindPuck() const { return SmallBlindPuck; }
|
||||
QString getBigBlindPuck() const { return BigBlindPuck; }
|
||||
QString getHandRanking() const { return HandRanking; }
|
||||
QString getActionPic(int);
|
||||
|
||||
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 getActionPic(int);
|
||||
|
||||
QString getMinimumWindowWidth() const { return MinimumWindowWidth; }
|
||||
QString getMinimumWindowHeight() const { return MinimumWindowHeight; }
|
||||
QString getMaximumWindowWidth() const { return MaximumWindowWidth; }
|
||||
QString getMaximumWindowHeight() const { return MaximumWindowHeight; }
|
||||
QString getIfFixedWindowSize() const { return IfFixedWindowSize; }
|
||||
|
||||
bool getFallBack() const { return fallBack; }
|
||||
|
||||
//set pictures
|
||||
@@ -88,12 +99,6 @@ public:
|
||||
void setButtonsStyle(MyActionButton*, MyActionButton*, MyActionButton*, MyActionButton*, int);
|
||||
void setAwayRadioButtonsStyle(QRadioButton*);
|
||||
|
||||
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; }
|
||||
|
||||
private:
|
||||
//style values
|
||||
// INFOS
|
||||
|
||||
Reference in New Issue
Block a user