Skip to content

Commit

Permalink
add tangent snap
Browse files Browse the repository at this point in the history
  • Loading branch information
qcad committed Dec 10, 2015
1 parent 1322143 commit 3692f37
Show file tree
Hide file tree
Showing 73 changed files with 569 additions and 23 deletions.
10 changes: 10 additions & 0 deletions scripts/Snap/SnapAuto/PreferencesPage.ui
Expand Up @@ -64,6 +64,16 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="Tangential">
<property name="text">
<string>Tangential</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="ReferencePoints">
<property name="text">
Expand Down
Binary file modified scripts/Snap/SnapAuto/ts/SnapAuto_de.qm
Binary file not shown.
5 changes: 5 additions & 0 deletions scripts/Snap/SnapAuto/ts/SnapAuto_de.ts
Expand Up @@ -33,6 +33,11 @@
<source>Perpendicular</source>
<translation>Lotrechte</translation>
</message>
<message>
<location line="+10"/>
<source>Tangential</source>
<translation>Tangential</translation>
</message>
<message>
<location line="+10"/>
<source>Reference points</source>
Expand Down
Binary file modified scripts/Snap/SnapAuto/ts/SnapAuto_es.qm
Binary file not shown.
5 changes: 5 additions & 0 deletions scripts/Snap/SnapAuto/ts/SnapAuto_es.ts
Expand Up @@ -33,6 +33,11 @@
<source>Perpendicular</source>
<translation>Perpendicular</translation>
</message>
<message>
<location line="+10"/>
<source>Tangential</source>
<translation>Tangencial</translation>
</message>
<message>
<location line="+10"/>
<source>Reference points</source>
Expand Down
5 changes: 5 additions & 0 deletions scripts/Snap/SnapAuto/ts/SnapAuto_fi.ts
Expand Up @@ -33,6 +33,11 @@
<source>Perpendicular</source>
<translation>Kohtisuora</translation>
</message>
<message>
<location line="+10"/>
<source>Tangential</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+10"/>
<source>Reference points</source>
Expand Down
Binary file modified scripts/Snap/SnapAuto/ts/SnapAuto_fr.qm
Binary file not shown.
5 changes: 5 additions & 0 deletions scripts/Snap/SnapAuto/ts/SnapAuto_fr.ts
Expand Up @@ -33,6 +33,11 @@
<source>Perpendicular</source>
<translation>Perpendiculaire</translation>
</message>
<message>
<location line="+10"/>
<source>Tangential</source>
<translation>Tangentiel</translation>
</message>
<message>
<location line="+10"/>
<source>Reference points</source>
Expand Down
5 changes: 5 additions & 0 deletions scripts/Snap/SnapAuto/ts/SnapAuto_hr.ts
Expand Up @@ -33,6 +33,11 @@
<source>Perpendicular</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+10"/>
<source>Tangential</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+10"/>
<source>Reference points</source>
Expand Down
5 changes: 5 additions & 0 deletions scripts/Snap/SnapAuto/ts/SnapAuto_hu.ts
Expand Up @@ -33,6 +33,11 @@
<source>Perpendicular</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+10"/>
<source>Tangential</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+10"/>
<source>Reference points</source>
Expand Down
Binary file modified scripts/Snap/SnapAuto/ts/SnapAuto_it.qm
Binary file not shown.
5 changes: 5 additions & 0 deletions scripts/Snap/SnapAuto/ts/SnapAuto_it.ts
Expand Up @@ -33,6 +33,11 @@
<source>Perpendicular</source>
<translation>Perpendicolare</translation>
</message>
<message>
<location line="+10"/>
<source>Tangential</source>
<translation>Tangenziale</translation>
</message>
<message>
<location line="+10"/>
<source>Reference points</source>
Expand Down
5 changes: 5 additions & 0 deletions scripts/Snap/SnapAuto/ts/SnapAuto_ja.ts
Expand Up @@ -33,6 +33,11 @@
<source>Perpendicular</source>
<translation>垂直</translation>
</message>
<message>
<location line="+10"/>
<source>Tangential</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+10"/>
<source>Reference points</source>
Expand Down
5 changes: 5 additions & 0 deletions scripts/Snap/SnapAuto/ts/SnapAuto_nl.ts
Expand Up @@ -33,6 +33,11 @@
<source>Perpendicular</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+10"/>
<source>Tangential</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+10"/>
<source>Reference points</source>
Expand Down
5 changes: 5 additions & 0 deletions scripts/Snap/SnapAuto/ts/SnapAuto_pl.ts
Expand Up @@ -33,6 +33,11 @@
<source>Perpendicular</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+10"/>
<source>Tangential</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+10"/>
<source>Reference points</source>
Expand Down
Binary file modified scripts/Snap/SnapAuto/ts/SnapAuto_pt.qm
Binary file not shown.
5 changes: 5 additions & 0 deletions scripts/Snap/SnapAuto/ts/SnapAuto_pt.ts
Expand Up @@ -33,6 +33,11 @@
<source>Perpendicular</source>
<translation>Perpendicular</translation>
</message>
<message>
<location line="+10"/>
<source>Tangential</source>
<translation>Tangencial</translation>
</message>
<message>
<location line="+10"/>
<source>Reference points</source>
Expand Down
5 changes: 5 additions & 0 deletions scripts/Snap/SnapAuto/ts/SnapAuto_ru.ts
Expand Up @@ -33,6 +33,11 @@
<source>Perpendicular</source>
<translation>Перпендикуляр</translation>
</message>
<message>
<location line="+10"/>
<source>Tangential</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+10"/>
<source>Reference points</source>
Expand Down
5 changes: 5 additions & 0 deletions scripts/Snap/SnapAuto/ts/SnapAuto_sk.ts
Expand Up @@ -33,6 +33,11 @@
<source>Perpendicular</source>
<translation>Kolmica</translation>
</message>
<message>
<location line="+10"/>
<source>Tangential</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+10"/>
<source>Reference points</source>
Expand Down
5 changes: 5 additions & 0 deletions scripts/Snap/SnapAuto/ts/SnapAuto_sl.ts
Expand Up @@ -33,6 +33,11 @@
<source>Perpendicular</source>
<translation>Pravokotno</translation>
</message>
<message>
<location line="+10"/>
<source>Tangential</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+10"/>
<source>Reference points</source>
Expand Down
5 changes: 5 additions & 0 deletions scripts/Snap/SnapAuto/ts/SnapAuto_sv.ts
Expand Up @@ -33,6 +33,11 @@
<source>Perpendicular</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+10"/>
<source>Tangential</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+10"/>
<source>Reference points</source>
Expand Down
5 changes: 5 additions & 0 deletions scripts/Snap/SnapAuto/ts/SnapAuto_zh_CN.ts
Expand Up @@ -33,6 +33,11 @@
<source>Perpendicular</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+10"/>
<source>Tangential</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+10"/>
<source>Reference points</source>
Expand Down
6 changes: 6 additions & 0 deletions scripts/Widgets/Viewport/Viewport.js
Expand Up @@ -325,6 +325,9 @@ EventHandler.prototype.updateSnapInfo = function(painter, snap, restriction) {
posRestriction = restriction.getLastSnap();
}

