Modernized lluictrl. Added LLViewModel. Fixed focus callbacks being called excessively. Updated LLButton, and implemented boost::signals2 to replace old callback handling.
This commit is contained in:
@@ -220,13 +220,11 @@ BOOL LLPanelGroupNotices::postBuild()
|
||||
mNoticesList->setCallbackUserData(this);
|
||||
|
||||
mBtnNewMessage = getChild<LLButton>("create_new_notice",recurse);
|
||||
mBtnNewMessage->setClickedCallback(onClickNewMessage);
|
||||
mBtnNewMessage->setCallbackUserData(this);
|
||||
mBtnNewMessage->setClickedCallback(boost::bind(&LLPanelGroupNotices::onClickNewMessage,this));
|
||||
mBtnNewMessage->setEnabled(gAgent.hasPowerInGroup(mGroupID, GP_NOTICES_SEND));
|
||||
|
||||
mBtnGetPastNotices = getChild<LLButton>("refresh_notices",recurse);
|
||||
mBtnGetPastNotices->setClickedCallback(onClickRefreshNotices);
|
||||
mBtnGetPastNotices->setCallbackUserData(this);
|
||||
mBtnGetPastNotices->setClickedCallback(boost::bind(&LLPanelGroupNotices::onClickRefreshNotices,this));
|
||||
|
||||
// Create
|
||||
mCreateSubject = getChild<LLLineEditor>("create_subject",recurse);
|
||||
@@ -240,12 +238,10 @@ BOOL LLPanelGroupNotices::postBuild()
|
||||
mCreateInventoryIcon->setVisible(FALSE);
|
||||
|
||||
mBtnSendMessage = getChild<LLButton>("send_notice",recurse);
|
||||
mBtnSendMessage->setClickedCallback(onClickSendMessage);
|
||||
mBtnSendMessage->setCallbackUserData(this);
|
||||
mBtnSendMessage->setClickedCallback(boost::bind(&LLPanelGroupNotices::onClickSendMessage,this));
|
||||
|
||||
mBtnRemoveAttachment = getChild<LLButton>("remove_attachment",recurse);
|
||||
mBtnRemoveAttachment->setClickedCallback(onClickRemoveAttachment);
|
||||
mBtnRemoveAttachment->setCallbackUserData(this);
|
||||
mBtnRemoveAttachment->setClickedCallback(boost::bind(&LLPanelGroupNotices::onClickRemoveAttachment,this));
|
||||
mBtnRemoveAttachment->setEnabled(FALSE);
|
||||
|
||||
// View
|
||||
@@ -261,8 +257,7 @@ BOOL LLPanelGroupNotices::postBuild()
|
||||
mViewInventoryIcon->setVisible(FALSE);
|
||||
|
||||
mBtnOpenAttachment = getChild<LLButton>("open_attachment",recurse);
|
||||
mBtnOpenAttachment->setClickedCallback(onClickOpenAttachment);
|
||||
mBtnOpenAttachment->setCallbackUserData(this);
|
||||
mBtnOpenAttachment->setClickedCallback(boost::bind(&LLPanelGroupNotices::onClickOpenAttachment,this));
|
||||
|
||||
mNoNoticesStr = getString("no_notices_text");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user