summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-06 16:31:00 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-06 16:31:00 +0300
commit43e5e0bf4f816d171d90052d2503ce255636ad2a (patch)
tree2e202bd9d6e35b29c693fd4c8dd5d3166330ef0e
parent599551a69be2872c3cf9916c7f9814af73b56203 (diff)
downloadplus-43e5e0bf4f816d171d90052d2503ce255636ad2a.tar.gz
plus-43e5e0bf4f816d171d90052d2503ce255636ad2a.tar.bz2
plus-43e5e0bf4f816d171d90052d2503ce255636ad2a.tar.xz
plus-43e5e0bf4f816d171d90052d2503ce255636ad2a.zip
Move dragdropsource enum into separate file.
-rw-r--r--src/dragdrop.h20
-rw-r--r--src/enums/dragdropsource.h42
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