gui preperation for log export and live preview
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user