A widget that can be used to show and control the execution of a script.
More...
#include <ScriptWidget.h>
A widget that can be used to show and control the execution of a script.
Definition at line 52 of file ScriptWidget.h.
te::ce::ScriptWidget::ScriptWidget |
( |
QWidget * |
parent | ) |
|
te::ce::ScriptWidget::~ScriptWidget |
( |
| ) |
|
void te::ce::ScriptWidget::close |
( |
| ) |
|
|
slot |
Closes the current script.
void te::ce::ScriptWidget::codeChanged |
( |
| ) |
|
|
signal |
void te::ce::ScriptWidget::execute |
( |
| ) |
|
|
slot |
Executes the current script.
QString te::ce::ScriptWidget::getFileName |
( |
| ) |
const |
|
inline |
Returns the file name of the script.
- Returns
- File name.
Definition at line 73 of file ScriptWidget.h.
QString te::ce::ScriptWidget::getScriptName |
( |
| ) |
const |
getScriptName
- Returns
- Return the script name.
QString te::ce::ScriptWidget::getScriptType |
( |
| ) |
const |
getScriptType
- Returns
- Returns the type of the script based on its extension.
bool te::ce::ScriptWidget::hasChanged |
( |
| ) |
const |
Returns the flag that signals if the code was edited.
- Returns
- Returns true or false.
void te::ce::ScriptWidget::open |
( |
const QString & |
fileName | ) |
|
Open the code file and presents it on the screen.
- Parameters
-
void te::ce::ScriptWidget::pause |
( |
| ) |
|
|
slot |
void te::ce::ScriptWidget::save |
( |
const QString & |
fileName | ) |
|
Save the contents code in a file.
- Parameters
-
fileName | Name of the file. |
void te::ce::ScriptWidget::save |
( |
| ) |
|
|
slot |
void te::ce::ScriptWidget::saveAs |
( |
| ) |
|
|
slot |
saveAs Saves the current file in a different file.
void te::ce::ScriptWidget::saveFile |
( |
const QString & |
fileName | ) |
|
|
protected |
Saves the name of the file.
- Parameters
-
fileName | The complete path of the script. |
void te::ce::ScriptWidget::setLexer |
( |
| ) |
|
|
protected |
void te::ce::ScriptWidget::setTextChanged |
( |
| ) |
|
|
slot |
Sets to true the textChanged flag.
void te::ce::ScriptWidget::setUnsaved |
( |
bool |
unsaved | ) |
|
|
protected |
void te::ce::ScriptWidget::stop |
( |
| ) |
|
|
slot |
Stops the execution of the script.
void te::ce::ScriptWidget::zoomIn |
( |
| ) |
|
|
slot |
void te::ce::ScriptWidget::zoomOut |
( |
| ) |
|
|
slot |
QString te::ce::ScriptWidget::m_fileName |
|
private |
QsciLexer* te::ce::ScriptWidget::m_lexer |
|
private |
QsciScintilla* te::ce::ScriptWidget::m_txtEditor |
|
private |
The editor with grammatical highlighted marks.
Definition at line 163 of file ScriptWidget.h.
bool te::ce::ScriptWidget::m_unsaved |
|
private |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/qsci/ceditor/ScriptWidget.h