summaryrefslogtreecommitdiffstats
path: root/korganizer/komonthview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-01 00:37:02 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-01 00:37:02 +0000
commitcc29364f06178f8f6b457384f2ec37a042bd9d43 (patch)
tree7c77a3184c698bbf9d98cef09fb1ba8124daceba /korganizer/komonthview.h
parent4f6c584bacc8c3c694228f36ada3de77a76614a6 (diff)
downloadtdepim-cc29364f06178f8f6b457384f2ec37a042bd9d43.tar.gz
tdepim-cc29364f06178f8f6b457384f2ec37a042bd9d43.zip
* Massive set of changes to bring in all fixes and enhancements from the Enterprise PIM branch
* Ensured that the Trinity changes were applied on top of those enhancements, and any redundancy removed * Added journal read support to the CalDAV resource * Fixed CalDAV resource to use events URL for tasks and journals when separate URL checkbox unchecked git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1170461 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/komonthview.h')
-rw-r--r--korganizer/komonthview.h30
1 files changed, 22 insertions, 8 deletions
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h
index 9a3015d03..dafce597f 100644
--- a/korganizer/komonthview.h
+++ b/korganizer/komonthview.h
@@ -36,12 +36,14 @@ class KNoScrollListBox;
class KOMonthCellToolTip : public QToolTip
{
public:
- KOMonthCellToolTip (TQWidget* parent, KNoScrollListBox* lv );
+ KOMonthCellToolTip (TQWidget* parent, Calendar *calendar, const TQDate &date, KNoScrollListBox* lv );
protected:
void maybeTip( const TQPoint & pos);
private:
+ Calendar *mCalendar;
+ TQDate mDate;
KNoScrollListBox* eventlist;
};
@@ -107,6 +109,8 @@ class MonthViewItem: public QListBoxItem
bool mReply;
TQPixmap mEventPixmap;
+ TQPixmap mBirthdayPixmap;
+ TQPixmap mAnniversaryPixmap;
TQPixmap mTodoPixmap;
TQPixmap mTodoDonePixmap;
TQPixmap mAlarmPixmap;
@@ -117,6 +121,7 @@ class MonthViewItem: public QListBoxItem
TQDateTime mDateTime;
Incidence *mIncidence;
+ TQColor catColor() const;
};
@@ -138,6 +143,9 @@ class MonthViewCell : public QWidget
/** @return Date of cell */
TQDate date() const;
+ /** @return MonthView parent */
+ KOMonthView *monthView() { return mMonthView; }
+
/**
Set this cell as primary if @p primary is true. A primary cell belongs
to the current month. A non-primary cell belongs to the month before or
@@ -184,7 +192,6 @@ class MonthViewCell : public QWidget
void deselect();
- void setCalendar( Calendar*cal ) { mCalendar = cal; }
signals:
void defaultAction( Incidence * );
/**
@@ -192,7 +199,8 @@ class MonthViewCell : public QWidget
will pop up.
@param date The date of the event we want create.
*/
- void newEventSignal( const TQDate &date );
+ void newEventSignal( ResourceCalendar *res,const TQString &subResource,
+ const TQDate &date );
public slots:
void select();
@@ -207,8 +215,6 @@ class MonthViewCell : public QWidget
private:
KOMonthView *mMonthView;
- // We need the calendar for paint the ResourceColor
- Calendar *mCalendar;
TQDate mDate;
bool mPrimary;
@@ -218,6 +224,8 @@ class MonthViewCell : public QWidget
TQLabel *mLabel;
KNoScrollListBox *mItemList;
+ bool isSelected;
+
TQSize mLabelSize;
// TQPalette mOriginalPalette;
TQPalette mHolidayPalette;
@@ -249,7 +257,11 @@ class KOMonthView: public KOEventView
virtual Incidence::List selectedIncidences();
/** Returns dates of the currently selected events */
- virtual DateList selectedDates();
+ virtual DateList selectedIncidenceDates();
+
+ virtual TQDateTime selectionStart();
+
+ virtual TQDateTime selectionEnd();
virtual bool eventDurationHint(TQDateTime &startDt, TQDateTime &endDt, bool &allDay);
@@ -257,14 +269,14 @@ class KOMonthView: public KOEventView
virtual void updateView();
virtual void updateConfig();
virtual void showDates(const TQDate &start, const TQDate &end);
- virtual void showIncidences( const Incidence::List &incidenceList );
+ virtual void showIncidences( const Incidence::List &incidenceList, const TQDate &date );
void changeIncidenceDisplay(Incidence *, int);
void changeIncidenceDisplayAdded(Incidence *, MonthViewCell::CreateItemVisitor&);
void clearSelection();
- void showEventContextMenu( Incidence *, const TQDate & );
+ void showEventContextMenu( Calendar *, Incidence *, const TQDate & );
void showGeneralContextMenu();
void setSelectedCell( MonthViewCell * );
@@ -279,6 +291,8 @@ class KOMonthView: public KOEventView
void updateDayLabels();
private:
+ void showLabel( bool show );
+
class GetDateVisitor;
int mDaysPerWeek;
int mNumWeeks;