Files
Sourcetrail/src/lib_gui/qt/view/QtUndoRedoView.h
T
Eberhard Graether f4caacacf2 ui: Added history of last active symbols to UI and menu (issue 151)
* 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.
2017-05-09 17:14:43 +02:00

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