* holding down back or forward button shows list of current back-forward stack * added narrow button between back and forward to show the list * added History menu * moved back and forward actions to History menu * show chronological list of recently active symbols in History menu bug id = 151 fortune cookie message = Dein Geschäft wird gut laufen und expandieren.
37 lines
807 B
C++
37 lines
807 B
C++
#ifndef QT_UNDO_REDO_VIEW_H
|
|
#define QT_UNDO_REDO_VIEW_H
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include "component/view/UndoRedoView.h"
|
|
#include "qt/element/QtUndoRedo.h"
|
|
#include "qt/utility/QtThreadedFunctor.h"
|
|
|
|
class QtUndoRedoView : public UndoRedoView
|
|
{
|
|
public:
|
|
QtUndoRedoView(ViewLayout* viewLayout);
|
|
~QtUndoRedoView();
|
|
|
|
// View implementation
|
|
virtual void createWidgetWrapper();
|
|
virtual void initView();
|
|
virtual void refreshView();
|
|
|
|
// UndoRedo view implementation
|
|
virtual void setRedoButtonEnabled(bool enabled);
|
|
virtual void setUndoButtonEnabled(bool enabled);
|
|
|
|
virtual void updateHistory(const std::vector<SearchMatch>& searchMatches, size_t currentIndex);
|
|
|
|
private:
|
|
void setStyleSheet();
|
|
|
|
QtThreadedLambdaFunctor m_onQtThread;
|
|
|
|
QtUndoRedo* m_widget;
|
|
};
|
|
|
|
#endif // QT_UNDO_REDO_VIEW_H
|