diff options
author | Ima Mechanique <none@none> | 2011-11-23 01:30:15 +0000 |
---|---|---|
committer | Ima Mechanique <none@none> | 2011-11-23 01:30:15 +0000 |
commit | eeefec394c932b79a22c5ea2b8aa03690bb6061e (patch) | |
tree | 97493f8030bb2cde32da3f680f005ef07287734e /indra/newview/llpreviewscript.h | |
parent | e875e0548b69d1cf141e3970a81aa3f0a5ff7ed3 (diff) |
Changes to filter out tabs from file load and to test if loading/saving should be allowed.
Diffstat (limited to 'indra/newview/llpreviewscript.h')
-rw-r--r-- | indra/newview/llpreviewscript.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llpreviewscript.h b/indra/newview/llpreviewscript.h index f50e9322b0..7563cecd9d 100644 --- a/indra/newview/llpreviewscript.h +++ b/indra/newview/llpreviewscript.h @@ -79,6 +79,7 @@ public: /*virtual*/ BOOL postBuild(); BOOL canClose(); void setEnableEditing(bool enable); + bool canLoadOrSaveToFile( void* userdata ); void setScriptText(const std::string& text, BOOL is_valid); bool loadScriptText(const std::string& filename); @@ -101,6 +102,9 @@ public: static void onBtnLoadFromFile(void*); static void onBtnSaveToFile(void*); + static bool enableSaveToFileMenu(void* userdata); + static bool enableLoadFromFileMenu(void* userdata); + virtual bool hasAccelerators() const { return true; } private: |