Skip to content

Commit a7c95b7

Browse files
committed
UBCompassTool upgrade
Added new functionality to the compass. 1. Position and size normalization parameters. These parameters allow to align the position and size of the compass to the gridSize. Parameters are only enabled when the pageBackground is crossed. 2. Right angle rotation. This functionality allowsu to turn the compass counterclockwise to the nearest degree multiple 90 (0, 90, 180, 270). 3. Rotation of the compass by a given angle. You can rotate the compass by a given number of degrees absolutely or relative to the current rotation of the compass. At the same time, you can draw (this is optional).
1 parent 3251cc1 commit a7c95b7

12 files changed

Lines changed: 761 additions & 3 deletions

resources/OpenBoard.qrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@
5050
<file>images/reload.svg</file>
5151
<file>images/frozen.svg</file>
5252
<file>images/unfrozen.svg</file>
53+
<file>images/settingsCompass.svg</file>
54+
<file>images/rightAngleCompass.svg</file>
55+
<file>images/angleRotateCompass.svg</file>
5356
<file>images/toolbar/group.png</file>
5457
<file>images/toolbar/ungroup.png</file>
5558
<file>images/toolbar/window.png</file>

resources/i18n/OpenBoard_ru.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,6 +1229,29 @@ Do you wish to override the security check and continue ? </source>
12291229
<translation>Закрыть</translation>
12301230
</message>
12311231
</context>
1232+
<context>
1233+
<name>UBCompassAngleRotateDialog</name>
1234+
<message>
1235+
<source>Compass angle rotation</source>
1236+
<translation>Задать угол поворота циркуля</translation>
1237+
</message>
1238+
<message>
1239+
<source>Angle:</source>
1240+
<translation>Угол:</translation>
1241+
</message>
1242+
<message>
1243+
<source>With drawing</source>
1244+
<translation>Прочертить</translation>
1245+
</message>
1246+
<message>
1247+
<source>Rotate absolutely</source>
1248+
<translation>Повернуть абсолютно</translation>
1249+
</message>
1250+
<message>
1251+
<source>Rotate relative</source>
1252+
<translation>Повернуть относительно</translation>
1253+
</message>
1254+
</context>
12321255
<context>
12331256
<name>UBDesktopPalette</name>
12341257
<message>
@@ -1896,6 +1919,17 @@ Providing a new name will create a new document.</source>
18961919
<translation>Загрузка</translation>
18971920
</message>
18981921
</context>
1922+
<context>
1923+
<name>UBGraphicsCompass</name>
1924+
<message>
1925+
<source>Normalize position</source>
1926+
<translation>Нормировать положение</translation>
1927+
</message>
1928+
<message>
1929+
<source>Normalize size</source>
1930+
<translation>Нормировать размер</translation>
1931+
</message>
1932+
</context>
18991933
<context>
19001934
<name>UBGraphicsGroupContainerItemDelegate</name>
19011935
<message>
Lines changed: 65 additions & 0 deletions
Loading
Lines changed: 56 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)