mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-16 03:44:24 +02:00
Compare commits
58 Commits
13.44
...
android-la
Author | SHA1 | Date | |
---|---|---|---|
602690ddc4 | |||
ced9eb20b0 | |||
2f5c87af53 | |||
5d2b818781 | |||
3076a7a57f | |||
4ddc6fbee2 | |||
b9bf09fd27 | |||
820f4be230 | |||
a8518d6c9e | |||
65a8e37eea | |||
704b372122 | |||
3e03ba19ab | |||
9cfe8f1d1c | |||
e3d8e91990 | |||
f878e0a6be | |||
0153c01282 | |||
0627d067d2 | |||
20a9bdccd4 | |||
1575fb7e55 | |||
0fbc99c96f | |||
31b9694bb5 | |||
136a56d92e | |||
49621e82ac | |||
3b45cdfea6 | |||
7341a02742 | |||
9674acf541 | |||
81b60ce1c5 | |||
e7c3cd5f7d | |||
ae5d1a1e39 | |||
1054f2a330 | |||
732bae0e8f | |||
fd127a80b1 | |||
50a46a6a9f | |||
0c2ff90ad9 | |||
6ff1d89273 | |||
c80cb6ac5a | |||
c4bf30b97b | |||
a204fc2bc0 | |||
2628e7824e | |||
a9fa3a4bcf | |||
a4141f52d6 | |||
5898cd0878 | |||
f5f71ab46e | |||
e450e298a2 | |||
977fea9330 | |||
636aff6f31 | |||
ed0ab7f0aa | |||
bded204816 | |||
1ce8072b62 | |||
a06dbf7676 | |||
afae851d56 | |||
b9999a5c4f | |||
03ee575aac | |||
fc196543a1 | |||
9d60d1c9fc | |||
8d4236c898 | |||
4ee39fe707 | |||
347212f012 |
@ -1,4 +1,4 @@
|
||||
version: 13.44.{build}
|
||||
version: 13.45.{build}
|
||||
|
||||
configuration:
|
||||
- Release
|
||||
@ -10,10 +10,12 @@ environment:
|
||||
NSISDIR: C:\Program Files (x86)\NSIS
|
||||
JOMDIR: C:\Qt\Tools\QtCreator\bin\jom
|
||||
matrix:
|
||||
- QTDIR: C:\Qt\5.15\msvc2019_64
|
||||
- job_name: Qt5
|
||||
QTDIR: C:\Qt\5.15\msvc2019_64
|
||||
OPENSSLDIR: C:\OpenSSL-v111-Win64\bin
|
||||
NSISDEF: /DOPENSSL /DANGLE
|
||||
- QTDIR: C:\Qt\6.8\msvc2022_64
|
||||
- job_name: Qt6
|
||||
QTDIR: C:\Qt\6.8\msvc2022_64
|
||||
NSISDEF: /DQT6
|
||||
|
||||
install:
|
||||
@ -27,9 +29,12 @@ build_script:
|
||||
qmake gpxsee.pro
|
||||
jom release
|
||||
|
||||
after_build:
|
||||
- cmd: |-
|
||||
md installer
|
||||
copy release\GPXSee.exe installer
|
||||
windeployqt --release installer\GPXSee.exe
|
||||
curl -L -o installer\imageformats\pbf4.dll https://ci.appveyor.com/api/projects/tumic0/QtPBFImagePlugin/artifacts/release/pbf4.dll?job=%APPVEYOR_JOB_NAME%
|
||||
copy pkg\windows\gpxsee64.nsi installer
|
||||
xcopy data\CRS installer\CRS /i
|
||||
xcopy data\maps installer\maps /i
|
||||
@ -38,7 +43,6 @@ build_script:
|
||||
copy licence.txt installer
|
||||
IF DEFINED OPENSSLDIR (copy %OPENSSLDIR%\libcrypto-*-x64.dll installer)
|
||||
IF DEFINED OPENSSLDIR (copy %OPENSSLDIR%\libssl-*-x64.dll installer)
|
||||
|
||||
makensis.exe %NSISDEF% installer\gpxsee64.nsi
|
||||
|
||||
artifacts:
|
||||
|
18
.github/workflows/android.yml
vendored
18
.github/workflows/android.yml
vendored
@ -38,10 +38,26 @@ jobs:
|
||||
modules: qtimageformats qtpositioning qtserialport qt5compat
|
||||
- name: Install Android OpenSSL
|
||||
run: git clone https://github.com/KDAB/android_openssl.git
|
||||
- name: Get latest QtPBFImagePlugin run-id
|
||||
id: runid
|
||||
run: echo "runid=$(gh run list --repo tumic0/QtPBFImagePlugin --workflow 'Android' --limit 1 --json databaseId -q '.[0].databaseId')" >> $GITHUB_OUTPUT
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
- name: Create the plugins dir
|
||||
run: mkdir plugins
|
||||
- name: Download QtPBFImagePlugin
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: libplugins_imageformats_libpbf_arm64-v8a.so
|
||||
github-token: ${{ github.token }}
|
||||
repository: tumic0/QtPBFImagePlugin
|
||||
path: plugins
|
||||
merge-multiple: true
|
||||
run-id: ${{steps.runid.outputs.runid}}
|
||||
- name: Create localization
|
||||
run: lrelease gpxsee.pro
|
||||
- name: Configure build
|
||||
run: qmake gpxsee.pro OPENSSL_PATH=android_openssl
|
||||
run: qmake gpxsee.pro OPENSSL_PATH=android_openssl ANDROID_EXTRA_PLUGINS=${{ github.workspace }}/plugins
|
||||
- name: Build project
|
||||
run: make -j4 apk
|
||||
- name: Upload artifacts
|
||||
|
16
.github/workflows/osx.yml
vendored
16
.github/workflows/osx.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v4
|
||||
with:
|
||||
version: '6.8.2'
|
||||
version: '6.9.1'
|
||||
modules: qtpositioning qtserialport qtimageformats
|
||||
- name: Create localization
|
||||
run: lrelease gpxsee.pro
|
||||
@ -23,6 +23,20 @@ jobs:
|
||||
run: qmake gpxsee.pro QMAKE_APPLE_DEVICE_ARCHS="x86_64h arm64"
|
||||
- name: Build project
|
||||
run: make -j3
|
||||
- name: Get latest QtPBFImagePlugin run-id
|
||||
id: runid
|
||||
run: echo "runid=$(gh run list --repo tumic0/QtPBFImagePlugin --workflow 'OS X' --limit 1 --json databaseId -q '.[0].databaseId')" >> $GITHUB_OUTPUT
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
- name: Download QtPBFImagePlugin
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: libpbf.dylib
|
||||
github-token: ${{ github.token }}
|
||||
repository: tumic0/QtPBFImagePlugin
|
||||
path: GPXSee.app/Contents/Plugins/imageformats
|
||||
merge-multiple: true
|
||||
run-id: ${{steps.runid.outputs.runid}}
|
||||
- name: Create DMG
|
||||
run: macdeployqt GPXSee.app -dmg -appstore-compliant
|
||||
- name: Upload artifacts
|
||||
|
@ -42,7 +42,7 @@
|
||||
<rule e="way" closed="yes" k="landuse" v="comercial|residential|retail" zoom-min="10">
|
||||
<area fill="#e6e2d9"/>
|
||||
</rule>
|
||||
<rule e="way" closed="yes" k="landuse" v="forest|wood" zoom-min="10">
|
||||
<rule e="way" closed="yes" k="landuse" v="forest|wood" zoom-min="9">
|
||||
<area fill="#cadfaf"/>
|
||||
</rule>
|
||||
<rule e="way" closed="yes" k="landuse" v="meadow|grass|greenfield|village_green" zoom-min="10">
|
||||
@ -56,7 +56,7 @@
|
||||
</rule>
|
||||
|
||||
<!-- Hillshading -->
|
||||
<hillshading zoom-min="10" zoom-max="15"/>
|
||||
<hillshading zoom-min="9" zoom-max="15"/>
|
||||
|
||||
<!-- Contour lines -->
|
||||
<rule e="way" k="contour_ext" v="*">
|
||||
@ -198,13 +198,13 @@
|
||||
</rule>
|
||||
|
||||
<!-- Area overlays -->
|
||||
<rule e="way" k="landuse" v="military" zoom-min="10">
|
||||
<rule e="way" closed="yes" k="landuse" v="military" zoom-min="9">
|
||||
<area src=":/patterns/military-area.svg" symbol-height="4"/>
|
||||
<rule e="way" k="*" v="*" zoom-min="16">
|
||||
<caption fill="#ff4040" font-size="10" font-style="italic" text-transform="uppercase" k="name" stroke="#ffffff" stroke-width="2"/>
|
||||
</rule>
|
||||
</rule>
|
||||
<rule e="way" k="boundary" v="protected_area|national_park" zoom-min="10" zoom-max="14">
|
||||
<rule e="way" closed="yes" k="boundary" v="protected_area|national_park" zoom-min="9" zoom-max="14">
|
||||
<rule e="way" k="protect_class" v="pr_2">
|
||||
<area src=":/patterns/nature-reserve.svg" symbol-height="4"/>
|
||||
<rule e="way" k="*" v="*" zoom-max="11">
|
||||
@ -214,17 +214,17 @@
|
||||
</rule>
|
||||
|
||||
<!-- Buildings -->
|
||||
<rule e="way" k="building" v="-|civic|office|cathedral|church|basilica">
|
||||
<rule e="way" closed="yes" k="building" v="-|civic|office|cathedral|church|basilica">
|
||||
<area fill="#dbd0b6" stroke="#cdccc4" stroke-width="0.1"/>
|
||||
</rule>
|
||||
|
||||
<rule e="way" k="building" v="civic|office">
|
||||
<rule e="way" closed="yes" k="building" v="civic|office">
|
||||
<area fill="#cfc4b3" stroke="#cdccc4" stroke-width="0.1"/>
|
||||
<rule e="way" k="*" v="*" zoom-min="16">
|
||||
<caption fill="#000000" font-size="10" font-style="italic" k="name" stroke="#FFFFFF" stroke-width="2" priority="-10"/>
|
||||
</rule>
|
||||
</rule>
|
||||
<rule e="way" k="building" v="cathedral|church|basilica">
|
||||
<rule e="way" closed="yes" k="building" v="cathedral|church|basilica">
|
||||
<area fill="#a19d96" stroke="#cdccc4" stroke-width="0.1"/>
|
||||
<rule e="way" k="*" v="*" zoom-min="16">
|
||||
<caption fill="#000000" font-size="10" font-style="italic" k="name" stroke="#FFFFFF" stroke-width="2"/>
|
||||
|
@ -3,7 +3,7 @@ unix:!macx:!android {
|
||||
} else {
|
||||
TARGET = GPXSee
|
||||
}
|
||||
VERSION = 13.44
|
||||
VERSION = 13.45
|
||||
|
||||
QT += core \
|
||||
gui \
|
||||
|
@ -579,7 +579,7 @@
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="451"/>
|
||||
<source>Legend</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Llegenda</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="459"/>
|
||||
|
2681
lang/gpxsee_lv.ts
Normal file
2681
lang/gpxsee_lv.ts
Normal file
File diff suppressed because it is too large
Load Diff
@ -172,12 +172,12 @@
|
||||
<message>
|
||||
<location filename="../src/data/data.cpp" line="254"/>
|
||||
<source>VKX files</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>VKX-filer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/data/data.cpp" line="255"/>
|
||||
<source>VTK files</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>VTK-filer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/data/data.cpp" line="256"/>
|
||||
@ -579,7 +579,7 @@
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="451"/>
|
||||
<source>Legend</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Forklaring</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="459"/>
|
||||
|
@ -172,12 +172,12 @@
|
||||
<message>
|
||||
<location filename="../src/data/data.cpp" line="254"/>
|
||||
<source>VKX files</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>VKX dosyaları</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/data/data.cpp" line="255"/>
|
||||
<source>VTK files</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>VTK dosyaları</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/data/data.cpp" line="256"/>
|
||||
|
@ -579,7 +579,7 @@
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="451"/>
|
||||
<source>Legend</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>图例</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="459"/>
|
||||
|
@ -1,10 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.gpxsee.gpxsee" android:installLocation="auto" android:versionCode="-- %%INSERT_VERSION_CODE%% --" android:versionName="-- %%INSERT_VERSION_NAME%% --">
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.gpxsee.gpxsee"
|
||||
android:installLocation="auto"
|
||||
android:versionCode="-- %%INSERT_VERSION_CODE%% --"
|
||||
android:versionName="-- %%INSERT_VERSION_NAME%% --">
|
||||
<!-- %%INSERT_PERMISSIONS -->
|
||||
<!-- %%INSERT_FEATURES -->
|
||||
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true"/>
|
||||
<application android:name="org.qtproject.qt.android.bindings.QtApplication" android:extractNativeLibs="true" android:hardwareAccelerated="true" android:label="-- %%INSERT_APP_NAME%% --" android:requestLegacyExternalStorage="true" android:allowNativeHeapPointerTagging="false" android:icon="@drawable/icon">
|
||||
<activity android:name="org.gpxsee.gpxsee.Activity" android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" android:label="-- %%INSERT_APP_NAME%% --" android:launchMode="singleTop" android:screenOrientation="unspecified" android:exported="true">
|
||||
<supports-screens
|
||||
android:anyDensity="true"
|
||||
android:largeScreens="true"
|
||||
android:normalScreens="true"
|
||||
android:smallScreens="true"/>
|
||||
<application
|
||||
android:name="org.qtproject.qt.android.bindings.QtApplication"
|
||||
android:hardwareAccelerated="true"
|
||||
android:label="-- %%INSERT_APP_NAME%% --"
|
||||
android:requestLegacyExternalStorage="true"
|
||||
android:allowBackup="true"
|
||||
android:fullBackupOnly="false"
|
||||
android:icon="@drawable/icon">
|
||||
<activity
|
||||
android:name="org.gpxsee.gpxsee.Activity"
|
||||
android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density"
|
||||
android:launchMode="singleTop"
|
||||
android:screenOrientation="unspecified"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
@ -28,10 +48,22 @@
|
||||
<data android:scheme="geo"/>
|
||||
</intent-filter>
|
||||
|
||||
<meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
|
||||
<meta-data android:name="android.app.arguments" android:value="-- %%INSERT_APP_ARGUMENTS%% --"/>
|
||||
<meta-data android:name="android.app.extract_android_style" android:value="minimal"/>
|
||||
<meta-data
|
||||
android:name="android.app.lib_name"
|
||||
android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
|
||||
<meta-data
|
||||
android:name="android.app.arguments"
|
||||
android:value="-- %%INSERT_APP_ARGUMENTS%% --"/>
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
<provider
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
android:authorities="${applicationId}.qtprovider"
|
||||
android:exported="false"
|
||||
android:grantUriPermissions="true">
|
||||
<meta-data
|
||||
android:name="android.support.FILE_PROVIDER_PATHS"
|
||||
android:resource="@xml/qtprovider_paths"/>
|
||||
</provider>
|
||||
</application>
|
||||
</manifest>
|
||||
|
@ -5,7 +5,8 @@ buildscript {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.2.1'
|
||||
//noinspection AndroidGradlePluginVersion
|
||||
classpath 'com.android.tools.build:gradle:8.8.0'
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,10 +15,12 @@ repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
apply plugin: 'com.android.application'
|
||||
apply plugin: qtGradlePluginType
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
||||
//noinspection GradleDependency
|
||||
implementation 'androidx.core:core:1.13.1'
|
||||
}
|
||||
|
||||
android {
|
||||
@ -28,20 +31,18 @@ android {
|
||||
* - qtAndroidDir - holds the path to qt android files
|
||||
* needed to build any Qt application
|
||||
* on Android.
|
||||
* - qtGradlePluginType - whether to build an app or a library
|
||||
*
|
||||
* are defined in gradle.properties file. This file is
|
||||
* updated by QtCreator and androiddeployqt tools.
|
||||
* Changing them manually might break the compilation!
|
||||
*******************************************************/
|
||||
|
||||
//compileSdkVersion androidCompileSdkVersion
|
||||
compileSdkVersion "android-33"
|
||||
namespace androidPackageName
|
||||
compileSdkVersion androidCompileSdkVersion
|
||||
buildToolsVersion androidBuildToolsVersion
|
||||
ndkVersion androidNdkVersion
|
||||
|
||||
// Extract native libraries from the APK
|
||||
packagingOptions.jniLibs.useLegacyPackaging true
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
manifest.srcFile 'AndroidManifest.xml'
|
||||
|
@ -17,4 +17,5 @@
|
||||
<string name="static_init_classes"><!-- %%INSERT_INIT_CLASSES%% --></string>
|
||||
<string name="use_local_qt_libs"><!-- %%USE_LOCAL_QT_LIBS%% --></string>
|
||||
<string name="bundle_local_qt_libs"><!-- %%BUNDLE_LOCAL_QT_LIBS%% --></string>
|
||||
<string name="system_libs_prefix"><!-- %%SYSTEM_LIBS_PREFIX%% --></string>
|
||||
</resources>
|
||||
|
11
pkg/android/res/xml/qtprovider_paths.xml
Normal file
11
pkg/android/res/xml/qtprovider_paths.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<paths xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- For getFilesDirectory() -->
|
||||
<files-path name="files_path" path="/"/>
|
||||
<!-- For getExternalStorageDirectory() -->
|
||||
<external-path name="external_path" path="/"/>
|
||||
<!-- For getExternalFilesDir() -->
|
||||
<external-files-path name="external_files_path" path="/"/>
|
||||
<!-- For getExternalCacheDir() -->
|
||||
<external-cache-path name="external_cache_path" path="/"/>
|
||||
</paths>
|
@ -49,7 +49,7 @@ Unicode true
|
||||
; The name of the installer
|
||||
Name "GPXSee"
|
||||
; Program version
|
||||
!define VERSION "13.44"
|
||||
!define VERSION "13.45"
|
||||
|
||||
; The file to write
|
||||
OutFile "GPXSee-${VERSION}_x64.exe"
|
||||
|
@ -250,12 +250,12 @@ SETTING(demURL, "demURL", DEM_TILES_URL );
|
||||
SETTING(demAuthentication, "demAuthentication", false );
|
||||
SETTING(demUsername, "demUsername", "" );
|
||||
SETTING(demPassword, "demPassword", "" );
|
||||
SETTING(hillshadingAlpha, "hillshadingAlpha", 102 );
|
||||
SETTING(hillshadingLightening,"hillshadingLightening", 0.2 );
|
||||
SETTING(hillshadingAlpha, "hillshadingAlpha", 85 );
|
||||
SETTING(hillshadingLightening,"hillshadingLightening", 0.25 );
|
||||
SETTING(hillshadingBlur, "hillshadingBlur", 3 );
|
||||
SETTING(hillshadingAzimuth, "hillshadingAzimuth", 315 );
|
||||
SETTING(hillshadingAltitude, "hillshadingAltitude", 45 );
|
||||
SETTING(hillshadingZFactor, "hillshadingZFactor", 0.6 );
|
||||
SETTING(hillshadingZFactor, "hillshadingZFactor", 0.8 );
|
||||
SETTING(useOpenGL, "useOpenGL", false );
|
||||
SETTING(enableHTTP2, "enableHTTP2", true );
|
||||
SETTING(pixmapCache, "pixmapCache", PIXMAP_CACHE );
|
||||
|
@ -652,7 +652,7 @@ MatrixD RasterTile::elevation(int extend) const
|
||||
|
||||
void RasterTile::drawHillShading(QPainter *painter) const
|
||||
{
|
||||
if (_hillShading && _zoom >= 18 && _zoom <= 24) {
|
||||
if (_hillShading && _zoom >= 17 && _zoom <= 24) {
|
||||
if (HillShading::blur()) {
|
||||
MatrixD dem(Filter::blur(elevation(HillShading::blur() + 1),
|
||||
HillShading::blur()));
|
||||
|
Reference in New Issue
Block a user