You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
738 B
C++
39 lines
738 B
C++
#ifndef OPENMW_MWGUI_DRAGANDDROP_H
|
|
#define OPENMW_MWGUI_DRAGANDDROP_H
|
|
|
|
#include "itemmodel.hpp"
|
|
|
|
namespace MyGUI
|
|
{
|
|
class Widget;
|
|
}
|
|
|
|
namespace MWGui
|
|
{
|
|
|
|
class ItemView;
|
|
class SortFilterItemModel;
|
|
|
|
class DragAndDrop
|
|
{
|
|
public:
|
|
bool mIsOnDragAndDrop;
|
|
MyGUI::Widget* mDraggedWidget;
|
|
ItemModel* mSourceModel;
|
|
ItemView* mSourceView;
|
|
SortFilterItemModel* mSourceSortModel;
|
|
ItemStack mItem;
|
|
int mDraggedCount;
|
|
|
|
DragAndDrop();
|
|
|
|
void startDrag (int index, SortFilterItemModel* sortModel, ItemModel* sourceModel, ItemView* sourceView, int count);
|
|
void drop (ItemModel* targetModel, ItemView* targetView);
|
|
|
|
void finish();
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|