summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterexperienceprofile.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloaterexperienceprofile.h')
-rw-r--r--indra/newview/llfloaterexperienceprofile.h44
1 files changed, 30 insertions, 14 deletions
diff --git a/indra/newview/llfloaterexperienceprofile.h b/indra/newview/llfloaterexperienceprofile.h
index 1d1e4c50cf..4aa9820a91 100644
--- a/indra/newview/llfloaterexperienceprofile.h
+++ b/indra/newview/llfloaterexperienceprofile.h
@@ -34,37 +34,53 @@
#include "llsd.h"
class LLLayoutPanel;
+class LLTextBox;
+class LLComboBox;
class LLFloaterExperienceProfile : public LLFloater
{
LOG_CLASS(LLFloaterExperienceProfile);
public:
+ enum PostSaveAction
+ {
+ NOTHING,
+ CLOSE,
+ VIEW,
+ };
+
+
LLFloaterExperienceProfile(const LLSD& data);
virtual ~LLFloaterExperienceProfile();
- void setExperienceId( const LLUUID& experience_id );
+ LLUUID getExperienceId() const { return mExperienceId; }
+ void setPreferences( const LLSD& content );
+ void refreshExperience(const LLSD& experience);
+ void onSaveComplete( const LLSD& content );
+ virtual BOOL canClose();
protected:
+ void onClickEdit();
+ void onClickPermission(const char* permission);
+ void onClickForget();
+ void onClickCancel();
+
+ void changeToView();
- void onClickMap();
- void onClickTeleport();
- void onClickEdit();
+ void onClickSave();
+ void onFieldChanged();
static void experienceCallback(LLHandle<LLFloaterExperienceProfile> handle, const LLSD& experience);
- void refreshExperience(const LLSD& experience);
+
BOOL postBuild();
- std::string getMaturityString(U8 maturity);
+ bool setMaturityString(U8 maturity, LLTextBox* child, LLComboBox* combo);
+ bool handleSaveChangesDialog(const LLSD& notification, const LLSD& response, PostSaveAction action);
+ void doSave( int success_action );
LLUUID mExperienceId;
LLSD mExperienceDetails;
-
- LLLayoutPanel* mImagePanel;
- LLLayoutPanel* mDescriptionPanel;
- LLLayoutPanel* mLocationPanel;
- LLLayoutPanel* mMarketplacePanel;
-
-private:
-
+ int mSaveCompleteAction;
+ bool mDirty;
+ bool mForceClose;
};
#endif // LL_LLFLOATEREXPERIENCEPROFILE_H