kalarm
birthdaydlg.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef BIRTHDAYDLG_H
00021 #define BIRTHDAYDLG_H
00022
00023 #include <tqlineedit.h>
00024 #include <tdelistview.h>
00025 #include <kdialogbase.h>
00026
00027 #include "alarmevent.h"
00028
00029 class TQCheckBox;
00030 class TDEListView;
00031 class CheckBox;
00032 class FontColourButton;
00033 class SoundPicker;
00034 class SpecialActionsButton;
00035 class RepetitionButton;
00036 class LateCancelSelector;
00037 class Reminder;
00038 namespace TDEABC { class AddressBook; }
00039 class BLineEdit;
00040 class BListView;
00041
00042
00043 class BirthdayDlg : public KDialogBase
00044 {
00045 Q_OBJECT
00046
00047 public:
00048 BirthdayDlg(TQWidget* parent = 0);
00049 TQValueList<KAEvent> events() const;
00050 static void close();
00051
00052 protected slots:
00053 virtual void slotOk();
00054
00055 private slots:
00056 void slotSelectionChanged();
00057 void slotTextLostFocus();
00058 void updateSelectionList();
00059
00060 private:
00061 void loadAddressBook();
00062
00063 static const TDEABC::AddressBook* mAddressBook;
00064 BListView* mAddresseeList;
00065 BLineEdit* mPrefix;
00066 BLineEdit* mSuffix;
00067 Reminder* mReminder;
00068 SoundPicker* mSoundPicker;
00069 FontColourButton* mFontColourButton;
00070 CheckBox* mConfirmAck;
00071 LateCancelSelector* mLateCancel;
00072 SpecialActionsButton* mSpecialActionsButton;
00073 RepetitionButton* mSubRepetition;
00074 TQString mPrefixText;
00075 TQString mSuffixText;
00076 int mFlags;
00077 };
00078
00079
00080 class BLineEdit : public TQLineEdit
00081 {
00082 Q_OBJECT
00083
00084 public:
00085 BLineEdit(TQWidget* parent = 0, const char* name = 0)
00086 : TQLineEdit(parent, name) {}
00087 BLineEdit(const TQString& text, TQWidget* parent = 0, const char* name = 0)
00088 : TQLineEdit(text, parent, name) {}
00089 signals:
00090 void focusLost();
00091 protected:
00092 virtual void focusOutEvent(TQFocusEvent*) { emit focusLost(); }
00093 };
00094
00095 class BListView : public TDEListView
00096 {
00097 Q_OBJECT
00098
00099 public:
00100 BListView(TQWidget* parent = 0, const char* name = 0);
00101 public slots:
00102 virtual void slotSelectAll() { selectAll(true); }
00103 virtual void slotDeselect() { selectAll(false); }
00104 };
00105
00106 #endif // BIRTHDAYDLG_H
|