Compare commits

..

6 Commits

Author SHA1 Message Date
Maximilian Federle
4f1567ec97 projectview: Only append .qet if not snap or flatpak 2022-01-26 17:04:17 +01:00
Maximilian Federle
e152717a05 add workflow for building candidate snap 2022-01-20 10:09:35 +01:00
Maximilian Federle
0f645e9b76 snap: set version manually 2022-01-20 09:53:17 +01:00
Maximilian Federle
821e681520 projectview: Re-enable appending qet suffix if not running as flatpak
It was removed in b121dad for all platforms.
Only disable appending the suffix for the flatpak platform
by testing for the FLATPAK_ID environment variable.
2022-01-20 09:46:19 +01:00
Maximilian Federle
d27bc35022 snap: Remove framework snap prompt
Now that https://github.com/snapcore/snapcraft/pull/3596 has been
released in snapcraft 6.0.1, drop the prompt that tells users to
disconnect the old framework snap.

Also drop --enable-experimental-extensions from CI  because kde-neon
has been declared stable for core20.
2022-01-20 09:45:43 +01:00
Maximilian Federle
61d3adad9b snap: Port to core20 2022-01-20 09:44:33 +01:00
26 changed files with 83 additions and 227 deletions

View File

@@ -0,0 +1,20 @@
name: Publish Candidate Snap
on:
push:
branches:
- "snap/latest/candidate"
workflow_dispatch:
jobs:
publish_amd64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: snapcore/action-build@v1
id: build
- uses: snapcore/action-publish@v1
with:
store_login: ${{ secrets.STORE_LOGIN }}
snap: ${{ steps.build.outputs.snap }}
release: candidate

View File

@@ -1,15 +1,5 @@
#!/bin/sh #!/bin/sh
# a KDE session forces the KDE Plasma platformtheme which is incompatible with QET
# unset the ENV vars in that case to prevent loading of the theme
if [ ! -z "$KDE_FULL_SESSION" ]; then
unset KDE_FULL_SESSION
fi
if echo "$XDG_CURRENT_DESKTOP" | grep -q KDE; then
unset XDG_CURRENT_DESKTOP
fi
# migrate .qet directory from SNAP_USER_DATA to SNAP_USER_COMMON # migrate .qet directory from SNAP_USER_DATA to SNAP_USER_COMMON
from="$SNAP_USER_DATA/.qet" from="$SNAP_USER_DATA/.qet"
to="$SNAP_USER_COMMON/.qet" to="$SNAP_USER_COMMON/.qet"
@@ -23,12 +13,4 @@ fi
mkdir -p "$HOME/.qet" mkdir -p "$HOME/.qet"
ln -snf "$SNAP/bin/DXFtoQET" "$HOME/.qet/DXFtoQET" ln -snf "$SNAP/bin/DXFtoQET" "$HOME/.qet/DXFtoQET"
# start desktop portal. Open & save dialogs might fail if it is not running
dbus-send --print-reply \
--dest=org.freedesktop.DBus \
/org/freedesktop/DBus \
org.freedesktop.DBus.StartServiceByName \
string:org.freedesktop.portal.Desktop \
uint32:0
exec "${@}" exec "${@}"

View File

