mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
34 lines
698 B
C++
34 lines
698 B
C++
#ifndef YACREADER_HISTORY_CONTROLLER_H
|
|
#define YACREADER_HISTORY_CONTROLLER_H
|
|
|
|
#include <QObject>
|
|
|
|
#include <QModelIndex>
|
|
|
|
class YACReaderHistoryController : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit YACReaderHistoryController(QObject *parent = 0);
|
|
|
|
signals:
|
|
void enabledForward(bool enabled);
|
|
void enabledBackward(bool enabled);
|
|
void modelIndexSelected(QModelIndex mi);
|
|
|
|
public slots:
|
|
void clear();
|
|
void backward();
|
|
void forward();
|
|
void updateHistory(const QModelIndex & mi);
|
|
QModelIndex lastIndex();
|
|
QModelIndex currentIndex();
|
|
|
|
protected:
|
|
int currentFolderNavigation;
|
|
QList<QModelIndex> history;
|
|
|
|
};
|
|
|
|
#endif // YACREADER_HISTORY_CONTROLLER_H
|