1

Topic: Neue Funktion im Element-Editor?

Hallo zusammen,

Bin ich hier auch richtig, wenn es um Ideen für neue Features geht?

Beim Bearbeiten von etwas komplexeren Grafien könnte die Erweiterung
des Element-Editors recht nützlich sein:
Beim Bearbeiten eines Polygons (Pfad) fände ich es super-Hilfreich,
wenn man aus der Liste der Eckpunkte Zeilen entfernen und auch neue
Punkte ein- bzw. hinzufügen könnte.
(engl.: add and remove Points from list)


Zusätzlich ist mir ein Übersetzungsfehler aufgefallen. Wenn ein Element
keinen Anschluß hat, dann kommt die Meldung "Die Überprüfung dieses
Bauteils generierte 1 avertissement(s)<NewLine>:"
Wäre schön, wenn dort zukünftig "... generierte 1 Warnung(en):" auch ohne
Zeilenumbruch vor dem Doppelpunkt stünde...


Gruß
  plc-user

Post's attachments

Bildschirmfoto_2019-08-24_Warnung.png, 22.14 kb, 506 x 188
Bildschirmfoto_2019-08-24_Warnung.png 22.14 kb, 10 downloads since 2019-08-24 

2

Re: Neue Funktion im Element-Editor?

Hallo,

right click on polygon for add or delete point, if I understand your Google translated question well.
https://git.tuxfamily.org/qet/qet.git/c … 5baf5aa117 

3

Re: Neue Funktion im Element-Editor?

Salut Laurent,

I have noticed the possibility to do that with the mouse, but:
For example in the drawings I sent in the other thread there are several
polygons so close to each other that the mouse-pointer can't reach the
right node!
By pointing to the desired node of one polygon the polygon next to it is
marked with the surrounding blue border. And when I click, the "bordered"
polygon is selected...
That is why I (sometimes) prefer using keyboard and lists...

Additionally: The node selected in the list could be marked with another
colour to see what node is selected.

Another one: Is it possible to show the coordinates of the mouse-pointer?

Greetings
  plc-user

Post's attachments

Bildschirmfoto_2019-08-25_12-13-29.png, 84.21 kb, 1200 x 680
Bildschirmfoto_2019-08-25_12-13-29.png 84.21 kb, 17 downloads since 2019-08-25 

4

Re: Neue Funktion im Element-Editor?

Hallo Plc-user,

Another one: Is it possible to show the coordinates of the mouse-pointer?

Good idea. ;-)

5 (edited by Joshua 2019-08-25 20:31:18)

Re: Neue Funktion im Element-Editor?

Hello plc-user,

plc-user wrote:

By pointing to the desired node of one polygon the polygon next to it is
marked with the surrounding blue border. And when I click, the "bordered"
polygon is selected...

I think this is due because the Z coordinate of the unwanted polygon is greater than the other polygon, and so when you over these polygons, the polygon with the higher Z value is surrounded.
So send to backward the unwanted polygon.

For the rest, I add your request to the roadmap of qet 0.8.

6 (edited by plc-user 2019-08-25 21:27:50)

Re: Neue Funktion im Element-Editor?

Hello Joshua,

yes, the reason for this behavior is the Z-Order!

Just as an idea:
Could it be possible to look at this situation as "Node-Editing-Mode"?
If a polygon is selected you enter this Editing-Mode and before you can
select another item you have to de-select the polygon by clicking into
free space.
This special mode wouldn't be necessary, if the Node-list was editable... nomicons/wink

I'll wait and see, what your decision is!

Greetings
  plc-user

7

Re: Neue Funktion im Element-Editor?

Hello Joshua,

Another small one:
With the mouse you move elements by 10 points, by using the Cursor-Keys
the movement is done by 1 point.
Do you think it is possible to use for example <Ctrl> or <Shift> together
with the Cursor-Keys to reduce the step-size to 0.1 ?

Greetings
  plc-user

8

Re: Neue Funktion im Element-Editor?

Do you think it is possible to use for example <Ctrl> or <Shift> together 
with the Cursor-Keys to reduce the step-size to 0.1 ?

Is a problem if directly Cursor-Keys reduce the step-size to 0.1 whitout <Ctrl> or <Shift> keys?
With the mouse you move elements by 10 points or by 1 point with <Ctrl>.

--- sources/editor/elementscene.cpp
+++ sources/editor/elementscene.cpp
@@ -213,13 +214,13 @@ void ElementScene::keyPressEvent(QKeyEvent *event)
             QPointF p = qgo->pos();
             int k = event->key();
             if(k == Qt::Key_Right)
-                p.rx() += 1;
+                p.rx() += 0.1;
             else if (k == Qt::Key_Left)
-                p.rx() -= 1;
+                p.rx() -= 0.1;
             else if (k == Qt::Key_Up)
-                p.ry() -= 1;
+                p.ry() -= 0.1;
             else if (k == Qt::Key_Down)
-                p.ry() += 1;
+                p.ry() += 0.1;
 
             qgo->setPos(p);
             QPropertyUndoCommand *undo = new QPropertyUndoCommand(qgo, "pos", QVariant(original_pos), QVariant(p));

9

Re: Neue Funktion im Element-Editor?

plc-user wrote:

Zusätzlich ist mir ein Übersetzungsfehler aufgefallen. Wenn ein Element
keinen Anschluß hat, dann kommt die Meldung "Die Überprüfung dieses
Bauteils generierte 1 avertissement(s)<NewLine>:"
Wäre schön, wenn dort zukünftig "... generierte 1 Warnung(en):" auch ohne
Zeilenumbruch vor dem Doppelpunkt stünde...

Danke für die Rückmeldung.
Ich hoffe die Übersetzung ist jetzt richtig von mir eingegeben worden. Bei Gelegenheit nachprüfen!

10

Re: Neue Funktion im Element-Editor?

Hallo zusammen!

Thank you for the quick reaction!  nomicons/smile

@Laurent:
Three step-sizes would be more comfortable, but it wouldn't be a
real problem if the step-size would be 0.1

My knowledge of QT-Programming is very limited - a quick search found
this link about "enum Qt::KeyboardModifier" and "flags Qt::KeyboardModifiers":
https://doc.qt.io/qt-5/qt.html#KeyboardModifier-enum


@Nuri:
Schaue ich mir an, wenn das nächste Debian-Package verfügbar ist!
Danke!


Greetings
  plc-user

11

Re: Neue Funktion im Element-Editor?

@Plc-user,
added.
https://git.tuxfamily.org/qet/qet.git/c … ee97c7f633 

12

Re: Neue Funktion im Element-Editor?

Now that's what I call fast! nomicons/smile 

Merci beaucoup, Laurent!

13

Re: Neue Funktion im Element-Editor?

You can try it now, all packages on all platforms are availables. nomicons/wink

14

Re: Neue Funktion im Element-Editor?

  https://git.tuxfamily.org/qet/qet.git/c … 087f792595 

15 (edited by plc-user 2019-08-26 14:13:00)

Re: Neue Funktion im Element-Editor?

Already downloaded Debian-Packages!

Works really fine!  nomicons/smile 

Thanks again!

16 (edited by plc-user 2019-09-04 10:58:58)

Re: Neue Funktion im Element-Editor?

Hello everybody!

@joshua:
The possibility to add/delete nodes from the polygon
points-list works very fine! Thank you!  nomicons/smile

Only the (german) translation needs adjustment:
We could use the same texts as with mouse-editing...

A short notice to the list of parts:
EDIT: Deleted this part of post!

Thanks again for your great work!  nomicons/smile

Greetings
  plc-user