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 <qlineedit.h>
00024 #include <kdialogbase.h>
00025
00026 #include "alarmevent.h"
00027
00028 class QCheckBox;
00029 class KListView;
00030 class CheckBox;
00031 class ColourCombo;
00032 class FontColourButton;
00033 class SoundPicker;
00034 class SpecialActionsButton;
00035 class RepetitionButton;
00036 class LateCancelSelector;
00037 class Reminder;
00038 namespace KABC { class AddressBook; }
00039 class BLineEdit;
00040
00041
00042 class BirthdayDlg : public KDialogBase
00043 {
00044 Q_OBJECT
00045 public:
00046 BirthdayDlg(QWidget* parent = 0);
00047 QValueList<KAEvent> events() const;
00048
00049 protected slots:
00050 virtual void slotOk();
00051
00052 private slots:
00053 void slotSelectionChanged();
00054 void slotTextLostFocus();
00055 void slotFontColourSelected();
00056 void slotBgColourSelected(const QColor&);
00057 void updateSelectionList();
00058
00059 private:
00060 void loadAddressBook();
00061
00062 static const KABC::AddressBook* mAddressBook;
00063 KListView* mAddresseeList;
00064 BLineEdit* mPrefix;
00065 BLineEdit* mSuffix;
00066 Reminder* mReminder;
00067 SoundPicker* mSoundPicker;
00068 FontColourButton* mFontColourButton;
00069 ColourCombo* mBgColourChoose;
00070 CheckBox* mConfirmAck;
00071 LateCancelSelector* mLateCancel;
00072 SpecialActionsButton* mSpecialActionsButton;
00073 RepetitionButton* mSimpleRepetition;
00074 QString mPrefixText;
00075 QString mSuffixText;
00076 int mFlags;
00077 };
00078
00079
00080 class BLineEdit : public QLineEdit
00081 {
00082 Q_OBJECT
00083 public:
00084 BLineEdit(QWidget* parent = 0, const char* name = 0)
00085 : QLineEdit(parent, name) { }
00086 BLineEdit(const QString& text, QWidget* parent = 0, const char* name = 0)
00087 : QLineEdit(text, parent, name) { }
00088 signals:
00089 void focusLost();
00090 protected:
00091 virtual void focusOutEvent(QFocusEvent*) { emit focusLost(); }
00092 };
00093
00094 #endif // BIRTHDAYDLG_H
|