Inv menus appear now. Still need to update llmenugl and its variants, since our current version is buggy. Also need to look into why inventory postfixes aren't appearing.
This commit is contained in:
@@ -2485,8 +2485,12 @@ void LLFloaterView::pushVisibleAll(BOOL visible, const skip_list_t& skip_list)
|
||||
|
||||
void LLFloaterView::popVisibleAll(const skip_list_t& skip_list)
|
||||
{
|
||||
for (child_list_const_iter_t child_iter = getChildList()->begin();
|
||||
child_iter != getChildList()->end(); ++child_iter)
|
||||
// make a copy of the list since some floaters change their
|
||||
// order in the childList when changing visibility.
|
||||
child_list_t child_list_copy = *getChildList();
|
||||
|
||||
for (child_list_const_iter_t child_iter = child_list_copy.begin();
|
||||
child_iter != child_list_copy.end(); ++child_iter)
|
||||
{
|
||||
LLView *view = *child_iter;
|
||||
if (skip_list.find(view) == skip_list.end())
|
||||
|
||||
@@ -522,31 +522,15 @@ BOOL LLMenuItemGL::setLabelArg( const std::string& key, const LLStringExplicit&
|
||||
// This class represents a separator.
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
class LLMenuItemSeparatorGL : public LLMenuItemGL
|
||||
{
|
||||
public:
|
||||
LLMenuItemSeparatorGL( const std::string &name = SEPARATOR_NAME );
|
||||
|
||||
virtual LLXMLNodePtr getXML(bool save_children = true) const;
|
||||
|
||||
virtual std::string getType() const { return "separator"; }
|
||||
|
||||
// doIt() - do the primary funcationality of the menu item.
|
||||
virtual void doIt( void ) {}
|
||||
|
||||
virtual void draw( void );
|
||||
virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask);
|
||||
virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask);
|
||||
virtual BOOL handleHover(S32 x, S32 y, MASK mask);
|
||||
|
||||
virtual U32 getNominalHeight( void ) const { return SEPARATOR_HEIGHT_PIXELS; }
|
||||
};
|
||||
|
||||
LLMenuItemSeparatorGL::LLMenuItemSeparatorGL( const std::string &name ) :
|
||||
LLMenuItemGL( name, SEPARATOR_LABEL )
|
||||
LLMenuItemGL( name.empty() ? SEPARATOR_NAME : name, SEPARATOR_LABEL )
|
||||
{
|
||||
}
|
||||
|
||||
U32 LLMenuItemSeparatorGL::getNominalHeight( void ) const
|
||||
{
|
||||
return SEPARATOR_HEIGHT_PIXELS;
|
||||
}
|
||||
|
||||
LLXMLNodePtr LLMenuItemSeparatorGL::getXML(bool save_children) const
|
||||
{
|
||||
@@ -1694,7 +1678,6 @@ LLMenuGL::LLMenuGL( const std::string& name, const std::string& label, LLHandle<
|
||||
: LLUICtrl( name, LLRect(), FALSE, NULL, NULL ),
|
||||
mBackgroundColor( sDefaultBackgroundColor ),
|
||||
mBgVisible( TRUE ),
|
||||
mParentMenuItem( NULL ),
|
||||
mLabel( label ),
|
||||
mDropShadowed( TRUE ),
|
||||
mHorizontalLayout( FALSE ),
|
||||
@@ -1720,7 +1703,6 @@ LLMenuGL::LLMenuGL( const std::string& label, LLHandle<LLFloater> parent_floater
|
||||
: LLUICtrl( label, LLRect(), FALSE, NULL, NULL ),
|
||||
mBackgroundColor( sDefaultBackgroundColor ),
|
||||
mBgVisible( TRUE ),
|
||||
mParentMenuItem( NULL ),
|
||||
mLabel( label ),
|
||||
mDropShadowed( TRUE ),
|
||||
mHorizontalLayout( FALSE ),
|
||||
@@ -2342,6 +2324,16 @@ void LLMenuGL::arrange( void )
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void LLMenuGL::arrangeAndClear( void )
|
||||
{
|
||||
if (mNeedsArrange)
|
||||
{
|
||||
arrange();
|
||||
mNeedsArrange = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
void LLMenuGL::createSpilloverBranch()
|
||||
{
|
||||
if (!mSpilloverBranch)
|
||||
|
||||
@@ -216,6 +216,30 @@ private:
|
||||
KEY mJumpKey;
|
||||
};
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Class LLMenuItemSeparatorGL
|
||||
//
|
||||
// This class represents a separator.
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
class LLMenuItemSeparatorGL : public LLMenuItemGL
|
||||
{
|
||||
public:
|
||||
LLMenuItemSeparatorGL( const std::string &name = std::string() );
|
||||
|
||||
virtual LLXMLNodePtr getXML(bool save_children = true) const;
|
||||
|
||||
virtual std::string getType() const { return "separator"; }
|
||||
|
||||
// doIt() - do the primary funcationality of the menu item.
|
||||
virtual void doIt( void ) {}
|
||||
|
||||
virtual void draw( void );
|
||||
virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask);
|
||||
virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask);
|
||||
virtual BOOL handleHover(S32 x, S32 y, MASK mask);
|
||||
|
||||
virtual U32 getNominalHeight( void ) const;
|
||||
};
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Class LLMenuItemCallGL
|
||||
@@ -483,6 +507,7 @@ public:
|
||||
// when you add items. *FIX: We may need to deal with visibility
|
||||
// arrangement.
|
||||
virtual void arrange( void );
|
||||
void arrangeAndClear( void );
|
||||
|
||||
// remove all items on the menu
|
||||
void empty( void );
|
||||
@@ -511,8 +536,8 @@ public:
|
||||
// Whether to drop shadow menu bar
|
||||
void setDropShadowed( const BOOL shadowed );
|
||||
|
||||
void setParentMenuItem( LLMenuItemGL* parent_menu_item ) { mParentMenuItem = parent_menu_item; }
|
||||
LLMenuItemGL* getParentMenuItem() const { return mParentMenuItem; }
|
||||
void setParentMenuItem( LLMenuItemGL* parent_menu_item ) { mParentMenuItem = parent_menu_item->getHandle(); }
|
||||
LLMenuItemGL* getParentMenuItem() const { return dynamic_cast<LLMenuItemGL*>(mParentMenuItem.get()); }
|
||||
|
||||
void setTornOff(BOOL torn_off);
|
||||
BOOL getTornOff() { return mTornOff; }
|
||||
@@ -550,7 +575,7 @@ private:
|
||||
|
||||
LLColor4 mBackgroundColor;
|
||||
BOOL mBgVisible;
|
||||
LLMenuItemGL* mParentMenuItem;
|
||||
LLHandle<LLView> mParentMenuItem;
|
||||
LLUIString mLabel;
|
||||
BOOL mDropShadowed; // Whether to drop shadow
|
||||
BOOL mHasSelection;
|
||||
|
||||
@@ -493,6 +493,7 @@ void LLScrollableContainerView::draw()
|
||||
|
||||
void LLScrollableContainerView::updateScroll()
|
||||
{
|
||||
if(!mScrolledView)return;
|
||||
LLRect doc_rect = mScrolledView->getRect();
|
||||
S32 doc_width = doc_rect.getWidth();
|
||||
S32 doc_height = doc_rect.getHeight();
|
||||
|
||||
@@ -346,8 +346,9 @@ public:
|
||||
virtual void handleVisibilityChange ( BOOL curVisibilityIn );
|
||||
|
||||
void pushVisible(BOOL visible) { mLastVisible = mVisible; setVisible(visible); }
|
||||
void popVisible() { setVisible(mLastVisible); mLastVisible = TRUE; }
|
||||
|
||||
void popVisible() { setVisible(mLastVisible); }
|
||||
BOOL getLastVisible() const { return mLastVisible; }
|
||||
|
||||
LLHandle<LLView> getHandle() { mHandle.bind(this); return mHandle; }
|
||||
|
||||
U32 getFollows() const { return mReshapeFlags; }
|
||||
|
||||
Reference in New Issue
Block a user