@@ -1,7 +1,7 @@
name: qelectrotech name: qelectrotech
title: QElectroTech title: QElectroTech
base: core18 base: core20
adopt-info: qelectrotech version: "0.8.0"
license: GPL-2.0 license: GPL-2.0
summary: Electrical diagram editor summary: Electrical diagram editor
description: | description: |
@@ -10,10 +10,7 @@ description: |
grade: stable grade: stable
confinement: strict confinement: strict
compression: lzo
architectures:
- build-on: amd64
run-on: amd64
layout: layout:
/usr/local/share/qelectrotech: /usr/local/share/qelectrotech:
@@ -30,15 +27,14 @@ apps:
extensions: [kde-neon] extensions: [kde-neon]
plugs: &plugs [opengl, unity7, home, removable-media, gsettings, network, cups-control] plugs: &plugs [opengl, unity7, home, removable-media, gsettings, network, cups-control]
environment: &env environment: &env
__EGL_VENDOR_LIBRARY_DIRS: $SNAP/kf5/usr/share/glvnd/egl_vendor.d:$SNAP/usr/share/glvnd/egl_vendor.d
TCL_LIBRARY: $SNAP/usr/share/tcltk/tcl8.6 TCL_LIBRARY: $SNAP/usr/share/tcltk/tcl8.6
QT_QPA_PLATFORMTHEME: gtk3
QT_AUTO_SCREEN_SCALE_FACTOR: 1
HOME: $SNAP_USER_COMMON HOME: $SNAP_USER_COMMON
PYTHONPATH: $SNAP:$SNAP/lib/python3.6/site-packages:$SNAP/usr/lib/python3.6:$SNAP/usr/lib/python3.6/lib-dynload PYTHONPATH: $SNAP:$SNAP/lib/python3.8/site-packages:$SNAP/usr/lib/python3.8:$SNAP/usr/lib/python3.8/lib-dynload
qet-tb-generator: qet-tb-generator:
command: bin/qelectrotech-launch $SNAP/bin/qet_tb_generator command: bin/qet_tb_generator
command-chain:
- bin/qelectrotech-launch
extensions: [kde-neon] extensions: [kde-neon]
plugs: *plugs plugs: *plugs
environment: *env environment: *env
@@ -58,8 +54,8 @@ parts:
qet-tb-generator: qet-tb-generator:
plugin: python plugin: python
python-version: python3 source: https://github.com/raulroda/qet_tb_generator-plugin.git
source: https://github.com/qelectrotech/qet_tb_generator.git python-packages: [PySimpleGUI]
stage-packages: stage-packages:
- python3-lxml - python3-lxml
- python3-tk - python3-tk
@@ -68,15 +64,15 @@ parts:
kde-sdk-setup: kde-sdk-setup:
plugin: nil plugin: nil
build-snaps: build-snaps:
- kde-frameworks-5-core18-sdk - kde-frameworks-5-qt-5-15-3-core20-sdk
build-packages: build-packages:
- g++ - g++
- mesa-common-dev - mesa-common-dev
- libglvnd-dev - libglvnd-dev
- rsync - rsync
override-build: | override-build: |
rsync -a --ignore-existing /snap/kde-frameworks-5-core18-sdk/current/ / rsync -a --ignore-existing /snap/kde-frameworks-5-qt-5-15-3-core20-sdk/current/ /
dxf-to-qet: dxf-to-qet:
after: [kde-sdk-setup] after: [kde-sdk-setup]
plugin: nil plugin: nil
@@ -91,19 +87,15 @@ parts:
after: [kde-sdk-setup] after: [kde-sdk-setup]
plugin: nil plugin: nil
source: . source: .
stage-packages: [ git, sqlite3 ] stage-packages: [ git, sqlite3, xdg-user-dirs ]
build-packages: build-packages:
- git - git
- libsqlite3-dev - libsqlite3-dev
override-pull: |
snapcraftctl pull
snap_version=$(git describe --dirty)
modified_displayed_version=$snap_version".snap"
sed -i -E "s|const QString displayedVersion =.*|const QString displayedVersion =\"$modified_displayed_version\";|" sources/qet.h
snapcraftctl set-version "$snap_version"
override-build: | override-build: |
modified_displayed_version="${SNAPCRAFT_PROJECT_VERSION}.snap"
sed -i -E "s|const QString displayedVersion =.*|const QString displayedVersion =\"$modified_displayed_version\";|" sources/qet.h
qmake "$SNAPCRAFT_PART_SRC/qelectrotech.pro" qmake "$SNAPCRAFT_PART_SRC/qelectrotech.pro"
make -j$(nproc) make -j${SNAPCRAFT_PARALLEL_BUILD_COUNT}
make install INSTALL_ROOT="$SNAPCRAFT_PART_INSTALL" make install INSTALL_ROOT="$SNAPCRAFT_PART_INSTALL"
override-stage: | override-stage: |
snapcraftctl stage snapcraftctl stage
@@ -114,11 +106,14 @@ parts:
cleanup: cleanup:
after: [qelectrotech, dxf-to-qet, qet-tb-generator] after: [qelectrotech, dxf-to-qet, qet-tb-generator]
plugin: nil plugin: nil
build-snaps: [core18, kde-frameworks-5-core18] build-snaps: [kde-frameworks-5-qt-5-15-3-core20]
override-prime: | override-prime: |
# Remove all files from snap that are already included in the base snap or in
# any connected content snaps
set -eux set -eux
for snap in "core18" "kde-frameworks-5-core18"; do # List all content-snaps and base snaps you're using here for snap in "kde-frameworks-5-qt-5-15-3-core20"; do # List all content-snaps you're using here
cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" \; cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" "$SNAPCRAFT_PRIME/usr/{}" \;
done done
for cruft in bug lintian man; do
rm -rf $SNAPCRAFT_PRIME/usr/share/$cruft
done
find $SNAPCRAFT_PRIME/usr/share/doc/ -type f -not -name 'copyright' -delete
find $SNAPCRAFT_PRIME/usr/share -type d -empty -delete

View File

@@ -1,4 +1,4 @@
<definition hotspot_y="52" version="0.51" hotspot_x="56" link_type="master" width="70" type="element" height="100"> <definition hotspot_y="52" version="0.51" hotspot_x="56" link_type="simple" width="70" type="element" height="100">
<uuid uuid="{2d6c186b-0578-4682-90c9-f77843432e9f}"/> <uuid uuid="{2d6c186b-0578-4682-90c9-f77843432e9f}"/>
<names> <names>
<name lang="cs">Motorový spouštěč 1P+N</name> <name lang="cs">Motorový spouštěč 1P+N</name>
@@ -12,9 +12,6 @@
<name lang="ar">قاطع مغناطيسي-حراري GV</name> <name lang="ar">قاطع مغناطيسي-حراري GV</name>
<name lang="hu">Motorvédő kapcsoló 1 pólusú GV</name> <name lang="hu">Motorvédő kapcsoló 1 pólusú GV</name>
</names> </names>
<kindInformations>
<kindInformation name="type" show="1">protection</kindInformation>
</kindInformations>
<informations></informations> <informations></informations>
<description> <description>
<polygon x1="0" y1="14" x5="0" y4="4" y5="4" x6="0" y7="-25" x2="0" y6="-6" y2="10" y3="10" x7="-7" antialias="true" x3="5" closed="false" x4="5" style="line-style:normal;line-weight:normal;filling:none;color:black"/> <polygon x1="0" y1="14" x5="0" y4="4" y5="4" x6="0" y7="-25" x2="0" y6="-6" y2="10" y3="10" x7="-7" antialias="true" x3="5" closed="false" x4="5" style="line-style:normal;line-weight:normal;filling:none;color:black"/>

View File

