This commit is contained in:
doitux
2007-01-24 19:48:52 +00:00
parent 31152299c5
commit a4e9b82d90
4 changed files with 102 additions and 26 deletions
+24 -24
View File
@@ -3,27 +3,26 @@
# Unterordner relativ zum Projektordner: . # Unterordner relativ zum Projektordner: .
# Das Target ist eine Anwendung: bin/pokerth # Das Target ist eine Anwendung: bin/pokerth
TEMPLATE = vcapp
INSTALLS += TARGET INSTALLS += TARGET
TARGET.files += bin/* TARGET.files += bin/*
TARGET.path = /usr/bin/ TARGET.path = /usr/bin/
FORMS += mainwindow.ui \ FORMS += mainwindow.ui \
aboutpokerth.ui \ aboutpokerth.ui \
newgamedialog.ui \ newgamedialog.ui \
settingsdialog.ui settingsdialog.ui
HEADERS += tinystr.h \ HEADERS += tinystr.h \
tinyxml.h \ tinyxml.h \
mainwindowimpl.h \ mainwindowimpl.h \
newgamedialogimpl.h \ newgamedialogimpl.h \
aboutpokerthimpl.h \ aboutpokerthimpl.h \
settingsdialogimpl.h \ settingsdialogimpl.h \
configfile.h \ configfile.h \
log.h \ log.h \
guiinterface.h \ guiinterface.h \
guiwrapper.h \ guiwrapper.h \
session.h \ session.h \
game.h \ game.h \
localhand.h \ localhand.h \
localboard.h \ localboard.h \
localplayer.h \ localplayer.h \
cardsvalue.h \ cardsvalue.h \
@@ -32,32 +31,32 @@ HEADERS += tinystr.h \
localturn.h \ localturn.h \
localriver.h \ localriver.h \
tools.h \ tools.h \
handinterface.h \ handinterface.h \
playerinterface.h \ playerinterface.h \
boardinterface.h \ boardinterface.h \
preflopinterface.h \ preflopinterface.h \
flopinterface.h \ flopinterface.h \
turninterface.h \ turninterface.h \
riverinterface.h \ riverinterface.h \
enginefactory.h \ enginefactory.h \
localenginefactory.h localenginefactory.h \
startsplash.h
SOURCES += pokerth.cpp \ SOURCES += pokerth.cpp \
tinystr.cpp \ tinystr.cpp \
tinyxml.cpp \ tinyxml.cpp \
tinyxmlerror.cpp \ tinyxmlerror.cpp \
tinyxmlparser.cpp \ tinyxmlparser.cpp \
mainwindowimpl.cpp \ mainwindowimpl.cpp \
newgamedialogimpl.cpp \ newgamedialogimpl.cpp \
aboutpokerthimpl.cpp \ aboutpokerthimpl.cpp \
settingsdialogimpl.cpp \ settingsdialogimpl.cpp \
configfile.cpp \ configfile.cpp \
log.cpp \ log.cpp \
guiinterface.cpp \ guiinterface.cpp \
guiwrapper.cpp \ guiwrapper.cpp \
session.cpp \ session.cpp \
game.cpp \ game.cpp \
localhand.cpp \ localhand.cpp \
localboard.cpp \ localboard.cpp \
localplayer.cpp \ localplayer.cpp \
cardsvalue.cpp \ cardsvalue.cpp \
@@ -66,19 +65,20 @@ SOURCES += pokerth.cpp \
localturn.cpp \ localturn.cpp \
localriver.cpp \ localriver.cpp \
tools.cpp \ tools.cpp \
handinterface.cpp \ handinterface.cpp \
playerinterface.cpp \ playerinterface.cpp \
boardinterface.cpp \ boardinterface.cpp \
preflopinterface.cpp \ preflopinterface.cpp \
flopinterface.cpp \ flopinterface.cpp \
turninterface.cpp \ turninterface.cpp \
riverinterface.cpp \ riverinterface.cpp \
enginefactory.cpp \ enginefactory.cpp \
localenginefactory.cpp localenginefactory.cpp \
startsplash.cpp
TEMPLATE = vcapp
RESOURCES = src/gui/qt/deck.qrc RESOURCES = src/gui/qt/deck.qrc
TEMPLATE = app TEMPLATE = app
DEPENDPATH += . src uics src/config src/config/tinyxml src/gui src/gui/qt src/engine src/engine/local_engine src/engine/network_engine DEPENDPATH += . src uics src/config src/config/tinyxml src/gui src/gui/qt src/engine src/engine/local_engine src/engine/network_engine
INCLUDEPATH += . src uics src/config src/config/tinyxml src/gui src/gui/qt src/engine src/engine/local_engine src/engine/network_engine INCLUDEPATH += . src uics src/config src/config/tinyxml src/gui src/gui/qt src/engine src/engine/local_engine src/engine/network_engine
CONFIG += qt release CONFIG += qt release
UI_DIR = uics UI_DIR = uics
+25 -2
View File
@@ -275,6 +275,8 @@ mainWindowImpl::mainWindowImpl(QMainWindow *parent, const char *name)
connect ( horizontalSlider_speed, SIGNAL( valueChanged(int)), this, SLOT ( setGameSpeed(int) ) ); connect ( horizontalSlider_speed, SIGNAL( valueChanged(int)), this, SLOT ( setGameSpeed(int) ) );
connect ( pushButton_break, SIGNAL( clicked()), this, SLOT ( breakButtonClicked() ) ); // auch wieder starten!!!! connect ( pushButton_break, SIGNAL( clicked()), this, SLOT ( breakButtonClicked() ) ); // auch wieder starten!!!!
} }
@@ -1383,8 +1385,29 @@ void mainWindowImpl::keyPressEvent ( QKeyEvent * event ) {
// cout << event->key() << endl; // cout << event->key() << endl;
if (event->key() == 16777265) { switchToolBox(); } if (event->key() == 16777265) { switchToolBox(); }
// if (event->key() == 65) { if (event->key() == 65) {
// }
QWidget *myWidget = new QWidget(this, Qt::SplashScreen);
myWidget->setGeometry(100,100,100,100);
// myWidget->setMask(QRegion(3,3,40,40));
myWidget->show();
// QPicture picture;
QPainter painter(this);
// painter.begin(this); // paint in picture
painter.drawEllipse(10,20, 80,70); // draw an ellipse
painter.end();
}
if (event->key() == 66) {
// myWidget->hide();
/*QPicture picture;
QPainter painter;
painter.begin(this); // paint in picture
painter.drawEllipse(10,20, 80,70); // draw an ellipse
painter.end(); */
}
} }
+24
View File
@@ -0,0 +1,24 @@
//
// C++ Implementation: startsplash
//
// Description:
//
//
// Author: FThauer FHammer <f.thauer@web.de>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "startsplash.h"
StartSplash::StartSplash()
: QWidget()
{
}
StartSplash::~StartSplash()
{
}
+29
View File
@@ -0,0 +1,29 @@
//
// C++ Interface: startsplash
//
// Description:
//
//
// Author: FThauer FHammer <f.thauer@web.de>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef STARTSPLASH_H
#define STARTSPLASH_H
#include <QWidget>
/**
@author FThauer FHammer <f.thauer@web.de>
*/
class StartSplash : public QWidget
{
public:
StartSplash();
~StartSplash();
};
#endif