gui preperation for log export and live preview

This commit is contained in:
doitux
2011-11-26 21:07:22 +00:00
parent 9cd7b9f193
commit 272cd1408d
9 changed files with 156 additions and 63 deletions
+9 -6
View File
@@ -580,23 +580,26 @@ void guiLog::flushLogAtGame(int gameID)
}
}
void guiLog::exportLogPdbToHtml(string fileString)
void guiLog::exportLogPdbToHtml(QString fileString)
{
cout << "Export pdb to html" << endl;
qDebug() << "Export pdb to html" << fileString;
}
void guiLog::exportLogPdbToTxt(string fileString)
void guiLog::exportLogPdbToTxt(QString fileString)
{
cout << "Export pdb to txt" << endl;
qDebug() << "Export pdb to txt" << fileString;
}
void guiLog::showLog(string fileString)
void guiLog::showLog(QString fileString, QTextBrowser *tb)
{
cout << "show Log" << endl;
tb->clear();
for(int i=0; i<5; i++) {
tb->append(fileString);
}
}
+4 -3
View File
@@ -26,6 +26,7 @@
#include <sqlite3.h>
#include <QtCore>
#include <QtGui>
#include <QtSql>
class gameTableImpl;
@@ -55,9 +56,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);
void exportLogPdbToHtml(QString fileString);
void exportLogPdbToTxt(QString fileString);
void showLog(QString fileString, QTextBrowser* tb);
public: