Logo Search packages:      
Sourcecode: cantor version File versions  Download package

Public Types | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes

Cantor::Expression Class Reference

#include <expression.h>

Inheritance diagram for Cantor::Expression:
Inheritance graph
Collaboration diagram for Cantor::Expression:
Collaboration graph

List of all members.

Public Types

enum  FinishingBehavior { DoNotDelete, DeleteOnFinish }
enum  Status { Computing, Done, Error, Interrupted }


void gotResult ()
void idChanged ()
void needsAdditionalInformation (const QString &question)
void statusChanged (Cantor::Expression::Status status)

Public Member Functions

virtual void addInformation (const QString &information)
void clearResult ()
QString command ()
QString errorMessage ()
virtual void evaluate ()=0
 Expression (Session *session)
FinishingBehavior finishingBehavior ()
int id ()
virtual void interrupt ()=0
Resultresult ()
void saveAdditionalData (KZip *archive)
Sessionsession ()
void setCommand (const QString &cmd)
void setErrorMessage (const QString &cmd)
void setFinishingBehavior (FinishingBehavior behavior)
void setId (int id)
Status status ()
QDomElement toXml (QDomDocument &doc)
virtual ~Expression ()

Protected Member Functions

virtual QString additionalLatexHeaders ()
void setResult (Result *result)
void setStatus (Status status)

Private Slots

void convertToPs ()
void latexRendered ()

Private Member Functions

void renderResultAsLatex ()

Private Attributes


Detailed Description

An Expression object is used, to store the information needed when running a command of a Session Evaluation of Expression is an asynchroneous process in most cases, so most of the members of this class are not useful directly after its construction. Therefore there are signals indicating, when the Expression goes through the different stages of the Running process. An Expression is never constructed directly, but by using Session::evaluateExpression()

Alexander Rieder

Definition at line 49 of file expression.h.

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

Generated by  Doxygen 1.6.0   Back to index