From 9cd7b9f193375d9c87ad30300a108b5044f1f05b Mon Sep 17 00:00:00 2001 From: floty Date: Fri, 25 Nov 2011 21:51:27 +0000 Subject: [PATCH] preparing export to html-log --- src/gui/qt/gametable/log/guilog.cpp | 27 ++++++++++++++++++++++++++- src/gui/qt/gametable/log/guilog.h | 3 +++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/src/gui/qt/gametable/log/guilog.cpp b/src/gui/qt/gametable/log/guilog.cpp index 7ab720ff..30ec3d5f 100644 --- a/src/gui/qt/gametable/log/guilog.cpp +++ b/src/gui/qt/gametable/log/guilog.cpp @@ -66,7 +66,11 @@ guiLog::guiLog(gameTableImpl* w, ConfigFile *c) : myW(w), myConfig(c), myLogDir( myLogDir = new QDir(QString::fromUtf8(myConfig->readConfigString("LogDir").c_str())); QDateTime currentTime = QDateTime::currentDateTime(); - myHtmlLogFile = new QFile(myLogDir->absolutePath()+"/pokerth-log-"+currentTime.toString("yyyy-MM-dd_hh.mm.ss")+".html"); + if(SQLITE_LOG) { + myHtmlLogFile = new QFile(myLogDir->absolutePath()+"/pokerth-log-"+currentTime.toString("yyyy-MM-dd_hh.mm.ss")+"_old.html"); + } else { + myHtmlLogFile = new QFile(myLogDir->absolutePath()+"/pokerth-log-"+currentTime.toString("yyyy-MM-dd_hh.mm.ss")+".html"); + } //Logo-Pixmap extrahieren QPixmap logoChipPixmapFile(":/gfx/logoChip3D.png"); @@ -575,3 +579,24 @@ void guiLog::flushLogAtGame(int gameID) } } } + +void guiLog::exportLogPdbToHtml(string fileString) +{ + + cout << "Export pdb to html" << endl; + +} + +void guiLog::exportLogPdbToTxt(string fileString) +{ + + cout << "Export pdb to txt" << endl; + +} + +void guiLog::showLog(string fileString) +{ + + cout << "show Log" << endl; + +} diff --git a/src/gui/qt/gametable/log/guilog.h b/src/gui/qt/gametable/log/guilog.h index 713b1dad..ae878b12 100644 --- a/src/gui/qt/gametable/log/guilog.h +++ b/src/gui/qt/gametable/log/guilog.h @@ -55,6 +55,9 @@ public slots: void logPlayerWinGame(QString playerName, int gameID); void flushLogAtGame(int gameID); void flushLogAtHand(); + void exportLogPdbToHtml(std::string fileString); + void exportLogPdbToTxt(std::string fileString); + void showLog(std::string fileString); public: