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:
@@ -235,10 +235,9 @@ LLFolderView::LLFolderView( const std::string& name,
|
||||
|
||||
mRenamer = new LLLineEditor(std::string("ren"), getRect(), LLStringUtil::null, getLabelFontForStyle(LLFontGL::NORMAL),
|
||||
DB_INV_ITEM_NAME_STR_LEN,
|
||||
&LLFolderView::commitRename,
|
||||
boost::bind(&LLFolderView::commitRename,this),
|
||||
NULL,
|
||||
NULL,
|
||||
this,
|
||||
&LLLineEditor::prevalidatePrintableNotPipe);
|
||||
//mRenamer->setWriteableBgColor(LLColor4::white);
|
||||
// Escape is handled by reverting the rename, not commiting it (default behavior)
|
||||
@@ -897,13 +896,9 @@ BOOL LLFolderView::startDrag(LLToolDragAndDrop::ESource source)
|
||||
return can_drag;
|
||||
}
|
||||
|
||||
void LLFolderView::commitRename( LLUICtrl* renamer, void* user_data )
|
||||
void LLFolderView::commitRename( )
|
||||
{
|
||||
LLFolderView* root = reinterpret_cast<LLFolderView*>(user_data);
|
||||
if( root )
|
||||
{
|
||||
root->finishRenamingItem();
|
||||
}
|
||||
finishRenamingItem();
|
||||
}
|
||||
|
||||
void LLFolderView::draw()
|
||||
|
||||
Reference in New Issue
Block a user