[KLF Backend][KLF Tools][KLF Home]
KLatexFormula Project
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
KLFProgErr Class Reference

#include <klfprogerr.h>

Inheritance diagram for KLFProgErr:
Inheritance graph
[legend]
Collaboration diagram for KLFProgErr:
Collaboration graph
[legend]

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ KLFProgErr()

KLFProgErr::KLFProgErr ( QWidget *  parent,
QString  errtext 
)

Definition at line 32 of file klfprogerr.cpp.

◆ ~KLFProgErr()

KLFProgErr::~KLFProgErr ( )
virtual

Definition at line 52 of file klfprogerr.cpp.

Member Function Documentation

◆ extractLatexError()

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().

◆ showError()

void KLFProgErr::showError ( QWidget *  parent,
QString  text 
)
static

convenience static function

Definition at line 61 of file klfprogerr.cpp.

◆ showEvent()

void KLFProgErr::showEvent ( QShowEvent e)
protectedvirtual

Definition at line 57 of file klfprogerr.cpp.

◆ textEditWidget()

QTextEdit * KLFProgErr::textEditWidget ( )

Definition at line 46 of file klfprogerr.cpp.


The documentation for this class was generated from the following files:

Generated by doxygen 1.8.13