kalarm
templatedlg.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef TEMPLATEDLG_H
00021 #define TEMPLATEDLG_H
00022
00023 #include <kdialogbase.h>
00024
00025 class QPushButton;
00026 class TemplateListView;
00027 class KAEvent;
00028
00029
00030 class TemplateDlg : public KDialogBase
00031 {
00032 Q_OBJECT
00033 public:
00034 static TemplateDlg* create(QWidget* parent = 0, const char* name = 0);
00035 ~TemplateDlg();
00036 static void createTemplate(const KAEvent* = 0, QWidget* parent = 0, TemplateListView* = 0);
00037
00038 signals:
00039 void emptyToggled(bool notEmpty);
00040
00041 protected:
00042 virtual void resizeEvent(QResizeEvent*);
00043
00044 private slots:
00045 void slotNew();
00046 void slotCopy();
00047 void slotEdit();
00048 void slotDelete();
00049 void slotSelectionChanged();
00050
00051 private:
00052 TemplateDlg(QWidget* parent, const char* name);
00053
00054 static TemplateDlg* mInstance;
00055
00056 TemplateListView* mTemplateList;
00057 QPushButton* mEditButton;
00058 QPushButton* mCopyButton;
00059 QPushButton* mDeleteButton;
00060 };
00061
00062 #endif // TEMPLATEDLG_H
|