summaryrefslogtreecommitdiffstats
path: root/korganizer/datenavigatorcontainer.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/datenavigatorcontainer.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/datenavigatorcontainer.h')
-rw-r--r--korganizer/datenavigatorcontainer.h49
1 files changed, 41 insertions, 8 deletions
diff --git a/korganizer/datenavigatorcontainer.h b/korganizer/datenavigatorcontainer.h
index 2facad303..e30f19b42 100644
--- a/korganizer/datenavigatorcontainer.h
+++ b/korganizer/datenavigatorcontainer.h
@@ -43,29 +43,53 @@ class DateNavigatorContainer: public QFrame
TQSize minimumSizeHint() const;
TQSize sizeHint() const;
-
+ void setUpdateNeeded();
public slots:
- void selectDates( const KCal::DateList & );
+ /**
+ preferredMonth is useful when the datelist crosses months, if different
+ from -1, it has the month that the kdatenavigator should show in case
+ of ambiguity
+ */
+ void selectDates( const KCal::DateList &, const TQDate &preferredMonth = TQDate() );
void updateView();
void updateConfig();
void updateDayMatrix();
void updateToday();
+ void goPrevMonth();
+ void goNextMonth();
+
signals:
void datesSelected( const KCal::DateList & );
void incidenceDropped( Incidence *, const TQDate & );
void incidenceDroppedMove( Incidence *, const TQDate & );
- void weekClicked( const TQDate &);
+ void weekClicked( const TQDate & );
void goPrevious();
void goNext();
- void goNextMonth();
- void goPrevMonth();
- void goNextYear();
- void goPrevYear();
+ void nextYearClicked();
+ void prevYearClicked();
- void goMonth( int month );
+ /** Signals that the previous month button has been clicked.
+
+ @param currentMonth The month displayed on the first KDateNavigator.
+ DateNavigator doesn't know anything abouts months, it just has
+ a list of selected dates, so we must send this.
+ @param selectionLowerLimit The first date of the first KDateNavigator.
+ @param selectionUpperLimit The last date of the last KDateNavigator.
+ */
+ void prevMonthClicked( const TQDate &currentMonth,
+ const TQDate &selectionLowerLimit,
+ const TQDate &selectionUpperLimit );
+
+ void nextMonthClicked( const TQDate &currentMonth,
+ const TQDate &selectionLowerLimit,
+ const TQDate &selectionUpperLimit );
+
+ void monthSelected( int month );
+
+ void yearSelected( int year );
protected:
void resizeEvent( TQResizeEvent * );
@@ -79,6 +103,15 @@ class DateNavigatorContainer: public QFrame
void resizeAllContents();
private:
+ /* Returns the first day of the first KDateNavigator, and the last day
+ of the last KDateNavigator.
+
+ @param monthOffset If you have two KDateNavigators displaying January and February
+ and want to know the boundaries of, for e.g. displaying February and March,
+ use monthOffset = 1.
+ */
+ QPair<TQDate,TQDate> dateLimits( int monthOffset = 0 );
+
KDateNavigator *mNavigatorView;
KCal::Calendar *mCalendar;