diff options
author | thickbrick | 2010-09-25 12:58:56 +0200 |
---|---|---|
committer | thickbrick | 2010-09-25 13:35:23 +0200 |
commit | f5006e8a2f34afa390f0bbcf0f6af15218cf4105 (patch) | |
tree | 86c347d0f698afa71a7ffe6dec493e386ecdcb8f /linden/indra/llui/lllineeditor.h | |
parent | LLLineEditor context translator: re-select text properly. (diff) | |
download | meta-impy-f5006e8a2f34afa390f0bbcf0f6af15218cf4105.zip meta-impy-f5006e8a2f34afa390f0bbcf0f6af15218cf4105.tar.gz meta-impy-f5006e8a2f34afa390f0bbcf0f6af15218cf4105.tar.bz2 meta-impy-f5006e8a2f34afa390f0bbcf0f6af15218cf4105.tar.xz |
LLLineEditor context translator:
- Added a xui attribute "allow_translate", default to off (not enabled
in any xml file yet.)
- Only show translate menu if clicked on a word, or something is selected.
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/lllineeditor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linden/indra/llui/lllineeditor.h b/linden/indra/llui/lllineeditor.h index af37f62..0ad415a 100644 --- a/linden/indra/llui/lllineeditor.h +++ b/linden/indra/llui/lllineeditor.h | |||
@@ -200,6 +200,7 @@ public: | |||
200 | void setReadOnlyBgColor( const LLColor4& c ) { mReadOnlyBgColor = c; } | 200 | void setReadOnlyBgColor( const LLColor4& c ) { mReadOnlyBgColor = c; } |
201 | void setFocusBgColor(const LLColor4& c) { mFocusBgColor = c; } | 201 | void setFocusBgColor(const LLColor4& c) { mFocusBgColor = c; } |
202 | void setSpellCheckable(BOOL b) { mSpellCheckable = b; } | 202 | void setSpellCheckable(BOOL b) { mSpellCheckable = b; } |
203 | void setAllowTranslate(BOOL b) { mAllowTranslate = b; } | ||
203 | 204 | ||
204 | const LLColor4& getFgColor() const { return mFgColor; } | 205 | const LLColor4& getFgColor() const { return mFgColor; } |
205 | const LLColor4& getReadOnlyFgColor() const { return mReadOnlyFgColor; } | 206 | const LLColor4& getReadOnlyFgColor() const { return mReadOnlyFgColor; } |
@@ -301,6 +302,7 @@ protected: | |||
301 | //to keep track of what we have to remove before showing menu | 302 | //to keep track of what we have to remove before showing menu |
302 | std::vector<SpellMenuBind* > suggestionMenuItems; | 303 | std::vector<SpellMenuBind* > suggestionMenuItems; |
303 | S32 mLastContextMenuX; | 304 | S32 mLastContextMenuX; |
305 | BOOL mAllowTranslate; // set in xui as "allow_translate". | ||
304 | 306 | ||
305 | // line history support: | 307 | // line history support: |
306 | BOOL mHaveHistory; // flag for enabled line history | 308 | BOOL mHaveHistory; // flag for enabled line history |