summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/lllineeditor.h3
-rw-r--r--indra/llui/llsearcheditor.cpp22
-rw-r--r--indra/llui/llsearcheditor.h20
3 files changed, 3 insertions, 42 deletions
diff --git a/indra/llui/lllineeditor.h b/indra/llui/lllineeditor.h
index f84625bea7..aa5779d45f 100644
--- a/indra/llui/lllineeditor.h
+++ b/indra/llui/lllineeditor.h
@@ -283,9 +283,6 @@ public:
void resetContextMenu() { setContextMenu(NULL); };
- void setBgImage(LLPointer<LLUIImage> image) { mBgImage = image; }
- void setBgImageFocused(LLPointer<LLUIImage> image) { mBgImageFocused = image; }
-
private:
// private helper methods
diff --git a/indra/llui/llsearcheditor.cpp b/indra/llui/llsearcheditor.cpp
index bafeef41fb..1fdd05a11c 100644
--- a/indra/llui/llsearcheditor.cpp
+++ b/indra/llui/llsearcheditor.cpp
@@ -34,11 +34,7 @@
LLSearchEditor::LLSearchEditor(const LLSearchEditor::Params& p)
: LLUICtrl(p),
mSearchButton(NULL),
- mClearButton(NULL),
- mEditorImage(p.background_image),
- mEditorImageFocused(p.background_image_focused),
- mEditorSearchImage(p.background_image_highlight),
- mHighlightTextField(p.highlight_text_field)
+ mClearButton(NULL)
{
S32 srch_btn_top = p.search_button.top_pad + p.search_button.rect.height;
S32 srch_btn_right = p.search_button.rect.width + p.search_button.left_pad;
@@ -61,8 +57,6 @@ LLSearchEditor::LLSearchEditor(const LLSearchEditor::Params& p)
// Set up line editor.
LLLineEditor::Params line_editor_params(p);
line_editor_params.name("filter edit box");
- line_editor_params.background_image(p.background_image);
- line_editor_params.background_image_focused(p.background_image_focused);
line_editor_params.rect(getLocalRect());
line_editor_params.follows.flags(FOLLOWS_ALL);
line_editor_params.text_pad_left(text_pad_left);
@@ -110,20 +104,6 @@ void LLSearchEditor::draw()
if (mClearButton)
mClearButton->setVisible(!mSearchEditor->getWText().empty());
- if (mHighlightTextField)
- {
- if (!mSearchEditor->getWText().empty())
- {
- mSearchEditor->setBgImage(mEditorSearchImage);
- mSearchEditor->setBgImageFocused(mEditorSearchImage);
- }
- else
- {
- mSearchEditor->setBgImage(mEditorImage);
- mSearchEditor->setBgImageFocused(mEditorImageFocused);
- }
- }
-
LLUICtrl::draw();
}
diff --git a/indra/llui/llsearcheditor.h b/indra/llui/llsearcheditor.h
index c0f3c1d60c..3b12868225 100644
--- a/indra/llui/llsearcheditor.h
+++ b/indra/llui/llsearcheditor.h
@@ -47,23 +47,14 @@ public:
Optional<LLButton::Params> search_button,
clear_button;
Optional<bool> search_button_visible,
- clear_button_visible,
- highlight_text_field;
+ clear_button_visible;
Optional<commit_callback_t> keystroke_callback;
- Optional<LLUIImage*> background_image,
- background_image_focused,
- background_image_highlight;
-
Params()
: search_button("search_button"),
search_button_visible("search_button_visible"),
clear_button("clear_button"),
- clear_button_visible("clear_button_visible"),
- highlight_text_field("highlight_text_field"),
- background_image("background_image"),
- background_image_focused("background_image_focused"),
- background_image_highlight("background_image_highlight")
+ clear_button_visible("clear_button_visible")
{}
};
@@ -102,13 +93,6 @@ protected:
LLLineEditor* mSearchEditor;
LLButton* mSearchButton;
LLButton* mClearButton;
-
- LLPointer<LLUIImage> mEditorImage;
- LLPointer<LLUIImage> mEditorImageFocused;
- LLPointer<LLUIImage> mEditorSearchImage;
- LLPointer<LLUIImage> mEditorSearchImageFocused;
-
- bool mHighlightTextField;
};
#endif // LL_SEARCHEDITOR_H