Commit 22d28ad8 authored by Laurent Montel's avatar Laurent Montel 😁

Add widget in viewer

parent 2840f885
...@@ -145,6 +145,7 @@ ...@@ -145,6 +145,7 @@
#include <viewerplugins/viewerplugininterface.h> #include <viewerplugins/viewerplugininterface.h>
#include <WebEngineViewer/ZoomActionMenu> #include <WebEngineViewer/ZoomActionMenu>
#include <kpimtextedit/texttospeechwidget.h> #include <kpimtextedit/texttospeechwidget.h>
#include <widgets/mailtrackingwarningwidget.h>
#include <grantleetheme/grantleethememanager.h> #include <grantleetheme/grantleethememanager.h>
#include <grantleetheme/grantleetheme.h> #include <grantleetheme/grantleetheme.h>
...@@ -1264,6 +1265,7 @@ void ViewerPrivate::resetStateForNewMessage() ...@@ -1264,6 +1265,7 @@ void ViewerPrivate::resetStateForNewMessage()
mScamDetectionWarning->setVisible(false); mScamDetectionWarning->setVisible(false);
mOpenAttachmentFolderWidget->setVisible(false); mOpenAttachmentFolderWidget->setVisible(false);
mSubmittedFormWarning->setVisible(false); mSubmittedFormWarning->setVisible(false);
mMailTrackingWarning->setVisible(false);
if (mPrinting) { if (mPrinting) {
if (MessageViewer::MessageViewerSettings::self()->respectExpandCollapseSettings()) { if (MessageViewer::MessageViewerSettings::self()->respectExpandCollapseSettings()) {
...@@ -1474,6 +1476,10 @@ void ViewerPrivate::createWidgets() ...@@ -1474,6 +1476,10 @@ void ViewerPrivate::createWidgets()
mSubmittedFormWarning->setObjectName(QStringLiteral("submittedformwarning")); mSubmittedFormWarning->setObjectName(QStringLiteral("submittedformwarning"));
readerBoxVBoxLayout->addWidget(mSubmittedFormWarning); readerBoxVBoxLayout->addWidget(mSubmittedFormWarning);
mMailTrackingWarning = new MailTrackingWarningWidget(readerBox);
mMailTrackingWarning->setObjectName(QStringLiteral("mailtrackingwarning"));
readerBoxVBoxLayout->addWidget(mMailTrackingWarning);
mScamDetectionWarning = new ScamDetectionWarningWidget(readerBox); mScamDetectionWarning = new ScamDetectionWarningWidget(readerBox);
mScamDetectionWarning->setObjectName(QStringLiteral("scandetectionwarning")); mScamDetectionWarning->setObjectName(QStringLiteral("scandetectionwarning"));
readerBoxVBoxLayout->addWidget(mScamDetectionWarning); readerBoxVBoxLayout->addWidget(mScamDetectionWarning);
...@@ -3193,7 +3199,7 @@ void ViewerPrivate::slotAddToWhiteList() ...@@ -3193,7 +3199,7 @@ void ViewerPrivate::slotAddToWhiteList()
void ViewerPrivate::slotMailTrackingFound() void ViewerPrivate::slotMailTrackingFound()
{ {
//TODO mMailTrackingWarning->animatedShow();
} }
void ViewerPrivate::slotFormSubmittedForbidden() void ViewerPrivate::slotFormSubmittedForbidden()
......
...@@ -93,6 +93,7 @@ class ViewerPluginToolManager; ...@@ -93,6 +93,7 @@ class ViewerPluginToolManager;
class ViewerPluginInterface; class ViewerPluginInterface;
class SubmittedFormWarningWidget; class SubmittedFormWarningWidget;
class MailSourceWebEngineViewer; class MailSourceWebEngineViewer;
class MailTrackingWarningWidget;
/** /**
\brief Private class for the Viewer, the main widget in the messageviewer library. \brief Private class for the Viewer, the main widget in the messageviewer library.
...@@ -679,6 +680,7 @@ public: ...@@ -679,6 +680,7 @@ public:
MessageViewer::ScamDetectionWarningWidget *mScamDetectionWarning = nullptr; MessageViewer::ScamDetectionWarningWidget *mScamDetectionWarning = nullptr;
MessageViewer::OpenAttachmentFolderWidget *mOpenAttachmentFolderWidget = nullptr; MessageViewer::OpenAttachmentFolderWidget *mOpenAttachmentFolderWidget = nullptr;
MessageViewer::SubmittedFormWarningWidget *mSubmittedFormWarning = nullptr; MessageViewer::SubmittedFormWarningWidget *mSubmittedFormWarning = nullptr;
MessageViewer::MailTrackingWarningWidget *mMailTrackingWarning = nullptr;
KPIMTextEdit::TextToSpeechWidget *mTextToSpeechWidget = nullptr; KPIMTextEdit::TextToSpeechWidget *mTextToSpeechWidget = nullptr;
Viewer::DisplayFormatMessage mDisplayFormatMessageOverwrite; Viewer::DisplayFormatMessage mDisplayFormatMessageOverwrite;
KPIMTextEdit::SlideContainer *mSliderContainer = nullptr; KPIMTextEdit::SlideContainer *mSliderContainer = nullptr;
...@@ -691,6 +693,7 @@ public: ...@@ -691,6 +693,7 @@ public:
QPrinter *mCurrentPrinter = nullptr; QPrinter *mCurrentPrinter = nullptr;
QList<QPointer<MessageViewer::MailSourceWebEngineViewer> > mListMailSourceViewer; QList<QPointer<MessageViewer::MailSourceWebEngineViewer> > mListMailSourceViewer;
WebEngineViewer::LocalDataBaseManager *mPhishingDatabase = nullptr; WebEngineViewer::LocalDataBaseManager *mPhishingDatabase = nullptr;
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment