From a29eff954652f8dd2e104d6070750e7922fc3fa5 Mon Sep 17 00:00:00 2001
From: Evgenii Tagiltsev <tagiltsev.ebgenii@gmail.com>
Date: Thu, 25 Jul 2019 17:34:54 +0200
Subject: [PATCH] [+] added menu and frame for field "description"

---
 .../DapUiQmlWidgetNodeNetworkExplorer.qml     | 68 +++++++++++++++----
 1 file changed, 56 insertions(+), 12 deletions(-)

diff --git a/KelvinDashboardGUI/DapUiQmlWidgetNodeNetworkExplorer.qml b/KelvinDashboardGUI/DapUiQmlWidgetNodeNetworkExplorer.qml
index a04e465b8..f9f2d07c7 100644
--- a/KelvinDashboardGUI/DapUiQmlWidgetNodeNetworkExplorer.qml
+++ b/KelvinDashboardGUI/DapUiQmlWidgetNodeNetworkExplorer.qml
@@ -4,19 +4,63 @@ import QtQuick.Dialogs 1.2
 import NodeNetworkExplorer 1.0
 
 Page {
-    Flickable {
-        id: dapExplorer
+    Row {
         anchors.fill: parent
-        contentWidth: dapGraphWidget.width * dapGraphWidget.scale
-        contentHeight: dapGraphWidget.height * dapGraphWidget.scale
-        contentY: dapGraphWidget.height / 2 - height / 2
-        contentX: dapGraphWidget.width / 2 - width / 2
-
-        DapUiQmlWidgetNodeNetwork {
-            id: dapGraphWidget
-            scale: 0.6
-            data: dapNodeNetworkModel.data
-            transformOrigin: Item.TopLeft
+
+        Flickable {
+            id: dapExplorer
+            anchors.fill: parent
+            contentWidth: dapGraphWidget.width * dapGraphWidget.scale
+            contentHeight: dapGraphWidget.height * dapGraphWidget.scale
+            contentY: dapGraphWidget.height / 2 - height / 2
+            contentX: dapGraphWidget.width / 2 - width / 2
+
+            DapUiQmlWidgetNodeNetwork {
+                id: dapGraphWidget
+                scale: 0.6
+                transformOrigin: Item.TopLeft
+                model: dapNodeNetworkModel
+
+                Menu {
+                    id: dapNodeNetworkMenu
+                    MenuItem {
+                        id: dapMenuItemDetails
+                        text: "Show detalies"
+                        onTriggered: {
+                            dapNodeNetworkDescription.visible = true;
+                        }
+                    }
+
+                    MenuItem {
+                        id: dapMenuItemStatus
+                        text: "Set status"
+                        onTriggered: {
+
+                        }
+                    }
+                }
+
+                MouseArea {
+                    anchors.fill: parent;
+                    acceptedButtons: Qt.RightButton
+                    onReleased: {
+                        dapNodeNetworkMenu.x = mouseX;
+                        dapNodeNetworkMenu.y = mouseY;
+                        dapNodeNetworkMenu.visible = true;
+                    }
+                }
+            }
         }
+
+
+        Rectangle {
+            id: dapNodeNetworkDescription
+            width: 300
+//            anchors.top: parent.top
+//            anchors.right: parent.right
+//            anchors.bottom: parent.bottom
+            visible: false
+        }
+
     }
 }
-- 
GitLab