Diffstat (limited to 'core/pim/datebook/datebookday.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookday.h | 60 |
1 files changed, 31 insertions, 29 deletions
diff --git a/core/pim/datebook/datebookday.h b/core/pim/datebook/datebookday.h index c8cb26b..3e44364 100644 --- a/core/pim/datebook/datebookday.h +++ b/core/pim/datebook/datebookday.h @@ -41,16 +41,16 @@ class QResizeEvent; class DateBookDayViewQuickLineEdit : public QLineEdit { - Q_OBJECT + Q_OBJECT public: - DateBookDayViewQuickLineEdit(const QDateTime &start, const QDateTime &end,QWidget * parent, const char *name=0); + DateBookDayViewQuickLineEdit(const QDateTime &start, const QDateTime &end,QWidget * parent, const char *name=0); protected: - Event quickEvent; - int active; - void focusOutEvent( QFocusEvent *e ); + Event quickEvent; + int active; + void focusOutEvent( QFocusEvent *e ); protected slots: - void slotReturnPressed(void); + void slotReturnPressed(void); void finallyCallClose(); signals: - void insertEvent(const Event &e); + void insertEvent(const Event &e); }; @@ -68,5 +68,5 @@ public slots: void moveUp(); void moveDown(); - void slotDateChanged( int year, int month, int day ); + void slotDateChanged( int year, int month, int day ); signals: @@ -74,5 +74,5 @@ signals: void sigCapturedKey( const QString &txt ); protected slots: - void slotChangeClock( bool ); + void slotChangeClock( bool ); protected: virtual void paintCell( QPainter *p, int row, int col, const QRect &cr, bool selected ); @@ -85,6 +85,6 @@ protected: private: bool ampm; - QDate currDate; - DateBookDayViewQuickLineEdit *quickLineEdit; + QDate currDate; + DateBookDayViewQuickLineEdit *quickLineEdit; }; @@ -158,17 +158,17 @@ private: class WidgetListClass : public QList<DateBookDayWidget> { - private: + private: - int compareItems( QCollection::Item s1, QCollection::Item s2 ) - { - //hmm, don't punish me for that ;) - if (reinterpret_cast<DateBookDayWidget*>(s1)->geometry().height() > reinterpret_cast<DateBookDayWidget*>(s2)->geometry().height()) - { - return -1; - } else - { - return 1; - } - } + int compareItems( QCollection::Item s1, QCollection::Item s2 ) + { + //hmm, don't punish me for that ;) + if (reinterpret_cast<DateBookDayWidget*>(s1)->geometry().height() > reinterpret_cast<DateBookDayWidget*>(s2)->geometry().height()) + { + return -1; + } else + { + return 1; + } + } @@ -181,7 +181,8 @@ class DateBookDay : public QVBox friend class DateBookDayWidget; // for beam this occurence and access to DateBookDB public: - DateBookDay( bool ampm, bool startOnMonday, DateBookDB *newDb, - QWidget *parent, const char *name ); + DateBookDay( bool ampm, bool startOnMonday, DateBookDB *newDb,DateBookHoliday*newHdb, + QWidget *parent, const char *name ); void selectedDates( QDateTime &start, QDateTime &end ); + QDate date() const; DateBookDayView *dayView() const { return view; } @@ -200,5 +201,5 @@ public slots: void redraw(); void slotWeekChanged( bool bStartOnMonday ); - void updateView(); //updates TimeMarker and DayWidget-colors + void updateView(); //updates TimeMarker and DayWidget-colors signals: @@ -226,10 +227,11 @@ private: DatebookdayAllday *m_allDays; DateBookDB *db; - WidgetListClass widgetList; //reimplemented QList for sorting widgets by height + WidgetListClass widgetList; //reimplemented QList for sorting widgets by height int startTime; - bool jumpToCurTime; //should we jump to current time in dayview? + bool jumpToCurTime; //should we jump to current time in dayview? int rowStyle; DateBookDayWidget *selectedWidget; //actual selected widget (obviously) - DateBookDayTimeMarker *timeMarker; //marker for current time + DateBookDayTimeMarker *timeMarker; //marker for current time + DateBookHoliday*_holiday_db; }; |