29 #ifndef KORG_DATENAVIGATORCONTAINER_H
30 #define KORG_DATENAVIGATORCONTAINER_H
32 #include <Akonadi/Calendar/ETMCalendar>
48 void setCalendar(
const Akonadi::ETMCalendar::Ptr & );
54 bool highlightJournals )
const;
72 void selectDates(
const KCalCore::DateList &,
const QDate &preferredMonth = QDate() );
83 void datesSelected(
const KCalCore::DateList &,
const QDate &preferredMonth );
95 void weekClicked(
const QDate &week,
const QDate &preferredMonth );
112 const QDate &selectionLowerLimit,
113 const QDate &selectionUpperLimit );
116 const QDate &selectionLowerLimit,
117 const QDate &selectionUpperLimit );
138 void handleDatesSelectedSignal(
const KCalCore::DateList & );
139 void handleWeekClickedSignal(
const QDate &,
const QDate & );
149 QPair<QDate,QDate> dateLimits(
int monthOffset = 0 )
const;
159 Akonadi::ETMCalendar::Ptr mCalendar;
161 QList<KDateNavigator*> mExtraViews;
163 int mHorizontalCount;
166 bool mIgnoreNavigatorUpdates;
DateNavigatorContainer(QWidget *parent=0)
QDate monthOfNavigator(int navigatorIndex=0) const
Returns the month of the specified KDateNavigator.
void resizeEvent(QResizeEvent *)
void datesSelected(const KCalCore::DateList &, const QDate &preferredMonth)
void setHighlightMode(bool highlightEvents, bool highlightTodos, bool highlightJournals) const
void incidenceDropped(const Akonadi::Item &, const QDate &)
void newEventSignal(const QDate &)
void setCalendar(const Akonadi::ETMCalendar::Ptr &)
Associate date navigator with a calendar.
void incidenceDroppedMove(const Akonadi::Item &, const QDate &)
void newJournalSignal(const QDate &)
void nextMonthClicked(const QDate ¤tMonth, const QDate &selectionLowerLimit, const QDate &selectionUpperLimit)
~DateNavigatorContainer()
void connectNavigatorView(KDateNavigator *v)
void prevMonthClicked(const QDate ¤tMonth, const QDate &selectionLowerLimit, const QDate &selectionUpperLimit)
Signals that the previous month button has been clicked.
QSize minimumSizeHint() const
void yearSelected(int year)
void weekClicked(const QDate &week, const QDate &preferredMonth)
void monthSelected(int month)
void selectDates(const KCalCore::DateList &, const QDate &preferredMonth=QDate())
preferredMonth is useful when the datelist crosses months, if different from -1, it has the month tha...
void setBaseDates(const QDate &start)
void newTodoSignal(const QDate &)
void resizeAllContents()
Resizes all the child elements after the size of the widget changed.