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 Member Functions | Private Attributes

SageSession Class Reference

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

List of all members.

Public Types

enum  Status { Running, Done }

Public Slots

void readStdErr ()
void readStdOut ()

Signals

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

Public Member Functions

void appendExpressionToQueue (SageExpression *expr)
Backendbackend ()
Cantor::CompletionObjectcompletionFor (const QString &command)
Cantor::ExpressionevaluateExpression (const QString &command, Cantor::Expression::FinishingBehavior behave)
ExpressionevaluateExpression (const QString &command)
void interrupt ()
bool isTypesettingEnabled ()
void login ()
void logout ()
int nextExpressionId ()
 SageSession (Cantor::Backend *backend)
void sendInputToProcess (const QString &input)
void sendSignalToProcess (int signal)
void setTypesettingEnabled (bool enable)
Cantor::Session::Status status ()
virtual SyntaxHelpObjectsyntaxHelpFor (const QString &cmd)
QSyntaxHighlighter * syntaxHighlighter (QTextEdit *parent)
virtual QAbstractItemModel * variableModel ()
void waitForNextPrompt ()

Static Public Attributes

static const QByteArray SageAlternativePrompt = "....: "
static const QByteArray SagePrompt = "sage: "

Protected Member Functions

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

Private Slots

void currentExpressionChangedStatus (Cantor::Expression::Status status)
void fileCreated (const QString &path)
void processFinished (int exitCode, QProcess::ExitStatus exitStatus)
void reportProcessError (QProcess::ProcessError error)

Private Member Functions

void runFirstExpression ()

Private Attributes

KDirWatch m_dirWatch
QList< SageExpression * > m_expressionQueue
bool m_isInitialized
KPtyProcess * m_process
QString m_tmpPath
bool m_waitingForPrompt

Detailed Description

Definition at line 34 of file sagesession.h.


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

Generated by  Doxygen 1.6.0   Back to index