diff options
author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-05-15 15:27:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-15 15:27:36 +0300 |
commit | 4ddaeb377271361f4a104774709d4ba31568e9de (patch) | |
tree | 0c19f415cb30983169a1a6aa3559b83841ee78e3 /indra/newview/llscripteditor.h | |
parent | 26f70456d1e9059c48d25e08fc07f893315b1f3c (diff) | |
parent | 363b89947c580e1056cb5f4ae32ebfd9eaf12a17 (diff) |
Merge pull request #1477 from secondlife/marchcat/x-c-merge
Maint X -> Maint C merge
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; }; |