18 #ifndef KMPOPHEADERSDLG_H
19 #define KMPOPHEADERSDLG_H
21 #include "kmpopheaders.h"
23 #include <kdialogbase.h>
24 #include <tdelistview.h>
26 #include <tqptrlist.h>
32 class KMPopFilterCnfrmDlg;
44 static const KMPopFilterAction mapToAction( int aColumn) { return (KMPopFilterAction)aColumn;};
45 static const int mapToColumn(KMPopFilterAction aAction) { return ( int)aAction;};
46 static const char *mUnchecked[26];
47 static const char *mChecked[26];
49 static const char *mLater[25];
50 static const char *mDown[20];
51 static const char *mDel[19];
52 void keyPressEvent( TQKeyEvent *k);
55 void slotPressed(TQListViewItem* aItem, const TQPoint& aPoint, int aColumn);
58 KMPopFilterCnfrmDlg *mDialog;
63 class KMPopHeadersViewItem : public TDEListViewItem
67 ~KMPopHeadersViewItem();
68 void setAction(KMPopFilterAction aAction);
69 KMPopFilterAction action() { return mAction; };
70 virtual void paintFocus(TQPainter *, const TQColorGroup & cg, const TQRect &r);
71 virtual TQString key( int col, bool ascending) const;
74 KMPopFilterAction mAction;
78 class KMPopFilterCnfrmDlg : public KDialogBase
80 friend class ::KMPopHeadersView;
84 KMPopFilterCnfrmDlg() { };
85 TQMap<TQListViewItem*, KMPopHeaders*> mItemMap;
86 TQPtrList<KMPopHeadersViewItem> mDelList;
87 TQPtrList<KMPopHeaders> mDDLList;
89 bool mLowerBoxVisible;
91 void setupLVI(KMPopHeadersViewItem *lvi, KMMessage *msg);
95 KMPopFilterCnfrmDlg(TQPtrList<KMPopHeaders> *aHeaders, const TQString &aAccount, bool aShowLaterMsgs = false, TQWidget *aParent=0, const char *aName=0);
96 ~KMPopFilterCnfrmDlg();
99 void setAction(TQListViewItem *aItem, KMPopFilterAction aAction);
108 void slotPressed(TQListViewItem *aItem, const TQPoint &aPnt, int aColumn);
109 void slotToggled( bool aOn);
110 void slotUpdateMinimumSize();
|