summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelprofile.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llpanelprofile.h')
-rw-r--r--indra/newview/llpanelprofile.h28
1 files changed, 18 insertions, 10 deletions
diff --git a/indra/newview/llpanelprofile.h b/indra/newview/llpanelprofile.h
index 2f6d53a859..b55963ec4a 100644
--- a/indra/newview/llpanelprofile.h
+++ b/indra/newview/llpanelprofile.h
@@ -39,34 +39,42 @@
class LLTabContainer;
+/**
+* Base class for Profile View and Me Profile.
+*/
class LLPanelProfile : public LLPanel
{
LOG_CLASS(LLPanelProfile);
public:
- virtual BOOL postBuild();
+ /*virtual*/ BOOL postBuild();
- virtual void onOpen(const LLSD& key) {};
+ /*virtual*/ void onOpen(const LLSD& key);
virtual void togglePanel(LLPanel*);
protected:
+
LLPanelProfile();
- ~LLPanelProfile();
- void onTabSelected(const LLSD& param);
+ virtual void onTabSelected(const LLSD& param);
+
+ virtual void setAllChildrenVisible(BOOL visible);
+
+ LLTabContainer* getTabCtrl() { return mTabCtrl; }
- void setAllChildrenVisible(BOOL visible);
+ const LLUUID& getAvatarId() { return mAvatarId; }
+ void setAvatarId(const LLUUID& avatar_id) { mAvatarId = avatar_id; }
- LLTabContainer* mTabContainer;
-
typedef std::map<std::string, LLPanelProfileTab*> profile_tabs_t;
- profile_tabs_t mTabs;
+ profile_tabs_t& getTabContainer() { return mTabContainer; }
+
+private:
+ LLTabContainer* mTabCtrl;
+ profile_tabs_t mTabContainer;
LLUUID mAvatarId;
};
-
-
#endif //LL_LLPANELPROFILE_H