summaryrefslogtreecommitdiff
path: root/indra/newview/llpersontabview.h
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2013-04-30 17:20:49 -0700
committerMerov Linden <merov@lindenlab.com>2013-04-30 17:20:49 -0700
commit8764e84041c48d0facd3a2860d90f78c88714f7c (patch)
tree775bc74790ca0b65028608372a3557ced83b7a3c /indra/newview/llpersontabview.h
parent336efe17d8f24a8445e93645f2cf18b68e18de2e (diff)
parent9fdfc8dd5c52e515990f3ef4e552b9084fa66373 (diff)
Pull from viewer-fbc
Diffstat (limited to 'indra/newview/llpersontabview.h')
-rw-r--r--indra/newview/llpersontabview.h26
1 files changed, 18 insertions, 8 deletions
diff --git a/indra/newview/llpersontabview.h b/indra/newview/llpersontabview.h
index d8d1a65df6..80020073d7 100644
--- a/indra/newview/llpersontabview.h
+++ b/indra/newview/llpersontabview.h
@@ -64,6 +64,9 @@ private:
};
+typedef std::vector<S32> ChildWidthVec;
+typedef std::vector<LLView *> ChildVec;
+
class LLPersonView : public LLFolderViewItem
{
@@ -86,11 +89,15 @@ public:
LLPersonView(const LLPersonView::Params& p);
virtual ~LLPersonView();
- S32 getLabelXPos();
- void addToFolder(LLFolderViewFolder * person_folder_view);
- void initFromParams(const LLPersonView::Params & params);
+ S32 getLabelXPos();
+ void addToFolder(LLFolderViewFolder * person_folder_view);
+ void initFromParams(const LLPersonView::Params & params);
+ BOOL postBuild();
+ void onMouseEnter(S32 x, S32 y, MASK mask);
+ void onMouseLeave(S32 x, S32 y, MASK mask);
protected:
+
void draw();
void drawHighlight();
@@ -123,12 +130,15 @@ private:
ALIC_COUNT,
} EAvatarListItemChildIndex;
- static bool sStaticInitialized;
- static S32 sMouseOverChildrenWidths[ALIC_COUNT];
- static S32 sMouseOverChildren[ALIC_COUNT];
- static void initChildrenWidths(LLPersonView* self);
+ //Widths of controls are same for every instance so can be static
+ static ChildWidthVec mChildWidthVec;
+ //Control pointers are different for each instance so non-static
+ ChildVec mChildVec;
+
+ static bool sChildrenWidthsInitialized;
+ static void initChildrenWidthVec(LLPersonView* self);
+ void initChildVec();
void updateChildren();
- //LLView* getItemChildView(EAvatarListItemChildIndex child_view_index);
};
#endif // LL_LLPERSONTABVIEW_H