-rw-r--r-- | korganizer/komonthview.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h index 65b5e77..159af16 100644 --- a/korganizer/komonthview.h +++ b/korganizer/komonthview.h @@ -41,12 +41,13 @@ #ifdef DESKTOP_VERSION class QToolTipGroup; #endif class KNOWhatsThis; +class MonthViewCell; class KOWeekButton : public QPushButton { Q_OBJECT public: KOWeekButton( QWidget *parent=0, const char *name=0 ) : QPushButton( parent, name) @@ -82,12 +83,13 @@ class KNoScrollListBox: public QListBox signals: void shiftDown(); void shiftUp(); void rightClick(); void nextCell(); void prevCell(); + void highligtIncidence( Incidence * , MonthViewCell*, int ); protected slots: void oneDown(); void keyPressEvent(QKeyEvent *); void keyReleaseEvent(QKeyEvent *); void mousePressEvent(QMouseEvent *); @@ -107,20 +109,21 @@ class MonthViewItem: public QListBoxItem void recycle( Incidence *incidence, QDate qd, const QString & s); void setRecur(bool on) { mRecur = on; } void setAlarm(bool on) { mAlarm = on; } void setReply(bool on) { mReply = on; } void setMoreInfo(bool on) { mInfo = on; } void setMultiDay(int type) { mMultiday = type; } + int multiDay() { return mMultiday; } void setMultiDayPos(int type) { mdayPos = type; } int gettMultiDayPos() { return mdayPos; } void setBlockRepaint(bool on) { mblockRepaint = on; } - + bool setHighlighted( Incidence * ); void setPalette(const QPalette &p) { mPalette = p; } QPalette palette() const { return mPalette; } - + bool setHighlightedFalse(); Incidence *incidence() const { return mIncidence; } QDate incidenceDate() { return mDate; } protected: virtual void paint(QPainter *); virtual int height(const QListBox *) const; @@ -132,12 +135,13 @@ class MonthViewItem: public QListBoxItem bool mblockRepaint; int mMultiday; bool mRecur; bool mAlarm; bool mReply; bool mInfo; + bool mDisplayHightlighted; QPalette mPalette; QDate mDate; Incidence *mIncidence; }; @@ -172,13 +176,14 @@ class MonthViewCell : public KNoScrollListBox void enableScrollBars( bool ); Incidence *selectedIncidence(); QDate selectedIncidenceDate(); QPushButton * dateLabel() { return mLabel; } - + void deHightLight(); + bool doHightLight( Incidence *); void deselect(); void select(); #ifdef DESKTOP_VERSION static QToolTipGroup *toolTipGroup(); #endif signals: @@ -189,13 +194,12 @@ class MonthViewCell : public KNoScrollListBox protected: QStringList mToolTip; void resizeEvent( QResizeEvent * ); public slots: void showDay(); - protected slots: void defaultAction( QListBoxItem * ); void contextMenu( QListBoxItem * ); void selection( QListBoxItem * ); void cellClicked( QListBoxItem * ); void newEvent(); @@ -255,12 +259,13 @@ class KOMonthView: public KOEventView MonthViewCell * selectedCell(); bool skipResize; NavigatorBar* navigatorBar() { return mNavigatorBar ;} void clearList(); public slots: + void incidenceHighlighted( Incidence *, MonthViewCell*, int ); void nextCell(); void prevCell(); virtual void updateView(); virtual void updateConfig(); virtual void showDates(const QDate &start, const QDate &end); virtual void showEvents(QPtrList<Event> eventList); |