Topic: Autonumbering UI Concept

Greetings!

I'm well into my first project with QElectroTech and appreciate your work so much!

I wanted to share a concept for autonumbering that could help streamline the workflow. 
https://i.ibb.co/RHSk0sT/Autonumber-Concept.png

Is there the ability to do something like this already in the program?

Re: Autonumbering UI Concept

ad 0.8 dev

Project =>
Project properties =>
Auto Numbering =>

Is the Auto Numbering of QElectroTech.

What do you want to achieve,
- that it is easier for newcomers?
- another place to set Auto Numbering?
- ...

Do you already have a working example?
then maybe this can be placed in the code.

Re: Autonumbering UI Concept

Problem I'm trying to solve:
   It seems auto-numbering only works when dragging in a new element without the ability to change it afterwards.   I frequently find myself accidentally using the wrong numbering scheme causing the numbering sequence to index unintentionally.  The next number to be used is only visible in the menu several screens away, which is cumbersome to manage if creating many elements.  Lastly I find I frequently need to renumber elements due the design evolving in the process with the only way to do so is deleting and re-adding the element, then recreating the wiring connections.

Hoping to Achieve:
1. Another place to set autonumbering with quick access and visibility
2. Ability to re-number an already placed element by clicking the renumber tool and then clicking the element to be re-numbered.

I was hoping to contribute a useful concept if the team, or if I may be mis-understanding the auto-numbering tool as it exists and there is already a way to re-number existing elements.

4 (edited by De-Backer 2020-06-30 21:32:22)

Re: Autonumbering UI Concept

well it's in the code, but I'm also not successful in starting the auto-numbering on element already on the schematic.
But it is possible that this works with the correct input.

I'll look further tomorrow.

If in the meantime someone knows if this works please leave and message.

(it seems that "Label formula" is not being updated.)

Re: Autonumbering UI Concept

Also adding a comment from Scorpio that adds to this conversation in another thread:

He mentioned he does not use the auto-numbering because he is often working updating existing projects, and does not want to change all the numbers everywhere.  I thought that the update a specific item tool would help his process as well, as he would be able to make use of the feature, but only apply it specifically where he would like to.

I am not a software expert, but i did download the code and thought I saw provisions for updating as you described De-Backer!  I appreciate you checking into it!

Re: Autonumbering UI Concept

De-Backer wrote:

I'll look further tomorrow.

Well, Auto Numbering hasn't changed since 0.7.

tehthoams wrote:

Hoping to Achieve:
1. Another place to set autonumbering with quick access and visibility
2. Ability to re-number an already placed element by clicking the renumber tool and then clicking the element to be re-numbered.

1. this can be coded.
2. besides writing the code, there is the implantation of the function, and how it should look/work.

7 (edited by De-Backer 2020-07-03 17:36:57)

Re: Autonumbering UI Concept

tehthoams wrote:

I am not a software expert

Just like me, let's see what we need to do.
1. make autonumbering value visible (where is it in the code?)
    - qet/sources/autoNum/assignvariables.h
    - ...
2. understand how autonumbering works.
3. set the autonumbering value in qelectrotech.
4. suggest a good place for the adjustment (first post)
5. get permission to write it in the code.

8 (edited by De-Backer 2020-07-04 22:18:50)

Re: Autonumbering UI Concept

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"));