kmail

kmreadermainwin.h
1 #ifndef KMReaderMainWin_h
2 #define KMReaderMainWin_h
3 
4 #include "secondarywindow.h"
5 
6 #include <kurl.h>
7 
8 class KMReaderWin;
9 class KMMessage;
10 class KMMessagePart;
11 class TDEAction;
12 class TDEActionMenu;
13 class KMFolderIndex;
14 class KMFolder;
15 class TDEFontAction;
16 class TDEFontSizeAction;
17 template <typename T, typename S> class TQMap;
18 
19 namespace KMail {
20 class MessageActions;
21 }
22 
23 class KMReaderMainWin : public KMail::SecondaryWindow
24 {
25  TQ_OBJECT
26 
27 
28 public:
29  KMReaderMainWin( bool htmlOverride, bool htmlLoadExtDefault, char *name = 0 );
30  KMReaderMainWin( char *name = 0 );
31  KMReaderMainWin(KMMessagePart* aMsgPart,
32  bool aHTML, const TQString& aFileName, const TQString& pname,
33  const TQString & encoding, char *name = 0 );
34  virtual ~KMReaderMainWin();
35 
36  void setUseFixedFont( bool useFixedFont );
37 
46  void showMsg( const TQString & encoding, KMMessage *msg,
47  unsigned long serNumOfOriginalMessage = 0, int nodeIdOffset = -1 );
48 
52  void setupForwardingActionsList();
53 
54 private slots:
55  void slotMsgPopup(KMMessage &aMsg, const KURL &aUrl, const TQPoint& aPoint);
56 
58  void copySelectedToFolder( int menuId );
59  void slotTrashMsg();
60  void slotPrintMsg();
61  void slotForwardInlineMsg();
62  void slotForwardAttachedMsg();
63  void slotForwardDigestMsg();
64  void slotRedirectMsg();
65  void slotShowMsgSrc();
66  void slotMarkAll();
67  void slotCopy();
68  void slotFind();
69  void slotFindNext();
70  void slotFontAction(const TQString &);
71  void slotSizeAction(int);
72  void slotCreateTodo();
73  void slotEditToolbars();
74 
75  void slotConfigChanged();
76  void slotUpdateToolbars();
77 
78  void slotFolderRemoved( TQObject* folderPtr );
79 
82  void slotReplyOrForwardFinished();
83 
84 private:
85  void initKMReaderMainWin();
86  void setupAccel();
87 
91  void setupForwardActions();
92 
93  KMReaderWin *mReaderWin;
94  KMMessage *mMsg;
95  KURL mUrl;
96  TQMap<int,KMFolder*> mMenuToFolder;
97  // a few actions duplicated from kmmainwidget
98  TDEAction *mTrashAction, *mPrintAction, *mSaveAsAction, *mForwardInlineAction,
99  *mForwardAttachedAction, *mForwardDigestAction, *mRedirectAction,
100  *mViewSourceAction;
101  TDEActionMenu *mForwardActionMenu;
102  TDEFontAction *fontAction;
103  TDEFontSizeAction *fontSizeAction;
104  KMail::MessageActions *mMsgActions;
105 
106 };
107 
108 #endif /*KMReaderMainWin_h*/
A FolderStorage with an index for faster access to often used message properties.
Definition: kmfolderindex.h:38
Mail folder.
Definition: kmfolder.h:69
This is a Mime Message.
Definition: kmmessage.h:68
This class implements a "reader window", that is a window used for reading or viewing messages.
Definition: kmreaderwin.h:75
Manages common actions that can be performed on one or more messages.
Window class for secondary KMail window like the composer window and the separate message window.
folderdiaquotatab.h
Definition: aboutdata.cpp:40