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:
@@ -399,8 +399,7 @@ BOOL LLPreviewGesture::postBuild()
|
||||
LLCheckBoxCtrl* check;
|
||||
|
||||
edit = getChild<LLLineEditor>("trigger_editor");
|
||||
edit->setKeystrokeCallback(onKeystrokeCommit);
|
||||
edit->setCallbackUserData(this);
|
||||
edit->setKeystrokeCallback(boost::bind(&onKeystrokeCommit,_1,this));
|
||||
edit->setCommitCallback(boost::bind(&LLPreviewGesture::onCommitSetDirty,this));
|
||||
edit->setCommitOnFocusLost(TRUE);
|
||||
edit->setIgnoreTab(TRUE);
|
||||
@@ -412,8 +411,7 @@ BOOL LLPreviewGesture::postBuild()
|
||||
|
||||
edit = getChild<LLLineEditor>("replace_editor");
|
||||
edit->setEnabled(FALSE);
|
||||
edit->setKeystrokeCallback(onKeystrokeCommit);
|
||||
edit->setCallbackUserData(this);
|
||||
edit->setKeystrokeCallback(boost::bind(&onKeystrokeCommit,_1,this));
|
||||
edit->setCommitCallback(boost::bind(&LLPreviewGesture::onCommitSetDirty,this));
|
||||
edit->setCommitOnFocusLost(TRUE);
|
||||
|
||||
@@ -537,7 +535,7 @@ BOOL LLPreviewGesture::postBuild()
|
||||
{
|
||||
childSetCommitCallback("desc", LLPreview::onText, this);
|
||||
childSetText("desc", item->getDescription());
|
||||
childSetPrevalidate("desc", &LLLineEditor::prevalidatePrintableNotPipe);
|
||||
getChild<LLLineEditor>("desc")->setPrevalidate(&LLLineEditor::prevalidatePrintableNotPipe);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user