git-svn-id: file:///svnroot/family-shop-mgr@22 26eb2498-383b-47a6-be48-5d6f36779e85
[family-shop-mgr] / code / family-shop-mgr / ListManagerView.cpp
index c9050a7..11a8f52 100644 (file)
@@ -41,6 +41,25 @@ ListManagerView::~ListManagerView()
 /*******************************************************************/\r
 void ListManagerView::updateActions()\r
 {\r
+    /*\r
     bool hasSelection = !this->selectionModel()->selection().isEmpty();\r
+    removeRowAction->setEnabled(hasSelection);\r
+    removeColumnAction->setEnabled(hasSelection);\r
 \r
+    bool hasCurrent = this->selectionModel()->currentIndex().isValid();\r
+    insertRowAction->setEnabled(hasCurrent);\r
+    insertColumnAction->setEnabled(hasCurrent);\r
+\r
+    if (hasCurrent)\r
+    {\r
+        this->closePersistentEditor(view->selectionModel()->currentIndex());\r
+\r
+        int row = this->selectionModel()->currentIndex().row();\r
+        int column = this->selectionModel()->currentIndex().column();\r
+        if (this->selectionModel()->currentIndex().parent().isValid())\r
+            statusBar()->showMessage(tr("Position: (%1,%2)").arg(row).arg(column));\r
+        else\r
+            statusBar()->showMessage(tr("Position: (%1,%2) in top level").arg(row).arg(column));\r
+    }\r
+    */\r
 }\r