![]() |
VR-Forces 4.2 Class Documentation
|
Class that will request and spawn an editor that will allow the editing of the given scripted task. More...

Classes | |
| struct | FileInfo |
| struct | PendingRequest |
Public Member Functions | |
| DtScriptEditor (makVrv::DtDe &) | |
| CTOR. | |
| virtual | ~DtScriptEditor () |
| DTOR. | |
| virtual void | edit (const std::string &, int scriptType, const std::string &commentBlock="") |
| Request the script for the given task and start editing. | |
| virtual void | editNew (const std::string &id, int sType, const std::string &script, const std::string &scriptEngine, const std::string &commentBlock="") |
| Edits a new script file without requesting information from the back-end for the current script. | |
| virtual void | view (const std::string &) |
| Request the script for view only access. | |
| virtual void | closeEditorFor (const std::string &) |
| If editing, closes the editor for the specified script. | |
| virtual bool | alreadyEditing (const std::string &id) const |
| Returns true if already editing script. | |
| virtual void | editExternalScript (const std::string &filename) |
| Edits an external script as local only. | |
Static Public Member Functions | |
| static DtScriptEditor & | instance (makVrv::DtDe &de) |
| Returns instance of the manager. | |
| static void | registerInstance (makVrv::DtDe &, DtScriptEditor *) |
Public Attributes | |
| boost::signal< void(const std::string &, const std::string &)> | signal_scriptModified |
| Signals sent when scripts are changed or an editor closed. | |
| boost::signal< void(const std::string &)> | signal_editingComplete |
Protected Types | |
| typedef std::map< std::string, FileInfo > | FileInfoMap |
Protected Slots | |
| virtual void | editingComplete (int, QProcess::ExitStatus) |
| virtual void | startupError (QProcess::ProcessError) |
Protected Member Functions | |
| virtual void | receivedScript (DtSimMessage *) |
| Received when script is received. | |
| virtual void | slot_aboutToClearScriptedTasks () |
| Called when a script is removed, stop editing the script in question. | |
| virtual void | slot_scriptedTaskAboutToBeRemoved (std::string scriptId) |
| virtual void | editScript (const std::string &id, int sType, const std::string &script, const std::string &scriptEngine="lua", bool readOnly=false, bool localOnly=false, bool scriptIsFilename=false, const std::string &commentBlock="") |
| Starts the editing of the specified script. | |
| virtual void | tick () |
| Check last modified dates of files to see if they have changed. If they have update the server. | |
| virtual void | checkNeedsUpdate (const std::string &filename) |
| Checks to see if this file has been updated since last time. | |
| virtual void | scriptBeingRemoved () |
| Called when a script is removed, put up a dialog announcing why editor is being closed. | |
| virtual void | slot_scriptedTaskAdded (std::string) |
| Called when a script is added, see if the script has changed from scenario to system script. | |
| virtual void | editingComplete (QProcess *) |
| Call to complete editing on the given process. | |
| virtual bool | checkForScriptErrors (const DtScriptedTaskMetaData &) const |
| Checks for syntax errors in script. | |
| virtual std::string | cleanUpError (const std::string &) const |
| Cleans up error to remove some information that might not be meaningful to users. | |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| std::map< DtU32, PendingRequest > | myPendingRequests |
| FileInfoMap | myFileInfoMap |
| makVrv::DtSignalConnectionManager | myConnections |
| DtFilename | myTempDirectory |
Class that will request and spawn an editor that will allow the editing of the given scripted task.
This editor will create a temporary file to be handed to the editing application and will monitor changes to that temporary file. If changes are made the new script will be sent to all back-ends
|
protected |
| makVrf::DtScriptEditor::DtScriptEditor | ( | makVrv::DtDe & | ) |
CTOR.
|
virtual |
DTOR.
|
static |
Returns instance of the manager.
|
static |
|
virtual |
Request the script for the given task and start editing.
|
virtual |
Edits a new script file without requesting information from the back-end for the current script.
|
virtual |
Request the script for view only access.
|
virtual |
If editing, closes the editor for the specified script.
|
virtual |
Returns true if already editing script.
|
virtual |
Edits an external script as local only.
Good for editing script files (Lua) that can leverage script parsing
|
protectedvirtual |
Received when script is received.
|
protectedvirtual |
Called when a script is removed, stop editing the script in question.
|
protectedvirtual |
|
protectedvirtual |
Starts the editing of the specified script.
|
protectedvirtual |
Check last modified dates of files to see if they have changed. If they have update the server.
|
protectedvirtual |
Checks to see if this file has been updated since last time.
If so sends the script update message to the server
|
protectedvirtual |
Called when a script is removed, put up a dialog announcing why editor is being closed.
|
protectedvirtual |
Called when a script is added, see if the script has changed from scenario to system script.
|
protectedvirtual |
Call to complete editing on the given process.
|
protectedvirtual |
Checks for syntax errors in script.
Will not abort any processes because of it, but, will warn the user. Will also mark script as having errors to display to the user. Returns false if there are no errors
|
protectedvirtual |
Cleans up error to remove some information that might not be meaningful to users.
|
protectedvirtualslot |
|
protectedvirtualslot |
| boost::signal<void (const std::string&, const std::string&)> makVrf::DtScriptEditor::signal_scriptModified |
Signals sent when scripts are changed or an editor closed.
| boost::signal<void (const std::string&)> makVrf::DtScriptEditor::signal_editingComplete |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |