diff options
| author | Cinder <cinder.roxley@phoenixviewer.com> | 2014-05-14 14:08:24 -0600 |
|---|---|---|
| committer | Cinder <cinder.roxley@phoenixviewer.com> | 2014-05-14 14:08:24 -0600 |
| commit | e776b600b1a76fcbe316041fc6fa8e885464daee (patch) | |
| tree | 79982fcb22e40343969b789ff8f175fae9b40632 /indra/newview/llscripteditor.h | |
| parent | c073bad6b29fa3c5167c28c286171a1bda9b5e4a (diff) | |
Refactor more script editor properties away from LLTextEditor to LLScriptEditor
Diffstat (limited to 'indra/newview/llscripteditor.h')
| -rw-r--r-- | indra/newview/llscripteditor.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llscripteditor.h b/indra/newview/llscripteditor.h index d3e18021f9..8c5ab362a3 100644 --- a/indra/newview/llscripteditor.h +++ b/indra/newview/llscripteditor.h @@ -36,10 +36,16 @@ public: struct Params : public LLInitParam::Block<Params, LLTextEditor::Params> { + Optional<bool> show_line_numbers; + Params(); }; virtual ~LLScriptEditor() {}; + + // LLView override + virtual void draw(); + void initKeywords(); void loadKeywords(); void clearSegments(); @@ -51,11 +57,13 @@ protected: LLScriptEditor(const Params& p); private: + void drawLineNumbers(); void updateSegments(); void loadKeywords(const std::string& filename_keywords, const std::string& filename_colors); LLKeywords mKeywords; + bool mShowLineNumbers; }; #endif // LL_SCRIPTEDITOR_H |