@@ -1,4 +1,4 @@
<definition hotspot_y="52" width="70" version="0.51" type="element" height="100" hotspot_x="56" link_type="master"> <definition hotspot_y="52" width="70" version="0.51" type="element" height="100" hotspot_x="56" link_type="simple">
<uuid uuid="{ec5fa3cd-6769-4a35-aaa9-6bc5ba4fc779}"/> <uuid uuid="{ec5fa3cd-6769-4a35-aaa9-6bc5ba4fc779}"/>
<names> <names>
<name lang="fr">Disjoncteur Magnéto-thermique GV 2P</name> <name lang="fr">Disjoncteur Magnéto-thermique GV 2P</name>
@@ -8,9 +8,6 @@
<name lang="cs">Motorový spouštěč 2P</name> <name lang="cs">Motorový spouštěč 2P</name>
<name lang="hu">Motorvédő kapcsoló 2 pólusú GV</name> <name lang="hu">Motorvédő kapcsoló 2 pólusú GV</name>
</names> </names>
<kindInformations>
<kindInformation name="type" show="1">protection</kindInformation>
</kindInformations>
<informations></informations> <informations></informations>
<description> <description>
<polygon y2="10" x3="-15" y4="4" x2="-20" y3="10" x5="-20" style="line-style:normal;line-weight:normal;filling:none;color:black" x1="-20" x4="-15" closed="false" y1="14" y6="-6" x7="-27" y5="4" antialias="true" y7="-25" x6="-20"/> <polygon y2="10" x3="-15" y4="4" x2="-20" y3="10" x5="-20" style="line-style:normal;line-weight:normal;filling:none;color:black" x1="-20" x4="-15" closed="false" y1="14" y6="-6" x7="-27" y5="4" antialias="true" y7="-25" x6="-20"/>

View File

@@ -1,4 +1,4 @@
<definition hotspot_y="52" version="0.51" hotspot_x="56" link_type="master" width="110" type="element" height="100"> <definition hotspot_y="52" version="0.51" hotspot_x="56" link_type="simple" width="110" type="element" height="100">
<uuid uuid="{2424a938-847f-447f-a4ad-d9b6ef730fd9}"/> <uuid uuid="{2424a938-847f-447f-a4ad-d9b6ef730fd9}"/>
<names> <names>
<name lang="de">Motorschutzschalter</name> <name lang="de">Motorschutzschalter</name>
@@ -12,9 +12,6 @@
<name lang="ar">قاطع مغناطيسي-حراري GV</name> <name lang="ar">قاطع مغناطيسي-حراري GV</name>
<name lang="hu">Motorvédő kapcsoló 3F + N pólusú</name> <name lang="hu">Motorvédő kapcsoló 3F + N pólusú</name>
</names> </names>
<kindInformations>
<kindInformation name="type" show="1">protection</kindInformation>
</kindInformations>
<informations></informations> <informations></informations>
<description> <description>
<line end1="none" x1="40" y1="39" x2="40" length1="1.5" y2="28" antialias="false" end2="none" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black"/> <line end1="none" x1="40" y1="39" x2="40" length1="1.5" y2="28" antialias="false" end2="none" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black"/>

View File

@@ -1,4 +1,4 @@
<definition hotspot_y="50" width="110" version="0.51" type="element" height="100" hotspot_x="56" link_type="master"> <definition hotspot_y="50" width="110" version="0.51" type="element" height="100" hotspot_x="56" link_type="simple">
<uuid uuid="{686e19c6-6bce-4ced-8c01-2d7f58a78386}"/> <uuid uuid="{686e19c6-6bce-4ced-8c01-2d7f58a78386}"/>
<names> <names>
<name lang="el">Θερμομαγνητικό</name> <name lang="el">Θερμομαγνητικό</name>
@@ -12,9 +12,6 @@
<name lang="de">Motorschutzschalter</name> <name lang="de">Motorschutzschalter</name>
<name lang="hu">Motorvédő kapcsoló 4 pólusú GV</name> <name lang="hu">Motorvédő kapcsoló 4 pólusú GV</name>
</names> </names>
<kindInformations>
<kindInformation name="type" show="1">protection</kindInformation>
</kindInformations>
<informations></informations> <informations></informations>
<description> <description>
<line y2="28" end1="none" length2="1.5" x2="40" style="line-style:normal;line-weight:normal;filling:none;color:black" x1="40" length1="1.5" y1="39" end2="none" antialias="false"/> <line y2="28" end1="none" length2="1.5" x2="40" style="line-style:normal;line-weight:normal;filling:none;color:black" x1="40" length1="1.5" y1="39" end2="none" antialias="false"/>

View File

@@ -1,4 +1,4 @@
<definition type="element" link_type="master" hotspot_x="31" hotspot_y="4" version="0.5" width="90" height="70"> <definition type="element" link_type="simple" hotspot_x="31" hotspot_y="4" version="0.5" width="90" height="70">
<uuid uuid="{98ADF831-42F0-4EDE-9267-6733EEBEAF62}"/><names> <uuid uuid="{98ADF831-42F0-4EDE-9267-6733EEBEAF62}"/><names>
<name lang="en">Motor circuit breaker</name> <name lang="en">Motor circuit breaker</name>
<name lang="es">Disyuntor termico magnetico 3P mando manual con auto retorno y boton de desenclave</name> <name lang="es">Disyuntor termico magnetico 3P mando manual con auto retorno y boton de desenclave</name>
@@ -10,9 +10,6 @@
<name lang="pl">Wyłącznik silnikowy</name> <name lang="pl">Wyłącznik silnikowy</name>
<name lang="hu">Motorvédő kapcsoló 3 pólusú</name> <name lang="hu">Motorvédő kapcsoló 3 pólusú</name>
</names> </names>
<kindInformations>
<kindInformation name="type" show="1">protection</kindInformation>
</kindInformations>
<informations>Author: The QElectroTech team <informations>Author: The QElectroTech team
License: see http://qelectrotech.org/wiki/doc/elements_license</informations> License: see http://qelectrotech.org/wiki/doc/elements_license</informations>
<description> <description>

View File

