UI cleanup.
-Added ui-local transformation matrix. -Gutted legacy commitcallbacks throughout ui widget ctors. -Created filter_editor ui widget which issues commit on keypress -search_editor commits on focus loss/enter press -search_editor and filter_editor now have a built in 'x' button to clear text. -LLComboBox::setPrearrangeCallback now uses boost::function -LLComboBox::setTextEntryCallback now uses boost::function -LLLineEditor::setKeystrokeCallback now uses boost::function -LLLineEditor::setPrevalidate now uses boost::function -LLPanel::childSetKeystrokeCallback removed -LLPanel::childSetPrevalidate removed -LLPanel::childSetActionTextbox now uses boost::function -LLTextBox::setClickedCallback now uses boost::function -LLTextEditor::setKeystrokeCallback added. -Cleaned up JCFloaterAreaSearch
This commit is contained in:
@@ -52,21 +52,11 @@ LLNameEditor::LLNameEditor(const std::string& name, const LLRect& rect,
|
||||
const LLUUID& name_id,
|
||||
BOOL is_group,
|
||||
const LLFontGL* glfont,
|
||||
S32 max_text_length,
|
||||
void (*commit_callback)(LLUICtrl* caller, void* user_data),
|
||||
void (*keystroke_callback)(LLLineEditor* caller, void* user_data),
|
||||
void (*focus_lost_callback)(LLFocusableElement* caller, void* user_data),
|
||||
void* userdata,
|
||||
LLLinePrevalidateFunc prevalidate_func)
|
||||
S32 max_text_length)
|
||||
: LLLineEditor(name, rect,
|
||||
std::string("(retrieving)"),
|
||||
glfont,
|
||||
max_text_length,
|
||||
commit_callback,
|
||||
keystroke_callback,
|
||||
focus_lost_callback,
|
||||
userdata,
|
||||
prevalidate_func),
|
||||
max_text_length),
|
||||
mNameID(name_id)
|
||||
{
|
||||
LLNameEditor::sInstances.insert(this);
|
||||
@@ -153,14 +143,11 @@ LLView* LLNameEditor::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory
|
||||
|
||||
LLFontGL* font = LLView::selectFont(node);
|
||||
|
||||
LLUICtrlCallback commit_callback = NULL;
|
||||
|
||||
LLNameEditor* line_editor = new LLNameEditor(name,
|
||||
rect,
|
||||
LLUUID::null, FALSE,
|
||||
font,
|
||||
max_text_length,
|
||||
commit_callback);
|
||||
max_text_length);
|
||||
|
||||
std::string label;
|
||||
if(node->getAttributeString("label", label))
|
||||
|
||||
Reference in New Issue
Block a user