Inheritance diagram for IAEX::InputCell:
Public Slots | |
void | eval () |
Sends the content of the inputcell to the evaluator. Displays the result in a outputcell. | |
void | command () |
Get/Insert the command that match the last word in the input editor. | |
void | nextCommand () |
Get/Insert the next command that match the last word in the input editor. | |
void | nextField () |
Select the next field in the command, if any exists. | |
void | clickEvent () |
void | clickEventOutput () |
void | contentChanged () |
void | setText (QString text) |
Set text to the cell. | |
void | setTextHtml (QString html) |
Sets the visible text using html code. | |
virtual void | setTextOutput (QString output) |
Set text to the output part of the cell. | |
virtual void | setTextOutputHtml (QString html) |
Sets the output text using html code. | |
void | setStyle (const QString &stylename) |
Set cell style. | |
void | setStyle (CellStyle style) |
Set cell style. | |
void | setChapterCounter (QString number) |
set the chapter counter | |
QString | ChapterCounter () |
return the value of the chapter counter, as plain text. Returns null if the counter is empty | |
QString | ChapterCounterHtml () |
return the value of the chapter counter, as html code. Returns null if the counter is empty | |
void | setReadOnly (const bool readonly) |
void | setEvaluated (const bool evaluated) |
void | setClosed (const bool closed) |
virtual void | setFocus (const bool focus) |
virtual void | setFocusOutput (const bool focus) |
Public Member Functions | |
InputCell (Document *doc, QWidget *parent=0) | |
The class constructor. | |
virtual | ~InputCell () |
The class destructor. | |
QString | text () |
Returns the text (as plain text) fromthe cell. | |
QString | textHtml () |
Return the text inside the cell as Html code. | |
virtual QString | textOutput () |
Return the text inside the output part of the cell as plain text. | |
virtual QString | textOutputHtml () |
Return the text inside the output part of the cell as html code. | |
virtual QTextCursor | textCursor () |
Return the text cursor to the QTextEdit that make up the inputpart of the inputcell. | |
virtual QTextEdit * | textEdit () |
Return the input texteditor. | |
virtual QTextEdit * | textEditOutput () |
Return the output texteditor. | |
virtual void | addCellWidgets () |
Do not use this member. | |
void | setDelegate (InputCellDelegate *d) |
Sets the evaulator delegate. | |
virtual void | accept (Visitor &v) |
Implements visitor acceptability. | |
virtual bool | isClosed () |
Returns true if inputcell is closed, otherwise the method returns false. | |
virtual bool | isEditable () |
Function for telling if the user is allowed to change the text settings for the text inside the cell. User isn't allowed to change the text settings for inputcell so this function always return false. | |
virtual bool | isEvaluated () |
Returns true if inputcell is evaluated, returns false if inputcell haven't been evaluated. | |
virtual bool | isPlot (QString text=QString::null) |
Returns true if the expression in the text is a plot command, returns false otherwise. If no text is sent to the method it will test the text in the input part of the cell. | |
Protected Member Functions | |
void | resizeEvent (QResizeEvent *event) |
void | clear () |
resets the input cell. Removes all output data and restores the initial state. |
# omc +d=interactiveCorba
|
The class constructor.
|
|
The class destructor.
|
|
Do not use this member. This is an ugly part of the cell structure. Reimplemented from IAEX::Cell. |
|
return the value of the chapter counter, as plain text. Returns null if the counter is empty
|
|
return the value of the chapter counter, as html code. Returns null if the counter is empty
|
|
|
|
|
|
Get/Insert the command that match the last word in the input editor.
|
|
2005-10-31 AF, Large part of this function was changes due to porting to QT4 (changes from Q3TextBrowser to QTextBrowser). 2006-04-10 AF, emits heightChanged if the height changes |
|
Sends the content of the inputcell to the evaluator. Displays the result in a outputcell.
Removes whitespaces and tags from the content string. Then sends the content to the delegate object for evaluation. The result is printed in a output cell. No indentation and syntax highlightning is used in the output cell. |
|
Returns true if inputcell is closed, otherwise the method returns false.
|
|
Function for telling if the user is allowed to change the text settings for the text inside the cell. User isn't allowed to change the text settings for inputcell so this function always return false.
Implements IAEX::Cell. |
|
Returns true if inputcell is evaluated, returns false if inputcell haven't been evaluated.
|
|
Returns true if the expression in the text is a plot command, returns false otherwise. If no text is sent to the method it will test the text in the input part of the cell.
|
|
Get/Insert the next command that match the last word in the input editor.
|
|
Select the next field in the command, if any exists.
|
|
Resize textcell when the mainwindow is resized. This because the cellcontent should always be visible. Added by AF, copied from textcell.cpp Reimplemented from IAEX::Cell. |
|
set the chapter counter
|
|
2005-11-01 AF, Made some small changes to how the function calculate the new height, to reflect the changes made when porting from Q3TextEdit to QTextEdit. Reimplemented from IAEX::Cell. |
|
|
|
Implements IAEX::Cell. |
|
|
|
Reimplemented from IAEX::Cell. |
|
Set cell style.
2005-11-03 AF, updated so the text is selected when the style is changed, after the text is unselected. 2006-03-02 AF, set chapter style
Reimplemented from IAEX::Cell. |
|
Set cell style.
Reimplemented from IAEX::Cell. |
|
Set text to the cell.
Reimplemented from IAEX::Cell. |
|
Sets the visible text using html code.
Reimplemented from IAEX::Cell. |
|
Set text to the output part of the cell.
|
|
Sets the output text using html code.
|
|
Returns the text (as plain text) fromthe cell.
Implements IAEX::Cell. |
|
Return the text cursor to the QTextEdit that make up the inputpart of the inputcell.
Reimplemented from IAEX::Cell. |
|
Return the input texteditor.
Reimplemented from IAEX::Cell. |
|
Return the output texteditor.
|
|
Return the text inside the cell as Html code.
Reimplemented from IAEX::Cell. |
|
Return the text inside the output part of the cell as plain text.
|
|
Return the text inside the output part of the cell as html code.
|