summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-29 14:46:05 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-29 14:46:05 +0300
commitb7258f41b38b1fd1d8c6fec6984aa931f847e718 (patch)
tree5049b36884afd19d1702edeb6c6e9361895416f1 /src/gui/windows
parentc9db5bbbb20d22690583f6ae8d1d4f1bf1588181 (diff)
downloadplus-b7258f41b38b1fd1d8c6fec6984aa931f847e718.tar.gz
plus-b7258f41b38b1fd1d8c6fec6984aa931f847e718.tar.bz2
plus-b7258f41b38b1fd1d8c6fec6984aa931f847e718.tar.xz
plus-b7258f41b38b1fd1d8c6fec6984aa931f847e718.zip
Rename mailview into mailviewwindow.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/mailviewwindow.cpp (renamed from src/gui/windows/mailview.cpp)10
-rw-r--r--src/gui/windows/mailviewwindow.h (renamed from src/gui/windows/mailview.h)18
-rw-r--r--src/gui/windows/mailwindow.cpp4
3 files changed, 16 insertions, 16 deletions
diff --git a/src/gui/windows/mailview.cpp b/src/gui/windows/mailviewwindow.cpp
index 32a207acf..baafc0d93 100644
--- a/src/gui/windows/mailview.cpp
+++ b/src/gui/windows/mailviewwindow.cpp
@@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "gui/windows/mailview.h"
+#include "gui/windows/mailviewwindow.h"
#include "configuration.h"
@@ -48,9 +48,9 @@
#include "debug.h"
-MailView *mailViewWindow = nullptr;
+MailViewWindow *mailViewWindow = nullptr;
-MailView::MailView(const MailMessage *const message) :
+MailViewWindow::MailViewWindow(const MailMessage *const message) :
// TRANSLATORS: mail view window name
Window(_("View mail"), false, nullptr, "mailview.xml"),
ActionListener(),
@@ -124,7 +124,7 @@ MailView::MailView(const MailMessage *const message) :
enableVisibleSound(true);
}
-MailView::~MailView()
+MailViewWindow::~MailViewWindow()
{
if (mIcon)
{
@@ -136,7 +136,7 @@ MailView::~MailView()
mailViewWindow = nullptr;
}
-void MailView::action(const ActionEvent &event)
+void MailViewWindow::action(const ActionEvent &event)
{
const std::string &eventId = event.getId();
if (eventId == "close")
diff --git a/src/gui/windows/mailview.h b/src/gui/windows/mailviewwindow.h
index 8d1ddde78..155449bcf 100644
--- a/src/gui/windows/mailview.h
+++ b/src/gui/windows/mailviewwindow.h
@@ -18,8 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GUI_WINDOWS_MAILVIEW_H
-#define GUI_WINDOWS_MAILVIEW_H
+#ifndef GUI_WINDOWS_MAILVIEWWINDOW_H
+#define GUI_WINDOWS_MAILVIEWWINDOW_H
#ifdef EATHENA_SUPPORT
@@ -34,15 +34,15 @@ class TextField;
struct MailMessage;
-class MailView final : public Window,
- public ActionListener
+class MailViewWindow final : public Window,
+ public ActionListener
{
public:
- MailView(const MailMessage *const message);
+ MailViewWindow(const MailMessage *const message);
- A_DELETE_COPY(MailView)
+ A_DELETE_COPY(MailViewWindow)
- ~MailView();
+ ~MailViewWindow();
void action(const ActionEvent &event) override final;
@@ -59,7 +59,7 @@ class MailView final : public Window,
Icon *mIcon;
};
-extern MailView *mailViewWindow;
+extern MailViewWindow *mailViewWindow;
#endif // EATHENA_SUPPORT
-#endif // GUI_WINDOWS_MAILVIEW_H
+#endif // GUI_WINDOWS_MAILVIEWWINDOW_H
diff --git a/src/gui/windows/mailwindow.cpp b/src/gui/windows/mailwindow.cpp
index 959ae6a2c..61cd80917 100644
--- a/src/gui/windows/mailwindow.cpp
+++ b/src/gui/windows/mailwindow.cpp
@@ -27,7 +27,7 @@
#include "gui/mailmessage.h"
#include "gui/windows/maileditwindow.h"
-#include "gui/windows/mailview.h"
+#include "gui/windows/mailviewwindow.h"
#include "gui/windows/setupwindow.h"
#include "gui/widgets/button.h"
@@ -158,5 +158,5 @@ void MailWindow::showMessage(MailMessage *const mail)
mail->strTime = mail2->strTime;
}
delete mailViewWindow;
- mailViewWindow = new MailView(mail);
+ mailViewWindow = new MailViewWindow(mail);
}