[qet] [2172] Add action autonumbering to contextmenu |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2172
Author: scorpio810
Date: 2013-05-20 21:48:53 +0200 (Mon, 20 May 2013)
Log Message:
-----------
Add action autonumbering to contextmenu
Modified Paths:
--------------
trunk/sources/diagramview.cpp
trunk/sources/qetdiagrameditor.cpp
Modified: trunk/sources/diagramview.cpp
===================================================================
--- trunk/sources/diagramview.cpp 2013-05-20 19:29:10 UTC (rev 2171)
+++ trunk/sources/diagramview.cpp 2013-05-20 19:48:53 UTC (rev 2172)
@@ -1282,6 +1282,7 @@
context_menu -> addAction(qde -> find_element);
context_menu -> addAction(qde -> edit_element);
context_menu -> addAction(qde -> selection_prop);
+ context_menu -> addAction(qde -> prj_diagramNum);
}
// affiche le menu contextuel
Modified: trunk/sources/qetdiagrameditor.cpp
===================================================================
--- trunk/sources/qetdiagrameditor.cpp 2013-05-20 19:29:10 UTC (rev 2171)
+++ trunk/sources/qetdiagrameditor.cpp 2013-05-20 19:48:53 UTC (rev 2172)
@@ -1198,6 +1198,7 @@
delete_selection -> setEnabled(editable_diagram && deletable_items);
rotate_selection -> setEnabled(editable_diagram && dv -> diagram() -> canRotateSelection());
selection_prop -> setEnabled(deletable_items);
+ prj_diagramNum -> setEnabled(editable_diagram && selected_conductors_count);
// actions ayant besoin de textes selectionnes
bool selected_texts = dv ? (dv -> diagram() -> selectedTexts().count()) : 0;