1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00

Compare commits

..

5 Commits

Author SHA1 Message Date
76b6daa02e Ifdef NSIS stuff not used in Qt6 builds 2022-03-19 14:21:19 +01:00
Hosted Weblate
1728ec20d7
Merge branch 'origin/master' into Weblate. 2022-03-19 13:25:19 +01:00
fcfa03f771 Code cleanup 2022-03-19 13:25:47 +01:00
ovl-1
117b50b5ab
Translated using Weblate (Norwegian Bokmål)
Currently translated at 97.2% (427 of 439 strings)

Translation: GPXSee/Translations
Translate-URL: https://hosted.weblate.org/projects/gpxsee/translations/nb_NO/
2022-03-19 13:25:18 +01:00
ovl-1
d7030f266e
Translated using Weblate (Norwegian Bokmål)
Currently translated at 92.9% (408 of 439 strings)

Translation: GPXSee/Translations
Translate-URL: https://hosted.weblate.org/projects/gpxsee/translations/nb_NO/
2022-03-19 09:56:24 +01:00
4 changed files with 127 additions and 118 deletions

View File

@ -25,7 +25,7 @@
<location filename="../src/GUI/cadencegraph.cpp" line="12"/> <location filename="../src/GUI/cadencegraph.cpp" line="12"/>
<location filename="../src/GUI/cadencegraph.h" line="16"/> <location filename="../src/GUI/cadencegraph.h" line="16"/>
<source>Cadence</source> <source>Cadence</source>
<translation>Stegfrekvens</translation> <translation>Kadens</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/cadencegraph.cpp" line="27"/> <location filename="../src/GUI/cadencegraph.cpp" line="27"/>
@ -157,7 +157,7 @@
<message> <message>
<location filename="../src/data/data.cpp" line="167"/> <location filename="../src/data/data.cpp" line="167"/>
<source>TwoNav files</source> <source>TwoNav files</source>
<translation type="unfinished"></translation> <translation>TwoNav-filer</translation>
</message> </message>
<message> <message>
<location filename="../src/data/data.cpp" line="168"/> <location filename="../src/data/data.cpp" line="168"/>
@ -175,7 +175,7 @@
<message> <message>
<location filename="../src/GUI/dirselectwidget.cpp" line="38"/> <location filename="../src/GUI/dirselectwidget.cpp" line="38"/>
<source>Select directory</source> <source>Select directory</source>
<translation type="unfinished">Velg mappe</translation> <translation>Velg mappe</translation>
</message> </message>
</context> </context>
<context> <context>
@ -369,7 +369,7 @@
<message> <message>
<location filename="../src/GUI/gui.cpp" line="253"/> <location filename="../src/GUI/gui.cpp" line="253"/>
<source>Load POI file...</source> <source>Load POI file...</source>
<translation>Last inn POI-fil</translation> <translation>Last inn interessepunkt-fil</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="258"/> <location filename="../src/GUI/gui.cpp" line="258"/>
@ -384,22 +384,22 @@
<message> <message>
<location filename="../src/GUI/gui.cpp" line="268"/> <location filename="../src/GUI/gui.cpp" line="268"/>
<source>Overlap POIs</source> <source>Overlap POIs</source>
<translation>Overlapp POI-er</translation> <translation>Overlapp interessepunkter</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="273"/> <location filename="../src/GUI/gui.cpp" line="273"/>
<source>Show POI icons</source> <source>Show POI icons</source>
<translation>Vis POI-ikoner</translation> <translation>Vis interessepunktikoner</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="278"/> <location filename="../src/GUI/gui.cpp" line="278"/>
<source>Show POI labels</source> <source>Show POI labels</source>
<translation>Vis POI-etiketter</translation> <translation>Vis interessepunktetiketter</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="283"/> <location filename="../src/GUI/gui.cpp" line="283"/>
<source>Show POIs</source> <source>Show POIs</source>
<translation>Vis POI-er</translation> <translation>Vis interessepunkter</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="294"/> <location filename="../src/GUI/gui.cpp" line="294"/>
@ -414,7 +414,7 @@
<message> <message>
<location filename="../src/GUI/gui.cpp" line="309"/> <location filename="../src/GUI/gui.cpp" line="309"/>
<source>Load map directory...</source> <source>Load map directory...</source>
<translation type="unfinished">Last inn kartmappe </translation> <translation>Last inn kartmappe</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="312"/> <location filename="../src/GUI/gui.cpp" line="312"/>
@ -436,22 +436,22 @@
<message> <message>
<location filename="../src/GUI/gui.cpp" line="335"/> <location filename="../src/GUI/gui.cpp" line="335"/>
<source>Show position</source> <source>Show position</source>
<translation type="unfinished"></translation> <translation>Vis posisjon</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="341"/> <location filename="../src/GUI/gui.cpp" line="341"/>
<source>Follow position</source> <source>Follow position</source>
<translation type="unfinished"></translation> <translation>Følg posisjon</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="346"/> <location filename="../src/GUI/gui.cpp" line="346"/>
<source>Show coordinates</source> <source>Show coordinates</source>
<translation type="unfinished"></translation> <translation>Vis koordinater</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="352"/> <location filename="../src/GUI/gui.cpp" line="352"/>
<source>Show motion info</source> <source>Show motion info</source>
<translation type="unfinished"></translation> <translation>Vis bevegelsesinfo</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="359"/> <location filename="../src/GUI/gui.cpp" line="359"/>
@ -521,7 +521,7 @@
<message> <message>
<location filename="../src/GUI/gui.cpp" line="423"/> <location filename="../src/GUI/gui.cpp" line="423"/>
<source>Show local DEM tiles</source> <source>Show local DEM tiles</source>
<translation>Vis lokale DEM-flis</translation> <translation>Vis lokale DEM-fliser</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="428"/> <location filename="../src/GUI/gui.cpp" line="428"/>
@ -533,7 +533,7 @@
<location filename="../src/GUI/gui.cpp" line="1252"/> <location filename="../src/GUI/gui.cpp" line="1252"/>
<location filename="../src/GUI/gui.cpp" line="1320"/> <location filename="../src/GUI/gui.cpp" line="1320"/>
<source>Distance</source> <source>Distance</source>
<translation>Avstand</translation> <translation>Distanse</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="444"/> <location filename="../src/GUI/gui.cpp" line="444"/>
@ -551,7 +551,7 @@
<message> <message>
<location filename="../src/GUI/gui.cpp" line="455"/> <location filename="../src/GUI/gui.cpp" line="455"/>
<source>Show slider info</source> <source>Show slider info</source>
<translation>Vis linjalinfo</translation> <translation>Vis skyverinfo</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="462"/> <location filename="../src/GUI/gui.cpp" line="462"/>
@ -578,7 +578,7 @@
<message> <message>
<location filename="../src/GUI/gui.cpp" line="485"/> <location filename="../src/GUI/gui.cpp" line="485"/>
<source>Imperial</source> <source>Imperial</source>
<translation>Imperial</translation> <translation>Britisk</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="491"/> <location filename="../src/GUI/gui.cpp" line="491"/>
@ -593,7 +593,7 @@
<message> <message>
<location filename="../src/GUI/gui.cpp" line="505"/> <location filename="../src/GUI/gui.cpp" line="505"/>
<source>Degrees and decimal minutes (DMM)</source> <source>Degrees and decimal minutes (DMM)</source>
<translation>Desimalgrader og desimalminutter (DMM)</translation> <translation>Grader og desimalminutter (DMM)</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="512"/> <location filename="../src/GUI/gui.cpp" line="512"/>
@ -608,7 +608,7 @@
<message> <message>
<location filename="../src/GUI/gui.cpp" line="524"/> <location filename="../src/GUI/gui.cpp" line="524"/>
<source>Options...</source> <source>Options...</source>
<translation>Valg</translation> <translation>Alternativer</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="529"/> <location filename="../src/GUI/gui.cpp" line="529"/>
@ -648,17 +648,17 @@
<message> <message>
<location filename="../src/GUI/gui.cpp" line="626"/> <location filename="../src/GUI/gui.cpp" line="626"/>
<source>&amp;POI</source> <source>&amp;POI</source>
<translation>&amp;POI</translation> <translation>I&amp;nteressepunkt</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="642"/> <location filename="../src/GUI/gui.cpp" line="642"/>
<source>Position</source> <source>Position</source>
<translation type="unfinished"></translation> <translation>Posisjon</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="842"/> <location filename="../src/GUI/gui.cpp" line="842"/>
<source>Symbols directory:</source> <source>Symbols directory:</source>
<translation type="unfinished"></translation> <translation>Symbolmappe:</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="1777"/> <location filename="../src/GUI/gui.cpp" line="1777"/>
@ -833,7 +833,7 @@
<message> <message>
<location filename="../src/GUI/gui.cpp" line="834"/> <location filename="../src/GUI/gui.cpp" line="834"/>
<source>POI directory:</source> <source>POI directory:</source>
<translation>POI-mappe:</translation> <translation>Interessepunktmappe:</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="836"/> <location filename="../src/GUI/gui.cpp" line="836"/>
@ -859,12 +859,12 @@
<message> <message>
<location filename="../src/GUI/gui.cpp" line="970"/> <location filename="../src/GUI/gui.cpp" line="970"/>
<source>Open POI file</source> <source>Open POI file</source>
<translation>Åpne POI-fil</translation> <translation>Åpne interessepunktfil</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="996"/> <location filename="../src/GUI/gui.cpp" line="996"/>
<source>Error loading POI file:</source> <source>Error loading POI file:</source>
<translation>Kunne ikke laste inn POI-fil:</translation> <translation>Kunne ikke laste inn interessepunktfil:</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="1226"/> <location filename="../src/GUI/gui.cpp" line="1226"/>
@ -930,7 +930,7 @@
<message> <message>
<location filename="../src/GUI/gui.cpp" line="1810"/> <location filename="../src/GUI/gui.cpp" line="1810"/>
<source>No local DEM tiles found.</source> <source>No local DEM tiles found.</source>
<translation>Fant ingen lokale DEM-flis.</translation> <translation>Fant ingen lokale DEM-fliser.</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="1824"/> <location filename="../src/GUI/gui.cpp" line="1824"/>
@ -999,7 +999,7 @@
<location filename="../src/GUI/graphview.cpp" line="75"/> <location filename="../src/GUI/graphview.cpp" line="75"/>
<location filename="../src/GUI/graphview.cpp" line="177"/> <location filename="../src/GUI/graphview.cpp" line="177"/>
<source>Distance</source> <source>Distance</source>
<translation>Avsntand</translation> <translation>Distanse</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/graphview.cpp" line="109"/> <location filename="../src/GUI/graphview.cpp" line="109"/>
@ -1053,7 +1053,7 @@
<message> <message>
<location filename="../src/GUI/heartrategraph.cpp" line="11"/> <location filename="../src/GUI/heartrategraph.cpp" line="11"/>
<source>bpm</source> <source>bpm</source>
<translation>bpm</translation> <translation>slag/min</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/heartrategraph.cpp" line="12"/> <location filename="../src/GUI/heartrategraph.cpp" line="12"/>
@ -1083,7 +1083,7 @@
<location filename="../src/GUI/heartrategraphitem.cpp" line="18"/> <location filename="../src/GUI/heartrategraphitem.cpp" line="18"/>
<location filename="../src/GUI/heartrategraphitem.cpp" line="20"/> <location filename="../src/GUI/heartrategraphitem.cpp" line="20"/>
<source>bpm</source> <source>bpm</source>
<translation>s/m</translation> <translation>slag/min</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/heartrategraphitem.cpp" line="19"/> <location filename="../src/GUI/heartrategraphitem.cpp" line="19"/>
@ -1154,7 +1154,7 @@
<message> <message>
<location filename="../src/map/maplist.cpp" line="135"/> <location filename="../src/map/maplist.cpp" line="135"/>
<source>QuickChart maps</source> <source>QuickChart maps</source>
<translation type="unfinished"></translation> <translation>QuickChart-kart</translation>
</message> </message>
<message> <message>
<location filename="../src/map/maplist.cpp" line="137"/> <location filename="../src/map/maplist.cpp" line="137"/>
@ -1179,7 +1179,7 @@
<message> <message>
<location filename="../src/map/maplist.cpp" line="141"/> <location filename="../src/map/maplist.cpp" line="141"/>
<source>World-file georeferenced images</source> <source>World-file georeferenced images</source>
<translation type="unfinished">Verdensfil for georefererte bilder</translation> <translation>World-file georefererte bilder</translation>
</message> </message>
<message> <message>
<location filename="../src/map/maplist.cpp" line="143"/> <location filename="../src/map/maplist.cpp" line="143"/>
@ -1212,7 +1212,7 @@
<message> <message>
<location filename="../src/GUI/motioninfoitem.cpp" line="103"/> <location filename="../src/GUI/motioninfoitem.cpp" line="103"/>
<source>m/min</source> <source>m/min</source>
<translation type="unfinished"></translation> <translation>m/min</translation>
</message> </message>
</context> </context>
<context> <context>
@ -1379,17 +1379,17 @@
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="221"/> <location filename="../src/GUI/optionsdialog.cpp" line="221"/>
<source>POI color:</source> <source>POI color:</source>
<translation>POI-farge:</translation> <translation>Interessepunktfarge:</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="222"/> <location filename="../src/GUI/optionsdialog.cpp" line="222"/>
<source>POI size:</source> <source>POI size:</source>
<translation>POI-størrelse:</translation> <translation>Interessepunktstørrelse:</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="233"/> <location filename="../src/GUI/optionsdialog.cpp" line="233"/>
<source>POIs</source> <source>POIs</source>
<translation>POI-er</translation> <translation>Interessepunkter</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="255"/> <location filename="../src/GUI/optionsdialog.cpp" line="255"/>
@ -1521,7 +1521,7 @@
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="393"/> <location filename="../src/GUI/optionsdialog.cpp" line="393"/>
<source>Computed from distance/time</source> <source>Computed from distance/time</source>
<translation>Utregnet fra avstand/tid</translation> <translation>Beregnet fra distanse/tid</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="394"/> <location filename="../src/GUI/optionsdialog.cpp" line="394"/>
@ -1616,17 +1616,17 @@
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="283"/> <location filename="../src/GUI/optionsdialog.cpp" line="283"/>
<source>Info background</source> <source>Info background</source>
<translation type="unfinished"></translation> <translation>Info-bakgrunn</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="289"/> <location filename="../src/GUI/optionsdialog.cpp" line="289"/>
<source>Crosshair color:</source> <source>Crosshair color:</source>
<translation type="unfinished"></translation> <translation>Trådkorsfarge:</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="290"/> <location filename="../src/GUI/optionsdialog.cpp" line="290"/>
<source>Info color:</source> <source>Info color:</source>
<translation type="unfinished"></translation> <translation>Info-farge:</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="363"/> <location filename="../src/GUI/optionsdialog.cpp" line="363"/>
@ -1653,7 +1653,7 @@
<location filename="../src/GUI/optionsdialog.cpp" line="551"/> <location filename="../src/GUI/optionsdialog.cpp" line="551"/>
<location filename="../src/GUI/optionsdialog.cpp" line="798"/> <location filename="../src/GUI/optionsdialog.cpp" line="798"/>
<source>POI</source> <source>POI</source>
<translation>POI</translation> <translation>Interessepunkt</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="566"/> <location filename="../src/GUI/optionsdialog.cpp" line="566"/>
@ -1680,7 +1680,7 @@
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="622"/> <location filename="../src/GUI/optionsdialog.cpp" line="622"/>
<source>Plugin:</source> <source>Plugin:</source>
<translation type="unfinished"></translation> <translation>Programtillegg:</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="642"/> <location filename="../src/GUI/optionsdialog.cpp" line="642"/>
@ -1715,7 +1715,7 @@
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="670"/> <location filename="../src/GUI/optionsdialog.cpp" line="670"/>
<source>Distance</source> <source>Distance</source>
<translation>Avstand</translation> <translation>Distanse</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="672"/> <location filename="../src/GUI/optionsdialog.cpp" line="672"/>
@ -1799,7 +1799,7 @@
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="763"/> <location filename="../src/GUI/optionsdialog.cpp" line="763"/>
<source>POI:</source> <source>POI:</source>
<translation type="unfinished">POI:</translation> <translation>Interessepunkt:</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="774"/> <location filename="../src/GUI/optionsdialog.cpp" line="774"/>
@ -1829,17 +1829,17 @@
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="800"/> <location filename="../src/GUI/optionsdialog.cpp" line="800"/>
<source>Position</source> <source>Position</source>
<translation type="unfinished"></translation> <translation>Posisjon</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="801"/> <location filename="../src/GUI/optionsdialog.cpp" line="801"/>
<source>Print &amp; Export</source> <source>Print &amp; Export</source>
<translation>Utskrift og ekport</translation> <translation>Utskrift og eksport</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="835"/> <location filename="../src/GUI/optionsdialog.cpp" line="835"/>
<source>Options</source> <source>Options</source>
<translation>Valg</translation> <translation>Alternativer</translation>
</message> </message>
</context> </context>
<context> <context>
@ -1947,7 +1947,7 @@
<message> <message>
<location filename="../src/GUI/pngexportdialog.cpp" line="38"/> <location filename="../src/GUI/pngexportdialog.cpp" line="38"/>
<source>Use anti-aliasing</source> <source>Use anti-aliasing</source>
<translation type="unfinished">Bruk kanutjevning</translation> <translation>Bruk kantutjevning</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/pngexportdialog.cpp" line="42"/> <location filename="../src/GUI/pngexportdialog.cpp" line="42"/>
@ -2071,7 +2071,7 @@
<message> <message>
<location filename="../src/GUI/routeitem.cpp" line="21"/> <location filename="../src/GUI/routeitem.cpp" line="21"/>
<source>Distance</source> <source>Distance</source>
<translation>Avstand</translation> <translation>Distanse</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/routeitem.cpp" line="32"/> <location filename="../src/GUI/routeitem.cpp" line="32"/>
@ -2154,7 +2154,7 @@
<message> <message>
<location filename="../src/GUI/speedgraph.cpp" line="130"/> <location filename="../src/GUI/speedgraph.cpp" line="130"/>
<source>mi/h</source> <source>mi/h</source>
<translation>mi/t</translation> <translation>mi/h</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/speedgraph.cpp" line="133"/> <location filename="../src/GUI/speedgraph.cpp" line="133"/>
@ -2167,7 +2167,7 @@
<message> <message>
<location filename="../src/GUI/speedgraphitem.cpp" line="23"/> <location filename="../src/GUI/speedgraphitem.cpp" line="23"/>
<source>mi/h</source> <source>mi/h</source>
<translation>mi/t</translation> <translation>mi/h</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/speedgraphitem.cpp" line="24"/> <location filename="../src/GUI/speedgraphitem.cpp" line="24"/>
@ -2292,7 +2292,7 @@
<message> <message>
<location filename="../src/GUI/trackitem.cpp" line="20"/> <location filename="../src/GUI/trackitem.cpp" line="20"/>
<source>Distance</source> <source>Distance</source>
<translation>Avstand</translation> <translation>Distanse</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/trackitem.cpp" line="23"/> <location filename="../src/GUI/trackitem.cpp" line="23"/>

