aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/lllineeditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui/lllineeditor.h')
-rw-r--r--linden/indra/llui/lllineeditor.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/linden/indra/llui/lllineeditor.h b/linden/indra/llui/lllineeditor.h
index 43ce869..b3e21ce 100644
--- a/linden/indra/llui/lllineeditor.h
+++ b/linden/indra/llui/lllineeditor.h
@@ -55,6 +55,7 @@
55class LLFontGL; 55class LLFontGL;
56class LLLineEditorRollback; 56class LLLineEditorRollback;
57class LLButton; 57class LLButton;
58class LLMenuGL;
58 59
59typedef BOOL (*LLLinePrevalidateFunc)(const LLWString &wstr); 60typedef BOOL (*LLLinePrevalidateFunc)(const LLWString &wstr);
60 61
@@ -112,7 +113,8 @@ public:
112 virtual BOOL canTranslate() const; 113 virtual BOOL canTranslate() const;
113 virtual void insert(std::string what,S32 wher); 114 virtual void insert(std::string what,S32 wher);
114 115
115 // LLEditMenuHandler overrides 116 // LLEditMenuHandler overrides and menu set up methods.
117 void defineMenuCallbacks(LLMenuGL* menu);
116 virtual void cut(); 118 virtual void cut();
117 virtual BOOL canCut() const; 119 virtual BOOL canCut() const;
118 120
@@ -152,11 +154,12 @@ public:
152 static void spell_show(void* data); 154 static void spell_show(void* data);
153 static void spell_add(void* data); 155 static void spell_add(void* data);
154 156
155 std::vector<S32> getMisspelledWordsPositions(); 157 void getMisspelledWordsPositions(std::vector<S32>& misspell_positions);
158
156 // view overrides 159 // view overrides
157 virtual void draw(); 160 virtual void draw();
158 void autoCorrectText(); 161 void autoCorrectText();
159 void drawMisspelled(LLRect background); 162 void drawMisspelled(const LLRect& background);
160 virtual void reshape(S32 width,S32 height,BOOL called_from_parent=TRUE); 163 virtual void reshape(S32 width,S32 height,BOOL called_from_parent=TRUE);
161 virtual void onFocusReceived(); 164 virtual void onFocusReceived();
162 virtual void onFocusLost(); 165 virtual void onFocusLost();
@@ -303,7 +306,7 @@ protected:
303 std::string mPrevText; // Saved string for 'ESC' revert 306 std::string mPrevText; // Saved string for 'ESC' revert
304 LLUIString mLabel; // text label that is visible when no user text provided 307 LLUIString mLabel; // text label that is visible when no user text provided
305 std::string mPrevSpelledText; // saved string so we know whether to respell or not 308 std::string mPrevSpelledText; // saved string so we know whether to respell or not
306 std::vector<S32> misspellLocations; // where all the mispelled words are 309 std::vector<S32> mMisspellLocations; // where all the mispelled words are
307 S32 mStartSpellHere; // the position of the first char on the screen, stored so we know when to update 310 S32 mStartSpellHere; // the position of the first char on the screen, stored so we know when to update
308 S32 mEndSpellHere; // the location of the last char on the screen 311 S32 mEndSpellHere; // the location of the last char on the screen
309 BOOL mSpellCheckable; // set in xui as "spell_check". Default value for a field 312 BOOL mSpellCheckable; // set in xui as "spell_check". Default value for a field
@@ -468,4 +471,6 @@ private:
468 471
469}; 472};
470 473
474
475
471#endif // LL_LINEEDITOR_ 476#endif // LL_LINEEDITOR_