tehthoams
I have a question.
Would right-clicking an element be a better method, to number 1 element?
__________
info:
menu for Mouse
qet/sources/diagramview.cpp @ line 1148
/**
* @brief DiagramView::contextMenuActions
* @return a list of actions currently available for a context menu.
*
*/
QList<QAction *> DiagramView::contextMenuActions() const
{
QList<QAction *> list;
if (QETDiagramEditor *qde = diagramEditor())
{
if (m_diagram->selectedItems().isEmpty())
{
list << m_paste_here;
list << m_separators.at(0);
list << qde->m_edit_diagram_properties;
list << qde->m_row_column_actions_group.actions();
}
else
{
list << qde->m_cut;
list << qde->m_copy;
list << m_multi_paste;
list << m_separators.at(0);
list << qde->m_conductor_reset;
list << m_separators.at(1);
list << qde->m_selection_actions_group.actions();
list << m_separators.at(2);
list << qde->m_depth_action_group->actions();
}
//Remove from the context menu the actions which are disabled.
const QList<QAction *> actions = list;
for(QAction *action : actions)
{
if (!action->isEnabled()) {
list.removeAll(action);
}
}
}
return list;
}
"qde->m_selection_actions_group.actions();" this seems to be the menu we need to adjust
qet/sources/qetdiagrameditor.cpp @ line 543
//Selections Actions (related to a selected item)
m_delete_selection = m_selection_actions_group.addAction( QET::Icons::EditDelete, tr("Supprimer") );
m_rotate_selection = m_selection_actions_group.addAction( QET::Icons::TransformRotate, tr("Pivoter") );
m_rotate_texts = m_selection_actions_group.addAction( QET::Icons::ObjectRotateRight, tr("Orienter les textes") );
m_find_element = m_selection_actions_group.addAction( QET::Icons::ZoomDraw, tr("Retrouver dans le panel") );
m_edit_selection = m_selection_actions_group.addAction( QET::Icons::ElementEdit, tr("Éditer l'item sélectionné") );
m_group_selected_texts = m_selection_actions_group.addAction(QET::Icons::textGroup, tr("Grouper les textes sélectionnés"));