#include <klfprogerr.h>
Public Member Functions | |
KLFProgErr (QWidget *parent, QString errtext) | |
virtual | ~KLFProgErr () |
QTextEdit * | textEditWidget () |
Static Public Member Functions | |
static void | showError (QWidget *parent, QString text) |
static QString | extractLatexError (const QString &str) |
Protected Member Functions | |
virtual void | showEvent (QShowEvent *e) |
A dialog box suitable to display the output of a program, usually because it returned some kind of error.
Definition at line 42 of file klfprogerr.h.
KLFProgErr::KLFProgErr | ( | QWidget * | parent, |
QString | errtext | ||
) |
Definition at line 32 of file klfprogerr.cpp.
KLFProgErr::~KLFProgErr | ( | ) | [virtual] |
Definition at line 52 of file klfprogerr.cpp.
QString KLFProgErr::extractLatexError | ( | const QString & | str | ) | [static] |
Attempt to extract a short version of an error in LaTeX output.
str
should be some LaTeX output with an error. If we weren't able to extract anything, the full string is returned untouched.
Definition at line 72 of file klfprogerr.cpp.
References QRegExp::cap(), QRegExp::indexIn(), and QString::replace().
void KLFProgErr::showError | ( | QWidget * | parent, |
QString | text | ||
) | [static] |
convenience static function
Definition at line 61 of file klfprogerr.cpp.
void KLFProgErr::showEvent | ( | QShowEvent * | e | ) | [protected, virtual] |
Definition at line 57 of file klfprogerr.cpp.
QTextEdit * KLFProgErr::textEditWidget | ( | ) |
Definition at line 46 of file klfprogerr.cpp.