From a4e9b82d9084659261337c3465726e028af4934d Mon Sep 17 00:00:00 2001 From: doitux Date: Wed, 24 Jan 2007 19:48:52 +0000 Subject: [PATCH] --- pokerth.pro | 48 +++++++++++++++++------------------ src/gui/qt/mainwindowimpl.cpp | 27 ++++++++++++++++++-- startsplash.cpp | 24 ++++++++++++++++++ startsplash.h | 29 +++++++++++++++++++++ 4 files changed, 102 insertions(+), 26 deletions(-) create mode 100644 startsplash.cpp create mode 100644 startsplash.h diff --git a/pokerth.pro b/pokerth.pro index c3776f9b..7deac8b9 100755 --- a/pokerth.pro +++ b/pokerth.pro @@ -3,27 +3,26 @@ # Unterordner relativ zum Projektordner: . # Das Target ist eine Anwendung: bin/pokerth -TEMPLATE = vcapp INSTALLS += TARGET TARGET.files += bin/* TARGET.path = /usr/bin/ FORMS += mainwindow.ui \ aboutpokerth.ui \ newgamedialog.ui \ - settingsdialog.ui + settingsdialog.ui HEADERS += tinystr.h \ - tinyxml.h \ - mainwindowimpl.h \ + tinyxml.h \ + mainwindowimpl.h \ newgamedialogimpl.h \ aboutpokerthimpl.h \ - settingsdialogimpl.h \ - configfile.h \ + settingsdialogimpl.h \ + configfile.h \ log.h \ guiinterface.h \ guiwrapper.h \ - session.h \ + session.h \ game.h \ - localhand.h \ + localhand.h \ localboard.h \ localplayer.h \ cardsvalue.h \ @@ -32,32 +31,32 @@ HEADERS += tinystr.h \ localturn.h \ localriver.h \ tools.h \ - handinterface.h \ + handinterface.h \ playerinterface.h \ boardinterface.h \ preflopinterface.h \ flopinterface.h \ turninterface.h \ riverinterface.h \ - enginefactory.h \ - localenginefactory.h - + enginefactory.h \ + localenginefactory.h \ + startsplash.h SOURCES += pokerth.cpp \ - tinystr.cpp \ - tinyxml.cpp \ + tinystr.cpp \ + tinyxml.cpp \ tinyxmlerror.cpp \ tinyxmlparser.cpp \ - mainwindowimpl.cpp \ + mainwindowimpl.cpp \ newgamedialogimpl.cpp \ aboutpokerthimpl.cpp \ - settingsdialogimpl.cpp \ - configfile.cpp \ + settingsdialogimpl.cpp \ + configfile.cpp \ log.cpp \ guiinterface.cpp \ guiwrapper.cpp \ - session.cpp \ + session.cpp \ game.cpp \ - localhand.cpp \ + localhand.cpp \ localboard.cpp \ localplayer.cpp \ cardsvalue.cpp \ @@ -66,19 +65,20 @@ SOURCES += pokerth.cpp \ localturn.cpp \ localriver.cpp \ tools.cpp \ - handinterface.cpp \ + handinterface.cpp \ playerinterface.cpp \ boardinterface.cpp \ preflopinterface.cpp \ flopinterface.cpp \ turninterface.cpp \ riverinterface.cpp \ - enginefactory.cpp \ - localenginefactory.cpp - + enginefactory.cpp \ + localenginefactory.cpp \ + startsplash.cpp +TEMPLATE = vcapp RESOURCES = src/gui/qt/deck.qrc 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 CONFIG += qt release UI_DIR = uics diff --git a/src/gui/qt/mainwindowimpl.cpp b/src/gui/qt/mainwindowimpl.cpp index 7e1cf582..b57f693b 100755 --- a/src/gui/qt/mainwindowimpl.cpp +++ b/src/gui/qt/mainwindowimpl.cpp @@ -275,6 +275,8 @@ mainWindowImpl::mainWindowImpl(QMainWindow *parent, const char *name) connect ( horizontalSlider_speed, SIGNAL( valueChanged(int)), this, SLOT ( setGameSpeed(int) ) ); connect ( pushButton_break, SIGNAL( clicked()), this, SLOT ( breakButtonClicked() ) ); // auch wieder starten!!!! + + } @@ -1383,8 +1385,29 @@ void mainWindowImpl::keyPressEvent ( QKeyEvent * event ) { // cout << event->key() << endl; 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(); */ + } } diff --git a/startsplash.cpp b/startsplash.cpp new file mode 100644 index 00000000..6cf3eb50 --- /dev/null +++ b/startsplash.cpp @@ -0,0 +1,24 @@ +// +// C++ Implementation: startsplash +// +// Description: +// +// +// Author: FThauer FHammer , (C) 2007 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#include "startsplash.h" + +StartSplash::StartSplash() + : QWidget() +{ +} + + +StartSplash::~StartSplash() +{ +} + + diff --git a/startsplash.h b/startsplash.h new file mode 100644 index 00000000..e1a8274e --- /dev/null +++ b/startsplash.h @@ -0,0 +1,29 @@ +// +// C++ Interface: startsplash +// +// Description: +// +// +// Author: FThauer FHammer , (C) 2007 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#ifndef STARTSPLASH_H +#define STARTSPLASH_H + +#include + +/** + @author FThauer FHammer +*/ +class StartSplash : public QWidget +{ +public: + StartSplash(); + + ~StartSplash(); + +}; + +#endif