#include <scriptsnippet.h>
Public Types | |
enum | SaveLocation { SystemWide = 0, OwnJsFile = 1, PathXML = 2 } |
Public Slots | |
void | on_btnExec_clicked () |
void | on_btnUndo_clicked () |
void | on_btnRedo_clicked () |
void | on_btnSave_clicked () |
void | on_comboBoxLocation_activated (int) |
Signals | |
void | execScript (QString) |
Emit the code that is to be executed. | |
void | destroyed (ScriptSnippet *) |
This Snippet is destroyed. | |
void | systemSaveRequest () |
Request the system ( normally the ScriptEnvironment ) to save the code. | |
Public Member Functions | |
ScriptSnippet (QWidget *p) | |
constructor | |
~ScriptSnippet () | |
destructor | |
QString | saveCode () const |
Return the current code. | |
void | setCode (QString) |
Set the code. | |
SaveLocation | getSaveLocation () const |
Return the kind of snippet. | |
void | setSaveLocation (SaveLocation) |
Set the kind of snippet. | |
QString | name () const |
Return the name of this snippet. | |
void | setName (QString) |
Set the name of this snippet. | |
Private Attributes | |
ScriptSnippet_Private * | _p |
SaveLocation | _location |
NSScript::ScriptSnippet::~ScriptSnippet | ( | ) |
destructor
QString NSScript::ScriptSnippet::saveCode | ( | ) | const |
Return the current code.
void NSScript::ScriptSnippet::setCode | ( | QString | ) |
Set the code.
SaveLocation NSScript::ScriptSnippet::getSaveLocation | ( | ) | const [inline] |
void NSScript::ScriptSnippet::setSaveLocation | ( | SaveLocation | ) |
Set the kind of snippet.
QString NSScript::ScriptSnippet::name | ( | ) | const |
Return the name of this snippet.
void NSScript::ScriptSnippet::setName | ( | QString | ) |
Set the name of this snippet.
void NSScript::ScriptSnippet::on_btnExec_clicked | ( | ) | [slot] |
void NSScript::ScriptSnippet::on_btnUndo_clicked | ( | ) | [slot] |
void NSScript::ScriptSnippet::on_btnRedo_clicked | ( | ) | [slot] |
void NSScript::ScriptSnippet::on_btnSave_clicked | ( | ) | [slot] |
void NSScript::ScriptSnippet::on_comboBoxLocation_activated | ( | int | ) | [slot] |
void NSScript::ScriptSnippet::execScript | ( | QString | ) | [signal] |
Emit the code that is to be executed.
void NSScript::ScriptSnippet::destroyed | ( | ScriptSnippet * | ) | [signal] |
This Snippet is destroyed.
Same as QObject::destroyed except for the arguments type. Because the QObjects signal is emitted in ~QObject there is no ScriptSnippet anymore and every upcast fails.
void NSScript::ScriptSnippet::systemSaveRequest | ( | ) | [signal] |
Request the system ( normally the ScriptEnvironment ) to save the code.
ScriptSnippet_Private* NSScript::ScriptSnippet::_p [private] |
Referenced by getSaveLocation().