summaryrefslogtreecommitdiff
path: root/indra/newview/llpreviewscript.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llpreviewscript.h')
-rw-r--r--indra/newview/llpreviewscript.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llpreviewscript.h b/indra/newview/llpreviewscript.h
index 117be03fc6..d0442311d2 100644
--- a/indra/newview/llpreviewscript.h
+++ b/indra/newview/llpreviewscript.h
@@ -194,7 +194,6 @@ private:
S32 mLiveHelpHistorySize;
bool mEnableSave;
bool mHasScriptData;
- LLLiveLSLFile* mLiveFile;
LLUUID mAssociatedExperience;
bool mScriptRemoved;
bool mSaveDialogShown;
@@ -215,16 +214,21 @@ class LLScriptEdContainer : public LLPreview
public:
LLScriptEdContainer(const LLSD& key);
- LLScriptEdContainer(const LLSD& key, const bool live);
+ virtual ~LLScriptEdContainer();
bool handleKeyHere(KEY key, MASK mask);
protected:
std::string getTmpFileName(const std::string& script_name);
+ std::string getErrorLogFileName(const std::string& script_path);
bool onExternalChange(const std::string& filename);
virtual void saveIfNeeded(bool sync = true) = 0;
+ bool logErrorsToFile(const LLSD& compile_errors);
+ bool isOpenInExternalEditor() const { return mLiveFile != nullptr; }
LLScriptEdCore* mScriptEd;
+ LLLiveLSLFile* mLiveFile = nullptr;
+ LLLiveLSLFile* mLiveLogFile = nullptr;
};
// Used to view and edit an LSL script from your inventory.