summaryrefslogtreecommitdiff
path: root/indra/newview/llexpandabletextbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llexpandabletextbox.h')
-rw-r--r--indra/newview/llexpandabletextbox.h45
1 files changed, 11 insertions, 34 deletions
diff --git a/indra/newview/llexpandabletextbox.h b/indra/newview/llexpandabletextbox.h
index 0a5a4c8b75..d6401e224f 100644
--- a/indra/newview/llexpandabletextbox.h
+++ b/indra/newview/llexpandabletextbox.h
@@ -54,27 +54,13 @@ protected:
public:
struct Params : public LLInitParam::Block<Params, LLTextBox::Params>
{
- Optional<LLTextBox::Params> expand_textbox;
-
+ Mandatory<std::string> more_label;
Params();
};
- /**
- * Draw text box and "More" link
- */
- /*virtual*/ void draw();
-
- /**
- * Draws simple text(no urls) line by line, will show or hide "More" link
- * if needed.
- */
- /*virtual*/ void drawText( S32 x, S32 y, const LLWString &text, const LLColor4& color );
-
- /**
- * Draws segmented text(with urls) line by line. Will show or hide "More" link
- * if needed
- */
- void drawTextSegments(S32 x, S32 y, const LLWString &text);
+ // adds or removes "More" link as needed
+ /*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE);
+ /*virtual*/ void setValue(const LLSD& value);
/**
* Returns difference between text box height and text height.
@@ -93,33 +79,24 @@ protected:
virtual S32 getHPad() { return mHPad; }
/**
- * Broadcasts "commit" signal if user clicked "More" link
- */
- /*virtual*/ BOOL handleMouseUp(S32 x, S32 y, MASK mask);
-
- protected:
-
- LLTextBoxEx(const Params& p);
- friend class LLUICtrlFactory;
-
- /**
* Shows "More" link
*/
- void showExpandText(S32 y);
+ void showExpandText();
/**
* Hides "More" link
*/
void hideExpandText();
- /**
- * Returns cropped line width
- */
- S32 getCropTextWidth();
+ protected:
+
+ LLTextBoxEx(const Params& p);
+ friend class LLUICtrlFactory;
private:
+ std::string mExpanderLabel;
- LLTextBox* mExpandTextBox;
+ bool mExpanderVisible;
};
public: