mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-19 19:14:42 +00:00
Added method [print] that writes the log entries ina QStringList
This commit is contained in:
parent
c3ec9d6b82
commit
a841e16182
@ -23,6 +23,9 @@
|
||||
/****************************************************************************
|
||||
History
|
||||
$Log$
|
||||
Revision 1.4 2005/11/26 18:24:00 glvertex
|
||||
Added method [print] that writes the log entries ina QStringList
|
||||
|
||||
Revision 1.3 2005/11/21 12:12:54 cignoni
|
||||
Added copyright info
|
||||
|
||||
@ -34,6 +37,15 @@ Added copyright info
|
||||
#include "GLLogStream.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
void GLLogStream::print(QStringList &l)
|
||||
{
|
||||
list<pair <int,string> > ::iterator li;
|
||||
|
||||
for(li=S.begin();;li!=S.end();++li)
|
||||
l << (*li).second.c_str();
|
||||
}
|
||||
|
||||
void GLLogStream::Log(int Level, const char * f, ... )
|
||||
{
|
||||
char buf[4096];
|
||||
|
||||
@ -24,6 +24,9 @@
|
||||
/****************************************************************************
|
||||
History
|
||||
$Log$
|
||||
Revision 1.2 2005/11/26 18:24:00 glvertex
|
||||
Added method [print] that writes the log entries ina QStringList
|
||||
|
||||
Revision 1.1 2005/11/16 23:19:22 cignoni
|
||||
Initial Draft release; still to be adapted to our needs.
|
||||
|
||||
@ -56,6 +59,7 @@ Initial Commit
|
||||
class GLLogStream : public LogStream
|
||||
{
|
||||
public:
|
||||
void print(QStringList &list); // Fills a QStringList with the log entries
|
||||
void glDraw(QGLWidget *qgl, int Level, int nlines);
|
||||
void Save(int Level, const char *filename);
|
||||
void Clear() {S.clear();}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user