~ubuntu-branches/ubuntu/oneiric/kdepim/oneiric-updates

« back to all changes in this revision

Viewing changes to kalarm/birthdaydlg.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-06-28 19:33:24 UTC
  • mfrom: (0.2.13) (0.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20110628193324-8yvjs8sdv9rdoo6c
Tags: 4:4.7.0-0ubuntu1
* New upstream release
  - update install files
  - add missing kdepim-doc package to control file
  - Fix Vcs lines
  - kontact breaks/replaces korganizer << 4:4.6.80
  - tighten the dependency of kdepim-dev on libkdepim4 to fix lintian error

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
class BirthdayDlg : public KDialog
43
43
{
44
 
                Q_OBJECT
45
 
        public:
46
 
                explicit BirthdayDlg(QWidget* parent = 0);
47
 
                QList<KAEvent> events() const;
48
 
 
49
 
        protected slots:
50
 
                virtual void   slotOk();
51
 
 
52
 
        private slots:
53
 
                void           slotSelectionChanged();
54
 
                void           slotTextLostFocus();
55
 
                void           resizeViewColumns();
56
 
                void           setColours(const QColor& fg, const QColor& bg);
57
 
 
58
 
        private:
59
 
                BirthdaySortModel*    mBirthdaySortModel;
60
 
                QTreeView*            mListView;
61
 
                BLineEdit*            mPrefix;
62
 
                BLineEdit*            mSuffix;
63
 
                Reminder*             mReminder;
64
 
                SoundPicker*          mSoundPicker;
65
 
                FontColourButton*     mFontColourButton;
66
 
                CheckBox*             mConfirmAck;
67
 
                LateCancelSelector*   mLateCancel;
68
 
                SpecialActionsButton* mSpecialActionsButton;
69
 
                RepetitionButton*     mSubRepetition;
70
 
                QString               mPrefixText;   // last entered value of prefix text
71
 
                QString               mSuffixText;   // last entered value of suffix text
72
 
                int                   mFlags;        // event flag bits
 
44
        Q_OBJECT
 
45
    public:
 
46
        explicit BirthdayDlg(QWidget* parent = 0);
 
47
        QList<KAEvent> events() const;
 
48
 
 
49
    protected slots:
 
50
        virtual void   slotOk();
 
51
 
 
52
    private slots:
 
53
        void           slotSelectionChanged();
 
54
        void           slotTextLostFocus();
 
55
        void           resizeViewColumns();
 
56
        void           setColours(const QColor& fg, const QColor& bg);
 
57
 
 
58
    private:
 
59
        BirthdaySortModel*    mBirthdaySortModel;
 
60
        QTreeView*            mListView;
 
61
        BLineEdit*            mPrefix;
 
62
        BLineEdit*            mSuffix;
 
63
        Reminder*             mReminder;
 
64
        SoundPicker*          mSoundPicker;
 
65
        FontColourButton*     mFontColourButton;
 
66
        CheckBox*             mConfirmAck;
 
67
        LateCancelSelector*   mLateCancel;
 
68
        SpecialActionsButton* mSpecialActionsButton;
 
69
        RepetitionButton*     mSubRepetition;
 
70
        QString               mPrefixText;   // last entered value of prefix text
 
71
        QString               mSuffixText;   // last entered value of suffix text
 
72
        int                   mFlags;        // event flag bits
73
73
};
74
74
 
75
75
 
76
76
class BLineEdit : public KLineEdit
77
77
{
78
 
                Q_OBJECT
79
 
        public:
80
 
                explicit BLineEdit(QWidget* parent = 0)                       : KLineEdit(parent) { }
81
 
                explicit BLineEdit(const QString& text, QWidget* parent = 0)  : KLineEdit(text, parent) { }
82
 
        signals:
83
 
                void         focusLost();
84
 
        protected:
85
 
                virtual void focusOutEvent(QFocusEvent*)  { emit focusLost(); }
 
78
        Q_OBJECT
 
79
    public:
 
80
        explicit BLineEdit(QWidget* parent = 0)                       : KLineEdit(parent) { }
 
81
        explicit BLineEdit(const QString& text, QWidget* parent = 0)  : KLineEdit(text, parent) { }
 
82
 
 
83
    signals:
 
84
        void         focusLost();
 
85
 
 
86
    protected:
 
87
        virtual void focusOutEvent(QFocusEvent*)  { emit focusLost(); }
86
88
};
87
89
 
88
90
#endif // BIRTHDAYDLG_H
 
91
 
 
92
// vim: et sw=4: