diff options
Diffstat (limited to 'indra/newview/llpanelexperiences.h')
-rw-r--r-- | indra/newview/llpanelexperiences.h | 63 |
1 files changed, 7 insertions, 56 deletions
diff --git a/indra/newview/llpanelexperiences.h b/indra/newview/llpanelexperiences.h index 1fe3f6ae1d..e3c223d9db 100644 --- a/indra/newview/llpanelexperiences.h +++ b/indra/newview/llpanelexperiences.h @@ -34,86 +34,37 @@ class LLExperienceItem; class LLPanelProfile; -class LLPanelExperienceInfo - : public LLPanel -{ -public: - static LLPanelExperienceInfo* create(); - - void onOpen(const LLSD& key); - void setExperienceName( const std::string& name ); - void setExperienceDesc( const std::string& desc ); - - - virtual void setExitCallback(const commit_callback_t& cb); -}; - class LLPanelExperiences - : public LLPanel /*LLPanelProfileTab*/ + : public LLPanel { public: - LLPanelExperiences(); + LLPanelExperiences(); - static void* create(void* data); + static LLPanelExperiences* create(const std::string& name); /*virtual*/ BOOL postBuild(void); - - /*virtual*/ void onOpen(const LLSD& key); - /*virtual*/ void onClosePanel(); - void updateData(); + void setExperienceList(const LLSD& experiences); - LLExperienceItem* getSelectedExperienceItem(); - - void setProfilePanel(LLPanelProfile* profile_panel); - void addExperienceInfo(const LLSD& experience); + LLExperienceItem* getSelectedExperienceItem(); + void removeExperiences( const LLSD& ids ); protected: - void onListCommit(const LLFlatListView* f_list); - void onAccordionStateChanged(const LLAccordionCtrlTab* acc_tab); - - - void openExperienceInfo(); - void createExperienceInfoPanel(); - void onPanelExperienceClose(LLPanel* panel); - LLPanelProfile* getProfilePanel(); private: LLFlatListView* mExperiencesList; - LLAccordionCtrlTab* mExperiencesAccTab; - LLPanelProfile* mProfilePanel; - LLPanelExperienceInfo* mPanelExperienceInfo; - bool mNoExperiences; }; class LLExperienceItem : public LLPanel - //, public LLAvatarPropertiesObserver { public: LLExperienceItem(); ~LLExperienceItem(); - void init(LLSD* experience_data); - /*virtual*/ BOOL postBuild(); - void update(); - - /*virtual*/ void processProperties(void* data, EAvatarProcessorType type); - - void setCreatorID(const LLUUID& val) { mCreatorID = val; } - void setExperienceDescription(const std::string& val); - void setExperienceName(const std::string& val); - - const LLUUID& getCreatorID() const { return mCreatorID; } - const std::string& getExperienceName() const { return mExperienceName; } - const std::string& getExperienceDescription() const { return mExperienceDescription; } - + void init(const LLUUID& experience_id); protected: - LLUUID mCreatorID; - - std::string mExperienceName; - std::string mExperienceDescription; }; #endif // LL_LLPANELEXPERIENCES_H |