summaryrefslogtreecommitdiff
path: root/indra/newview/llpreviewscript.h
diff options
context:
space:
mode:
authorAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2025-01-24 00:26:00 +0100
committerAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2025-01-25 03:02:29 +0100
commit7f88aedbc3b53496bc99d8e0e64a818c7a3f6d6f (patch)
tree2877cdffc55025608cfd756ece65a34ddad3dd57 /indra/newview/llpreviewscript.h
parent5029f0322f264e17f7509952f7bf9812db17a9ec (diff)
#3423 Add Lua as Compile Target in Viewer Script Editor
Diffstat (limited to 'indra/newview/llpreviewscript.h')
-rw-r--r--indra/newview/llpreviewscript.h33
1 files changed, 16 insertions, 17 deletions
diff --git a/indra/newview/llpreviewscript.h b/indra/newview/llpreviewscript.h
index 70ee1a4274..9ec439d21a 100644
--- a/indra/newview/llpreviewscript.h
+++ b/indra/newview/llpreviewscript.h
@@ -290,8 +290,8 @@ public:
void setIsNew() { mIsNew = true; }
static void setAssociatedExperience( LLHandle<LLLiveLSLEditor> editor, const LLSD& experience );
- static void onToggleExperience(LLUICtrl *ui, void* userdata);
- static void onViewProfile(LLUICtrl *ui, void* userdata);
+ void onToggleExperience();
+ void onViewProfile();
void setExperienceIds(const LLSD& experience_ids);
void buildExperienceList();
@@ -301,6 +301,8 @@ public:
void setObjectName(std::string name) { mObjectName = name; }
+ bool getIsModifiable() const { return mIsModifiable; } // Evaluated on load assert
+
private:
virtual bool canClose();
void closeIfNeeded();
@@ -308,8 +310,6 @@ private:
virtual void loadAsset();
/*virtual*/ void saveIfNeeded(bool sync = true);
- bool monoChecked() const;
-
static void onSearchReplace(void* userdata);
static void onLoad(void* userdata);
@@ -318,14 +318,14 @@ private:
static void onLoadComplete(const LLUUID& asset_uuid,
LLAssetType::EType type,
void* user_data, S32 status, LLExtStat ext_status);
- static void onRunningCheckboxClicked(LLUICtrl*, void* userdata);
- static void onReset(void* userdata);
+ void onRunningCheckboxClicked();
+ void onReset();
void loadScriptText(const LLUUID &uuid, LLAssetType::EType type);
static void* createScriptEdPanel(void* userdata);
- static void onMonoCheckboxClicked(LLUICtrl*, void* userdata);
+ void onCompileTargetChanged();
static void finishLSLUpload(LLUUID itemId, LLUUID taskId, LLUUID newAssetId, LLSD response, bool isRunning);
static void receiveExperienceIds(LLSD result, LLHandle<LLLiveLSLEditor> parent);
@@ -343,19 +343,18 @@ private:
S32 mPendingUploads;
bool mIsSaving;
+ bool mIsModifiable;
- bool getIsModifiable() const { return mIsModifiable; } // Evaluated on load assert
-
- LLCheckBoxCtrl* mMonoCheckbox;
- bool mIsModifiable;
-
-
- LLComboBox* mExperiences;
- LLCheckBoxCtrl* mExperienceEnabled;
- LLSD mExperienceIds;
+ LLButton* mResetButton { nullptr };
+ LLCheckBoxCtrl* mRunningCheckbox { nullptr };
+ LLComboBox* mCompileTarget { nullptr };
+ LLComboBox* mExperiences { nullptr };
+ LLCheckBoxCtrl* mExperienceEnabled { nullptr };
+ LLButton* mViewProfileButton { nullptr };
+ LLSD mExperienceIds;
LLHandle<LLFloater> mExperienceProfile;
- std::string mObjectName;
+ std::string mObjectName;
};
#endif // LL_LLPREVIEWSCRIPT_H