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.
This commit is contained in:
Eberhard Graether
2017-05-09 17:14:43 +02:00
parent bb8c2ae5a9
commit f4caacacf2
30 changed files with 668 additions and 65 deletions
+10
View File
@@ -7,6 +7,7 @@
#include <QMainWindow>
#include "data/search/SearchMatch.h"
#include "qt/utility/QtThreadedFunctor.h"
#include "qt/window/QtWindowStack.h"
@@ -69,6 +70,8 @@ public:
void forceEnterLicense(bool expired);
void updateHistoryMenu(const std::vector<SearchMatch>& history);
protected:
bool event(QEvent* event);
void keyPressEvent(QKeyEvent* event);
@@ -126,6 +129,8 @@ private slots:
void showBookmarkCreator();
void showBookmarkBrowser();
void openHistoryAction();
private:
struct DockWidget
{
@@ -138,6 +143,7 @@ private:
void setupEditMenu();
void setupProjectMenu();
void setupViewMenu();
void setupHistoryMenu();
void setupBookmarksMenu();
void setupHelpMenu();
@@ -153,6 +159,10 @@ private:
std::vector<DockWidget> m_dockWidgets;
QMenu* m_viewMenu;
QAction* m_viewSeparator;
QMenu* m_historyMenu;
std::vector<SearchMatch> m_history;
QAction** m_recentProjectAction;
QAction* m_showTitleBarsAction;