31 #ifndef KMMIMEPARTTREE_H
32 #define KMMIMEPARTTREE_H
34 #include <tdelistview.h>
35 #include <tdeio/global.h>
41 class KMMimePartTreeItem;
43 class KMMimePartTree : public TDEListView
47 friend class ::KMReaderWin;
52 const char* name = 0 );
53 virtual ~KMMimePartTree();
55 void correctSize( TQListViewItem * item );
58 void itemClicked( TQListViewItem* );
59 void itemRightClicked( TQListViewItem*, const TQPoint& );
61 void slotSaveAsEncoded();
68 void slotProperties();
74 void styleChange( TQStyle& oldStyle );
78 void setStyleDependantFrameWidth();
80 void saveSelectedBodyParts( bool encoded );
81 void restoreLayoutIfPresent();
86 void startHandleAttachmentCommand( int type );
90 KMMimePartTreeItem* mCurrentContextMenuItem;
94 class KMMimePartTreeItem : public TQListViewItem
97 KMMimePartTreeItem( KMMimePartTree * parent,
99 const TQString & labelDescr,
100 const TQString & labelCntType = TQString(),
101 const TQString & labelEncoding = TQString(),
102 TDEIO::filesize_t size=0 );
103 KMMimePartTreeItem( KMMimePartTreeItem * parent,
105 const TQString & labelDescr,
106 const TQString & labelCntType = TQString(),
107 const TQString & labelEncoding = TQString(),
108 TDEIO::filesize_t size=0,
109 bool revertOrder = false );
110 partNode* node() const { return mPartNode; }
112 TDEIO::filesize_t origSize() const { return mOrigSize; }
113 void setOrigSize( TDEIO::filesize_t size ) { mOrigSize = size; }
116 void setIconAndTextForType( const TQString & mimetype );
119 TDEIO::filesize_t mOrigSize;
This class implements a "reader window", that is a window used for reading or viewing messages.
|