@@ -1,4 +1,4 @@
<definition type="element" link_type="master" hotspot_x="33" hotspot_y="5" version="0.5" width="110" height="70"> <definition type="element" link_type="simple" hotspot_x="33" hotspot_y="5" version="0.5" width="110" height="70">
<uuid uuid="{C33FE39E-B2EE-4EC0-BC3F-4EB76E9BCEA0}"/><names> <uuid uuid="{C33FE39E-B2EE-4EC0-BC3F-4EB76E9BCEA0}"/><names>
<name lang="en">Motor circuit breaker with neutral</name> <name lang="en">Motor circuit breaker with neutral</name>
<name lang="es">Disyuntor termico magnetico 3P+N mando manual con auto retorno y boton de desenclave</name> <name lang="es">Disyuntor termico magnetico 3P+N mando manual con auto retorno y boton de desenclave</name>
@@ -10,9 +10,6 @@
<name lang="pl">Wyłącznik silnikowy</name> <name lang="pl">Wyłącznik silnikowy</name>
<name lang="hu">Motorvédő kapcsoló 3F + N pólusú</name> <name lang="hu">Motorvédő kapcsoló 3F + N pólusú</name>
</names> </names>
<kindInformations>
<kindInformation name="type" show="1">protection</kindInformation>
</kindInformations>
<informations>Author: The QElectroTech team <informations>Author: The QElectroTech team
License: see http://qelectrotech.org/wiki/doc/elements_license</informations> License: see http://qelectrotech.org/wiki/doc/elements_license</informations>
<description> <description>

View File

@@ -1,4 +1,4 @@
<definition hotspot_y="50" version="0.51" hotspot_x="56" link_type="master" width="70" type="element" height="110"> <definition hotspot_y="50" version="0.51" hotspot_x="56" link_type="simple" width="70" type="element" height="110">
<uuid uuid="{68830151-5901-40f6-b94d-dc68b85165a2}"/> <uuid uuid="{68830151-5901-40f6-b94d-dc68b85165a2}"/>
<names> <names>
<name lang="fr">Disjoncteur differentiel 1P+N</name> <name lang="fr">Disjoncteur differentiel 1P+N</name>
@@ -8,9 +8,6 @@
<name lang="cs">Jističochránič 2P</name> <name lang="cs">Jističochránič 2P</name>
<name lang="hu">Differenciál-védőkapcsoló 1P+N termikus és zárlatvédelemmel</name> <name lang="hu">Differenciál-védőkapcsoló 1P+N termikus és zárlatvédelemmel</name>
</names> </names>
<kindInformations>
<kindInformation name="type" show="1">protection</kindInformation>
</kindInformations>
<informations></informations> <informations></informations>
<description> <description>
<line end1="none" x1="-29.6203" y1="28" x2="10" length1="1.5" y2="28" antialias="false" end2="none" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black"/> <line end1="none" x1="-29.6203" y1="28" x2="10" length1="1.5" y2="28" antialias="false" end2="none" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black"/>

View File

@@ -1,4 +1,4 @@
<definition hotspot_y="50" version="0.51" hotspot_x="56" link_type="master" width="110" type="element" height="110"> <definition hotspot_y="50" version="0.51" hotspot_x="56" link_type="simple" width="110" type="element" height="110">
<uuid uuid="{3fa48846-98c0-43e1-8a96-330d4dc11ceb}"/> <uuid uuid="{3fa48846-98c0-43e1-8a96-330d4dc11ceb}"/>
<names> <names>
<name lang="cs">Jističochránič 3P+N</name> <name lang="cs">Jističochránič 3P+N</name>
@@ -12,9 +12,6 @@
<name lang="ar">قاطع مغناطيسي-حراري GV</name> <name lang="ar">قاطع مغناطيسي-حراري GV</name>
<name lang="hu">Differenciál-védőkapcsoló 3P+N termikus és zárlatvédelemmel</name> <name lang="hu">Differenciál-védőkapcsoló 3P+N termikus és zárlatvédelemmel</name>
</names> </names>
<kindInformations>
<kindInformation name="type" show="1">protection</kindInformation>
</kindInformations>
<informations></informations> <informations></informations>
<description> <description>
<line end1="none" x1="-29.6203" y1="28" x2="49.5887" length1="1.5" y2="28" antialias="false" end2="none" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black"/> <line end1="none" x1="-29.6203" y1="28" x2="49.5887" length1="1.5" y2="28" antialias="false" end2="none" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black"/>

View File

@@ -1,4 +1,4 @@
<definition hotspot_y="50" version="0.51" hotspot_x="56" link_type="master" width="70" type="element" height="110"> <definition hotspot_y="50" version="0.51" hotspot_x="56" link_type="simple" width="70" type="element" height="110">
<uuid uuid="{20f65431-6f1f-4e09-9c73-68a1431c40a1}"/> <uuid uuid="{20f65431-6f1f-4e09-9c73-68a1431c40a1}"/>
<names> <names>
<name lang="fr">Disjoncteur differentiel 2P</name> <name lang="fr">Disjoncteur differentiel 2P</name>
@@ -8,9 +8,6 @@
<name lang="cs">Jističochránič 2P</name> <name lang="cs">Jističochránič 2P</name>
<name lang="hu">Differenciál-védőkapcsoló 2P termikus és zárlatvédelemmel</name> <name lang="hu">Differenciál-védőkapcsoló 2P termikus és zárlatvédelemmel</name>
</names> </names>
<kindInformations>
<kindInformation name="type" show="1">protection</kindInformation>
</kindInformations>
<informations></informations> <informations></informations>
<description> <description>
<polygon x1="-20" y1="14" x5="-20" y4="4" y5="4" x6="-20" y7="-25" x2="-20" y6="-6" y2="10" y3="10" x7="-27" antialias="true" x3="-15" closed="false" x4="-15" style="line-style:normal;line-weight:normal;filling:none;color:black"/> <polygon x1="-20" y1="14" x5="-20" y4="4" y5="4" x6="-20" y7="-25" x2="-20" y6="-6" y2="10" y3="10" x7="-27" antialias="true" x3="-15" closed="false" x4="-15" style="line-style:normal;line-weight:normal;filling:none;color:black"/>

