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.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/indra/newview/llpreviewscript.h b/indra/newview/llpreviewscript.h
index a0cef6553a..4fbfd989c1 100644
--- a/indra/newview/llpreviewscript.h
+++ b/indra/newview/llpreviewscript.h
@@ -87,7 +87,7 @@ protected:
const std::string& sample,
const LLHandle<LLFloater>& floater_handle,
void (*load_callback)(void* userdata),
- void (*save_callback)(void* userdata, BOOL close_after_save),
+ void (*save_callback)(void* userdata, bool close_after_save),
void (*search_replace_callback)(void* userdata),
void* userdata,
bool live,
@@ -100,17 +100,17 @@ public:
virtual void draw();
/*virtual*/ bool postBuild();
- BOOL canClose();
+ bool canClose();
void setEnableEditing(bool enable);
bool canLoadOrSaveToFile( void* userdata );
- void setScriptText(const std::string& text, BOOL is_valid);
+ void setScriptText(const std::string& text, bool is_valid);
void makeEditorPristine();
bool loadScriptText(const std::string& filename);
bool writeToFile(const std::string& filename);
void sync();
- void doSave( BOOL close_after_save );
+ void doSave( bool close_after_save );
bool handleSaveChangesDialog(const LLSD& notification, const LLSD& response);
bool handleReloadFromServerDialog(const LLSD& notification, const LLSD& response);
@@ -153,12 +153,12 @@ private:
virtual bool handleKeyHere(KEY key, MASK mask);
- void enableSave(BOOL b) {mEnableSave = b;}
+ void enableSave(bool b) {mEnableSave = b;}
protected:
void deleteBridges();
void setHelpPage(const std::string& help_string);
- void updateDynamicHelp(BOOL immediate = FALSE);
+ void updateDynamicHelp(bool immediate = false);
bool isKeyword(LLKeywordToken* token);
void addHelpItemToHistory(const std::string& help_string);
static void onErrorList(LLUICtrl*, void* user_data);
@@ -170,11 +170,11 @@ private:
std::string mScriptName;
LLScriptEditor* mEditor;
void (*mLoadCallback)(void* userdata);
- void (*mSaveCallback)(void* userdata, BOOL close_after_save);
+ void (*mSaveCallback)(void* userdata, bool close_after_save);
void (*mSearchReplaceCallback) (void* userdata);
void* mUserdata;
LLComboBox *mFunctions;
- BOOL mForceClose;
+ bool mForceClose;
LLPanel* mCodePanel;
LLScrollListCtrl* mErrorList;
std::vector<LLEntryAndEdCore*> mBridges;
@@ -182,12 +182,12 @@ private:
LLKeywordToken* mLastHelpToken;
LLFrameTimer mLiveHelpTimer;
S32 mLiveHelpHistorySize;
- BOOL mEnableSave;
- BOOL mHasScriptData;
+ bool mEnableSave;
+ bool mHasScriptData;
LLLiveLSLFile* mLiveFile;
LLUUID mAssociatedExperience;
- BOOL mScriptRemoved;
- BOOL mSaveDialogShown;
+ bool mScriptRemoved;
+ bool mSaveDialogShown;
LLUUID mAssetID;
LLScriptEdContainer* mContainer; // parent view
@@ -233,7 +233,7 @@ protected:
static void onSearchReplace(void* userdata);
static void onLoad(void* userdata);
- static void onSave(void* userdata, BOOL close_after_save);
+ static void onSave(void* userdata, bool close_after_save);
static void onLoadComplete(const LLUUID& uuid,
LLAssetType::EType type,
@@ -269,7 +269,7 @@ public:
/*virtual*/ bool postBuild();
- void setIsNew() { mIsNew = TRUE; }
+ void setIsNew() { mIsNew = true; }
static void setAssociatedExperience( LLHandle<LLLiveLSLEditor> editor, const LLSD& experience );
static void onToggleExperience(LLUICtrl *ui, void* userdata);
@@ -288,12 +288,12 @@ private:
virtual void loadAsset();
/*virtual*/ void saveIfNeeded(bool sync = true);
- BOOL monoChecked() const;
+ bool monoChecked() const;
static void onSearchReplace(void* userdata);
static void onLoad(void* userdata);
- static void onSave(void* userdata, BOOL close_after_save);
+ static void onSave(void* userdata, bool close_after_save);
static void onLoadComplete(const LLUUID& asset_uuid,
LLAssetType::EType type,
@@ -314,20 +314,20 @@ private:
bool mIsNew;
//LLUUID mTransmitID;
//LLCheckBoxCtrl* mRunningCheckbox;
- BOOL mAskedForRunningInfo;
- BOOL mHaveRunningInfo;
+ bool mAskedForRunningInfo;
+ bool mHaveRunningInfo;
//LLButton* mResetButton;
LLPointer<LLViewerInventoryItem> mItem;
- BOOL mCloseAfterSave;
+ bool mCloseAfterSave;
// need to save both text and script, so need to decide when done
S32 mPendingUploads;
- BOOL mIsSaving;
+ bool mIsSaving;
- BOOL getIsModifiable() const { return mIsModifiable; } // Evaluated on load assert
+ bool getIsModifiable() const { return mIsModifiable; } // Evaluated on load assert
LLCheckBoxCtrl* mMonoCheckbox;
- BOOL mIsModifiable;
+ bool mIsModifiable;
LLComboBox* mExperiences;