ManaPlus
|
#include <dragdrop.h>
Public Member Functions | |
DragDrop (Item *const item, const DragDropSourceT source) | |
~DragDrop () | |
int | getItem () const |
ItemColor | getItemColor () const |
void | setItemColor (const ItemColor color) |
Image * | getItemImage () |
void | setItemData (const std::string &data) |
std::string | getItemData () |
DragDropSourceT | getSource () const |
void | dragItem (const Item *const item, const DragDropSourceT source, const int tag) |
void | dragCommand (const TextCommand *const command, const DragDropSourceT source, const int tag) |
void | dragSkill (const SkillInfo *const info, const DragDropSourceT source, const int tag) |
void | clear () |
bool | isEmpty () const |
void | select (const Item *const item) |
void | deselect () |
int | getSelected () const |
ItemColor | getSelectedColor () const |
bool | isSelected () const |
void | clearItem (const Item *const item) |
const std::string & | getText () const |
int | getTag () const |
void | setItem (const int item) |
bool | isSourceItemContainer () const |
Private Attributes | |
Image * | mItemImage |
std::string | mText |
std::string | mItemData |
DragDropSourceT | mSource |
int | mItem |
int | mSelItem |
int | mTag |
ItemColor | mItemColor |
ItemColor | mSelItemColor |
Definition at line 39 of file dragdrop.h.
|
inline |
|
inline |
Definition at line 60 of file dragdrop.h.
References mItemImage.
|
inline |
Definition at line 183 of file dragdrop.h.
References DragDropSource::Empty, ItemColor_one, mItem, mItemColor, mItemData, mItemImage, mSource, mTag, and mText.
Referenced by Gui::distributeMouseEvent(), ItemShortcutContainer::mouseDragged(), SpellShortcutContainer::mouseDragged(), VirtShortcutContainer::mouseDragged(), OutfitWindow::mouseDragged(), ItemShortcutContainer::mouseReleased(), SpellShortcutContainer::mouseReleased(), VirtShortcutContainer::mouseReleased(), EquipmentWindow::mouseReleased(), OutfitWindow::mouseReleased(), and ItemContainer::selectNone().
|
inline |
|
inline |
Definition at line 213 of file dragdrop.h.
References ItemColor_one, mSelItem, and mSelItemColor.
Referenced by ItemContainer::mousePressed(), VirtShortcutContainer::mousePressed(), OutfitWindow::mousePressed(), ItemShortcutContainer::mouseReleased(), SpellShortcutContainer::mouseReleased(), VirtShortcutContainer::mouseReleased(), EquipmentWindow::mouseReleased(), and OutfitWindow::mouseReleased().
|
inline |
Definition at line 117 of file dragdrop.h.
References TextCommand::getId(), TextCommand::getImage(), TextCommand::getSymbol(), ItemColor_one, mItem, mItemColor, mItemData, mItemImage, mSource, mTag, and mText.
Referenced by ItemShortcutContainer::mouseDragged(), and SpellShortcutContainer::mouseDragged().
|
inline |
Definition at line 87 of file dragdrop.h.
References DragDropSource::Empty, Item::getColor(), Item::getId(), Item::getImage(), ItemColor_one, mItem, mItemColor, mItemData, mItemImage, mSource, mTag, mText, ItemSoundManager::playSfx(), and ItemSoundEvent::TAKE.
Referenced by ItemShortcutContainer::mouseDragged(), VirtShortcutContainer::mouseDragged(), OutfitWindow::mouseDragged(), ItemContainer::mousePressed(), and EquipmentWindow::mousePressed().
|
inline |
Definition at line 152 of file dragdrop.h.
References data, DragDropSource::Empty, fromInt, Actions::info(), ItemColor_zero, mItem, mItemColor, mItemData, mItemImage, mSource, mTag, and mText.
Referenced by ItemShortcutContainer::mouseDragged(), SkillListBox::mouseDragged(), and SkillRectangleListBox::mouseDragged().
|
inline |
Definition at line 66 of file dragdrop.h.
References mItem.
Referenced by EquipmentWindow::action(), ItemShortcutContainer::mouseReleased(), VirtShortcutContainer::mouseReleased(), EquipmentWindow::mouseReleased(), and OutfitWindow::mouseReleased().
|
inline |
Definition at line 69 of file dragdrop.h.
References mItemColor.
Referenced by EquipmentWindow::action(), ItemShortcutContainer::mouseReleased(), VirtShortcutContainer::mouseReleased(), EquipmentWindow::mouseReleased(), and OutfitWindow::mouseReleased().
|
inline |
Definition at line 81 of file dragdrop.h.
References mItemData.
Referenced by ItemShortcutContainer::mouseReleased().
|
inline |
|
inline |
Definition at line 219 of file dragdrop.h.
References mSelItem.
Referenced by VirtShortcutContainer::mousePressed(), and OutfitWindow::mousePressed().
|
inline |
Definition at line 222 of file dragdrop.h.
References mSelItemColor.
Referenced by VirtShortcutContainer::mousePressed(), and OutfitWindow::mousePressed().
|
inline |
Definition at line 84 of file dragdrop.h.
References mSource.
Referenced by EquipmentWindow::action(), ItemContainer::mouseReleased(), ItemShortcutContainer::mouseReleased(), ShopListBox::mouseReleased(), SpellShortcutContainer::mouseReleased(), and EquipmentWindow::mouseReleased().
|
inline |
Definition at line 235 of file dragdrop.h.
References mTag.
Referenced by ItemContainer::mouseReleased(), ItemShortcutContainer::mouseReleased(), ShopListBox::mouseReleased(), and SpellShortcutContainer::mouseReleased().
|
inline |
|
inline |
Definition at line 196 of file dragdrop.h.
References DragDropSource::Empty, and mSource.
Referenced by EquipmentWindow::action(), ItemShortcutContainer::mouseDragged(), SkillListBox::mouseDragged(), SkillRectangleListBox::mouseDragged(), SpellShortcutContainer::mouseDragged(), VirtShortcutContainer::mouseDragged(), OutfitWindow::mouseDragged(), SkillListBox::mouseMoved(), SkillRectangleListBox::mouseMoved(), ItemContainer::mouseReleased(), ItemShortcutContainer::mouseReleased(), ShopListBox::mouseReleased(), SpellShortcutContainer::mouseReleased(), VirtShortcutContainer::mouseReleased(), EquipmentWindow::mouseReleased(), OutfitWindow::mouseReleased(), and Window::updateResizeHandler().
|
inline |
Definition at line 225 of file dragdrop.h.
References mSelItem.
Referenced by VirtShortcutContainer::mousePressed(), and OutfitWindow::mousePressed().
|
inline |
Definition at line 241 of file dragdrop.h.
References DragDropSource::Cart, DragDropSource::Craft, DragDropSource::Drop, DragDropSource::Ground, DragDropSource::Inventory, mSource, DragDropSource::Outfit, DragDropSource::Storage, and DragDropSource::Trade.
Referenced by VirtShortcutContainer::mouseReleased(), and OutfitWindow::mouseReleased().
|
inline |
Definition at line 199 of file dragdrop.h.
References Item::getColor(), Item::getId(), ItemColor_one, mSelItem, and mSelItemColor.
Referenced by ItemContainer::mousePressed().
|
inline |
Definition at line 238 of file dragdrop.h.
References mItem.
Referenced by ItemShortcutContainer::mouseDragged(), SkillListBox::mouseDragged(), SkillRectangleListBox::mouseDragged(), and SpellShortcutContainer::mouseDragged().
|
inline |
Definition at line 72 of file dragdrop.h.
References mItemColor.
Referenced by ItemShortcutContainer::mouseDragged().
|
inline |
Definition at line 78 of file dragdrop.h.
References data, and mItemData.
Referenced by ItemShortcutContainer::mouseDragged(), SkillListBox::mouseDragged(), and SkillRectangleListBox::mouseDragged().
|
private |
Definition at line 258 of file dragdrop.h.
Referenced by clear(), dragCommand(), dragItem(), dragSkill(), getItem(), and setItem().
|
private |
Definition at line 261 of file dragdrop.h.
Referenced by clear(), dragCommand(), dragItem(), dragSkill(), getItemColor(), and setItemColor().
|
private |
Definition at line 256 of file dragdrop.h.
Referenced by clear(), dragCommand(), dragItem(), dragSkill(), getItemData(), and setItemData().
|
private |
Definition at line 254 of file dragdrop.h.
Referenced by clear(), dragCommand(), DragDrop(), dragItem(), dragSkill(), getItemImage(), and ~DragDrop().
|
private |
Definition at line 259 of file dragdrop.h.
Referenced by deselect(), getSelected(), isSelected(), and select().
|
private |
Definition at line 262 of file dragdrop.h.
Referenced by deselect(), getSelectedColor(), and select().
|
private |
Definition at line 257 of file dragdrop.h.
Referenced by clear(), dragCommand(), dragItem(), dragSkill(), getSource(), isEmpty(), and isSourceItemContainer().
|
private |
Definition at line 260 of file dragdrop.h.
Referenced by clear(), dragCommand(), dragItem(), dragSkill(), and getTag().
|
private |
Definition at line 255 of file dragdrop.h.
Referenced by clear(), dragCommand(), dragItem(), dragSkill(), and getText().