OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
draganddrop.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_MWGUI_DRAGANDDROP_H
2 #define OPENMW_MWGUI_DRAGANDDROP_H
3 
4 #include "itemmodel.hpp"
5 
6 namespace MyGUI
7 {
8  class Widget;
9 }
10 
11 namespace MWGui
12 {
13 
14  class ItemView;
15  class SortFilterItemModel;
16 
18  {
19  public:
21  MyGUI::Widget* mDraggedWidget;
27 
28  DragAndDrop();
29 
30  void startDrag (int index, SortFilterItemModel* sortModel, ItemModel* sourceModel, ItemView* sourceView, int count);
31  void drop (ItemModel* targetModel, ItemView* targetView);
32 
33  void finish();
34  };
35 
36 }
37 
38 #endif
bool mIsOnDragAndDrop
Definition: draganddrop.hpp:20
The base class that all item models should derive from.
Definition: itemmodel.hpp:43
Definition: itemview.hpp:11
int mDraggedCount
Definition: draganddrop.hpp:26
A single item stack managed by an item model.
Definition: itemmodel.hpp:12
void startDrag(int index, SortFilterItemModel *sortModel, ItemModel *sourceModel, ItemView *sourceView, int count)
Definition: draganddrop.cpp:32
void finish()
Definition: draganddrop.cpp:125
Definition: draganddrop.hpp:17
MyGUI::Widget * mDraggedWidget
Definition: draganddrop.hpp:21
ItemView * mSourceView
Definition: draganddrop.hpp:23
Definition: sortfilteritemmodel.hpp:9
ItemModel * mSourceModel
Definition: draganddrop.hpp:22
DragAndDrop()
Definition: draganddrop.cpp:22
SortFilterItemModel * mSourceSortModel
Definition: draganddrop.hpp:24
void drop(ItemModel *targetModel, ItemView *targetView)
Definition: draganddrop.cpp:94
ItemStack mItem
Definition: draganddrop.hpp:25