View File

@@ -1,4 +1,4 @@
<definition hotspot_y="50" version="0.51" hotspot_x="56" link_type="master" width="90" type="element" height="110"> <definition hotspot_y="50" version="0.51" hotspot_x="56" link_type="simple" width="90" type="element" height="110">
<uuid uuid="{1e746e43-1906-4ea0-99a6-261e3c862dba}"/> <uuid uuid="{1e746e43-1906-4ea0-99a6-261e3c862dba}"/>
<names> <names>
<name lang="cs">Jističochránič 3P</name> <name lang="cs">Jističochránič 3P</name>
@@ -12,9 +12,6 @@
<name lang="ar">قاطع مغناطيسي-حراري GV</name> <name lang="ar">قاطع مغناطيسي-حراري GV</name>
<name lang="hu">Differenciál-védőkapcsoló 3P termikus és zárlatvédelemmel</name> <name lang="hu">Differenciál-védőkapcsoló 3P termikus és zárlatvédelemmel</name>
</names> </names>
<kindInformations>
<kindInformation name="type" show="1">protection</kindInformation>
</kindInformations>
<informations></informations> <informations></informations>
<description> <description>
<text text="I>" size="9" y="25" x="-24"/> <text text="I>" size="9" y="25" x="-24"/>

View File

@@ -1,4 +1,4 @@
<definition hotspot_y="50" version="0.51" hotspot_x="56" link_type="master" width="110" type="element" height="110"> <definition hotspot_y="50" version="0.51" hotspot_x="56" link_type="simple" width="110" type="element" height="110">
<uuid uuid="{fee3faef-5f4a-4a0b-bf0e-b6e93d9f9425}"/> <uuid uuid="{fee3faef-5f4a-4a0b-bf0e-b6e93d9f9425}"/>
<names> <names>
<name lang="de">Motorschutzschalter</name> <name lang="de">Motorschutzschalter</name>
@@ -12,9 +12,6 @@
<name lang="ar">قاطع مغناطيسي-حراري GV</name> <name lang="ar">قاطع مغناطيسي-حراري GV</name>
<name lang="hu">Differenciál-védőkapcsoló 4P termikus és zárlatvédelemmel</name> <name lang="hu">Differenciál-védőkapcsoló 4P termikus és zárlatvédelemmel</name>
</names> </names>
<kindInformations>
<kindInformation name="type" show="1">protection</kindInformation>
</kindInformations>
<informations></informations> <informations></informations>
<description> <description>
<polygon x1="-20" y1="14" x5="-20" y4="4" y5="4" x6="-20" y7="-25" x2="-20" y6="-6" y2="10" y3="10" x7="-27" antialias="true" x3="-15" closed="false" x4="-15" style="line-style:normal;line-weight:normal;filling:none;color:black"/> <polygon x1="-20" y1="14" x5="-20" y4="4" y5="4" x6="-20" y7="-25" x2="-20" y6="-6" y2="10" y3="10" x7="-27" antialias="true" x3="-15" closed="false" x4="-15" style="line-style:normal;line-weight:normal;filling:none;color:black"/>

Binary file not shown.

View File

