summaryrefslogtreecommitdiff
path: root/indra/newview/llfolderviewmodelinventory.h
diff options
context:
space:
mode:
authorRichard Linden <none@none>2012-07-03 23:55:39 -0700
committerRichard Linden <none@none>2012-07-03 23:55:39 -0700
commit1494a1058f41c5aa00a8ed08fe71123f63e92e81 (patch)
tree7a93b038b09f1c8217766efab83b8a4936199236 /indra/newview/llfolderviewmodelinventory.h
parenta8defa513c3b2b83f476a1de115fd0332566b483 (diff)
CHUI-101 WIP Make LLFolderview general purpose
move llfolderview* into LLUI!
Diffstat (limited to 'indra/newview/llfolderviewmodelinventory.h')
-rw-r--r--indra/newview/llfolderviewmodelinventory.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/indra/newview/llfolderviewmodelinventory.h b/indra/newview/llfolderviewmodelinventory.h
index a8fe3f57ea..12a977b28b 100644
--- a/indra/newview/llfolderviewmodelinventory.h
+++ b/indra/newview/llfolderviewmodelinventory.h
@@ -29,6 +29,9 @@
#define LL_LLFOLDERVIEWMODELINVENTORY_H
#include "llinventoryfilter.h"
+#include "llinventory.h"
+#include "llwearabletype.h"
+#include "lltooldraganddrop.h"
class LLFolderViewModelItemInventory
: public LLFolderViewModelItemCommon
@@ -62,6 +65,10 @@ public:
virtual void setPassedFilter(bool filtered, bool filtered_folder, S32 filter_generation);
virtual bool filter( LLFolderViewFilter& filter);
virtual bool filterChildItem( LLFolderViewModelItem* item, LLFolderViewFilter& filter);
+
+ virtual BOOL startDrag(EDragAndDropType* type, LLUUID* id) const = 0;
+ virtual LLToolDragAndDrop::ESource getDragSource() const = 0;
+
protected:
class LLFolderViewModelInventory* mRootViewModel;
};
@@ -97,11 +104,13 @@ class LLFolderViewModelInventory
public:
typedef LLFolderViewModel<LLInventorySort, LLFolderViewModelItemInventory, LLFolderViewModelItemInventory, LLInventoryFilter> base_t;
- virtual ~LLFolderViewModelInventory() {}
+ void setTaskID(const LLUUID& id) {mTaskID = id;}
void sort(LLFolderViewFolder* folder);
-
bool contentsReady();
+ bool startDrag(std::vector<LLFolderViewModelItem*>& items);
+private:
+ LLUUID mTaskID;
};
#endif // LL_LLFOLDERVIEWMODELINVENTORY_H