From 1b68f71348ecf3983b76b40d7940da8377f049b7 Mon Sep 17 00:00:00 2001 From: Andrey Lihatskiy Date: Mon, 29 Apr 2024 07:43:28 +0300 Subject: #824 Process source files in bulk: replace tabs with spaces, convert CRLF to LF, and trim trailing whitespaces as needed --- indra/newview/llscripteditor.h | 58 +++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'indra/newview/llscripteditor.h') diff --git a/indra/newview/llscripteditor.h b/indra/newview/llscripteditor.h index ef941f552a..19caa277d9 100644 --- a/indra/newview/llscripteditor.h +++ b/indra/newview/llscripteditor.h @@ -33,43 +33,43 @@ class LLScriptEditor : public LLTextEditor { public: - - struct Params : public LLInitParam::Block - { - Optional show_line_numbers; + + struct Params : public LLInitParam::Block + { + Optional show_line_numbers; Optional default_font_size; - Params(); - }; - - virtual ~LLScriptEditor() {}; - - // LLView override - virtual void draw(); + Params(); + }; + + virtual ~LLScriptEditor() {}; + + // LLView override + virtual void draw(); BOOL postBuild(); - - void initKeywords(); - void loadKeywords(); - /* virtual */ void clearSegments(); - LLKeywords::keyword_iterator_t keywordsBegin() { return mKeywords.begin(); } - LLKeywords::keyword_iterator_t keywordsEnd() { return mKeywords.end(); } - + + void initKeywords(); + void loadKeywords(); + /* virtual */ void clearSegments(); + LLKeywords::keyword_iterator_t keywordsBegin() { return mKeywords.begin(); } + LLKeywords::keyword_iterator_t keywordsEnd() { return mKeywords.end(); } + static std::string getScriptFontSize(); LLFontGL* getScriptFont(); void onFontSizeChange(); protected: - friend class LLUICtrlFactory; - LLScriptEditor(const Params& p); - + friend class LLUICtrlFactory; + LLScriptEditor(const Params& p); + private: - void drawLineNumbers(); - /* virtual */ void updateSegments(); - /* virtual */ void drawSelectionBackground(); - void loadKeywords(const std::string& filename_keywords, - const std::string& filename_colors); - - LLKeywords mKeywords; - bool mShowLineNumbers; + void drawLineNumbers(); + /* virtual */ void updateSegments(); + /* virtual */ void drawSelectionBackground(); + void loadKeywords(const std::string& filename_keywords, + const std::string& filename_colors); + + LLKeywords mKeywords; + bool mShowLineNumbers; bool mUseDefaultFontSize; }; -- cgit v1.2.3