A widget that can be used to edit a script.
More...
#include <ScriptWidget.h>
|
virtual void | insert (const QString &text) |
| Insert the text text at the current position and move foward the cursor position.
|
|
|
QString | getFileName () const |
| Returns the file name of the script.
|
|
QString | getScriptName () const |
| getScriptName
|
|
QString | getScriptType () const |
| getScriptType
|
|
void | open (const QString &fileName) |
| Open the script file and presents it on the text edit.
|
|
void | save (const QString &fileName) |
| Saves the content of the script into a file.
|
|
| ScriptWidget (QWidget *parent=0) |
| ScriptWidget.
|
|
void | setDirty (bool dirty) |
| Sets the status of the widget. True if the text was modified, false otherwise.
|
|
void | setHighlightMode (const QString &mode) |
| Sets the highlight mode for the script.
|
|
| ~ScriptWidget () |
| Destructor.
|
|
A widget that can be used to edit a script.
Definition at line 56 of file ScriptWidget.h.
◆ ScriptWidget()
te::qt::widgets::ScriptWidget::ScriptWidget |
( |
QWidget * |
parent = 0 | ) |
|
◆ ~ScriptWidget()
te::qt::widgets::ScriptWidget::~ScriptWidget |
( |
| ) |
|
◆ getFileName()
QString te::qt::widgets::ScriptWidget::getFileName |
( |
| ) |
const |
|
inline |
Returns the file name of the script.
- Returns
- File name.
Definition at line 76 of file ScriptWidget.h.
◆ getScriptName()
QString te::qt::widgets::ScriptWidget::getScriptName |
( |
| ) |
const |
getScriptName
- Returns
- Return the script name.
◆ getScriptType()
QString te::qt::widgets::ScriptWidget::getScriptType |
( |
| ) |
const |
getScriptType
- Returns
- Returns the type of the script based on its extension.
◆ insert
virtual void te::qt::widgets::ScriptWidget::insert |
( |
const QString & |
text | ) |
|
|
virtualslot |
Insert the text text at the current position and move foward the cursor position.
◆ open()
void te::qt::widgets::ScriptWidget::open |
( |
const QString & |
fileName | ) |
|
Open the script file and presents it on the text edit.
- Parameters
-
◆ save()
void te::qt::widgets::ScriptWidget::save |
( |
const QString & |
fileName | ) |
|
Saves the content of the script into a file.
- Parameters
-
fileName | Name of the file. |
◆ setDirty()
void te::qt::widgets::ScriptWidget::setDirty |
( |
bool |
dirty | ) |
|
Sets the status of the widget. True if the text was modified, false otherwise.
- Parameters
-
◆ setHighlightMode()
void te::qt::widgets::ScriptWidget::setHighlightMode |
( |
const QString & |
mode | ) |
|
Sets the highlight mode for the script.
- Parameters
-
- Note
- Currently supported modes are: py, lua, sql.
◆ m_dirty
bool te::qt::widgets::ScriptWidget::m_dirty |
|
private |
◆ m_fileName
QString te::qt::widgets::ScriptWidget::m_fileName |
|
private |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/qt/widgets/ceditor/ScriptWidget.h