onVisibilityChange renamed to handleVisibilityChange
This commit is contained in:
@@ -1279,13 +1279,13 @@ void LLMenuItemBranchGL::updateBranchParent(LLView* parentp)
|
||||
}
|
||||
}
|
||||
|
||||
void LLMenuItemBranchGL::onVisibilityChange( BOOL new_visibility )
|
||||
void LLMenuItemBranchGL::handleVisibilityChange( BOOL new_visibility )
|
||||
{
|
||||
if (new_visibility == FALSE && getBranch() && !getBranch()->getTornOff())
|
||||
{
|
||||
getBranch()->setVisible(FALSE);
|
||||
}
|
||||
LLMenuItemGL::onVisibilityChange(new_visibility);
|
||||
LLMenuItemGL::handleVisibilityChange(new_visibility);
|
||||
}
|
||||
|
||||
BOOL LLMenuItemBranchGL::handleKeyHere( KEY key, MASK mask )
|
||||
|
||||
@@ -613,7 +613,7 @@ public:
|
||||
virtual void updateBranchParent( LLView* parentp );
|
||||
|
||||
// LLView Functionality
|
||||
virtual void onVisibilityChange( BOOL curVisibilityIn );
|
||||
virtual void handleVisibilityChange( BOOL curVisibilityIn );
|
||||
|
||||
virtual void draw();
|
||||
|
||||
|
||||
@@ -644,14 +644,14 @@ void LLView::setVisible(BOOL visible)
|
||||
if (!getParent() || getParent()->isInVisibleChain())
|
||||
{
|
||||
// tell all children of this view that the visibility may have changed
|
||||
onVisibilityChange( visible );
|
||||
handleVisibilityChange( visible );
|
||||
}
|
||||
updateBoundingRect();
|
||||
}
|
||||
}
|
||||
|
||||
// virtual
|
||||
void LLView::onVisibilityChange ( BOOL new_visibility )
|
||||
void LLView::handleVisibilityChange ( BOOL new_visibility )
|
||||
{
|
||||
for ( child_list_iter_t child_it = mChildList.begin(); child_it != mChildList.end(); ++child_it)
|
||||
{
|
||||
@@ -659,7 +659,7 @@ void LLView::onVisibilityChange ( BOOL new_visibility )
|
||||
// only views that are themselves visible will have their overall visibility affected by their ancestors
|
||||
if (viewp->getVisible())
|
||||
{
|
||||
viewp->onVisibilityChange ( new_visibility );
|
||||
viewp->handleVisibilityChange ( new_visibility );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ virtual void setEnabled(BOOL enabled) { mEnabled = enabled; }
|
||||
LLCheckBoxCtrl, LLComboBox, LLLineEditor, LLMenuGL, LLRadioGroup, etc
|
||||
virtual BOOL setLabelArg( const std::string& key, const LLStringExplicit& text ) { return FALSE; }
|
||||
LLUICtrl, LLButton, LLCheckBoxCtrl, LLLineEditor, LLMenuGL, LLSliderCtrl
|
||||
virtual void onVisibilityChange ( BOOL curVisibilityIn );
|
||||
virtual void handleVisibilityChange ( BOOL curVisibilityIn );
|
||||
LLMenuGL
|
||||
virtual LLRect getSnapRect() const { return mRect; } *TODO: Make non virtual
|
||||
LLFloater
|
||||
@@ -342,7 +342,7 @@ public:
|
||||
|
||||
virtual BOOL setLabelArg( const std::string& key, const LLStringExplicit& text );
|
||||
|
||||
virtual void onVisibilityChange ( BOOL curVisibilityIn );
|
||||
virtual void handleVisibilityChange ( BOOL curVisibilityIn );
|
||||
|
||||
void pushVisible(BOOL visible) { mLastVisible = mVisible; setVisible(visible); }
|
||||
void popVisible() { setVisible(mLastVisible); mLastVisible = TRUE; }
|
||||
|
||||
@@ -169,7 +169,7 @@ void LLFloaterChat::onClose(bool app_quitting)
|
||||
setVisible(FALSE);
|
||||
}
|
||||
|
||||
void LLFloaterChat::onVisibilityChange(BOOL new_visibility)
|
||||
void LLFloaterChat::handleVisibilityChange(BOOL new_visibility)
|
||||
{
|
||||
// Hide the chat overlay when our history is visible.
|
||||
updateConsoleVisibility();
|
||||
@@ -180,7 +180,7 @@ void LLFloaterChat::onVisibilityChange(BOOL new_visibility)
|
||||
LLFloaterChatterBox::getInstance()->setFloaterFlashing(this, FALSE);
|
||||
}
|
||||
|
||||
LLFloater::onVisibilityChange(new_visibility);
|
||||
LLFloater::handleVisibilityChange(new_visibility);
|
||||
}
|
||||
|
||||
void LLFloaterChat::setMinimized(BOOL minimized)
|
||||
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
virtual void draw();
|
||||
virtual BOOL postBuild();
|
||||
virtual void onClose(bool app_quitting);
|
||||
virtual void onVisibilityChange(BOOL cur_visibility);
|
||||
virtual void handleVisibilityChange(BOOL cur_visibility);
|
||||
virtual void setMinimized(BOOL);
|
||||
void updateConsoleVisibility();
|
||||
void updateSettings();
|
||||
|
||||
@@ -2050,7 +2050,7 @@ void LLFloaterIMPanel::onClose(bool app_quitting)
|
||||
destroy();
|
||||
}
|
||||
|
||||
void LLFloaterIMPanel::onVisibilityChange(BOOL new_visibility)
|
||||
void LLFloaterIMPanel::handleVisibilityChange(BOOL new_visibility)
|
||||
{
|
||||
if (new_visibility)
|
||||
{
|
||||
|
||||
@@ -204,7 +204,7 @@ public:
|
||||
// Check typing timeout timer.
|
||||
/*virtual*/ void draw();
|
||||
/*virtual*/ void onClose(bool app_quitting = FALSE);
|
||||
/*virtual*/ void onVisibilityChange(BOOL new_visibility);
|
||||
/*virtual*/ void handleVisibilityChange(BOOL new_visibility);
|
||||
|
||||
// add target ids to the session.
|
||||
// Return TRUE if successful, otherwise FALSE.
|
||||
|
||||
@@ -407,7 +407,7 @@ BOOL LLMediaCtrl::handleUnicodeCharHere(llwchar uni_char)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
void LLMediaCtrl::onVisibilityChange ( BOOL new_visibility )
|
||||
void LLMediaCtrl::handleVisibilityChange ( BOOL new_visibility )
|
||||
{
|
||||
// set state of frequent updates automatically if visibility changes
|
||||
if ( new_visibility )
|
||||
@@ -418,7 +418,7 @@ void LLMediaCtrl::onVisibilityChange ( BOOL new_visibility )
|
||||
{
|
||||
mFrequentUpdates = false;
|
||||
}
|
||||
LLUICtrl::onVisibilityChange(new_visibility);
|
||||
LLUICtrl::handleVisibilityChange(new_visibility);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -133,7 +133,7 @@ class LLMediaCtrl :
|
||||
virtual BOOL handleUnicodeCharHere(llwchar uni_char);
|
||||
virtual void reshape( S32 width, S32 height, BOOL called_from_parent = TRUE);
|
||||
virtual void draw();
|
||||
virtual void onVisibilityChange ( BOOL curVisibilityIn );
|
||||
virtual void handleVisibilityChange ( BOOL curVisibilityIn );
|
||||
|
||||
// focus overrides
|
||||
void onFocusLost();
|
||||
|
||||
@@ -1286,13 +1286,13 @@ void LLPanelDirBrowser::onKeystrokeName(LLLineEditor* line, void* data)
|
||||
}
|
||||
|
||||
// setup results when shown
|
||||
void LLPanelDirBrowser::onVisibilityChange(BOOL new_visibility)
|
||||
void LLPanelDirBrowser::handleVisibilityChange(BOOL new_visibility)
|
||||
{
|
||||
if (new_visibility)
|
||||
{
|
||||
onCommitList(NULL, this);
|
||||
}
|
||||
LLPanel::onVisibilityChange(new_visibility);
|
||||
LLPanel::handleVisibilityChange(new_visibility);
|
||||
}
|
||||
|
||||
S32 LLPanelDirBrowser::showNextButton(S32 rows)
|
||||
|
||||
@@ -57,7 +57,7 @@ public:
|
||||
// Use to get periodic updates.
|
||||
virtual void draw();
|
||||
|
||||
virtual void onVisibilityChange(BOOL curVisibilityIn);
|
||||
virtual void handleVisibilityChange(BOOL curVisibilityIn);
|
||||
|
||||
// Redo your search for the prev/next page of results
|
||||
virtual void prevPage();
|
||||
|
||||
@@ -194,13 +194,13 @@ void LLPanelDirFind::draw()
|
||||
// When we show any browser-based view, we want to hide all
|
||||
// the right-side XUI detail panels.
|
||||
// virtual
|
||||
void LLPanelDirFind::onVisibilityChange(BOOL new_visibility)
|
||||
void LLPanelDirFind::handleVisibilityChange(BOOL new_visibility)
|
||||
{
|
||||
if (new_visibility)
|
||||
{
|
||||
mFloaterDirectory->hideAllDetailPanels();
|
||||
}
|
||||
LLPanel::onVisibilityChange(new_visibility);
|
||||
LLPanel::handleVisibilityChange(new_visibility);
|
||||
}
|
||||
|
||||
// virtual
|
||||
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
|
||||
/*virtual*/ void draw();
|
||||
/*virtual*/ BOOL postBuild();
|
||||
/*virtual*/ void onVisibilityChange(BOOL new_visibility);
|
||||
/*virtual*/ void handleVisibilityChange(BOOL new_visibility);
|
||||
|
||||
// Pure virtual. Must be implemented
|
||||
virtual void search(const std::string& search_text) = 0;
|
||||
|
||||
Reference in New Issue
Block a user