diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-05-14 21:02:28 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-05-14 21:02:28 -0400 |
commit | 094dcc07f8c1d90ae723dbe60eddacb90a09eae8 (patch) | |
tree | e750942e5f22ed677b543bd49509c2a7cdc5ce56 /indra/newview/llscripteditor.h | |
parent | d4043d3b011c32eb503c43c551872f9c24d7344f (diff) | |
parent | 38c2a5bde985a6a8a96d912d432f8bdf7e5b60be (diff) |
Merge DRTVWR-591-maint-X to main on promotion of secondlife/viewer #705: Maintenance X
Diffstat (limited to 'indra/newview/llscripteditor.h')
-rw-r--r-- | indra/newview/llscripteditor.h | 58 |
1 files changed, 29 insertions, 29 deletions
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<Params, LLTextEditor::Params> - { - Optional<bool> show_line_numbers; + + struct Params : public LLInitParam::Block<Params, LLTextEditor::Params> + { + Optional<bool> show_line_numbers; Optional<bool> 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; }; |