timout animation test

This commit is contained in:
doitux
2009-04-19 20:23:20 +00:00
parent d6c04c96e6
commit 6328ecfe44
9 changed files with 1578 additions and 1312 deletions
+412 -399
View File
@@ -1,314 +1,322 @@
# QMake pro-file for PokerTH game # QMake pro-file for PokerTH game
isEmpty( PREFIX ):PREFIX = /usr
isEmpty( PREFIX ){
PREFIX =/usr
}
TEMPLATE = app TEMPLATE = app
CODECFORSRC = UTF-8 CODECFORSRC = UTF-8
CONFIG += qt thread embed_manifest_exe exceptions rtti stl warn_on release # CONFIG += qt thread embed_manifest_exe exceptions rtti stl warn_on release
#CONFIG += qt thread embed_manifest_exe exceptions rtti stl warn_on debug CONFIG += qt \
thread \
#####Uncomment this for RELEASE on Linux/Unix/BSD (only for static Qt) embed_manifest_exe \
#QTPLUGIN += qjpeg qgif exceptions \
rtti \
stl \
warn_on \
debug
# ####Uncomment this for RELEASE on Linux/Unix/BSD (only for static Qt)
# QTPLUGIN += qjpeg qgif
UI_DIR = uics UI_DIR = uics
MOC_DIR = mocs MOC_DIR = mocs
OBJECTS_DIR = obj OBJECTS_DIR = obj
DEFINES += ENABLE_IPV6 DEFINES += ENABLE_IPV6
DEFINES += PREFIX=\"$${PREFIX}\" DEFINES += PREFIX=\"$${PREFIX}\"
TARGET = pokerth TARGET = pokerth
RESOURCES = src/gui/qt/resources/pokerth.qrc RESOURCES = src/gui/qt/resources/pokerth.qrc
INCLUDEPATH += . \ INCLUDEPATH += . \
src \ src \
src/engine \ src/engine \
src/gui \ src/gui \
src/net \ src/net \
src/engine/local_engine \ src/engine/local_engine \
src/engine/network_engine \ src/engine/network_engine \
src/config \ src/config \
src/third_party/tinyxml \ src/third_party/tinyxml \
src/gui/qt \ src/gui/qt \
src/gui/qt/connecttoserverdialog \ src/gui/qt/connecttoserverdialog \
src/core \ src/core \
src/gui/qt/sound \ src/gui/qt/sound \
src/gui/qt/qttools \ src/gui/qt/qttools \
src/gui/qt/chattools \ src/gui/qt/chattools \
src/gui/qt/qttools/qthelper \ src/gui/qt/qttools/qthelper \
src/gui/qt/gametable \ src/gui/qt/gametable \
src/gui/qt/gametable/startsplash \ src/gui/qt/gametable/startsplash \
src/gui/qt/gametable/log \ src/gui/qt/gametable/log \
src/gui/qt/gametable/chat \ src/gui/qt/gametable/chat \
src/gui/qt/aboutpokerth \ src/gui/qt/aboutpokerth \
src/gui/qt/createnetworkgamedialog \ src/gui/qt/createnetworkgamedialog \
src/gui/qt/createinternetgamedialog \ src/gui/qt/createinternetgamedialog \
src/gui/qt/joinnetworkgamedialog \ src/gui/qt/joinnetworkgamedialog \
src/gui/qt/newlocalgamedialog \ src/gui/qt/newlocalgamedialog \
src/gui/qt/settingsdialog \ src/gui/qt/settingsdialog \
src/gui/qt/settingsdialog/selectavatardialog \ src/gui/qt/settingsdialog/selectavatardialog \
src/gui/qt/settingsdialog/manualblindsorderdialog \ src/gui/qt/settingsdialog/manualblindsorderdialog \
src/gui/qt/startnetworkgamedialog \ src/gui/qt/startnetworkgamedialog \
src/gui/qt/startwindow \ src/gui/qt/startwindow \
src/gui/qt/serverlistdialog \ src/gui/qt/serverlistdialog \
src/gui/qt/styles \ src/gui/qt/styles \
src/gui/qt/changehumanplayernamedialog \ src/gui/qt/changehumanplayernamedialog \
src/gui/qt/changecompleteblindsdialog \ src/gui/qt/changecompleteblindsdialog \
src/gui/qt/mymessagedialog \ src/gui/qt/mymessagedialog \
src/gui/qt/gamelobbydialog \ src/gui/qt/gamelobbydialog \
src/gui/qt/gamelobbydialog/lobbychat \ src/gui/qt/gamelobbydialog/lobbychat \
src/gui/qt/timeoutmsgbox src/gui/qt/timeoutmsgbox
DEPENDPATH += . \ DEPENDPATH += . \
src \ src \
src/config \ src/config \
src/core \ src/core \
src/engine \ src/engine \
src/gui \ src/gui \
src/net \ src/net \
src/core/common \ src/core/common \
src/third_party/tinyxml \ src/third_party/tinyxml \
src/engine/local_engine \ src/engine/local_engine \
src/engine/network_engine \ src/engine/network_engine \
src/gui/qt \ src/gui/qt \
src/net/common \ src/net/common \
src/gui/qt/sound \ src/gui/qt/sound \
src/gui/qt/chattools \ src/gui/qt/chattools \
src/gui/qt/gametable \ src/gui/qt/gametable \
src/gui/qt/gametable/startsplash \ src/gui/qt/gametable/startsplash \
src/gui/qt/gametable/log \ src/gui/qt/gametable/log \
src/gui/qt/gametable/chat \ src/gui/qt/gametable/chat \
src/gui/qt/aboutpokerth \ src/gui/qt/aboutpokerth \
src/gui/qt/connecttoserverdialog \ src/gui/qt/connecttoserverdialog \
src/gui/qt/createinternetgamedialog \ src/gui/qt/createinternetgamedialog \
src/gui/qt/createnetworkgamedialog \ src/gui/qt/createnetworkgamedialog \
src/gui/qt/joinnetworkgamedialog \ src/gui/qt/joinnetworkgamedialog \
src/gui/qt/qttools \ src/gui/qt/qttools \
src/gui/qt/qttools/qthelper \ src/gui/qt/qttools/qthelper \
src/gui/qt/newlocalgamedialog \ src/gui/qt/newlocalgamedialog \
src/gui/qt/settingsdialog \ src/gui/qt/settingsdialog \
src/gui/qt/settingsdialog/selectavatardialog \ src/gui/qt/settingsdialog/selectavatardialog \
src/gui/qt/settingsdialog/manualblindsorderdialog \ src/gui/qt/settingsdialog/manualblindsorderdialog \
src/gui/qt/startnetworkgamedialog \ src/gui/qt/startnetworkgamedialog \
src/gui/qt/startwindow \ src/gui/qt/startwindow \
src/gui/qt/serverlistdialog \ src/gui/qt/serverlistdialog \
src/gui/qt/styles \ src/gui/qt/styles \
src/gui/qt/changehumanplayernamedialog \ src/gui/qt/changehumanplayernamedialog \
src/gui/qt/changecompleteblindsdialog \ src/gui/qt/changecompleteblindsdialog \
src/gui/qt/mymessagedialog \ src/gui/qt/mymessagedialog \
src/gui/qt/gamelobbydialog \ src/gui/qt/gamelobbydialog \
src/gui/qt/gamelobbydialog/lobbychat \ src/gui/qt/gamelobbydialog/lobbychat \
src/gui/qt/timeoutmsgbox src/gui/qt/timeoutmsgbox
# Input # Input
HEADERS += \ HEADERS += src/game.h \
src/game.h \ src/session.h \
src/session.h \ src/playerdata.h \
src/playerdata.h \ src/gamedata.h \
src/gamedata.h \ src/config/configfile.h \
src/config/configfile.h \ src/core/thread.h \
src/core/thread.h \ src/core/loghelper.h \
src/core/loghelper.h \ src/engine/boardinterface.h \
src/engine/boardinterface.h \ src/engine/enginefactory.h \
src/engine/enginefactory.h \ src/engine/handinterface.h \
src/engine/handinterface.h \ src/engine/playerinterface.h \
src/engine/playerinterface.h \ src/engine/berointerface.h \
src/engine/berointerface.h \ src/gui/guiinterface.h \
src/gui/guiinterface.h \ src/net/clientcallback.h \
src/net/clientcallback.h \ src/net/clientcontext.h \
src/net/clientcontext.h \ src/net/clientexception.h \
src/net/clientexception.h \ src/net/clientstate.h \
src/net/clientstate.h \ src/net/clientthread.h \
src/net/clientthread.h \ src/net/genericsocket.h \
src/net/genericsocket.h \ src/net/netpacket.h \
src/net/netpacket.h \ src/net/resolverthread.h \
src/net/resolverthread.h \ src/net/senderthread.h \
src/net/senderthread.h \ src/net/serveracceptthread.h \
src/net/serveracceptthread.h \ src/net/serverlobbythread.h \
src/net/serverlobbythread.h \ src/net/socket_helper.h \
src/net/socket_helper.h \ src/net/socket_msg.h \
src/net/socket_msg.h \ src/net/socket_startup.h \
src/net/socket_startup.h \ src/net/net_helper.h \
src/net/net_helper.h \ src/third_party/tinyxml/tinystr.h \
src/third_party/tinyxml/tinystr.h \ src/third_party/tinyxml/tinyxml.h \
src/third_party/tinyxml/tinyxml.h \ src/engine/local_engine/cardsvalue.h \
src/engine/local_engine/cardsvalue.h \ src/engine/local_engine/localboard.h \
src/engine/local_engine/localboard.h \ src/engine/local_engine/localenginefactory.h \
src/engine/local_engine/localenginefactory.h \ src/engine/local_engine/localhand.h \
src/engine/local_engine/localhand.h \ src/engine/local_engine/localplayer.h \
src/engine/local_engine/localplayer.h \ src/engine/local_engine/localberopreflop.h \
src/engine/local_engine/localberopreflop.h \ src/engine/local_engine/localberoflop.h \
src/engine/local_engine/localberoflop.h \ src/engine/local_engine/localberoturn.h \
src/engine/local_engine/localberoturn.h \ src/engine/local_engine/localberoriver.h \
src/engine/local_engine/localberoriver.h \ src/engine/local_engine/localberopostriver.h \
src/engine/local_engine/localberopostriver.h \ src/engine/local_engine/tools.h \
src/engine/local_engine/tools.h \ src/engine/local_engine/localbero.h \
src/engine/local_engine/localbero.h \ src/engine/network_engine/clientboard.h \
src/engine/network_engine/clientboard.h \ src/engine/network_engine/clientenginefactory.h \
src/engine/network_engine/clientenginefactory.h \ src/engine/network_engine/clienthand.h \
src/engine/network_engine/clienthand.h \ src/engine/network_engine/clientplayer.h \
src/engine/network_engine/clientplayer.h \ src/engine/network_engine/clientbero.h \
src/engine/network_engine/clientbero.h \ src/gui/qt/chattools/chattools.h \
src/gui/qt/chattools/chattools.h \ src/gui/qt/sound/sdlplayer.h \
src/gui/qt/sound/sdlplayer.h \ src/gui/qt/gametable/gametableimpl.h \
src/gui/qt/gametable/gametableimpl.h \ src/gui/qt/gametable/mycardspixmaplabel.h \
src/gui/qt/gametable/mycardspixmaplabel.h \ src/gui/qt/gametable/mysetlabel.h \
src/gui/qt/gametable/mysetlabel.h \ src/gui/qt/gametable/myactionbutton.h \
src/gui/qt/gametable/myactionbutton.h \ src/gui/qt/gametable/mystatuslabel.h \
src/gui/qt/gametable/mystatuslabel.h \ src/gui/qt/gametable/myavatarlabel.h \
src/gui/qt/gametable/myavatarlabel.h \ src/gui/qt/gametable/myrighttabwidget.h \
src/gui/qt/gametable/myrighttabwidget.h \ src/gui/qt/gametable/mylefttabwidget.h \
src/gui/qt/gametable/mylefttabwidget.h \ src/gui/qt/gametable/startsplash/startsplash.h \
src/gui/qt/gametable/startsplash/startsplash.h \ src/gui/qt/gametable/log/log.h \
src/gui/qt/gametable/log/log.h \ src/gui/qt/gametable/chat/chat.h \
src/gui/qt/gametable/chat/chat.h \ src/gui/qt/guiwrapper.h \
src/gui/qt/guiwrapper.h \ src/gui/qt/aboutpokerth/aboutpokerthimpl.h \
src/gui/qt/aboutpokerth/aboutpokerthimpl.h \ src/gui/qt/connecttoserverdialog/connecttoserverdialogimpl.h \
src/gui/qt/connecttoserverdialog/connecttoserverdialogimpl.h \ src/gui/qt/createnetworkgamedialog/createnetworkgamedialogimpl.h \
src/gui/qt/createnetworkgamedialog/createnetworkgamedialogimpl.h \ src/gui/qt/createinternetgamedialog/createinternetgamedialogimpl.h \
src/gui/qt/createinternetgamedialog/createinternetgamedialogimpl.h \ src/gui/qt/joinnetworkgamedialog/joinnetworkgamedialogimpl.h \
src/gui/qt/joinnetworkgamedialog/joinnetworkgamedialogimpl.h \ src/gui/qt/newlocalgamedialog/newgamedialogimpl.h \
src/gui/qt/newlocalgamedialog/newgamedialogimpl.h \ src/gui/qt/settingsdialog/settingsdialogimpl.h \
src/gui/qt/settingsdialog/settingsdialogimpl.h \ src/gui/qt/settingsdialog/myavatarbutton.h \
src/gui/qt/settingsdialog/myavatarbutton.h \ src/gui/qt/settingsdialog/myhpavatarbutton.h \
src/gui/qt/settingsdialog/myhpavatarbutton.h \ src/gui/qt/settingsdialog/selectavatardialog/selectavatardialogimpl.h \
src/gui/qt/settingsdialog/selectavatardialog/selectavatardialogimpl.h \ src/gui/qt/settingsdialog/selectavatardialog/myavatarlistitem.h \
src/gui/qt/settingsdialog/selectavatardialog/myavatarlistitem.h \ src/gui/qt/settingsdialog/manualblindsorderdialog/manualblindsorderdialogimpl.h \
src/gui/qt/settingsdialog/manualblindsorderdialog/manualblindsorderdialogimpl.h \ src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.h \
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.h \ src/gui/qt/startwindow/startwindowimpl.h \
src/gui/qt/startwindow/startwindowimpl.h \ src/gui/qt/styles/gametablestylereader.h \
src/gui/qt/styles/gametablestylereader.h \ src/gui/qt/styles/carddeckstylereader.h \
src/gui/qt/styles/carddeckstylereader.h \ src/gui/qt/changehumanplayernamedialog/changehumanplayernamedialogimpl.h \
src/gui/qt/changehumanplayernamedialog/changehumanplayernamedialogimpl.h \ src/gui/qt/changecompleteblindsdialog/changecompleteblindsdialogimpl.h \
src/gui/qt/changecompleteblindsdialog/changecompleteblindsdialogimpl.h \ src/gui/qt/gamelobbydialog/gamelobbydialogimpl.h \
src/gui/qt/gamelobbydialog/gamelobbydialogimpl.h \ src/gui/qt/gamelobbydialog/mygamelisttreewidget.h \
src/gui/qt/gamelobbydialog/mygamelisttreewidget.h \ src/gui/qt/gamelobbydialog/lobbychat/lobbychat.h \
src/gui/qt/gamelobbydialog/lobbychat/lobbychat.h \ src/gui/qt/timeoutmsgbox/timeoutmsgboximpl.h \
src/gui/qt/timeoutmsgbox/timeoutmsgboximpl.h \ src/gui/qt/mymessagedialog/mymessagedialogimpl.h \
src/gui/qt/mymessagedialog/mymessagedialogimpl.h \ src/gui/qttoolsinterface.h \
src/gui/qttoolsinterface.h \ src/gui/qt/qttools/qttoolswrapper.h \
src/gui/qt/qttools/qttoolswrapper.h \ src/gui/qt/qttools/qthelper/qthelper.h \
src/gui/qt/qttools/qthelper/qthelper.h \ src/gui/generic/serverguiwrapper.h \
src/gui/generic/serverguiwrapper.h \ src/gui/qt/gametable/mychancelabel.h \
src/gui/qt/gametable/mychancelabel.h \ src/gui/qt/serverlistdialog/serverlistdialogimpl.h \
src/gui/qt/serverlistdialog/serverlistdialogimpl.h src/gui/qt/gametable/mymenubar.h \
src/gui/qt/gametable/mytimeoutlabel.h
FORMS += \ FORMS += src/gui/qt/gametable.ui \
src/gui/qt/gametable.ui \ src/gui/qt/aboutpokerth.ui \
src/gui/qt/aboutpokerth.ui \ src/gui/qt/connecttoserverdialog.ui \
src/gui/qt/connecttoserverdialog.ui \ src/gui/qt/createnetworkgamedialog.ui \
src/gui/qt/createnetworkgamedialog.ui \ src/gui/qt/createinternetgamedialog.ui \
src/gui/qt/createinternetgamedialog.ui \ src/gui/qt/joinnetworkgamedialog.ui \
src/gui/qt/joinnetworkgamedialog.ui \ src/gui/qt/newgamedialog.ui \
src/gui/qt/newgamedialog.ui \ src/gui/qt/settingsdialog.ui \
src/gui/qt/settingsdialog.ui \ src/gui/qt/selectavatardialog.ui \
src/gui/qt/selectavatardialog.ui \ src/gui/qt/startnetworkgamedialog.ui \
src/gui/qt/startnetworkgamedialog.ui \ src/gui/qt/startwindow.ui \
src/gui/qt/startwindow.ui \ src/gui/qt/changehumanplayernamedialog.ui \
src/gui/qt/changehumanplayernamedialog.ui \ src/gui/qt/changecompleteblindsdialog.ui \
src/gui/qt/changecompleteblindsdialog.ui \ src/gui/qt/gamelobbydialog.ui \
src/gui/qt/gamelobbydialog.ui \ src/gui/qt/mymessagedialog.ui \
src/gui/qt/mymessagedialog.ui \ src/gui/qt/manualblindsorderdialog.ui \
src/gui/qt/manualblindsorderdialog.ui \ src/gui/qt/serverlistdialog.ui
src/gui/qt/serverlistdialog.ui SOURCES += src/pokerth.cpp \
src/gui/qt/chattools/chattools.cpp \
SOURCES += \ src/gui/qt/sound/sdlplayer.cpp \
src/pokerth.cpp \ src/gui/qt/guiwrapper.cpp \
src/gui/qt/chattools/chattools.cpp \ src/gui/qt/qttools/qttoolswrapper.cpp \
src/gui/qt/sound/sdlplayer.cpp \ src/gui/qt/qttools/qthelper/qthelper.cpp \
src/gui/qt/guiwrapper.cpp \ src/gui/qt/gametable/gametableimpl.cpp \
src/gui/qt/qttools/qttoolswrapper.cpp \ src/gui/qt/gametable/mycardspixmaplabel.cpp \
src/gui/qt/qttools/qthelper/qthelper.cpp \ src/gui/qt/gametable/mysetlabel.cpp \
src/gui/qt/gametable/gametableimpl.cpp \ src/gui/qt/gametable/myactionbutton.cpp \
src/gui/qt/gametable/mycardspixmaplabel.cpp \ src/gui/qt/gametable/mystatuslabel.cpp \
src/gui/qt/gametable/mysetlabel.cpp \ src/gui/qt/gametable/myavatarlabel.cpp \
src/gui/qt/gametable/myactionbutton.cpp \ src/gui/qt/gametable/myrighttabwidget.cpp \
src/gui/qt/gametable/mystatuslabel.cpp \ src/gui/qt/gametable/mylefttabwidget.cpp \
src/gui/qt/gametable/myavatarlabel.cpp \ src/gui/qt/gametable/startsplash/startsplash.cpp \
src/gui/qt/gametable/myrighttabwidget.cpp \ src/gui/qt/gametable/log/log.cpp \
src/gui/qt/gametable/mylefttabwidget.cpp \ src/gui/qt/gametable/chat/chat.cpp \
src/gui/qt/gametable/startsplash/startsplash.cpp \ src/gui/qt/aboutpokerth/aboutpokerthimpl.cpp \
src/gui/qt/gametable/log/log.cpp \ src/gui/qt/connecttoserverdialog/connecttoserverdialogimpl.cpp \
src/gui/qt/gametable/chat/chat.cpp \ src/gui/qt/createnetworkgamedialog/createnetworkgamedialogimpl.cpp \
src/gui/qt/aboutpokerth/aboutpokerthimpl.cpp \ src/gui/qt/createinternetgamedialog/createinternetgamedialogimpl.cpp \
src/gui/qt/connecttoserverdialog/connecttoserverdialogimpl.cpp \ src/gui/qt/joinnetworkgamedialog/joinnetworkgamedialogimpl.cpp \
src/gui/qt/createnetworkgamedialog/createnetworkgamedialogimpl.cpp \ src/gui/qt/newlocalgamedialog/newgamedialogimpl.cpp \
src/gui/qt/createinternetgamedialog/createinternetgamedialogimpl.cpp \ src/gui/qt/settingsdialog/settingsdialogimpl.cpp \
src/gui/qt/joinnetworkgamedialog/joinnetworkgamedialogimpl.cpp \ src/gui/qt/settingsdialog/myavatarbutton.cpp \
src/gui/qt/newlocalgamedialog/newgamedialogimpl.cpp \ src/gui/qt/settingsdialog/myhpavatarbutton.cpp \
src/gui/qt/settingsdialog/settingsdialogimpl.cpp \ src/gui/qt/settingsdialog/selectavatardialog/selectavatardialogimpl.cpp \
src/gui/qt/settingsdialog/myavatarbutton.cpp \ src/gui/qt/settingsdialog/selectavatardialog/myavatarlistitem.cpp \
src/gui/qt/settingsdialog/myhpavatarbutton.cpp \ src/gui/qt/settingsdialog/manualblindsorderdialog/manualblindsorderdialogimpl.cpp \
src/gui/qt/settingsdialog/selectavatardialog/selectavatardialogimpl.cpp \ src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.cpp \
src/gui/qt/settingsdialog/selectavatardialog/myavatarlistitem.cpp \ src/gui/qt/startwindow/startwindowimpl.cpp \
src/gui/qt/settingsdialog/manualblindsorderdialog/manualblindsorderdialogimpl.cpp \ src/gui/qt/styles/gametablestylereader.cpp \
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.cpp \ src/gui/qt/styles/carddeckstylereader.cpp \
src/gui/qt/startwindow/startwindowimpl.cpp \ src/gui/qt/changehumanplayernamedialog/changehumanplayernamedialogimpl.cpp \
src/gui/qt/styles/gametablestylereader.cpp \ src/gui/qt/changecompleteblindsdialog/changecompleteblindsdialogimpl.cpp \
src/gui/qt/styles/carddeckstylereader.cpp \ src/gui/qt/mymessagedialog/mymessagedialogimpl.cpp \
src/gui/qt/changehumanplayernamedialog/changehumanplayernamedialogimpl.cpp \ src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp \
src/gui/qt/changecompleteblindsdialog/changecompleteblindsdialogimpl.cpp \ src/gui/qt/gamelobbydialog/mygamelisttreewidget.cpp \
src/gui/qt/mymessagedialog/mymessagedialogimpl.cpp \ src/gui/qt/gamelobbydialog/lobbychat/lobbychat.cpp \
src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp \ src/gui/qt/timeoutmsgbox/timeoutmsgboximpl.cpp \
src/gui/qt/gamelobbydialog/mygamelisttreewidget.cpp \ src/net/common/net_helper_client.cpp \
src/gui/qt/gamelobbydialog/lobbychat/lobbychat.cpp \ src/core/common/loghelper_client.cpp \
src/gui/qt/timeoutmsgbox/timeoutmsgboximpl.cpp \ src/gui/qt/gametable/mychancelabel.cpp \
src/net/common/net_helper_client.cpp \ src/gui/qt/serverlistdialog/serverlistdialogimpl.cpp \
src/core/common/loghelper_client.cpp \ src/gui/qt/gametable/mymenubar.cpp \
src/gui/qt/gametable/mychancelabel.cpp \ src/gui/qt/gametable/mytimeoutlabel.cpp
src/gui/qt/serverlistdialog/serverlistdialogimpl.cpp TRANSLATIONS = ts/pokerth_bg.ts \
ts/pokerth_de.ts \
TRANSLATIONS = \ ts/pokerth_dk.ts \
ts/pokerth_bg.ts \ ts/pokerth_es.ts \
ts/pokerth_de.ts \ ts/pokerth_fr.ts \
ts/pokerth_dk.ts \ ts/pokerth_hu.ts \
ts/pokerth_es.ts \ ts/pokerth_it.ts \
ts/pokerth_fr.ts \ ts/pokerth_nl.ts \
ts/pokerth_hu.ts \ ts/pokerth_no.ts \
ts/pokerth_it.ts \ ts/pokerth_pl.ts \
ts/pokerth_nl.ts \ ts/pokerth_ru.ts \
ts/pokerth_no.ts \ ts/pokerth_sk.ts \
ts/pokerth_pl.ts \ ts/pokerth_sv.ts \
ts/pokerth_ru.ts \ ts/pokerth_tr.ts \
ts/pokerth_sk.ts \ ts/pokerth_gr.ts \
ts/pokerth_sv.ts \ ts/pokerth_ptbr.ts \
ts/pokerth_tr.ts \ ts/pokerth_zhcn.ts \
ts/pokerth_gr.ts \ ts/pokerth_fi.ts \
ts/pokerth_ptbr.ts \ ts/pokerth_START_HERE.ts
ts/pokerth_zhcn.ts \ win32 {
ts/pokerth_fi.ts \ QTPLUGIN += qjpeg \
ts/pokerth_START_HERE.ts qgif
win32 {
QTPLUGIN += qjpeg qgif
DEFINES += CURL_STATICLIB DEFINES += CURL_STATICLIB
DEFINES += _WIN32_WINNT=0x0501 DEFINES += _WIN32_WINNT=0x0501
DEPENDPATH += src/net/win32/ src/core/win32 DEPENDPATH += src/net/win32/ \
INCLUDEPATH += ../boost/ ../SDL/include ../SDL_mixer src/core/win32
INCLUDEPATH += ../SDL/include/SDL ../SDL_mixer/include ../GnuTLS/include ../curl/include ../zlib INCLUDEPATH += ../boost/ \
LIBPATH += ../boost/stage/lib ../GnuTLS/lib ../curl/lib ../zlib ../SDL/include \
../SDL_mixer
INCLUDEPATH += ../SDL/include/SDL \
../SDL_mixer/include \
../GnuTLS/include \
../curl/include \
../zlib
LIBPATH += ../boost/stage/lib \
../GnuTLS/lib \
../curl/lib \
../zlib
LIBS += -lpokerth_lib LIBS += -lpokerth_lib
win32-msvc2005 {
win32-msvc2005 { LIBPATH += Release/lib \
LIBPATH += Release/lib ../SDL/VisualC/SDL/Release ../SDL/VisualC/SDLmain/Release ../SDL_mixer/VisualC/Release ../SDL/VisualC/SDL/Release \
#LIBPATH += Debug/lib ../SDL/VisualC/SDL/Debug ../SDL/VisualC/SDLmain/Debug ../SDL_mixer/VisualC/Debug ../SDL/VisualC/SDLmain/Release \
../SDL_mixer/VisualC/Release
LIBS += -llibgnutls-openssl -llibgcrypt
# LIBPATH += Debug/lib ../SDL/VisualC/SDL/Debug ../SDL/VisualC/SDLmain/Debug ../SDL_mixer/VisualC/Debug
LIBS += -llibgnutls-openssl \
-llibgcrypt
LIBS += -llibcurl LIBS += -llibcurl
} }
win32-g++ {
win32-g++ { debug:LIBPATH += Debug/lib
debug { release:LIBPATH += Release/lib
LIBPATH += Debug/lib LIBPATH += ../SDL/lib \
} ../SDL_mixer/lib
release { LIBS += -lgnutls-openssl \
LIBPATH += Release/lib -lgnutls \
} -lgcrypt \
LIBPATH += ../SDL/lib ../SDL_mixer/lib -ltasn1 \
LIBS += -lgnutls-openssl -lgnutls -lgcrypt -ltasn1 -lgpg-error -lgpg-error
LIBS += -lcurl LIBS += -lcurl
LIBS += -lz LIBS += -lz
LIBS += -llibboost_thread-mgw43-mt-1_38 LIBS += -llibboost_thread-mgw43-mt-1_38
@@ -318,130 +326,128 @@ win32 {
LIBS += -llibboost_iostreams-mgw43-mt-1_38 LIBS += -llibboost_iostreams-mgw43-mt-1_38
LIBS += -llibboost_zlib-mgw43-mt-1_38 LIBS += -llibboost_zlib-mgw43-mt-1_38
} }
LIBS += -lgdi32 \
LIBS += -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lole32 -luuid -luser32 -lmsimg32 -lshell32 -lkernel32 -lws2_32 -ladvapi32 -lsdl -lsdlmain -lsdl_mixer -lwldap32 -lcomdlg32 \
-loleaut32 \
-limm32 \
-lwinmm \
-lwinspool \
-lole32 \
-luuid \
-luser32 \
-lmsimg32 \
-lshell32 \
-lkernel32 \
-lws2_32 \
-ladvapi32 \
-lsdl \
-lsdlmain \
-lsdl_mixer \
-lwldap32
RC_FILE = pokerth.rc RC_FILE = pokerth.rc
} }
!win32 { !win32:DEPENDPATH += src/net/linux/ \
DEPENDPATH += src/net/linux/ src/core/linux src/core/linux
} unix:# workaround for problems with boost_filesystem exceptions
QMAKE_LFLAGS += -no_dead_strip_inits_and_terms
unix { unix:!mac {
# workaround for problems with boost_filesystem exceptions # #### My release static build options
QMAKE_LFLAGS += -no_dead_strip_inits_and_terms # QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections
} # QMAKE_LFLAGS += -Wl,--gc-sections
LIBPATH += lib
unix : !mac { LIB_DIRS = $${PREFIX}/lib \
$${PREFIX}/lib64
##### My release static build options BOOST_FS = boost_filesystem \
#QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections boost_filesystem-mt
#QMAKE_LFLAGS += -Wl,--gc-sections BOOST_THREAD = boost_thread \
boost_thread-mt
LIBPATH += lib BOOST_IOSTREAMS = boost_iostreams \
boost_iostreams-mt
LIB_DIRS = $${PREFIX}/lib $${PREFIX}/lib64 BOOST_REGEX = boost_regex \
BOOST_FS = boost_filesystem boost_filesystem-mt boost_regex-mt
BOOST_THREAD = boost_thread boost_thread-mt
BOOST_IOSTREAMS = boost_iostreams boost_iostreams-mt # searching in $PREFIX/lib and $PREFIX/lib64
BOOST_REGEX = boost_regex boost_regex-mt # to override the default '/usr' pass PREFIX
# variable to qmake.
# for(dir, LIB_DIRS):exists($$dir) {
# searching in $PREFIX/lib and $PREFIX/lib64 for(lib, BOOST_THREAD):exists($${dir}/lib$${lib}.so*) {
# to override the default '/usr' pass PREFIX message("Found $$lib")
# variable to qmake. BOOST_THREAD = -l$$lib
#
for(dir, LIB_DIRS){
exists($$dir){
for(lib, BOOST_THREAD){
exists($${dir}/lib$${lib}.so*){
message("Found $$lib")
BOOST_THREAD = -l$$lib
}
}
for(lib, BOOST_FS){
exists($${dir}/lib$${lib}.so*){
message("Found $$lib")
BOOST_FS = -l$$lib
}
}
for(lib, BOOST_IOSTREAMS){
exists($${dir}/lib$${lib}.so*){
message("Found $$lib")
BOOST_IOSTREAMS = -l$$lib
}
}
for(lib, BOOST_REGEX){
exists($${dir}/lib$${lib}.so*){
message("Found $$lib")
BOOST_REGEX = -l$$lib
}
}
}
} }
BOOST_LIBS = $$BOOST_THREAD $$BOOST_FS $$BOOST_IOSTREAMS $$BOOST_REGEX for(lib, BOOST_FS):exists($${dir}/lib$${lib}.so*) {
!count(BOOST_LIBS, 4){ message("Found $$lib")
error("Unable to find boost libraries in PREFIX=$${PREFIX}") BOOST_FS = -l$$lib
} }
for(lib, BOOST_IOSTREAMS):exists($${dir}/lib$${lib}.so*) {
if($$system(sdl-config --version)){ message("Found $$lib")
error("sdl-config not found in PATH - libSDL_mixer, libSDL are required!") BOOST_IOSTREAMS = -l$$lib
} }
for(lib, BOOST_REGEX):exists($${dir}/lib$${lib}.so*) {
UNAME = $$system(uname -s) message("Found $$lib")
BSD = $$find(UNAME, "BSD") BOOST_REGEX = -l$$lib
kFreeBSD = $$find(UNAME, "kFreeBSD")
LIBS += -lpokerth_lib
LIBS += $$BOOST_LIBS
LIBS += -lSDL_mixer -lcurl
!isEmpty( BSD ) && isEmpty( kFreeBSD ){
LIBS += -lcrypto
} else {
LIBS += -lgnutls-openssl -lgcrypt
} }
TARGETDEPS += ./lib/libpokerth_lib.a
##### My release static libs
#LIBS += -lgcrypt_static -lgpg-error_static -lgnutls-openssl_static -lgnutls_static -lSDL_mixer_static -lSDL -lmikmod -lcurl
#### INSTALL ####
binary.path += $${PREFIX}/bin/
binary.files += pokerth
data.path += $${PREFIX}/share/pokerth/data/
data.files += data/*
pixmap.path += $${PREFIX}/share/pixmaps/
pixmap.files += pokerth.png
desktop.path += $${PREFIX}/share/applications/
desktop.files += pokerth.desktop
INSTALLS += binary data pixmap desktop
} }
BOOST_LIBS = $$BOOST_THREAD \
mac { $$BOOST_FS \
# make it universal $$BOOST_IOSTREAMS \
CONFIG += x86 $$BOOST_REGEX
!count(BOOST_LIBS, 4):error("Unable to find boost libraries in PREFIX=$${PREFIX}")
if($$system(sdl-config --version)):error("sdl-config not found in PATH - libSDL_mixer, libSDL are required!")
UNAME = $$system(uname -s)
BSD = $$find(UNAME, "BSD")
kFreeBSD = $$find(UNAME, "kFreeBSD")
LIBS += -lpokerth_lib
LIBS += $$BOOST_LIBS
LIBS += -lSDL_mixer \
-lcurl
!isEmpty( BSD ) && isEmpty( kFreeBSD ):LIBS += -lcrypto
else:LIBS += -lgnutls-openssl \
-lgcrypt
TARGETDEPS += ./lib/libpokerth_lib.a
# #### My release static libs
# LIBS += -lgcrypt_static -lgpg-error_static -lgnutls-openssl_static -lgnutls_static -lSDL_mixer_static -lSDL -lmikmod -lcurl
# ### INSTALL ####
binary.path += $${PREFIX}/bin/
binary.files += pokerth
data.path += $${PREFIX}/share/pokerth/data/
data.files += data/*
pixmap.path += $${PREFIX}/share/pixmaps/
pixmap.files += pokerth.png
desktop.path += $${PREFIX}/share/applications/
desktop.files += pokerth.desktop
INSTALLS += binary \
data \
pixmap \
desktop
}
mac {
# make it universal
CONFIG += x86
CONFIG += ppc CONFIG += ppc
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.3 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.3
# for universal-compilation on PPC-Mac uncomment the following line # for universal-compilation on PPC-Mac uncomment the following line
# on Intel-Mac you have to comment this line out or build will fail. # on Intel-Mac you have to comment this line out or build will fail.
# QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk/ # QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk/
LIBPATH += lib LIBPATH += lib
LIBS += -lpokerth_lib LIBS += -lpokerth_lib
# Qt static (path is standard for self-compiling qt) # Qt static (path is standard for self-compiling qt)
#LIBS += /usr/local/Trolltech/Qt-4.2.3/lib/libQtCore.a # LIBS += /usr/local/Trolltech/Qt-4.2.3/lib/libQtCore.a
#LIBS += /usr/local/Trolltech/Qt-4.2.3/lib/libQtGui.a # LIBS += /usr/local/Trolltech/Qt-4.2.3/lib/libQtGui.a
# QT dynamic linked framework (see also mac_post_make.sh) # QT dynamic linked framework (see also mac_post_make.sh)
LIBS += -framework QtCore LIBS += -framework \
LIBS += -framework QtGui QtCore
LIBS += -framework \
QtGui
# SDL and SDL_mixer come as frameworks # SDL and SDL_mixer come as frameworks
LIBS += -framework SDL LIBS += -framework \
LIBS += -framework SDL_mixer SDL
LIBS += -framework \
SDL_mixer
# standard path for darwinports # standard path for darwinports
# make sure you have a universal version of boost # make sure you have a universal version of boost
LIBS += /usr/local/lib/libboost_thread-xgcc40-mt.a LIBS += /usr/local/lib/libboost_thread-xgcc40-mt.a
@@ -449,8 +455,15 @@ mac {
LIBS += /usr/local/lib/libboost_regex-xgcc40-mt.a LIBS += /usr/local/lib/libboost_regex-xgcc40-mt.a
LIBS += /usr/local/lib/libboost_system-xgcc40-mt.a LIBS += /usr/local/lib/libboost_system-xgcc40-mt.a
LIBS += /usr/local/lib/libboost_iostreams-xgcc40-mt.a LIBS += /usr/local/lib/libboost_iostreams-xgcc40-mt.a
# libraries installed on every mac # libraries installed on every mac
LIBS += -lcrypto -lssl -lz -lcurl -framework Carbon LIBS += -lcrypto \
-lssl \
-lz \
-lcurl \
-framework \
Carbon
# set the application icon # set the application icon
RC_FILE = pokerth.icns RC_FILE = pokerth.icns
LIBPATH += /Developer/SDKs/MacOSX10.4u.sdk/usr/lib LIBPATH += /Developer/SDKs/MacOSX10.4u.sdk/usr/lib
+936 -912
View File
File diff suppressed because it is too large Load Diff
+4
View File
@@ -29,6 +29,8 @@
#include "myavatarlabel.h" #include "myavatarlabel.h"
#include "myactionbutton.h" #include "myactionbutton.h"
#include "mychancelabel.h" #include "mychancelabel.h"
#include "mytimeoutlabel.h"
#include "mymenubar.h"
#include "log.h" #include "log.h"
#include "chat.h" #include "chat.h"
@@ -265,6 +267,7 @@ gameTableImpl::gameTableImpl(ConfigFile *c, QMainWindow *parent)
setLabelArray[8] = textLabel_Set8; setLabelArray[8] = textLabel_Set8;
setLabelArray[9] = textLabel_Set9; setLabelArray[9] = textLabel_Set9;
for (i=0; i<MAX_NUMBER_OF_PLAYERS; i++) { setLabelArray[i]->setMyW(this); } for (i=0; i<MAX_NUMBER_OF_PLAYERS; i++) { setLabelArray[i]->setMyW(this); }
label_Timeout0->setMyW(this);
// statusLabelArray init // statusLabelArray init
actionLabelArray[0] = textLabel_Status0; actionLabelArray[0] = textLabel_Status0;
@@ -1497,6 +1500,7 @@ void gameTableImpl::startTimeoutAnimation(int playerId, int timeoutSec) {
//beep for player 0 //beep for player 0
if(playerId) { setLabelArray[playerId]->startTimeOutAnimation(timeoutSec, FALSE); } if(playerId) { setLabelArray[playerId]->startTimeOutAnimation(timeoutSec, FALSE); }
else { setLabelArray[playerId]->startTimeOutAnimation(timeoutSec, TRUE); } else { setLabelArray[playerId]->startTimeOutAnimation(timeoutSec, TRUE); }
label_Timeout0->startTimeOutAnimation(timeoutSec, FALSE);
} }
void gameTableImpl::stopTimeoutAnimation(int playerId) { void gameTableImpl::stopTimeoutAnimation(int playerId) {
+1
View File
@@ -40,6 +40,7 @@ class BoardInterface;
class PlayerInterface; class PlayerInterface;
class MyCardsPixmapLabel; class MyCardsPixmapLabel;
class MyAvatarLabel; class MyAvatarLabel;
class MyTimeoutLabel;
class settingsDialogImpl; class settingsDialogImpl;
class startWindowImpl; class startWindowImpl;
+11
View File
@@ -0,0 +1,11 @@
#include "mymenubar.h"
MyMenuBar::MyMenuBar(QMainWindow* parent)
: QMenuBar(parent)
{
}
void MyMenuBar::paintEvent(QPaintEvent * event) {
QMenuBar::paintEvent(event);
}
+16
View File
@@ -0,0 +1,16 @@
#ifndef MYMENUBAR_H
#define MYMENUBAR_H
#include <QtGui>
#include <QtCore>
class MyMenuBar : public QMenuBar
{
Q_OBJECT
public:
MyMenuBar(QMainWindow*);
void paintEvent(QPaintEvent * event);
};
#endif
+127
View File
@@ -0,0 +1,127 @@
//
// C++ Implementation: mycardspixmaplabel
//
// Description:
//
//
// Author: FThauer FHammer <f.thauer@web.de>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "mytimeoutlabel.h"
#include "gametableimpl.h"
using namespace std;
MyTimeoutLabel::MyTimeoutLabel(QGroupBox* parent)
: QLabel(parent), timeOutAnimation(FALSE), timeOutValue(0), timeOutFrame(0), waitFrames(0), timerIntervall(0), isBeep(0), isBeepPlayed(0)
{
timeOutAnimationTimer = new QTimer;
connect(timeOutAnimationTimer, SIGNAL(timeout()), this, SLOT(nextTimeOutAnimationFrame()));
}
MyTimeoutLabel::~MyTimeoutLabel()
{
}
void MyTimeoutLabel::startTimeOutAnimation(int secs, bool beep) {
isBeepPlayed = FALSE;
isBeep = beep;
timeOutValue = secs;
timeOutFrame = 1;
timeOutAnimationWidth = 50;
int preTimerIntervall = ((timeOutValue-3) * 1000)/timeOutAnimationWidth;
timerIntervall = preTimerIntervall;
//save gfx ressources and never play more the 10 pps
while(timerIntervall < 100) {
if(secs <= 9 && secs >= 6) {
//fix inaccuracies caused by integer division
timerIntervall = timerIntervall + preTimerIntervall + 5;
}
else {
timerIntervall = timerIntervall + preTimerIntervall;
}
}
waitFrames = 3000/timerIntervall;
//start the real timer
realTimer.reset();
realTimer.start();
// std::cout << timerIntervall << endl;
timeOutAnimation = TRUE;
timeOutAnimationTimer->start(timerIntervall);
}
void MyTimeoutLabel::startTimeOutAnimationNow() {
timeOutAnimation = TRUE;
timeOutAnimationTimer->start(83);
}
void MyTimeoutLabel::stopTimeOutAnimation() {
// timeOutAnimationKickOnTimer->stop();
timeOutAnimationTimer->stop();
timeOutAnimation = FALSE;
update();
}
void MyTimeoutLabel::nextTimeOutAnimationFrame() {
if(timeOutAnimationWidth >=0) {
if(timeOutFrame > waitFrames) {
//play beep after waitFrames one time
if(isBeep && !isBeepPlayed) {
myW->getMySDLPlayer()->playSound("yourturn",0);
isBeepPlayed = TRUE;
}
//save gfx ressources and never play more the 10 pps
unsigned int realTimerValue = realTimer.elapsed().total_milliseconds();
timeOutAnimationWidth = 50-(((realTimerValue-3000)*50)/((timeOutValue-3)*1000));
}
timeOutFrame++;
update();
}
else {
stopTimeOutAnimation();
// no callback is called here.
// the server initiates any action required.
}
}
void MyTimeoutLabel::paintEvent(QPaintEvent * event) {
if(!timeOutAnimation || timeOutFrame <= waitFrames) {
QLabel::paintEvent(event);
}
if(timeOutAnimation && timeOutFrame > waitFrames) {
QPainter painter(this);
QLinearGradient linearGrad(QPointF(0, 10), QPointF(45, 10));
linearGrad.setColorAt(0, Qt::red);
linearGrad.setColorAt(0.5, Qt::yellow);
linearGrad.setColorAt(1, Qt::green);
painter.setBrush(linearGrad);
painter.setPen(QColor(0,0,0));
painter.drawRect(0,2,timeOutAnimationWidth-1,8);
}
}
+70
View File
@@ -0,0 +1,70 @@
//
// C++ Interface: mycardspixmaplabel
//
// Description:
//
//
// Author: FThauer FHammer <f.thauer@web.de>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef MYTIMEOUTLABEL_H
#define MYTIMEOUTLABEL_H
#include <iostream>
#include <QtGui>
#include <QtCore>
#include <third_party/boost/timers.hpp>
#include "sdlplayer.h"
class gameTableImpl;
class MyTimeoutLabel : public QLabel
{
Q_OBJECT
public:
MyTimeoutLabel(QGroupBox*);
~MyTimeoutLabel();
void setMyW ( gameTableImpl* theValue ) { myW = theValue; }
void startTimeOutAnimation(int secs, bool beep);
void stopTimeOutAnimation();
void paintEvent(QPaintEvent * event);
public slots:
void startTimeOutAnimationNow();
void nextTimeOutAnimationFrame();
private:
gameTableImpl *myW;
QTimer *timeOutAnimationTimer;
QTimer *timeOutAnimationKickOnTimer;
// boost::shared_ptr<SDLPlayer> mySDLPlayer;
boost::timers::portable::microsec_timer realTimer;
bool timeOutAnimation;
int timeOutAnimationWidth;
int timeOutValue;
int timeOutFrame;
int waitFrames;
int decreaseWidthIntervall;
int timerIntervall;
bool isBeep;
bool isBeepPlayed;
};
#endif
+1 -1
View File
@@ -562,7 +562,7 @@ void GameTableStyleReader::setCardHolderStyle(QLabel *l, int bero)
void GameTableStyleReader::setMenuBarStyle(QMenuBar *mb) void GameTableStyleReader::setMenuBarStyle(QMenuBar *mb)
{ {
mb->setStyleSheet("QMenuBar { background-color: #"+MenuBgColor+"; font-size:12px; } QMenuBar::item { color: #"+MenuTextColor+"; }"); mb->setStyleSheet("QMenuBar { background-color: #"+MenuBgColor+"; font-size:12px; } QMenuBar::item { color: #"+MenuTextColor+"; }");
} }
void GameTableStyleReader::setBreakButtonStyle(QPushButton *bb, int state) void GameTableStyleReader::setBreakButtonStyle(QPushButton *bb, int state)