digiKam
Digikam::TimeLineWidget Class Reference
+ Inheritance diagram for Digikam::TimeLineWidget:

Public Types

enum  ScaleMode { LinScale = 0 , LogScale }
 
enum  SelectionMode { Unselected = 0 , FuzzySelection , Selected }
 
enum  TimeUnit { Day = 0 , Week , Month , Year }
 

Public Slots

void slotBackward ()
 
void slotDatesHash (const QHash< QDateTime, int > &)
 
void slotForward ()
 
void slotNext ()
 
void slotPrevious ()
 
void slotResetSelection ()
 

Signals

void signalCursorPositionChanged ()
 
void signalDateMapChanged ()
 
void signalRefDateTimeChanged ()
 
void signalSelectionChanged ()
 

Public Member Functions

QDateTime cursorDateTime () const
 
int cursorInfo (QString &infoDate) const
 
int indexForCursorDateTime () const
 
int indexForRefDateTime () const
 
ScaleMode scaleMode () const
 
DateRangeList selectedDateRange (int &totalCount) const
 
void setCurrentIndex (int index)
 
void setCursorDateTime (const QDateTime &dateTime)
 
void setScaleMode (ScaleMode scaleMode)
 
void setSelectedDateRange (const DateRangeList &list)
 
void setTimeUnit (TimeUnit timeUnit)
 
 TimeLineWidget (QWidget *const parent=nullptr)
 
TimeUnit timeUnit () const
 
int totalIndex () const
 
 ~TimeLineWidget () override
 

Member Enumeration Documentation

◆ ScaleMode

Enumerator
LinScale 

Linear scale.

LogScale 

Logarithmic scale.

◆ SelectionMode

Enumerator
Unselected 

No selection.

FuzzySelection 

Partially selected.

Selected 

Fully selected.

◆ TimeUnit

Enumerator
Day 
Week 
Month 
Year 

Constructor & Destructor Documentation

◆ TimeLineWidget()

Digikam::TimeLineWidget::TimeLineWidget ( QWidget *const  parent = nullptr)
explicit

◆ ~TimeLineWidget()

Digikam::TimeLineWidget::~TimeLineWidget ( )
override

Member Function Documentation

◆ cursorDateTime()

QDateTime Digikam::TimeLineWidget::cursorDateTime ( ) const

Referenced by cursorInfo(), and setTimeUnit().

◆ cursorInfo()

int Digikam::TimeLineWidget::cursorInfo ( QString &  infoDate) const

References cursorDateTime(), Day, Month, Week, and Year.

◆ indexForCursorDateTime()

int Digikam::TimeLineWidget::indexForCursorDateTime ( ) const

◆ indexForRefDateTime()

int Digikam::TimeLineWidget::indexForRefDateTime ( ) const

◆ scaleMode()

TimeLineWidget::ScaleMode Digikam::TimeLineWidget::scaleMode ( ) const

Referenced by setScaleMode().

◆ selectedDateRange()

DateRangeList Digikam::TimeLineWidget::selectedDateRange ( int &  totalCount) const

Return a list of Date-Range based on selection performed on days-map

References Selected, and Digikam::startOfDay().

◆ setCurrentIndex()

void Digikam::TimeLineWidget::setCurrentIndex ( int  index)

◆ setCursorDateTime()

void Digikam::TimeLineWidget::setCursorDateTime ( const QDateTime &  dateTime)

◆ setScaleMode()

void Digikam::TimeLineWidget::setScaleMode ( ScaleMode  scaleMode)

References scaleMode().

◆ setSelectedDateRange()

void Digikam::TimeLineWidget::setSelectedDateRange ( const DateRangeList list)

References Selected.

◆ setTimeUnit()

void Digikam::TimeLineWidget::setTimeUnit ( TimeUnit  timeUnit)

◆ signalCursorPositionChanged

void Digikam::TimeLineWidget::signalCursorPositionChanged ( )
signal

Referenced by setCursorDateTime().

◆ signalDateMapChanged

void Digikam::TimeLineWidget::signalDateMapChanged ( )
signal

Referenced by slotDatesHash().

◆ signalRefDateTimeChanged

void Digikam::TimeLineWidget::signalRefDateTimeChanged ( )
signal

◆ signalSelectionChanged

void Digikam::TimeLineWidget::signalSelectionChanged ( )
signal

◆ slotBackward

void Digikam::TimeLineWidget::slotBackward ( )
slot

References Day, Month, Week, and Year.

◆ slotDatesHash

void Digikam::TimeLineWidget::slotDatesHash ( const QHash< QDateTime, int > &  datesStatHash)
slot

◆ slotForward

void Digikam::TimeLineWidget::slotForward ( )
slot

References Day, Month, Week, and Year.

◆ slotNext

void Digikam::TimeLineWidget::slotNext ( )
slot

Referenced by TimeLineWidget().

◆ slotPrevious

void Digikam::TimeLineWidget::slotPrevious ( )
slot

Referenced by TimeLineWidget().

◆ slotResetSelection

void Digikam::TimeLineWidget::slotResetSelection ( )
slot

◆ timeUnit()

TimeLineWidget::TimeUnit Digikam::TimeLineWidget::timeUnit ( ) const

Referenced by setTimeUnit().

◆ totalIndex()

int Digikam::TimeLineWidget::totalIndex ( ) const

The documentation for this class was generated from the following files: