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

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

MaximaSession Class Reference

Inheritance diagram for MaximaSession:
Inheritance graph
Collaboration diagram for MaximaSession:
Collaboration graph

List of all members.

Public Types

enum  Status { Running, Done }

Public Slots

void readHelperOut ()
void readStdOut ()


void error (const QString &msg)
void ready ()
void statusChanged (Cantor::Session::Status newStatus)

Public Member Functions

void appendExpressionToHelperQueue (MaximaExpression *expr)
void appendExpressionToQueue (MaximaExpression *expr)
Backendbackend ()
Cantor::CompletionObjectcompletionFor (const QString &command)
ExpressionevaluateExpression (const QString &command)
Cantor::ExpressionevaluateExpression (const QString &command, Cantor::Expression::FinishingBehavior behave)
MaximaExpressionevaluateHelperExpression (const QString &command)
void interrupt ()
void interrupt (MaximaExpression *expr)
bool isTypesettingEnabled ()
void login ()
void logout ()
 MaximaSession (Cantor::Backend *backend)
void newHelperClient (QTcpSocket *socket)
void newMaximaClient (QTcpSocket *socket)
int nextExpressionId ()
void sendInputToProcess (const QString &input)
void setTypesettingEnabled (bool enable)
void startServer ()
Cantor::Session::Status status ()
Cantor::SyntaxHelpObjectsyntaxHelpFor (const QString &command)
QSyntaxHighlighter * syntaxHighlighter (QTextEdit *parent)
virtual QAbstractItemModel * variableModel ()

Static Public Attributes

static const QRegExp MaximaOutputPrompt = QRegExp("(\\(\\s*%\\s*O\\s*[0-9\\s]*\\))")
static const QRegExp MaximaPrompt = QRegExp("(\\(\\s*%\\s*I\\s*[0-9\\s]*\\))")

Protected Member Functions

void changeStatus (Cantor::Session::Status newStatus)

Private Slots

void currentExpressionChangedStatus (Cantor::Expression::Status status)
void currentHelperExpressionChangedStatus (Cantor::Expression::Status status)
void killLabels ()
void letExpressionParseOutput ()
void newConnection ()
void reportProcessError (QProcess::ProcessError error)
void restartMaxima ()
void restartsCooledDown ()
void runFirstExpression ()
void runNextHelperCommand ()
void startHelperProcess ()

Private Attributes

QString m_cache
QList< MaximaExpression * > m_expressionQueue
QTcpSocket * m_helperMaxima
KProcess * m_helperProcess
QList< MaximaExpression * > m_helperQueue
bool m_isHelperReady
bool m_isInitialized
bool m_justRestarted
QTcpSocket * m_maxima
KProcess * m_process
QTimer * m_restartCooldown
QTcpServer * m_server
QString m_tmpPath
bool m_useLegacy

Detailed Description

Definition at line 37 of file maximasession.h.

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

Generated by  Doxygen 1.6.0   Back to index