mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 15:04:40 -04:00
moved history navigation to its own class
This commit is contained in:
31
YACReaderLibrary/yacreader_history_controller.h
Normal file
31
YACReaderLibrary/yacreader_history_controller.h
Normal file
@ -0,0 +1,31 @@
|
||||
#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);
|
||||
|
||||
protected:
|
||||
int currentFolderNavigation;
|
||||
QList<QModelIndex> history;
|
||||
|
||||
};
|
||||
|
||||
#endif // YACREADER_HISTORY_CONTROLLER_H
|
Reference in New Issue
Block a user