summaryrefslogtreecommitdiff
path: root/indra/llui/llchatentry.h
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-06-10 17:06:06 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-06-10 19:25:02 +0300
commit0dcc912cecdfb365c1f4246545ece40ccb7bc18e (patch)
treeccf664c765d1adbbf4985069321df65c85ca36e2 /indra/llui/llchatentry.h
parentbd8438f7083643ae5812b14e35e69e69ef1616c6 (diff)
parentd317454c82e016a02c8a708a0118f3ff29aa8e82 (diff)
Merge main into inventory_favorites
# Conflicts: # indra/llui/llfolderviewmodel.h # indra/newview/llpanelwearing.cpp # indra/newview/llwearableitemslist.cpp
Diffstat (limited to 'indra/llui/llchatentry.h')
-rw-r--r--indra/llui/llchatentry.h98
1 files changed, 49 insertions, 49 deletions
diff --git a/indra/llui/llchatentry.h b/indra/llui/llchatentry.h
index 3f13691a30..f7473b320d 100644
--- a/indra/llui/llchatentry.h
+++ b/indra/llui/llchatentry.h
@@ -4,8 +4,8 @@
* @brief Text editor widget which is used for user input
*
* Features:
- * Optional line history so previous entries can be recalled by CTRL UP/DOWN
- * Optional auto-resize behavior on input chat field
+ * Optional line history so previous entries can be recalled by CTRL UP/DOWN
+ * Optional auto-resize behavior on input chat field
*
* $LicenseInfo:firstyear=2001&license=viewerlgpl$
* Second Life Viewer Source Code
@@ -38,69 +38,69 @@ class LLChatEntry : public LLTextEditor
{
public:
- struct Params : public LLInitParam::Block<Params, LLTextEditor::Params>
- {
- Optional<bool> has_history,
- is_expandable;
+ struct Params : public LLInitParam::Block<Params, LLTextEditor::Params>
+ {
+ Optional<bool> has_history,
+ is_expandable;
- Optional<int> expand_lines_count;
+ Optional<int> expand_lines_count;
- Params();
- };
+ Params();
+ };
- virtual ~LLChatEntry();
+ virtual ~LLChatEntry();
protected:
- friend class LLUICtrlFactory;
- LLChatEntry(const Params& p);
+ friend class LLUICtrlFactory;
+ LLChatEntry(const Params& p);
/*virtual*/ void beforeValueChange();
/*virtual*/ void onValueChange(S32 start, S32 end);
/*virtual*/ bool useLabel() const;
public:
- virtual void draw();
- virtual void onCommit();
- /*virtual*/ void onFocusReceived();
- /*virtual*/ void onFocusLost();
+ virtual void draw();
+ virtual void onCommit();
+ /*virtual*/ void onFocusReceived();
+ /*virtual*/ void onFocusLost();
- void enableSingleLineMode(bool single_line_mode);
- boost::signals2::connection setTextExpandedCallback(const commit_signal_t::slot_type& cb);
+ void enableSingleLineMode(bool single_line_mode);
+ boost::signals2::connection setTextExpandedCallback(const commit_signal_t::slot_type& cb);
private:
- /**
- * Implements auto-resize behavior.
- * When user's typing reaches the right edge of the chat field
- * the chat field expands vertically by one line. The bottom of
- * the chat field remains bottom-justified. The chat field does
- * not expand beyond mExpandLinesCount.
- */
- void expandText();
-
- /**
- * Implements line history so previous entries can be recalled by CTRL UP/DOWN
- */
- void updateHistory();
-
- BOOL handleSpecialKey(const KEY key, const MASK mask);
-
-
- // Fired when text height expanded to mExpandLinesCount
- commit_signal_t* mTextExpandedSignal;
-
- // line history support:
- typedef std::vector<std::string> line_history_t;
- line_history_t::iterator mCurrentHistoryLine; // currently browsed history line
- line_history_t mLineHistory; // line history storage
- bool mHasHistory; // flag for enabled/disabled line history
- bool mIsExpandable;
- bool mSingleLineMode;
-
- S32 mExpandLinesCount;
- S32 mPrevLinesCount;
- S32 mPrevExpandedLineCount;
+ /**
+ * Implements auto-resize behavior.
+ * When user's typing reaches the right edge of the chat field
+ * the chat field expands vertically by one line. The bottom of
+ * the chat field remains bottom-justified. The chat field does
+ * not expand beyond mExpandLinesCount.
+ */
+ void expandText();
+
+ /**
+ * Implements line history so previous entries can be recalled by CTRL UP/DOWN
+ */
+ void updateHistory();
+
+ BOOL handleSpecialKey(const KEY key, const MASK mask);
+
+
+ // Fired when text height expanded to mExpandLinesCount
+ commit_signal_t* mTextExpandedSignal;
+
+ // line history support:
+ typedef std::vector<std::string> line_history_t;
+ line_history_t::iterator mCurrentHistoryLine; // currently browsed history line
+ line_history_t mLineHistory; // line history storage
+ bool mHasHistory; // flag for enabled/disabled line history
+ bool mIsExpandable;
+ bool mSingleLineMode;
+
+ S32 mExpandLinesCount;
+ S32 mPrevLinesCount;
+ S32 mPrevExpandedLineCount;
};
#endif /* LLCHATENTRY_H_ */