@@ -826,7 +826,7 @@ Uwaga: te opcje nie pozwalają na zablokowanie automatycznej numeracji tylko ust
<message> <message>
<location filename="../sources/ui/conductorpropertieswidget.ui" line="58"/> <location filename="../sources/ui/conductorpropertieswidget.ui" line="58"/>
<source>Couleur du texte:</source> <source>Couleur du texte:</source>
<translation>Kolor tekstu:</translation> <translation>Kolor tekstu</translation>
</message> </message>
<message> <message>
<location filename="../sources/ui/conductorpropertieswidget.ui" line="151"/> <location filename="../sources/ui/conductorpropertieswidget.ui" line="151"/>
@@ -2600,7 +2600,7 @@ Wszystkie elementy i podkatalogi znajdujące się w tym katalogu zostaną usuni
<message> <message>
<location filename="../sources/editor/ui/ellipseeditor.ui" line="23"/> <location filename="../sources/editor/ui/ellipseeditor.ui" line="23"/>
<source>Centre :</source> <source>Centre :</source>
<translation>Środek:</translation> <translation>Środek</translation>
</message> </message>
<message> <message>
<location filename="../sources/editor/ui/ellipseeditor.ui" line="30"/> <location filename="../sources/editor/ui/ellipseeditor.ui" line="30"/>
@@ -5005,7 +5005,7 @@ Poniższe zmienne są zgodne:
<message> <message>
<location filename="../sources/print/projectprintwindow.ui" line="225"/> <location filename="../sources/print/projectprintwindow.ui" line="225"/>
<source>Si cette option est cochée, les marges de la feuille seront ignorées et toute sa surface sera utilisée pour l&apos;impression. Cela peut ne pas être supporté par votre imprimante.</source> <source>Si cette option est cochée, les marges de la feuille seront ignorées et toute sa surface sera utilisée pour l&apos;impression. Cela peut ne pas être supporté par votre imprimante.</source>
<translation>Jeżeli ta opcja jest zaznaczona, marginesy arkusza zostaną zignorowane, a cała jego powierzchnia zostanie wykorzystana do drukowania. Może to nie być obsługiwane przez Twoją drukarkę.</translation> <translation>Jeżeli ta opcja jest zaznaczona, marginesy arkusza zostaną zignorowane, a cała jego powierzchnia zostanie wykorzystana do drukowania. Może to nie być obsługiwane przez Twoją drukarkę. </translation>
</message> </message>
<message> <message>
<location filename="../sources/print/projectprintwindow.ui" line="259"/> <location filename="../sources/print/projectprintwindow.ui" line="259"/>
@@ -5117,7 +5117,7 @@ Poniższe zmienne są zgodne:
<message> <message>
<location filename="../sources/print/projectprintwindow.cpp" line="669"/> <location filename="../sources/print/projectprintwindow.cpp" line="669"/>
<source>Exporter sous : </source> <source>Exporter sous : </source>
<translation>Eksportuj jako: </translation> <translation>Eksportuj jako:</translation>
</message> </message>
<message> <message>
<location filename="../sources/print/projectprintwindow.cpp" line="669"/> <location filename="../sources/print/projectprintwindow.cpp" line="669"/>
@@ -6670,8 +6670,7 @@ Put DXFtoQET.exe binary on C:\Users\user_name\AppData\Roaming\qet\ directory
Odwiedź https://download.tuxfamily.org/qet/builds/dxf_to_elmt/ Odwiedź https://download.tuxfamily.org/qet/builds/dxf_to_elmt/
&gt;&gt; Instalacja w Windows &gt;&gt; Instalacja w Windows
Przenieś DXFtoQET.exe binary do C:\Users\user_name\AppData\Roaming\qet\ directory Przenieś DXFtoQET.exe binary do C:\Users\user_name\AppData\Roaming\qet\ directory</translation>
</translation>
</message> </message>
<message> <message>
<location filename="../sources/editor/qetelementeditor.cpp" line="169"/> <location filename="../sources/editor/qetelementeditor.cpp" line="169"/>
@@ -6685,8 +6684,7 @@ Put DXFtoQET.app binary on /Users/user_name/.qet/ directory
Odwiedź https://download.tuxfamily.org/qet/builds/dxf_to_elmt/ Odwiedź https://download.tuxfamily.org/qet/builds/dxf_to_elmt/
&gt;&gt; Instalacja w macOSX &gt;&gt; Instalacja w macOSX
Przenieś DXFtoQET.app binary do /Users/user_name/.qet/ directory Przenieś DXFtoQET.app binary do /Users/user_name/.qet/ directory</translation>
</translation>
</message> </message>
<message> <message>
<location filename="../sources/editor/qetelementeditor.cpp" line="175"/> <location filename="../sources/editor/qetelementeditor.cpp" line="175"/>
@@ -6702,8 +6700,7 @@ Odwiedź https://download.tuxfamily.org/qet/builds/dxf_to_elmt/
&gt;&gt; Instalacja w Linux &gt;&gt; Instalacja w Linux
Preznieś DXFtoQET binary do twojego /home/user_name/.qet/ directory Preznieś DXFtoQET binary do twojego /home/user_name/.qet/ directory
make it executable : chmod +x ./DXFtoQE make it executable : chmod +x ./DXFtoQE</translation>
</translation>
</message> </message>
<message> <message>
<location filename="../sources/editor/qetelementeditor.cpp" line="295"/> <location filename="../sources/editor/qetelementeditor.cpp" line="295"/>
@@ -8776,14 +8773,14 @@ Czy chcesz ją zastąpić?</translation>
<source>Les information à afficher sont supérieurs à la quantité maximal pouvant être affiché par les tableaux. <source>Les information à afficher sont supérieurs à la quantité maximal pouvant être affiché par les tableaux.
Veuillez ajouter un nouveau tableau ou regler les tableaux existant afin d&apos;afficher l&apos;integralité des informations.</source> Veuillez ajouter un nouveau tableau ou regler les tableaux existant afin d&apos;afficher l&apos;integralité des informations.</source>
<translation>Wyświetlane informacje większe niż maksymalna liczba, którą można wyświetlić w tabelach. <translation>Wyświetlane informacje większe niż maksymalna liczba, którą można wyświetlić w tabelach.
Dodaj nową tabelę lub dostosuj istniejące tabele, aby wyświetlić wszystkie informacje.</translation> Dodaj nową tabelę lub dostosuj istniejące tabele, aby wyświetlić wszystkie informacje. </translation>
</message> </message>
<message> <message>
<location filename="../sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.cpp" line="118"/> <location filename="../sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.cpp" line="118"/>
<source>Les information à afficher sont supérieurs à la quantité maximal pouvant être affiché par le tableau. <source>Les information à afficher sont supérieurs à la quantité maximal pouvant être affiché par le tableau.
Veuillez ajouter un nouveau tableau ou regler le tableau existant afin d&apos;afficher l&apos;integralité des informations.</source> Veuillez ajouter un nouveau tableau ou regler le tableau existant afin d&apos;afficher l&apos;integralité des informations.</source>
<translation>Wyświetlane informacje większe niż maksymalna liczba, którą można wyświetlić w tabeli. <translation>Wyświetlane informacje większe niż maksymalna liczba, którą można wyświetlić w tabeli.
Dodaj nową tabelę lub dostosuj istniejącą, aby wyświetlić wszystkie informacje.</translation> Dodaj nową tabelę lub dostosuj istniejącą, aby wyświetlić wszystkie informacje. </translation>
</message> </message>
<message> <message>
<location filename="../sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.cpp" line="121"/> <location filename="../sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.cpp" line="121"/>

View File