View File

@ -439,27 +439,31 @@ SectionEnd
;------------------------------- ;-------------------------------
;Descriptions ; Descriptions
;Language strings ; Language strings
LangString DESC_QT ${LANG_ENGLISH} \ LangString DESC_QT ${LANG_ENGLISH} \
"QT cross-platform application framework." "QT cross-platform application framework."
LangString DESC_MSVC ${LANG_ENGLISH} \ LangString DESC_MSVC ${LANG_ENGLISH} \
"Microsoft Visual C++ 2017 runtime. If already installed, will be skipped." "Microsoft Visual C++ 2017 runtime. If already installed, will be skipped."
LangString DESC_OPENSSL ${LANG_ENGLISH} \ LangString DESC_OPENSSL ${LANG_ENGLISH} \
"OpenSSL library. Required for HTTPS to work." "OpenSSL library. Required for HTTPS to work."
!ifndef QT6
LangString DESC_ANGLE ${LANG_ENGLISH} \ LangString DESC_ANGLE ${LANG_ENGLISH} \
"ANGLE (OpenGL via Direct3D). Enables OpenGL on systems without native OpenGL drivers." "ANGLE (OpenGL via Direct3D). Enables OpenGL on systems without native OpenGL drivers."
!endif
LangString DESC_APP ${LANG_ENGLISH} \ LangString DESC_APP ${LANG_ENGLISH} \
"GPXSee application" "GPXSee application"
LangString DESC_LOCALIZATION ${LANG_ENGLISH} \ LangString DESC_LOCALIZATION ${LANG_ENGLISH} \
"Localization" "Localization"
;Assign language strings to sections ; Assign language strings to sections
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_QT} $(DESC_QT) !insertmacro MUI_DESCRIPTION_TEXT ${SEC_QT} $(DESC_QT)
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_OPENSSL} $(DESC_OPENSSL) !insertmacro MUI_DESCRIPTION_TEXT ${SEC_OPENSSL} $(DESC_OPENSSL)
!ifndef QT6
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_ANGLE} $(DESC_ANGLE) !insertmacro MUI_DESCRIPTION_TEXT ${SEC_ANGLE} $(DESC_ANGLE)
!endif
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_MSVC} $(DESC_MSVC) !insertmacro MUI_DESCRIPTION_TEXT ${SEC_MSVC} $(DESC_MSVC)
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_APP} $(DESC_APP) !insertmacro MUI_DESCRIPTION_TEXT ${SEC_APP} $(DESC_APP)
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_LOCALIZATION} $(DESC_LOCALIZATION) !insertmacro MUI_DESCRIPTION_TEXT ${SEC_LOCALIZATION} $(DESC_LOCALIZATION)

