changeset 743:7b1d30af4b38

Add slots for property stack tab-bar context menus
author Chris Cannam
date Wed, 25 Mar 2020 12:09:13 +0000
parents 75390b1ebd2c
children 36772d79cf44 771ec060c1d2
files framework/MainWindowBase.cpp framework/MainWindowBase.h
diffstat 2 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp	Tue Mar 24 13:39:05 2020 +0000
+++ b/framework/MainWindowBase.cpp	Wed Mar 25 12:09:13 2020 +0000
@@ -240,8 +240,12 @@
             this, SLOT(currentPaneChanged(Pane *)));
     connect(m_paneStack, SIGNAL(currentLayerChanged(Pane *, Layer *)),
             this, SLOT(currentLayerChanged(Pane *, Layer *)));
-    connect(m_paneStack, SIGNAL(rightButtonMenuRequested(Pane *, QPoint)),
-            this, SLOT(rightButtonMenuRequested(Pane *, QPoint)));
+    connect(m_paneStack, SIGNAL(paneRightButtonMenuRequested(Pane *, QPoint)),
+            this, SLOT(paneRightButtonMenuRequested(Pane *, QPoint)));
+    connect(m_paneStack, SIGNAL(panePropertiesRightButtonMenuRequested(Pane *, QPoint)),
+            this, SLOT(panePropertiesRightButtonMenuRequested(Pane *, QPoint)));
+    connect(m_paneStack, SIGNAL(layerPropertiesRightButtonMenuRequested(Pane *, Layer *, QPoint)),
+            this, SLOT(layerPropertiesRightButtonMenuRequested(Pane *, Layer *, QPoint)));
     connect(m_paneStack, SIGNAL(contextHelpChanged(const QString &)),
             this, SLOT(contextHelpChanged(const QString &)));
     connect(m_paneStack, SIGNAL(paneAdded(Pane *)),
--- a/framework/MainWindowBase.h	Tue Mar 24 13:39:05 2020 +0000
+++ b/framework/MainWindowBase.h	Wed Mar 25 12:09:13 2020 +0000
@@ -364,7 +364,9 @@
     virtual void alignmentComplete(ModelId);
     virtual void alignmentFailed(QString) = 0;
 
-    virtual void rightButtonMenuRequested(Pane *, QPoint point) = 0;
+    virtual void paneRightButtonMenuRequested(Pane *, QPoint point) = 0;
+    virtual void panePropertiesRightButtonMenuRequested(Pane *, QPoint point) = 0;
+    virtual void layerPropertiesRightButtonMenuRequested(Pane *, Layer *, QPoint point) = 0;
 
     virtual void paneAdded(Pane *) = 0;
     virtual void paneHidden(Pane *) = 0;