ui: renamed undo&redo to back&forward, control back&forward via mouse and backspace

* the key codes for mouse back and forward buttons can be defined in the ApplicationSettings
* fixed only left mouse button allowed for graph interactions
This commit is contained in:
Eberhard Graether
2015-12-16 16:22:10 +01:00
parent 103c8242f5
commit 82a16341d8
7 changed files with 100 additions and 6 deletions
+22 -1
View File
@@ -33,7 +33,26 @@ private:
View* m_view;
};
class QtMainWindow: public QMainWindow
class MouseReleaseFilter
: public QObject
{
Q_OBJECT
public:
MouseReleaseFilter(QObject* parent);
protected:
bool eventFilter(QObject* obj, QEvent* event);
private:
size_t m_backButton;
size_t m_forwardButton;
};
class QtMainWindow
: public QMainWindow
{
Q_OBJECT
@@ -54,6 +73,7 @@ public:
protected:
bool event(QEvent* event);
void keyPressEvent(QKeyEvent* event);
public slots:
void pushWindow(QWidget* window);
@@ -88,6 +108,7 @@ public slots:
void toggleView(View* view, bool fromMenu);
void handleEscapeShortcut();
void updateRecentProjectMenu();
static void setWindowSettingsPath(const std::string& windowSettingsPath);