aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpreviewscript.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/llpreviewscript.h
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/newview/llpreviewscript.h')
-rw-r--r--linden/indra/newview/llpreviewscript.h34
1 files changed, 30 insertions, 4 deletions
diff --git a/linden/indra/newview/llpreviewscript.h b/linden/indra/newview/llpreviewscript.h
index fd17388..cdc4df8 100644
--- a/linden/indra/newview/llpreviewscript.h
+++ b/linden/indra/newview/llpreviewscript.h
@@ -135,15 +135,24 @@ class LLPreviewLSL : public LLPreview
135public: 135public:
136 LLPreviewLSL(const std::string& name, const LLRect& rect, const std::string& title, 136 LLPreviewLSL(const std::string& name, const LLRect& rect, const std::string& title,
137 const LLUUID& item_uuid ); 137 const LLUUID& item_uuid );
138 virtual void callbackLSLCompileSucceeded();
139 virtual void callbackLSLCompileFailed(const LLSD& compile_errors);
138 140
139 /*virtual*/ void open(); 141 /*virtual*/ void open(); /*Flawfinder: ignore*/
140 142
141protected: 143protected:
142 virtual BOOL canClose(); 144 virtual BOOL canClose();
145 void closeIfNeeded();
143 virtual void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE); 146 virtual void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE);
144 147
145 virtual void loadAsset(); 148 virtual void loadAsset();
146 void saveIfNeeded(); 149 void saveIfNeeded();
150 void uploadAssetViaCaps(const std::string& url,
151 const std::string& filename,
152 const LLUUID& item_id);
153 void uploadAssetLegacy(const std::string& filename,
154 const LLUUID& item_id,
155 const LLTransactionID& tid);
147 156
148 static void onLoad(void* userdata); 157 static void onLoad(void* userdata);
149 static void onSave(void* userdata, BOOL close_after_save); 158 static void onSave(void* userdata, BOOL close_after_save);
@@ -166,7 +175,7 @@ protected:
166 175
167 176
168// Used to view and edit an LSL that is attached to an object. 177// Used to view and edit an LSL that is attached to an object.
169class LLLiveLSLEditor : public LLFloater 178class LLLiveLSLEditor : public LLPreview
170{ 179{
171public: 180public:
172 LLLiveLSLEditor(const std::string& name, const LLRect& rect, 181 LLLiveLSLEditor(const std::string& name, const LLRect& rect,
@@ -177,16 +186,33 @@ public:
177 186
178 static LLLiveLSLEditor* show(const LLUUID& item_id, const LLUUID& object_id); 187 static LLLiveLSLEditor* show(const LLUUID& item_id, const LLUUID& object_id);
179 static void hide(const LLUUID& item_id, const LLUUID& object_id); 188 static void hide(const LLUUID& item_id, const LLUUID& object_id);
189 static LLLiveLSLEditor* find(const LLUUID& item_id, const LLUUID& object_id);
180 190
181 static void processScriptRunningReply(LLMessageSystem* msg, void**); 191 static void processScriptRunningReply(LLMessageSystem* msg, void**);
182 192
193 virtual void callbackLSLCompileSucceeded(const LLUUID& task_id,
194 const LLUUID& item_id,
195 bool is_script_running);
196 virtual void callbackLSLCompileFailed(const LLSD& compile_errors);
197
183protected: 198protected:
184 virtual BOOL canClose(); 199 virtual BOOL canClose();
200 void closeIfNeeded();
185 virtual void draw(); 201 virtual void draw();
186 virtual void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE); 202 virtual void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE);
187 203
188 void loadAsset(BOOL is_new = FALSE); 204 virtual void loadAsset();
205 void loadAsset(BOOL is_new);
189 void saveIfNeeded(); 206 void saveIfNeeded();
207 void uploadAssetViaCaps(const std::string& url,
208 const std::string& filename,
209 const LLUUID& task_id,
210 const LLUUID& item_id,
211 BOOL is_running);
212 void uploadAssetLegacy(const std::string& filename,
213 LLViewerObject* object,
214 const LLTransactionID& tid,
215 BOOL is_running);
190 216
191 static void onLoad(void* userdata); 217 static void onLoad(void* userdata);
192 static void onSave(void* userdata, BOOL close_after_save); 218 static void onSave(void* userdata, BOOL close_after_save);