summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-14 23:08:15 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-14 23:08:15 +0300
commit667cce07fe604b3983bf6e409fe5e9137fa5e81a (patch)
tree9e8d37092de278da6aee7475fc65db828642ad32 /src/gui
parente149243eb20a1bb74657914122bcabc01de2ae36 (diff)
downloadmanaverse-667cce07fe604b3983bf6e409fe5e9137fa5e81a.tar.gz
manaverse-667cce07fe604b3983bf6e409fe5e9137fa5e81a.tar.bz2
manaverse-667cce07fe604b3983bf6e409fe5e9137fa5e81a.tar.xz
manaverse-667cce07fe604b3983bf6e409fe5e9137fa5e81a.zip
Move chat tab consts into separate file.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/chatconsts.h31
-rw-r--r--src/gui/widgets/tabs/chattab.h3
-rw-r--r--src/gui/widgets/tabs/tradetab.cpp2
-rw-r--r--src/gui/windows/chatwindow.cpp1
-rw-r--r--src/gui/windows/shopwindow.cpp5
5 files changed, 38 insertions, 4 deletions
diff --git a/src/gui/chatconsts.h b/src/gui/chatconsts.h
new file mode 100644
index 000000000..80969b38e
--- /dev/null
+++ b/src/gui/chatconsts.h
@@ -0,0 +1,31 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2009 The Mana World Development Team
+ * Copyright (C) 2009-2010 The Mana Developers
+ * Copyright (C) 2011-2014 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 GUI_CHATCONSTS_H
+#define GUI_CHATCONSTS_H
+
+#include <string>
+
+const std::string GENERAL_CHANNEL = "";
+const std::string TRADE_CHANNEL = "";
+
+#endif // GUI_CHATCONSTS_H
diff --git a/src/gui/widgets/tabs/chattab.h b/src/gui/widgets/tabs/chattab.h
index a46279483..84c00fdfc 100644
--- a/src/gui/widgets/tabs/chattab.h
+++ b/src/gui/widgets/tabs/chattab.h
@@ -32,9 +32,6 @@
class ScrollArea;
-const std::string GENERAL_CHANNEL = "";
-const std::string TRADE_CHANNEL = "";
-
/**
* A tab for the chat window. This is special to ease chat handling.
*/
diff --git a/src/gui/widgets/tabs/tradetab.cpp b/src/gui/widgets/tabs/tradetab.cpp
index fbf10dc9b..12fa0d3a5 100644
--- a/src/gui/widgets/tabs/tradetab.cpp
+++ b/src/gui/widgets/tabs/tradetab.cpp
@@ -24,6 +24,8 @@
#include "chatlogger.h"
+#include "gui/chatconsts.h"
+
#include "utils/gettext.h"
#include "debug.h"
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index 17e8924f5..f8337fff6 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -40,6 +40,7 @@
#include "input/inputmanager.h"
+#include "gui/chatconsts.h"
#include "gui/focushandler.h"
#include "gui/gui.h"
#include "gui/skin.h"
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp
index 01fb7b033..67270ef36 100644
--- a/src/gui/windows/shopwindow.cpp
+++ b/src/gui/windows/shopwindow.cpp
@@ -20,10 +20,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "gui/windows/shopwindow.h"
+
+#include "gui/chatconsts.h"
+
#include "gui/windows/buydialog.h"
#include "gui/windows/confirmdialog.h"
#include "gui/windows/itemamountwindow.h"
-#include "gui/windows/shopwindow.h"
#include "gui/windows/selldialog.h"
#include "gui/windows/tradewindow.h"