diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-29 14:31:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-29 14:31:27 +0300 |
commit | c9db5bbbb20d22690583f6ae8d1d4f1bf1588181 (patch) | |
tree | 6e082dd8886db56954076f5dc93c8d68837169c7 /src/gui/windows | |
parent | f820365eed7e956e67e6122a8a5ab529e7df9474 (diff) | |
download | mv-c9db5bbbb20d22690583f6ae8d1d4f1bf1588181.tar.gz mv-c9db5bbbb20d22690583f6ae8d1d4f1bf1588181.tar.bz2 mv-c9db5bbbb20d22690583f6ae8d1d4f1bf1588181.tar.xz mv-c9db5bbbb20d22690583f6ae8d1d4f1bf1588181.zip |
Rename mailedit into maileditwindow.
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/itemamountwindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/windows/maileditwindow.cpp (renamed from src/gui/windows/mailedit.cpp) | 12 | ||||
-rw-r--r-- | src/gui/windows/maileditwindow.h (renamed from src/gui/windows/mailedit.h) | 18 | ||||
-rw-r--r-- | src/gui/windows/mailwindow.cpp | 4 |
4 files changed, 18 insertions, 18 deletions
diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp index d1cf9138c..870d91265 100644 --- a/src/gui/windows/itemamountwindow.cpp +++ b/src/gui/windows/itemamountwindow.cpp @@ -35,7 +35,7 @@ #include "gui/popups/itempopup.h" -#include "gui/windows/mailedit.h" +#include "gui/windows/maileditwindow.h" #include "gui/windows/shopwindow.h" #include "gui/windows/tradewindow.h" diff --git a/src/gui/windows/mailedit.cpp b/src/gui/windows/maileditwindow.cpp index 5bb669b72..d6f91e394 100644 --- a/src/gui/windows/mailedit.cpp +++ b/src/gui/windows/maileditwindow.cpp @@ -18,7 +18,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "gui/windows/mailedit.h" +#include "gui/windows/maileditwindow.h" #include "inventory.h" #include "item.h" @@ -46,9 +46,9 @@ #include "debug.h" -MailEdit *mailEditWindow = nullptr; +MailEditWindow *mailEditWindow = nullptr; -MailEdit::MailEdit() : +MailEditWindow::MailEditWindow() : // TRANSLATORS: mail edit window name Window(_("Edit mail"), false, nullptr, "mailedit.xml"), ActionListener(), @@ -120,13 +120,13 @@ MailEdit::MailEdit() : enableVisibleSound(true); } -MailEdit::~MailEdit() +MailEditWindow::~MailEditWindow() { mailEditWindow = nullptr; delete2(mInventory); } -void MailEdit::action(const ActionEvent &event) +void MailEditWindow::action(const ActionEvent &event) { const std::string &eventId = event.getId(); if (eventId == "close") @@ -166,7 +166,7 @@ void MailEdit::action(const ActionEvent &event) } } -void MailEdit::addItem(const Item *const item, const int amount) +void MailEditWindow::addItem(const Item *const item, const int amount) { mInventory->addItem(item->getId(), item->getType(), diff --git a/src/gui/windows/mailedit.h b/src/gui/windows/maileditwindow.h index 57ae40828..b1838817c 100644 --- a/src/gui/windows/mailedit.h +++ b/src/gui/windows/maileditwindow.h @@ -18,8 +18,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef GUI_WINDOWS_MAILEDIT_H -#define GUI_WINDOWS_MAILEDIT_H +#ifndef GUI_WINDOWS_MAILEDITWINDOW_H +#define GUI_WINDOWS_MAILEDITWINDOW_H #ifdef EATHENA_SUPPORT @@ -36,15 +36,15 @@ class Label; class ScrollArea; class TextField; -class MailEdit final : public Window, - public ActionListener +class MailEditWindow final : public Window, + public ActionListener { public: - MailEdit(); + MailEditWindow(); - A_DELETE_COPY(MailEdit) + A_DELETE_COPY(MailEditWindow) - ~MailEdit(); + ~MailEditWindow(); void action(const ActionEvent &event) override final; @@ -68,7 +68,7 @@ class MailEdit final : public Window, ScrollArea *mItemScrollArea; }; -extern MailEdit *mailEditWindow; +extern MailEditWindow *mailEditWindow; #endif // EATHENA_SUPPORT -#endif // GUI_WINDOWS_MAILEDIT_H +#endif // GUI_WINDOWS_MAILEDITWINDOW_H diff --git a/src/gui/windows/mailwindow.cpp b/src/gui/windows/mailwindow.cpp index 1d0bbca62..959ae6a2c 100644 --- a/src/gui/windows/mailwindow.cpp +++ b/src/gui/windows/mailwindow.cpp @@ -26,7 +26,7 @@ #include "gui/mailmessage.h" -#include "gui/windows/mailedit.h" +#include "gui/windows/maileditwindow.h" #include "gui/windows/mailview.h" #include "gui/windows/setupwindow.h" @@ -113,7 +113,7 @@ void MailWindow::action(const ActionEvent &event) else if (eventId == "new") { if (!mailEditWindow) - mailEditWindow = new MailEdit(); + mailEditWindow = new MailEditWindow(); } else if (eventId == "open") { |