25 #ifndef DIGIKAM_TIME_LINE_WIDGET_H
26 #define DIGIKAM_TIME_LINE_WIDGET_H
33 #include <QPaintEvent>
34 #include <QWheelEvent>
35 #include <QMouseEvent>
115 void slotThemeChanged();
119 QDateTime prevDateTime(
const QDateTime& dt)
const;
120 QDateTime nextDateTime(
const QDateTime& dt)
const;
122 int maxCount()
const;
123 int indexForDateTime(
const QDateTime& date)
const;
124 int statForDateTime(
const QDateTime& dt,
SelectionMode& selected)
const;
125 void setRefDateTime(
const QDateTime& dateTime);
127 void paintEvent(QPaintEvent*)
override;
128 void wheelEvent(QWheelEvent*)
override;
130 void mousePressEvent(QMouseEvent*)
override;
131 void mouseMoveEvent(QMouseEvent*)
override;
132 void mouseReleaseEvent(QMouseEvent*)
override;
134 void keyPressEvent(QKeyEvent *e)
override;
135 void keyReleaseEvent(QKeyEvent *)
override;
136 void keyScroll(
bool isScrollNext);
138 QDateTime dateTimeForPoint(
const QPoint& pt,
139 bool& isOnSelectionArea);
140 QDateTime firstDayOfWeek(
int year,
int weekNumber)
const;
142 void resetSelection();
143 void setDateTimeSelected(
const QDateTime& dt,
145 void setDaysRangeSelection(
const QDateTime& dts,
146 const QDateTime& dte,
148 SelectionMode checkSelectionForDaysRange(
const QDateTime& dts,
149 const QDateTime& dte)
const;
150 void updateWeekSelection(
const QDateTime& dts,
151 const QDateTime& dte);
152 void updateMonthSelection(
const QDateTime& dts,
153 const QDateTime& dte);
154 void updateYearSelection(
const QDateTime& dts,
155 const QDateTime& dte);
156 void updateAllSelection();
161 int calculateTop(
int& val)
const;
162 void paintItem(QPainter& p,
163 const QRect& barRect,
164 const QDateTime& ref,
165 const int& separatorPosition,
166 const QColor& dateColor,
167 const QColor& subDateColor);
169 void handleSelectionRange(QDateTime& selEndDateTime);
Definition: piwigotalker.h:48
Definition: datefolderview.cpp:43