All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions | Protected Member Functions
QGpCoreTools::ConsoleProgress Class Reference

Brief description of class still missing. More...

#include <ConsoleProgress.h>

Inheritance diagram for QGpCoreTools::ConsoleProgress:
QGpCoreTools::AbstractProgress

List of all members.

Public Member Functions

void begin ()
void end (int val=0)
virtual void setCaption (QString c)

Protected Member Functions

virtual void paint (QString caption, int value, int maximum)

Detailed Description

Brief description of class still missing.

Full description of class still missing


Member Function Documentation

void QGpCoreTools::ConsoleProgress::end ( int  val = 0)
void QGpCoreTools::ConsoleProgress::paint ( QString  caption,
int  value,
int  maximum 
) [protected, virtual]

Implements QGpCoreTools::AbstractProgress.

References QGpCoreTools::CoreApplication::instance(), and QGpCoreTools::AbstractProgress::valueString().

{
  static const QString fmt("%1: %2");
  QString msg=fmt.arg(caption).arg(valueString(value, maximum));
  msg=msg.leftJustified(CoreApplication::instance()->terminalCols()-1);
  fprintf(stderr,"%c[1A%s\n", 0x1B, msg.toAscii().data());
#ifdef Q_WS_WIN
  fflush(stderr);
#endif
}
void QGpCoreTools::ConsoleProgress::setCaption ( QString  c) [virtual]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines