kaddressbook
filtereditdialog.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef FILTEREDITDIALOG_H
00025 #define FILTEREDITDIALOG_H
00026
00027 class TQButtonGroup;
00028 class TQString;
00029 class TQToolButton;
00030 class TQWidget;
00031
00032 class KLineEdit;
00033 class TDEListBox;
00034 class TDEListView;
00035
00036 #include <kdialogbase.h>
00037
00038 #include "filter.h"
00039
00040 class FilterDialog : public KDialogBase
00041 {
00042 Q_OBJECT
00043
00044
00045 public:
00046 FilterDialog( TQWidget *parent, const char *name = 0 );
00047 ~FilterDialog();
00048
00049 void setFilters( const Filter::List &list );
00050 Filter::List filters() const;
00051
00052 protected slots:
00053 void add();
00054 void edit();
00055 void remove();
00056 void selectionChanged( TQListBoxItem* );
00057
00058 private:
00059 void initGUI();
00060 void refresh();
00061
00062 Filter::List mFilterList;
00063 Filter::List mInternalFilterList;
00064
00065 TDEListBox *mFilterListBox;
00066 TQPushButton *mAddButton;
00067 TQPushButton *mEditButton;
00068 TQPushButton *mRemoveButton;
00069 };
00070
00071 class FilterEditDialog : public KDialogBase
00072 {
00073 Q_OBJECT
00074
00075 public:
00076 FilterEditDialog( TQWidget *parent, const char *name = 0 );
00077 ~FilterEditDialog();
00078
00079 void setFilter( const Filter &filter );
00080 Filter filter();
00081
00082 protected slots:
00083 void filterNameTextChanged( const TQString& );
00084 void slotHelp();
00085
00086 private:
00087 void initGUI();
00088
00089 Filter mFilter;
00090
00091 KLineEdit *mNameEdit;
00092 TDEListView *mCategoriesView;
00093 TQButtonGroup *mMatchRuleGroup;
00094 TQPushButton *mEditButton;
00095 TQPushButton *mRemoveButton;
00096 };
00097
00098 #endif
|