@@ -501,7 +501,7 @@ void DiagramView::mousePressEvent(QMouseEvent *e)
*/ */
void DiagramView::mouseMoveEvent(QMouseEvent *e) void DiagramView::mouseMoveEvent(QMouseEvent *e)
{ {
setToolTip(tr("X: %1 Y: %2").arg(e->pos().x()).arg(e->pos().y())); setToolTip(tr("(Dev) X: %1 Y: %2").arg(e->pos().x()).arg(e->pos().y()));
if (m_event_interface && m_event_interface->mouseMoveEvent(e)) return; if (m_event_interface && m_event_interface->mouseMoveEvent(e)) return;
// Drag the view // Drag the view

View File

@@ -95,13 +95,13 @@ void ProjectPrintWindow::launchDialog(QETProject *project, QPrinter::OutputForma
QString ProjectPrintWindow::docName(QETProject *project) QString ProjectPrintWindow::docName(QETProject *project)
{ {
QString doc_name; QString doc_name;
if (!project->filePath().isEmpty()) { if (!project->title().isEmpty()) {
doc_name = QFileInfo(project->filePath()).baseName(); doc_name = project->title();
} else if (!project->title().isEmpty()) { } else if (!project->filePath().isEmpty()) {
doc_name = project->title(); doc_name = QFileInfo(project->filePath()).baseName();
doc_name = QET::stringToFileName(doc_name);
} }
doc_name = QET::stringToFileName(doc_name);
if (doc_name.isEmpty()) { if (doc_name.isEmpty()) {
doc_name = tr("projet", "string used to generate a filename"); doc_name = tr("projet", "string used to generate a filename");
} }
@@ -666,7 +666,7 @@ QList<Diagram *> ProjectPrintWindow::selectedDiagram() const
void ProjectPrintWindow::exportToPDF() void ProjectPrintWindow::exportToPDF()
{ {
auto file_name = QFileDialog::getSaveFileName(this, tr("Exporter sous : "), m_printer->outputFileName(), tr("Fichier (*.pdf)")); auto file_name = QFileDialog::getSaveFileName(this, tr("Exporter sous : "), m_printer->outputFileName(), tr("Fichier (*.pdf"));
if (file_name.isEmpty()) { if (file_name.isEmpty()) {
return; return;
} }

View File

@@ -339,8 +339,11 @@ QString ProjectView::askUserForFilePath(bool assign) {
// if no filepath is provided, return an empty string // if no filepath is provided, return an empty string
if (filepath.isEmpty()) return(filepath); if (filepath.isEmpty()) return(filepath);
// // if the name does not end with the .qet extension, append it // if the name does not end with the .qet extension and we're _not_ using xdg-desktop-portal, append it
// if (!filepath.endsWith(".qet", Qt::CaseInsensitive)) filepath += ".qet"; bool usesPortal =
qEnvironmentVariableIsSet("FLATPAK_ID") ||
qEnvironmentVariableIsSet("SNAP_NAME");
if (!filepath.endsWith(".qet", Qt::CaseInsensitive) && !usesPortal) filepath += ".qet";
if (assign) { if (assign) {
// assign the provided filepath to the currently edited project // assign the provided filepath to the currently edited project

View File

@@ -98,14 +98,6 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<tabstops>
<tabstop>m_colums_count_sp</tabstop>
<tabstop>m_columns_width_sp</tabstop>
<tabstop>m_rows_count_sp</tabstop>
<tabstop>m_rows_height_sp</tabstop>
<tabstop>m_display_columns_cb</tabstop>
<tabstop>m_display_rows_cb</tabstop>
</tabstops>
<resources/> <resources/>
<connections/> <connections/>
</ui> </ui>

View File

@@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>666</width> <width>662</width>
<height>418</height> <height>418</height>
</rect> </rect>
</property> </property>
@@ -581,41 +581,6 @@
<header>kcolorbutton.h</header> <header>kcolorbutton.h</header>
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<tabstops>
<tabstop>tabWidget</tabstop>
<tabstop>tabWidget_2</tabstop>
<tabstop>m_multiwires_gb</tabstop>
<tabstop>m_one_text_per_folio_cb</tabstop>
<tabstop>m_text_size_sb</tabstop>
<tabstop>m_formula_le</tabstop>
<tabstop>m_text_le</tabstop>
<tabstop>m_show_text_cb</tabstop>
<tabstop>m_text_color_kpb</tabstop>
<tabstop>m_available_autonum_cb</tabstop>
<tabstop>m_edit_autonum_pb</tabstop>
<tabstop>m_function_le</tabstop>
<tabstop>m_tension_protocol_le</tabstop>
<tabstop>m_wire_color_le</tabstop>
<tabstop>m_wire_section_le</tabstop>
<tabstop>m_cable_le</tabstop>
<tabstop>m_bus_le</tabstop>
<tabstop>m_verti_cb</tabstop>
<tabstop>m_horiz_cb</tabstop>
<tabstop>m_singlewire_gb</tabstop>
<tabstop>m_phase_sb</tabstop>
<tabstop>m_update_preview_pb</tabstop>
<tabstop>m_neutral_cb</tabstop>
<tabstop>m_earth_cb</tabstop>
<tabstop>m_phase_cb</tabstop>
<tabstop>m_phase_slider</tabstop>
<tabstop>m_pen_cb</tabstop>
<tabstop>m_color_kpb</tabstop>
<tabstop>m_color_2_gb</tabstop>
<tabstop>m_dash_size_sb</tabstop>
<tabstop>m_color_2_kpb</tabstop>
<tabstop>m_cond_size_sb</tabstop>
<tabstop>m_line_style_cb</tabstop>
</tabstops>
<resources> <resources>
<include location="../../qelectrotech.qrc"/> <include location="../../qelectrotech.qrc"/>
</resources> </resources>

View File

@@ -17,7 +17,7 @@
<item row="0" column="0"> <item row="0" column="0">
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="currentIndex"> <property name="currentIndex">
<number>5</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="tab_3"> <widget class="QWidget" name="tab_3">
<attribute name="title"> <attribute name="title">
@@ -811,35 +811,19 @@ Vous pouvez spécifier ici la valeur par défaut de ce champ pour les éléments
</layout> </layout>
</widget> </widget>
<tabstops> <tabstops>
<tabstop>tabWidget</tabstop>
<tabstop>m_use_system_color_cb</tabstop> <tabstop>m_use_system_color_cb</tabstop>
<tabstop>m_use_gesture_trackpad</tabstop>
<tabstop>m_zoom_out_beyond_folio</tabstop>
<tabstop>m_use_windows_mode_rb</tabstop> <tabstop>m_use_windows_mode_rb</tabstop>
<tabstop>m_use_tab_mode_rb</tabstop> <tabstop>m_use_tab_mode_rb</tabstop>
<tabstop>m_save_label_paste</tabstop> <tabstop>m_use_gesture_trackpad</tabstop>
<tabstop>m_use_folio_label</tabstop> <tabstop>m_zoom_out_beyond_folio</tabstop>
<tabstop>m_export_terminal</tabstop>
<tabstop>m_border_0</tabstop>
<tabstop>m_autosave_sb</tabstop>
<tabstop>m_common_elmt_path_cb</tabstop> <tabstop>m_common_elmt_path_cb</tabstop>
<tabstop>m_custom_elmt_path_cb</tabstop> <tabstop>m_custom_elmt_path_cb</tabstop>
<tabstop>m_custom_tbt_path_cb</tabstop>
<tabstop>m_highlight_integrated_elements</tabstop> <tabstop>m_highlight_integrated_elements</tabstop>
<tabstop>m_default_elements_info</tabstop> <tabstop>m_default_elements_info</tabstop>
<tabstop>m_lang_cb</tabstop> <tabstop>m_lang_cb</tabstop>
<tabstop>m_dyn_text_font_pb</tabstop> <tabstop>m_dyn_text_font_pb</tabstop>
<tabstop>m_dyn_text_rotation_sb</tabstop> <tabstop>m_dyn_text_rotation_sb</tabstop>
<tabstop>m_dyn_text_width_sb</tabstop> <tabstop>m_dyn_text_width_sb</tabstop>
<tabstop>m_indi_text_font_pb</tabstop>
<tabstop>m_indi_text_rotation_sb</tabstop>
<tabstop>m_font_pb</tabstop>
<tabstop>DiagramEditor_xGrid_sb</tabstop>
<tabstop>DiagramEditor_yGrid_sb</tabstop>
<tabstop>DiagramEditor_xKeyGrid_sb</tabstop>
<tabstop>DiagramEditor_yKeyGrid_sb</tabstop>
<tabstop>DiagramEditor_xKeyGridFine_sb</tabstop>
<tabstop>DiagramEditor_yKeyGridFine_sb</tabstop>
</tabstops> </tabstops>
<resources/> <resources/>
<connections/> <connections/>

View File

@@ -29,7 +29,7 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../qelectrotech.qrc"> <iconset>
<normaloff>:/ico/16x16/folder-open.png</normaloff>:/ico/16x16/folder-open.png</iconset> <normaloff>:/ico/16x16/folder-open.png</normaloff>:/ico/16x16/folder-open.png</iconset>
</property> </property>
</widget> </widget>
@@ -40,21 +40,13 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../qelectrotech.qrc"> <iconset>
<normaloff>:/ico/16x16/document-save.png</normaloff>:/ico/16x16/document-save.png</iconset> <normaloff>:/ico/16x16/document-save.png</normaloff>:/ico/16x16/document-save.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</widget> </widget>
<tabstops> <resources/>
<tabstop>m_combo_box</tabstop>
<tabstop>m_load_pb</tabstop>
<tabstop>m_line_edit</tabstop>
<tabstop>m_save_pb</tabstop>
</tabstops>
<resources>
<include location="../../qelectrotech.qrc"/>
</resources>
<connections/> <connections/>
</ui> </ui>

View File

@@ -163,16 +163,6 @@ Veuillez utiliser l'éditeur avancé pour cela.</string>
</item> </item>
</layout> </layout>
</widget> </widget>
<tabstops>
<tabstop>m_line_edit</tabstop>
<tabstop>m_font_pb</tabstop>
<tabstop>m_advanced_editor_pb</tabstop>
<tabstop>m_x_sb</tabstop>
<tabstop>m_y_sb</tabstop>
<tabstop>m_angle_sb</tabstop>
<tabstop>m_size_sb</tabstop>
<tabstop>m_break_html_pb</tabstop>
</tabstops>
<resources/> <resources/>
<connections/> <connections/>
</ui> </ui>

View File

@@ -256,15 +256,6 @@
<header>kcolorbutton.h</header> <header>kcolorbutton.h</header>
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<tabstops>
<tabstop>m_style_cb</tabstop>
<tabstop>m_size_dsb</tabstop>
<tabstop>m_color_kpb</tabstop>
<tabstop>m_brush_style_cb</tabstop>
<tabstop>m_brush_color_kpb</tabstop>
<tabstop>m_lock_pos_cb</tabstop>
<tabstop>m_close_polygon</tabstop>
</tabstops>
<resources/> <resources/>
<connections/> <connections/>
</ui> </ui>

View File

@@ -2,14 +2,6 @@
<ui version="4.0"> <ui version="4.0">
<class>XRefPropertiesWidget</class> <class>XRefPropertiesWidget</class>
<widget class="QWidget" name="XRefPropertiesWidget"> <widget class="QWidget" name="XRefPropertiesWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>376</width>
<height>531</height>
</rect>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Form</string> <string>Form</string>
</property> </property>
@@ -273,20 +265,6 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<tabstops>
<tabstop>m_type_cb</tabstop>
<tabstop>m_snap_to_cb</tabstop>
<tabstop>m_offset_sb</tabstop>
<tabstop>m_xrefpos_cb</tabstop>
<tabstop>m_display_has_contacts_rb</tabstop>
<tabstop>m_display_has_cross_rb</tabstop>
<tabstop>m_master_le</tabstop>
<tabstop>m_slave_le</tabstop>
<tabstop>m_show_power_cb</tabstop>
<tabstop>m_power_prefix_le</tabstop>
<tabstop>m_delay_prefix_le</tabstop>
<tabstop>m_switch_prefix_le</tabstop>
</tabstops>
<resources/> <resources/>
<connections/> <connections/>
</ui> </ui>