00001 #ifndef __KMTRACE_SUPPRESS_LIST_DIALOG__HH__ 00002 #define __KMTRACE_SUPPRESS_LIST_DIALOG__HH__ 00003 00004 // KDE includes 00005 #include <kdialogbase.h> 00006 #include <klistview.h> 00007 00008 // kmtraceviewer includes 00009 #include "KMtraceLeak.hh" 00010 #include "KMtraceModel.hh" 00011 #include "KMtraceSuppressDialog.hh" 00012 00034 class KMtraceSuppressListDialog : public KDialogBase 00035 { 00036 Q_OBJECT 00037 00038 public: 00039 KMtraceSuppressListDialog( KMtraceModel *model, 00040 QWidget *parent = 0, 00041 const char *name = 0, 00042 bool modal = true ); 00043 void setModel( KMtraceModel *model ); 00044 00045 public slots: 00046 void slotModelChanged( ); 00047 void slotAddSuppressionDone( ); 00048 00049 protected: 00050 // contains the suppressions 00051 KMtraceModel *m_model; 00052 00053 // the list view showing all suppresions in a sortable table 00054 KListView *m_listView; 00055 00056 // the suppress dialog (simple version to add a suppression) 00057 KMtraceSuppressDialog *m_suppressDialog; 00058 00059 // whether the suppress edit dialog is currently running 00060 bool m_suppressDialogRunning; 00061 00062 protected slots: 00063 void slotUser1( ); 00064 void slotUser2( ); 00065 void slotCancel( ); 00066 void slotSuppress( KMtraceLeak *leak, QString string ); 00067 00068 signals: 00069 void done( ); 00070 00071 private: 00072 virtual void done( int i ) { KDialogBase::done( i ); } 00073 }; 00074 00075 #endif