View File

@ -95,48 +95,8 @@ static bool seekToLine(BitStream4R &bs, quint8 line)
return true; return true;
} }
static bool readLine(BitStream4R &bs, const SubDiv *subdiv,
const HuffmanTable *table, MapData::Poly &poly)
{
quint32 v1, v2, v2b;
if (!bs.readVUint32SM(v1, v2, v2b))
return false;
bs.resize(v1);
quint32 lon, lat;
if (!(bs.read(0x12 - v2b, lon) && bs.read(16, lat)))
return false;
if (2 < v2b)
lon |= (v2 >> 2) << (0x12U - v2b);
QPoint pos = QPoint(LS(subdiv->lon(), 8) + LS((qint16)lon, 32-subdiv->bits()),
LS(subdiv->lat(), 8) + LS((qint16)lat, 32-subdiv->bits()));
Coordinates c(toWGS32(pos.x()), toWGS32(pos.y()));
poly.boundingRect = RectC(c, c);
poly.points.append(QPointF(c.lon(), c.lat()));
HuffmanDeltaStreamR stream(bs, *table);
if (!stream.init())
return false;
qint32 lonDelta, latDelta;
while (stream.readNext(lonDelta, latDelta)) {
pos.rx() += LS(lonDelta, 32-subdiv->bits());
if (pos.rx() < 0 && subdiv->lon() >= 0)
pos.rx() = 0x7fffffff;
pos.ry() += LS(latDelta, 32-subdiv->bits());
Coordinates c(toWGS32(pos.x()), toWGS32(pos.y()));
poly.points.append(QPointF(c.lon(), c.lat()));
poly.boundingRect = poly.boundingRect.united(c);
}
return stream.atEnd();
}
static bool readNodeGeometry(const NODFile *nod, SubFile::Handle &nodHdl, static bool readNodeGeometry(const NODFile *nod, SubFile::Handle &nodHdl,
NODFile::AdjacencyInfo &adj, MapData::Poly &poly, quint16 cnt = 0xFFFF) NODFile::AdjacencyInfo &adj, quint16 cnt, MapData::Poly &poly)
{ {
for (int i = 0; i <= cnt; i++) { for (int i = 0; i <= cnt; i++) {
int ret = nod->nextNode(nodHdl, adj); int ret = nod->nextNode(nodHdl, adj);
@ -164,10 +124,50 @@ static bool skipNodes(const NODFile *nod, SubFile::Handle &nodHdl,
return true; return true;
} }
static bool readShape(const NODFile *nod, SubFile::Handle &nodHdl,
NODFile::AdjacencyInfo &adj, BitStream4R &bs, const HuffmanTable *table, bool NETFile::readLine(BitStream4R &bs, const SubDiv *subdiv,
const SubDiv *subdiv, quint32 shift, MapData::Poly &poly, MapData::Poly &poly) const
quint16 cnt = 0xFFFF, bool check = false) {
quint32 v1, v2, v2b;
if (!bs.readVUint32SM(v1, v2, v2b))
return false;
bs.resize(v1);
quint32 lon, lat;
if (!(bs.read(0x12 - v2b, lon) && bs.read(16, lat)))
return false;
if (2 < v2b)
lon |= (v2 >> 2) << (0x12U - v2b);
QPoint pos = QPoint(LS(subdiv->lon(), 8) + LS((qint16)lon, 32-subdiv->bits()),
LS(subdiv->lat(), 8) + LS((qint16)lat, 32-subdiv->bits()));
Coordinates c(toWGS32(pos.x()), toWGS32(pos.y()));
poly.boundingRect = RectC(c, c);
poly.points.append(QPointF(c.lon(), c.lat()));
HuffmanDeltaStreamR stream(bs, *_tp);
if (!stream.init())
return false;
qint32 lonDelta, latDelta;
while (stream.readNext(lonDelta, latDelta)) {
pos.rx() += LS(lonDelta, 32-subdiv->bits());
if (pos.rx() < 0 && subdiv->lon() >= 0)
pos.rx() = 0x7fffffff;
pos.ry() += LS(latDelta, 32-subdiv->bits());
Coordinates c(toWGS32(pos.x()), toWGS32(pos.y()));
poly.points.append(QPointF(c.lon(), c.lat()));
poly.boundingRect = poly.boundingRect.united(c);
}
return stream.atEnd();
}
bool NETFile::readShape(const NODFile *nod, SubFile::Handle &nodHdl,
NODFile::AdjacencyInfo &adj, BitStream4R &bs, const SubDiv *subdiv,
quint32 shift, quint16 cnt, bool check, MapData::Poly &poly) const
{ {
quint32 v1, v2, v2b; quint32 v1, v2, v2b;
if (!bs.readVUint32SM(v1, v2, v2b)) if (!bs.readVUint32SM(v1, v2, v2b))
@ -185,7 +185,7 @@ static bool readShape(const NODFile *nod, SubFile::Handle &nodHdl,
bool startWithStream = flags & (1 << (v2b + 6)); bool startWithStream = flags & (1 << (v2b + 6));
bool useEosBit = flags & (1 << (v2b + 5)); bool useEosBit = flags & (1 << (v2b + 5));
HuffmanDeltaStreamR stream(bs, *table); HuffmanDeltaStreamR stream(bs, *_tp);
if (!stream.init(flags, v2b + 5)) if (!stream.init(flags, v2b + 5))
return false; return false;
@ -325,18 +325,12 @@ static bool readShape(const NODFile *nod, SubFile::Handle &nodHdl,
return true; return true;
} }
bool NETFile::linkLabel(Handle &hdl, quint32 offset,
NETFile::~NETFile()
{
delete _huffmanTable;
}
bool NETFile::linkLabel(Handle &hdl, quint32 offset, quint32 size,
const LBLFile *lbl, Handle &lblHdl, Label &label) const const LBLFile *lbl, Handle &lblHdl, Label &label) const
{ {
if (!seek(hdl, offset)) if (!seek(hdl, offset))
return false; return false;
BitStream1 bs(*this, hdl, size); BitStream1 bs(*this, hdl, _linksSize - (offset - _linksOffset));
quint32 flags, labelPtr; quint32 flags, labelPtr;
if (!bs.read(8, flags)) if (!bs.read(8, flags))
@ -389,6 +383,11 @@ void NETFile::clear()
_huffmanTable = 0; _huffmanTable = 0;
} }
NETFile::~NETFile()
{
delete _huffmanTable;
}
bool NETFile::link(const SubDiv *subdiv, quint32 shift, Handle &hdl, bool NETFile::link(const SubDiv *subdiv, quint32 shift, Handle &hdl,
const NODFile *nod, Handle &nodHdl2, Handle &nodHdl, const LBLFile *lbl, const NODFile *nod, Handle &nodHdl2, Handle &nodHdl, const LBLFile *lbl,
Handle &lblHdl, const NODFile::BlockInfo &blockInfo, quint8 linkId, Handle &lblHdl, const NODFile::BlockInfo &blockInfo, quint8 linkId,
@ -430,10 +429,11 @@ bool NETFile::link(const SubDiv *subdiv, quint32 shift, Handle &hdl,
if (singleTopology) { if (singleTopology) {
if (firstIsShape) { if (firstIsShape) {
if (!readShape(nod, nodHdl, adj, bs, _tp, subdiv, shift, poly)) if (!readShape(nod, nodHdl, adj, bs, subdiv, shift, 0xFFFF,
false, poly))
return false; return false;
} else { } else {
if (!readNodeGeometry(nod, nodHdl, adj, poly)) if (!readNodeGeometry(nod, nodHdl, adj, 0xFFFF, poly))
return false; return false;
} }
} else { } else {
@ -444,11 +444,11 @@ bool NETFile::link(const SubDiv *subdiv, quint32 shift, Handle &hdl,
if (i == lineId) { if (i == lineId) {
if (shape) { if (shape) {
bool check = (i < ca.size()) ? (ca.at(i) & mask) : false; bool check = (i < ca.size()) ? (ca.at(i) & mask) : false;
if (!readShape(nod, nodHdl, adj, bs, _tp, subdiv, if (!readShape(nod, nodHdl, adj, bs, subdiv, shift,
shift, poly, step, check)) step, check, poly))
return false; return false;
} else { } else {
if (!readNodeGeometry(nod, nodHdl, adj, poly, step)) if (!readNodeGeometry(nod, nodHdl, adj, step, poly))
return false; return false;
} }
break; break;
@ -470,13 +470,12 @@ bool NETFile::link(const SubDiv *subdiv, quint32 shift, Handle &hdl,
return false; return false;
if (!seekToLine(bs, lineId)) if (!seekToLine(bs, lineId))
return false; return false;
if (!readLine(bs, subdiv, _tp, poly)) if (!readLine(bs, subdiv, poly))
return false; return false;
} }
if (lbl) if (lbl)
linkLabel(hdl, linkOffset, _linksSize - (linkOffset - _linksOffset), linkLabel(hdl, linkOffset, lbl, lblHdl, poly.label);
lbl, lblHdl, poly.label);
lines->append(poly); lines->append(poly);

View File

@ -10,6 +10,7 @@ class LBLFile;
class RGNFile; class RGNFile;
class SubDiv; class SubDiv;
class HuffmanTable; class HuffmanTable;
class BitStream4R;
class NETFile : public SubFile class NETFile : public SubFile
{ {
@ -36,8 +37,13 @@ public:
bool hasLinks() const {return (_linksSize > 0);} bool hasLinks() const {return (_linksSize > 0);}
private: private:
bool linkLabel(Handle &hdl, quint32 offset, quint32 size, bool linkLabel(Handle &hdl, quint32 offset, const LBLFile *lbl,
const LBLFile *lbl, Handle &lblHdl, Label &label) const; Handle &lblHdl, Label &label) const;
bool readShape(const NODFile *nod, SubFile::Handle &nodHdl,
NODFile::AdjacencyInfo &adj, BitStream4R &bs, const SubDiv *subdiv,
quint32 shift, quint16 cnt, bool check, MapData::Poly &poly) const;
bool readLine(BitStream4R &bs, const SubDiv *subdiv,
MapData::Poly &poly) const;
HuffmanTable *_huffmanTable; HuffmanTable *_huffmanTable;
const HuffmanTable *_tp; const HuffmanTable *_tp;