summaryrefslogtreecommitdiffstats
path: root/kmail/kmreadermainwin.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch)
tree67208f7c145782a7e90b123b982ca78d88cc2c87 /kmail/kmreadermainwin.h
downloadtdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz
tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/kmreadermainwin.h')
-rw-r--r--kmail/kmreadermainwin.h92
1 files changed, 92 insertions, 0 deletions
diff --git a/kmail/kmreadermainwin.h b/kmail/kmreadermainwin.h
new file mode 100644
index 000000000..1e62a4e79
--- /dev/null
+++ b/kmail/kmreadermainwin.h
@@ -0,0 +1,92 @@
+// -*- mode: C++; c-file-style: "gnu" -*-
+
+#ifndef KMReaderMainWin_h
+#define KMReaderMainWin_h
+
+#include "secondarywindow.h"
+
+#include <kurl.h>
+
+class KMReaderWin;
+class KMMessage;
+class KMMessagePart;
+class KAction;
+class KActionMenu;
+class KMFolderIndex;
+class KMFolder;
+class KFontAction;
+class KFontSizeAction;
+template <typename T, typename S> class QMap;
+
+namespace KMail {
+class MessageActions;
+}
+
+class KMReaderMainWin : public KMail::SecondaryWindow
+{
+ Q_OBJECT
+
+public:
+ KMReaderMainWin( bool htmlOverride, bool htmlLoadExtOverride, char *name = 0 );
+ KMReaderMainWin( char *name = 0 );
+ KMReaderMainWin(KMMessagePart* aMsgPart,
+ bool aHTML, const QString& aFileName, const QString& pname,
+ const QString & encoding, char *name = 0 );
+ virtual ~KMReaderMainWin();
+
+ void setUseFixedFont( bool useFixedFont );
+
+ // take ownership of and show @param msg
+ void showMsg( const QString & encoding, KMMessage *msg );
+
+ /**
+ * Sets up action list for forward menu.
+ */
+ void setupForwardingActionsList();
+
+private slots:
+ void slotMsgPopup(KMMessage &aMsg, const KURL &aUrl, const QPoint& aPoint);
+
+ /** Copy selected messages to folder with corresponding to given menuid */
+ void copySelectedToFolder( int menuId );
+ void slotTrashMsg();
+ void slotPrintMsg();
+ void slotForwardInlineMsg();
+ void slotForwardAttachedMsg();
+ void slotForwardDigestMsg();
+ void slotRedirectMsg();
+ void slotShowMsgSrc();
+ void slotMarkAll();
+ void slotCopy();
+ void slotFind();
+ void slotFindNext();
+ void slotFontAction(const QString &);
+ void slotSizeAction(int);
+ void slotCreateTodo();
+ void slotEditToolbars();
+
+ void slotConfigChanged();
+ void slotUpdateToolbars();
+
+ void slotFolderRemoved( QObject* folderPtr );
+
+private:
+ void initKMReaderMainWin();
+ void setupAccel();
+
+ KMReaderWin *mReaderWin;
+ KMMessage *mMsg;
+ KURL mUrl;
+ QMap<int,KMFolder*> mMenuToFolder;
+ // a few actions duplicated from kmmainwidget
+ KAction *mTrashAction, *mPrintAction, *mSaveAsAction, *mForwardInlineAction,
+ *mForwardAttachedAction, *mForwardDigestAction, *mRedirectAction,
+ *mViewSourceAction;
+ KActionMenu *mForwardActionMenu;
+ KFontAction *fontAction;
+ KFontSizeAction *fontSizeAction;
+ KMail::MessageActions *mMsgActions;
+
+};
+
+#endif /*KMReaderMainWin_h*/