From f7d3792df9fd01ea7baabaf9b612031b1f28d7ab Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 25 Aug 2017 20:45:38 +0300 Subject: Add basic support for view mail message. --- src/gui/windows/mailviewwindow.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/gui/windows/mailviewwindow.h') diff --git a/src/gui/windows/mailviewwindow.h b/src/gui/windows/mailviewwindow.h index 97cd8e84e..a9d19e57e 100644 --- a/src/gui/windows/mailviewwindow.h +++ b/src/gui/windows/mailviewwindow.h @@ -27,7 +27,10 @@ class Button; class Icon; +class Inventory; +class ItemContainer; class Label; +class ScrollArea; struct MailMessage; @@ -35,7 +38,8 @@ class MailViewWindow final : public Window, public ActionListener { public: - explicit MailViewWindow(const MailMessage *const message) A_NONNULL(2); + MailViewWindow(const MailMessage *const message, + const int itemsCount) A_NONNULL(2); A_DELETE_COPY(MailViewWindow) @@ -43,6 +47,10 @@ class MailViewWindow final : public Window, void action(const ActionEvent &event) override final; + Inventory *getInventory() const A_WARN_UNUSED; + + void updateItems(); + private: const MailMessage *mMessage; Button *mGetAttachButton; @@ -55,8 +63,10 @@ class MailViewWindow final : public Window, Label *mFromLabel; Label *mSubjectLabel; Label *mMessageLabel; - Label *mItemLabel; - Icon *mIcon; + Inventory *mInventory; + ItemContainer *mItemContainer; + ScrollArea *mItemScrollArea; + bool mUseMail2; }; extern MailViewWindow *mailViewWindow; -- cgit v1.2.3-60-g2f50