diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dragdrop.h | 20 | ||||
-rw-r--r-- | src/enums/dragdropsource.h | 42 |
2 files changed, 44 insertions, 18 deletions
diff --git a/src/dragdrop.h b/src/dragdrop.h index 382ebb143..773d26553 100644 --- a/src/dragdrop.h +++ b/src/dragdrop.h @@ -25,6 +25,8 @@ #include "itemsoundmanager.h" #include "textcommand.h" +#include "enums/dragdropsource.h" + #include "gui/widgets/skilldata.h" #include "gui/widgets/skillinfo.h" @@ -32,24 +34,6 @@ #include "localconsts.h" -enum DragDropSource -{ - DRAGDROP_SOURCE_EMPTY = 0, - DRAGDROP_SOURCE_INVENTORY, - DRAGDROP_SOURCE_STORAGE, - DRAGDROP_SOURCE_CART, - DRAGDROP_SOURCE_TRADE, - DRAGDROP_SOURCE_OUTFIT, - DRAGDROP_SOURCE_SPELLS, - DRAGDROP_SOURCE_SKILLS, - DRAGDROP_SOURCE_GROUND, - DRAGDROP_SOURCE_DROP, - DRAGDROP_SOURCE_SHORTCUTS, - DRAGDROP_SOURCE_CRAFT, - DRAGDROP_SOURCE_NPC, - DRAGDROP_SOURCE_EQUIPMENT -}; - class DragDrop final { public: diff --git a/src/enums/dragdropsource.h b/src/enums/dragdropsource.h new file mode 100644 index 000000000..c9271abce --- /dev/null +++ b/src/enums/dragdropsource.h @@ -0,0 +1,42 @@ +/* + * The ManaPlus Client + * Copyright (C) 2013-2015 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef ENUMS_DRAGDROPSOURCE_H +#define ENUMS_DRAGDROPSOURCE_H + +enum DragDropSource +{ + DRAGDROP_SOURCE_EMPTY = 0, + DRAGDROP_SOURCE_INVENTORY, + DRAGDROP_SOURCE_STORAGE, + DRAGDROP_SOURCE_CART, + DRAGDROP_SOURCE_TRADE, + DRAGDROP_SOURCE_OUTFIT, + DRAGDROP_SOURCE_SPELLS, + DRAGDROP_SOURCE_SKILLS, + DRAGDROP_SOURCE_GROUND, + DRAGDROP_SOURCE_DROP, + DRAGDROP_SOURCE_SHORTCUTS, + DRAGDROP_SOURCE_CRAFT, + DRAGDROP_SOURCE_NPC, + DRAGDROP_SOURCE_EQUIPMENT +}; + +#endif // ENUMS_DRAGDROPSOURCE_H |