Running astyle.
This commit is contained in:
@@ -34,10 +34,10 @@
|
|||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
|
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
#ifndef ANDROID_TEST
|
#ifndef ANDROID_TEST
|
||||||
#include "QtGui/5.1.1/QtGui/qpa/qplatformnativeinterface.h"
|
#include "QtGui/5.1.1/QtGui/qpa/qplatformnativeinterface.h"
|
||||||
#include <jni.h>
|
#include <jni.h>
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
aboutPokerthImpl::aboutPokerthImpl(QWidget *parent, ConfigFile *c)
|
aboutPokerthImpl::aboutPokerthImpl(QWidget *parent, ConfigFile *c)
|
||||||
@@ -71,7 +71,7 @@ aboutPokerthImpl::aboutPokerthImpl(QWidget *parent, ConfigFile *c)
|
|||||||
|
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
int api = -2;
|
int api = -2;
|
||||||
#ifndef ANDROID_TEST
|
#ifndef ANDROID_TEST
|
||||||
JavaVM *currVM = (JavaVM *)QApplication::platformNativeInterface()->nativeResourceForIntegration("JavaVM");
|
JavaVM *currVM = (JavaVM *)QApplication::platformNativeInterface()->nativeResourceForIntegration("JavaVM");
|
||||||
JNIEnv* env;
|
JNIEnv* env;
|
||||||
if (currVM->AttachCurrentThread(&env, NULL)<0) {
|
if (currVM->AttachCurrentThread(&env, NULL)<0) {
|
||||||
@@ -83,7 +83,7 @@ aboutPokerthImpl::aboutPokerthImpl(QWidget *parent, ConfigFile *c)
|
|||||||
}
|
}
|
||||||
currVM->DetachCurrentThread();
|
currVM->DetachCurrentThread();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
label_pokerthVersion->setText(QString(tr("PokerTH %1 for Android (API%2)").arg(POKERTH_BETA_RELEASE_STRING).arg(api)));
|
label_pokerthVersion->setText(QString(tr("PokerTH %1 for Android (API%2)").arg(POKERTH_BETA_RELEASE_STRING).arg(api)));
|
||||||
#else
|
#else
|
||||||
label_pokerthVersion->setText(QString(tr("PokerTH %1").arg(POKERTH_BETA_RELEASE_STRING)));
|
label_pokerthVersion->setText(QString(tr("PokerTH %1").arg(POKERTH_BETA_RELEASE_STRING)));
|
||||||
|
|||||||
@@ -1041,7 +1041,8 @@ void gameLobbyDialogImpl::addConnectedPlayer(unsigned playerId, QString playerNa
|
|||||||
refreshConnectedPlayerAvatars();
|
refreshConnectedPlayerAvatars();
|
||||||
}
|
}
|
||||||
|
|
||||||
void gameLobbyDialogImpl::addConnectedSpectator(unsigned spectatorId, QString spectatorName) {
|
void gameLobbyDialogImpl::addConnectedSpectator(unsigned spectatorId, QString spectatorName)
|
||||||
|
{
|
||||||
|
|
||||||
QTreeWidgetItem *item = new QTreeWidgetItem(treeWidget_connectedSpectators, 0);
|
QTreeWidgetItem *item = new QTreeWidgetItem(treeWidget_connectedSpectators, 0);
|
||||||
item->setData(0, Qt::UserRole, spectatorId);
|
item->setData(0, Qt::UserRole, spectatorId);
|
||||||
@@ -1672,8 +1673,11 @@ void gameLobbyDialogImpl::showNickListContextMenu(QPoint p)
|
|||||||
nickListPlayerInGameInfo->setText(playerInGameInfoString);
|
nickListPlayerInGameInfo->setText(playerInGameInfoString);
|
||||||
|
|
||||||
//prevent admin to total kickban himself
|
//prevent admin to total kickban himself
|
||||||
if(playerUid == mySession->getClientUniquePlayerId()) { nickListAdminTotalKickBan->setDisabled(true); }
|
if(playerUid == mySession->getClientUniquePlayerId()) {
|
||||||
else { nickListAdminTotalKickBan->setEnabled(true); }
|
nickListAdminTotalKickBan->setDisabled(true);
|
||||||
|
} else {
|
||||||
|
nickListAdminTotalKickBan->setEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
// check for admin and remove admin actions for non-admins
|
// check for admin and remove admin actions for non-admins
|
||||||
if(!mySession->getClientPlayerInfo(mySession->getClientUniquePlayerId()).isAdmin) {
|
if(!mySession->getClientPlayerInfo(mySession->getClientUniquePlayerId()).isAdmin) {
|
||||||
@@ -1693,8 +1697,11 @@ void gameLobbyDialogImpl::showGameListContextMenu(QPoint p)
|
|||||||
|
|
||||||
assert(mySession);
|
assert(mySession);
|
||||||
unsigned selectedGameId = myGameListSelectionModel->selectedRows().first().data(Qt::UserRole).toUInt();
|
unsigned selectedGameId = myGameListSelectionModel->selectedRows().first().data(Qt::UserRole).toUInt();
|
||||||
if(selectedGameId == mySession->getClientCurrentGameId()) { gameListAdminCloseGame->setDisabled(true); }
|
if(selectedGameId == mySession->getClientCurrentGameId()) {
|
||||||
else { gameListAdminCloseGame->setEnabled(true); }
|
gameListAdminCloseGame->setDisabled(true);
|
||||||
|
} else {
|
||||||
|
gameListAdminCloseGame->setEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
// check for admin and remove admin actions for non-admins
|
// check for admin and remove admin actions for non-admins
|
||||||
if(!mySession->getClientPlayerInfo(mySession->getClientUniquePlayerId()).isAdmin) {
|
if(!mySession->getClientPlayerInfo(mySession->getClientUniquePlayerId()).isAdmin) {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class MyGameListTreeWidget : public QTreeWidget
|
class MyGameListTreeWidget : public QTreeWidget
|
||||||
|
|||||||
@@ -4482,8 +4482,7 @@ void gameTableImpl::refreshSpectatorsDisplay()
|
|||||||
}
|
}
|
||||||
spectatorList.remove(spectatorList.size()-4,4);
|
spectatorList.remove(spectatorList.size()-4,4);
|
||||||
spectatorIcon->setToolTip(spectatorList);
|
spectatorIcon->setToolTip(spectatorList);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
spectatorIcon->setToolTip("");
|
spectatorIcon->setToolTip("");
|
||||||
spectatorIcon->clear();
|
spectatorIcon->clear();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class guiLog;
|
class guiLog;
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtSql>
|
#include <QtSql>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct result_struct {
|
struct result_struct {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class GameTableStyleReader;
|
class GameTableStyleReader;
|
||||||
|
|||||||
@@ -399,8 +399,7 @@ void MyAvatarLabel::paintEvent(QPaintEvent*)
|
|||||||
if(!playerIsOnIgnoreList(QString::fromUtf8(mySession->getClientPlayerInfo(myUniqueId).playerName.c_str()))) {
|
if(!playerIsOnIgnoreList(QString::fromUtf8(mySession->getClientPlayerInfo(myUniqueId).playerName.c_str()))) {
|
||||||
painter.drawPixmap(0,0,myPixmap);
|
painter.drawPixmap(0,0,myPixmap);
|
||||||
return;
|
return;
|
||||||
}
|
} else if(myW->getMyConfig()->readConfigInt("DontHideAvatarsOfIgnored")) {
|
||||||
else if(myW->getMyConfig()->readConfigInt("DontHideAvatarsOfIgnored")) {
|
|
||||||
painter.drawPixmap(0,0,myPixmap);
|
painter.drawPixmap(0,0,myPixmap);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class gameTableImpl;
|
class gameTableImpl;
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class gameTableImpl;
|
class gameTableImpl;
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class gameTableImpl;
|
class gameTableImpl;
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class gameTableImpl;
|
class gameTableImpl;
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class MyLeftTabWidget : public QTabWidget
|
class MyLeftTabWidget : public QTabWidget
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class MyMenuBar : public QMenuBar
|
class MyMenuBar : public QMenuBar
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class gameTableImpl;
|
class gameTableImpl;
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class MyRightTabWidget : public QTabWidget
|
class MyRightTabWidget : public QTabWidget
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class gameTableImpl;
|
class gameTableImpl;
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class gameTableImpl;
|
class gameTableImpl;
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
#include <third_party/boost/timers.hpp>
|
#include <third_party/boost/timers.hpp>
|
||||||
#endif
|
#endif
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class gameTableImpl;
|
class gameTableImpl;
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -287,8 +287,7 @@ void LogFileDialog::showLogAnalysis(QString /*filename*/, QString returnMessage)
|
|||||||
if (retStr == LOG_UPLOAD_ERROR_STR) {
|
if (retStr == LOG_UPLOAD_ERROR_STR) {
|
||||||
QString errorId(returnMessage.mid(retStr.size()).trimmed());
|
QString errorId(returnMessage.mid(retStr.size()).trimmed());
|
||||||
serverMsg += "\n" + tr("Failure reason: ");
|
serverMsg += "\n" + tr("Failure reason: ");
|
||||||
switch (errorId.toInt())
|
switch (errorId.toInt()) {
|
||||||
{
|
|
||||||
case LOG_UPLOAD_ERROR_NO_FILE :
|
case LOG_UPLOAD_ERROR_NO_FILE :
|
||||||
serverMsg += tr("No file received.");
|
serverMsg += tr("No file received.");
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class ConfigFile;
|
class ConfigFile;
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class ConfigFile;
|
class ConfigFile;
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class MyAvatarButton : public QPushButton
|
class MyAvatarButton : public QPushButton
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class MyHPAvatarButton : public QPushButton
|
class MyHPAvatarButton : public QPushButton
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class MyStyleListItem : public QTreeWidgetItem
|
class MyStyleListItem : public QTreeWidgetItem
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class MyAvatarListItem : public QListWidgetItem
|
class MyAvatarListItem : public QListWidgetItem
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
#include "ui_selectavatardialog.h"
|
#include "ui_selectavatardialog.h"
|
||||||
#endif
|
#endif
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
|
|||||||
@@ -31,13 +31,13 @@
|
|||||||
#include "soundevents.h"
|
#include "soundevents.h"
|
||||||
|
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
#ifdef ANDROID_API8
|
#ifdef ANDROID_API8
|
||||||
#include "androidapi8dummy.h"
|
#include "androidapi8dummy.h"
|
||||||
#else
|
|
||||||
#include "androidaudio.h"
|
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
#include "sdlplayer.h"
|
#include "androidaudio.h"
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#include "sdlplayer.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -52,11 +52,11 @@ SoundEvents::SoundEvents(ConfigFile *c): myConfig(c), lastSBValue(0), lastSBLeve
|
|||||||
{
|
{
|
||||||
|
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
#ifdef ANDROID_API8
|
#ifdef ANDROID_API8
|
||||||
myPlayer = new AndroidApi8Dummy(myConfig);
|
myPlayer = new AndroidApi8Dummy(myConfig);
|
||||||
#else
|
#else
|
||||||
myPlayer = new AndroidAudio(myConfig);
|
myPlayer = new AndroidAudio(myConfig);
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
myPlayer = new SDLPlayer(myConfig);
|
myPlayer = new SDLPlayer(myConfig);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -34,13 +34,13 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
#ifdef ANDROID_API8
|
#ifdef ANDROID_API8
|
||||||
class AndroidApi8Dummy;
|
class AndroidApi8Dummy;
|
||||||
#else
|
|
||||||
class AndroidAudio;
|
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
class SDLPlayer;
|
class AndroidAudio;
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
class SDLPlayer;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -64,11 +64,11 @@ protected:
|
|||||||
private:
|
private:
|
||||||
|
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
#ifdef ANDROID_API8
|
#ifdef ANDROID_API8
|
||||||
AndroidApi8Dummy *myPlayer;
|
AndroidApi8Dummy *myPlayer;
|
||||||
#else
|
#else
|
||||||
AndroidAudio *myPlayer;
|
AndroidAudio *myPlayer;
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
SDLPlayer *myPlayer;
|
SDLPlayer *myPlayer;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -60,10 +60,10 @@
|
|||||||
#include "guilog.h"
|
#include "guilog.h"
|
||||||
|
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
#ifndef ANDROID_TEST
|
#ifndef ANDROID_TEST
|
||||||
#include "QtGui/5.1.1/QtGui/qpa/qplatformnativeinterface.h"
|
#include "QtGui/5.1.1/QtGui/qpa/qplatformnativeinterface.h"
|
||||||
#include <jni.h>
|
#include <jni.h>
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
@@ -96,7 +96,7 @@ startWindowImpl::startWindowImpl(ConfigFile *c, Log *l)
|
|||||||
this->setStatusBar(0);
|
this->setStatusBar(0);
|
||||||
|
|
||||||
#ifdef GUI_800x480
|
#ifdef GUI_800x480
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
this->menubar->hide();
|
this->menubar->hide();
|
||||||
|
|
||||||
//check if custom background picture for the resolution is there. Otherwise create it!
|
//check if custom background picture for the resolution is there. Otherwise create it!
|
||||||
@@ -128,11 +128,11 @@ startWindowImpl::startWindowImpl(ConfigFile *c, Log *l)
|
|||||||
// currVM->DetachCurrentThread();
|
// currVM->DetachCurrentThread();
|
||||||
// }
|
// }
|
||||||
// #endif
|
// #endif
|
||||||
#else
|
#else
|
||||||
// Maemo
|
// Maemo
|
||||||
this->menubar->hide();
|
this->menubar->hide();
|
||||||
centralwidget->setStyleSheet(".QWidget { background-image: url(\""+myAppDataPath+"gfx/gui/misc/startwindowbg10_desktop.png\"); background-position: bottom center; background-origin: content; background-repeat: no-repeat;}");
|
centralwidget->setStyleSheet(".QWidget { background-image: url(\""+myAppDataPath+"gfx/gui/misc/startwindowbg10_desktop.png\"); background-position: bottom center; background-origin: content; background-repeat: no-repeat;}");
|
||||||
#endif
|
#endif
|
||||||
// All mobile GUI's
|
// All mobile GUI's
|
||||||
pushButtonStart_Local_Game->setStyleSheet("QPushButton { text-align:left; font-weight:bold; padding-left: 3px; padding-bottom: 3px; padding-top: 3px; padding-right: 3px; background-color: #505050; color: #FDC942; font-size:22px; border-width: 0px;}");
|
pushButtonStart_Local_Game->setStyleSheet("QPushButton { text-align:left; font-weight:bold; padding-left: 3px; padding-bottom: 3px; padding-top: 3px; padding-right: 3px; background-color: #505050; color: #FDC942; font-size:22px; border-width: 0px;}");
|
||||||
pushButtonInternet_Game->setStyleSheet("QPushButton { text-align:left; font-weight:bold; padding-left: 3px; padding-bottom: 3px; padding-top: 3px; padding-right: 3px; background-color: #505050; color: #FDC942; font-size:22px; border-width: 0px;}");
|
pushButtonInternet_Game->setStyleSheet("QPushButton { text-align:left; font-weight:bold; padding-left: 3px; padding-bottom: 3px; padding-top: 3px; padding-right: 3px; background-color: #505050; color: #FDC942; font-size:22px; border-width: 0px;}");
|
||||||
@@ -1186,7 +1186,8 @@ void startWindowImpl::networkMessage(unsigned msgId)
|
|||||||
msgText = tr("The player could not be found.");
|
msgText = tr("The player could not be found.");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default: showMsgBox = false;
|
default:
|
||||||
|
showMsgBox = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
#ifndef Q_MOC_RUN
|
#ifndef Q_MOC_RUN
|
||||||
#include <third_party/boost/timers.hpp>
|
#include <third_party/boost/timers.hpp>
|
||||||
|
|||||||
@@ -1837,8 +1837,7 @@ ServerLobbyThread::TimerRemoveGame(const boost::system::error_code &ec)
|
|||||||
GameMap::iterator next = i;
|
GameMap::iterator next = i;
|
||||||
++next;
|
++next;
|
||||||
boost::shared_ptr<ServerGame> tmpGame = i->second;
|
boost::shared_ptr<ServerGame> tmpGame = i->second;
|
||||||
if (!tmpGame->GetSessionManager().HasSessionWithState(SessionData::Game))
|
if (!tmpGame->GetSessionManager().HasSessionWithState(SessionData::Game)) {
|
||||||
{
|
|
||||||
tmpGame->MoveSpectatorsToLobby();
|
tmpGame->MoveSpectatorsToLobby();
|
||||||
InternalRemoveGame(tmpGame); // This will delete the game.
|
InternalRemoveGame(tmpGame); // This will delete the game.
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,8 +94,7 @@ ServerManager::Init(unsigned serverPort, unsigned websocketPort, bool ipv6, int
|
|||||||
sctpAcceptHelper->Listen(serverPort, ipv6, logDir, m_lobbyThread);
|
sctpAcceptHelper->Listen(serverPort, ipv6, logDir, m_lobbyThread);
|
||||||
m_acceptHelperPool.push_back(sctpAcceptHelper);
|
m_acceptHelperPool.push_back(sctpAcceptHelper);
|
||||||
}*/
|
}*/
|
||||||
if (proto & TRANSPORT_PROTOCOL_WEBSOCKET)
|
if (proto & TRANSPORT_PROTOCOL_WEBSOCKET) {
|
||||||
{
|
|
||||||
boost::shared_ptr<ServerAcceptInterface> webAcceptHelper(
|
boost::shared_ptr<ServerAcceptInterface> webAcceptHelper(
|
||||||
new ServerAcceptWebHelper(GetGui(), m_ioService, webSocketResource, webSocketOrigin));
|
new ServerAcceptWebHelper(GetGui(), m_ioService, webSocketResource, webSocketOrigin));
|
||||||
webAcceptHelper->Listen(websocketPort, ipv6, logDir, m_lobbyThread);
|
webAcceptHelper->Listen(websocketPort, ipv6, logDir, m_lobbyThread);
|
||||||
|
|||||||
@@ -36,8 +36,7 @@
|
|||||||
#include <net/websocket_defs.h>
|
#include <net/websocket_defs.h>
|
||||||
|
|
||||||
|
|
||||||
struct WebSocketData
|
struct WebSocketData {
|
||||||
{
|
|
||||||
boost::shared_ptr<server> webSocketServer;
|
boost::shared_ptr<server> webSocketServer;
|
||||||
websocketpp::connection_hdl webHandle;
|
websocketpp::connection_hdl webHandle;
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-2
@@ -211,8 +211,7 @@ int main( int argc, char **argv )
|
|||||||
QPixmap pixmap;
|
QPixmap pixmap;
|
||||||
if(customWelcomePokerTHFile.exists()) {
|
if(customWelcomePokerTHFile.exists()) {
|
||||||
pixmap.load(QFileInfo(customWelcomePokerTHFile).absoluteFilePath());
|
pixmap.load(QFileInfo(customWelcomePokerTHFile).absoluteFilePath());
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
//if custom welcome pic could not be saved locally we need to scale it on the fly
|
//if custom welcome pic could not be saved locally we need to scale it on the fly
|
||||||
pixmap.load(":/android/android-data/gfx/gui/misc/welcomepokerth10_mobile.png");
|
pixmap.load(":/android/android-data/gfx/gui/misc/welcomepokerth10_mobile.png");
|
||||||
pixmap = pixmap.scaled(screenWidth, screenHeight, Qt::KeepAspectRatioByExpanding, Qt::SmoothTransformation);
|
pixmap = pixmap.scaled(screenWidth, screenHeight, Qt::KeepAspectRatioByExpanding, Qt::SmoothTransformation);
|
||||||
|
|||||||
Reference in New Issue
Block a user