summaryrefslogtreecommitdiff
path: root/indra/newview/llpreview.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llpreview.h')
-rw-r--r--indra/newview/llpreview.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/indra/newview/llpreview.h b/indra/newview/llpreview.h
index ae986f5aae..97cd2d5b07 100644
--- a/indra/newview/llpreview.h
+++ b/indra/newview/llpreview.h
@@ -38,6 +38,7 @@
#include "lluuid.h"
#include "llviewerinventory.h"
#include "lltabcontainer.h"
+#include "llinventorymodel.h"
#include <map>
class LLLineEditor;
@@ -61,7 +62,7 @@ protected:
static std::map<LLUUID, LLViewHandle> sAutoOpenPreviewHandles;
};
-class LLPreview : public LLFloater
+class LLPreview : public LLFloater, LLInventoryObserver
{
public:
typedef enum e_asset_status
@@ -116,6 +117,10 @@ public:
void setNotecardInfo(const LLUUID& notecard_inv_id, const LLUUID& object_id)
{ mNotecardInventoryID = notecard_inv_id; mObjectID = object_id; }
+ // llview
+ virtual void draw();
+ void refreshFromItem(const LLInventoryItem* item);
+
protected:
virtual void onCommit();
@@ -124,7 +129,11 @@ protected:
static void onText(LLUICtrl*, void* userdata);
static void onRadio(LLUICtrl*, void* userdata);
-
+ // for LLInventoryObserver
+ virtual void changed(U32 mask);
+ BOOL mDirty;
+ virtual const char *getTitleName() const { return "Preview"; }
+
protected:
LLUUID mItemUUID;
LLUUID mSourceID;