qDebug("status: ", snap.getStatus());
qDebug("status tan: ", RSnap.Tangential);

var text = "";
switch (snap.getStatus()) {
// case RSnap.Free:
Expand All @@ -342,6 +345,9 @@ EventHandler.prototype.updateSnapInfo = function(painter, snap, restriction) {
case RSnap.Perpendicular:
text = qsTr("Perpendicular");
break;
case RSnap.Tangential:
text = qsTr("Tangential");
break;
case RSnap.Center:
text = qsTr("Center");
break;
Expand Down
Binary file modified scripts/Widgets/Viewport/ts/Viewport_de.qm
Binary file not shown.
7 changes: 6 additions & 1 deletion scripts/Widgets/Viewport/ts/Viewport_de.ts
Expand Up @@ -153,7 +153,7 @@
<translation>Importiere URL: </translation>
</message>
<message>
<location line="+65"/>
<location line="+68"/>
<source>Grid</source>
<translation>Raster</translation>
</message>
Expand All @@ -172,6 +172,11 @@
<source>Perpendicular</source>
<translation>Lotrecht</translation>
</message>
<message>
<location line="+3"/>
<source>Tangential</source>
<translation>Tangential</translation>
</message>
<message>
<location line="+3"/>
<source>Center</source>
Expand Down
Binary file modified scripts/Widgets/Viewport/ts/Viewport_es.qm
Binary file not shown.
7 changes: 6 additions & 1 deletion scripts/Widgets/Viewport/ts/Viewport_es.ts
Expand Up @@ -165,7 +165,7 @@ Selecciona entidades solas</translatorcomment>
<translation>Importación de URL: </translation>
</message>
<message>
<location line="+65"/>
<location line="+68"/>
<source>Grid</source>
<translation>Rejilla</translation>
</message>
Expand All @@ -188,6 +188,11 @@ Selecciona entidades solas</translatorcomment>
Perpendicular</translatorcomment>
<translation>Perpendicular</translation>
</message>
<message>
<location line="+3"/>
<source>Tangential</source>
<translation>Tangencial</translation>
</message>
<message>
<location line="+3"/>
<source>Center</source>
Expand Down
7 changes: 6 additions & 1 deletion scripts/Widgets/Viewport/ts/Viewport_fi.ts
Expand Up @@ -109,7 +109,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<location line="+65"/>
<location line="+68"/>
<source>Grid</source>
<translation>Ruudukko</translation>
</message>
Expand All @@ -128,6 +128,11 @@
<source>Perpendicular</source>
<translation>Kohtisuora</translation>
</message>
<message>
<location line="+3"/>
<source>Tangential</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+3"/>
<source>Center</source>
Expand Down
Binary file modified scripts/Widgets/Viewport/ts/Viewport_fr.qm
Binary file not shown.
7 changes: 6 additions & 1 deletion scripts/Widgets/Viewport/ts/Viewport_fr.ts
Expand Up @@ -165,7 +165,7 @@ Points uniques</translatorcomment>
<translation>Importation URL: </translation>
</message>
<message>
<location line="+65"/>
<location line="+68"/>
<source>Grid</source>
<translation>Grille</translation>
</message>
Expand All @@ -185,6 +185,11 @@ Points uniques</translatorcomment>
<translatorcomment>--google--</translatorcomment>
<translation>Perpendiculairement</translation>
</message>
<message>
<location line="+3"/>
<source>Tangential</source>
<translation>Tangentiel</translation>
</message>
<message>
<location line="+3"/>
<source>Center</source>
Expand Down
7 changes: 6 additions & 1 deletion scripts/Widgets/Viewport/ts/Viewport_hr.ts
Expand Up @@ -109,7 +109,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<location line="+65"/>
<location line="+68"/>
<source>Grid</source>
<translation type="unfinished"></translation>
</message>
Expand All @@ -128,6 +128,11 @@
<source>Perpendicular</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+3"/>
<source>Tangential</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+3"/>
<source>Center</source>
Expand Down
7 changes: 6 additions & 1 deletion scripts/Widgets/Viewport/ts/Viewport_hu.ts
Expand Up @@ -109,7 +109,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<location line="+65"/>
<location line="+68"/>
<source>Grid</source>
<translation type="unfinished"></translation>
</message>
Expand All @@ -128,6 +128,11 @@
<source>Perpendicular</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+3"/>
<source>Tangential</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+3"/>
<source>Center</source>
Expand Down
Binary file modified scripts/Widgets/Viewport/ts/Viewport_it.qm
Binary file not shown.
7 changes: 6 additions & 1 deletion scripts/Widgets/Viewport/ts/Viewport_it.ts
Expand Up @@ -165,7 +165,7 @@ Seleziona Singolo Oggetto</translatorcomment>
<translation>Importazione URL: </translation>
</message>
<message>
<location line="+65"/>
<location line="+68"/>
<source>Grid</source>
<translation>Griglia</translation>
</message>
Expand All @@ -189,6 +189,11 @@ Perpendicolare
Seleziona il piano perpendicolare alla vista corrente</translatorcomment>
<translation>Perpendicolare</translation>
</message>
<message>
<location line="+3"/>
<source>Tangential</source>
<translation>Tangenziale</translation>
</message>
<message>
<location line="+3"/>
<source>Center</source>
Expand Down
7 changes: 6 additions & 1 deletion scripts/Widgets/Viewport/ts/Viewport_ja.ts
Expand Up @@ -149,7 +149,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<location line="+65"/>
<location line="+68"/>
<source>Grid</source>
<translation>グリッド</translation>
</message>
Expand All @@ -168,6 +168,11 @@
<source>Perpendicular</source>
<translation>垂線</translation>
</message>
<message>
<location line="+3"/>
<source>Tangential</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+3"/>
<source>Center</source>
Expand Down

0 comments on commit 3692f37

Please sign in to comment.