Compare commits

...

1041 Commits

Author SHA1 Message Date
Simon De Backer
32a90493bd TEST a Merge branch 'XMLProperties'
it gets built let's test it for bugs

 Conflicts:
	sources/ElementsCollection/fileelementcollectionitem.cpp
	sources/QetGraphicsItemModeler/qetgraphicshandleritem.h
	sources/borderproperties.cpp
	sources/conductorproperties.cpp
	sources/conductorproperties.h
	sources/diagram.cpp
	sources/diagram.h
	sources/diagramprintdialog.cpp
	sources/diagramprintdialog.h
	sources/editor/graphicspart/customelementgraphicpart.cpp
	sources/editor/graphicspart/partarc.cpp
	sources/editor/graphicspart/partdynamictextfield.cpp
	sources/editor/graphicspart/partdynamictextfield.h
	sources/editor/graphicspart/partellipse.cpp
	sources/editor/graphicspart/partline.cpp
	sources/editor/graphicspart/partpolygon.cpp
	sources/editor/graphicspart/partrectangle.cpp
	sources/editor/graphicspart/partterminal.cpp
	sources/editor/graphicspart/partterminal.h
	sources/editor/graphicspart/parttext.cpp
	sources/properties/propertiesinterface.cpp
	sources/properties/propertiesinterface.h
	sources/properties/terminaldata.cpp
	sources/properties/terminaldata.h
	sources/properties/xrefproperties.cpp
	sources/properties/xrefproperties.h
	sources/qetgraphicsitem/conductor.cpp
	sources/qetgraphicsitem/conductor.h
	sources/qetgraphicsitem/conductortextitem.h
	sources/qetgraphicsitem/dynamicelementtextitem.h
	sources/qetgraphicsitem/element.cpp
	sources/qetgraphicsitem/element.h
	sources/qetgraphicsitem/elementtextitemgroup.h
	sources/qetgraphicsitem/slaveelement.cpp
	sources/qetgraphicsitem/slaveelement.h
	sources/qetgraphicsitem/terminal.cpp
	sources/qetgraphicsitem/terminal.h
	sources/qetproject.cpp
	sources/titleblockproperties.cpp
2020-10-13 22:31:58 +02:00
Simon De Backer
364012848c Fix code style 2020-10-13 17:44:08 +02:00
Simon De Backer
106b17cf2f QT6: QMutex::RecursionMode are obsolete
The default is QMutex::NonRecursive.
https://doc-snapshots.qt.io/qt6-dev/qmutex-obsolete.html
2020-10-13 17:43:26 +02:00
Claveau Joshua
d3da5a98a5 Minor : disable button for QPageSetupDialog on windows 2020-10-12 21:20:40 +02:00
Claveau Joshua
9b0e659300 Remove unused class 2020-10-12 21:02:48 +02:00
Martin Marmsoler
eb5494c360 Merge branch 'XMLProperties' of ssh://git.tuxfamily.org/gitroot/qet/qet into XMLProperties 2020-10-12 19:14:02 +02:00
Martin Marmsoler
c0d9bf9548 use more meaningful name 2020-10-12 19:11:01 +02:00
pavelfric
30f8989e3d Updated Czech translation 2020-10-11 21:56:53 +02:00
Martin Marmsoler
f79b1a52bb WIP 2020-10-11 11:05:22 +02:00
Claveau Joshua
e878082b79 Fix bug 203
https://qelectrotech.org/bugtracker/view.php?id=203
Take advantage of this bugfix, to recode the widget with Qt designer.
2020-10-10 16:58:02 +02:00
Martin Marmsoler
3509a1c7a5 add comments and move some initializations from the source file to the header file 2020-10-10 15:50:04 +02:00
Claveau Joshua
419585f97e Add new QAction : export to pdf 2020-10-10 14:37:23 +02:00
Martin Marmsoler
0dfe0c1613 let conductor textitem export to xml, because the read is also made from it 2020-10-10 12:25:58 +02:00
Martin Marmsoler
497673d83b make createProperty methods static, because they can be used also outside of this class 2020-10-10 12:21:37 +02:00
Claveau Joshua
44e945489a project print window : minor gui improvement 2020-10-10 12:12:50 +02:00
Martin Marmsoler
f18e6bd50f remove default parameter, because it leads only to confusion and errors 2020-10-10 12:02:38 +02:00
Claveau Joshua
b45c6b453e Minor fix : QetGraphicsTableItem keep his size when model is reseted or when open from xml. 2020-10-10 11:18:21 +02:00
Martin Marmsoler
9b8c0101be new method to load properties must be used, otherwise nothing valid will be read 2020-10-10 11:17:15 +02:00
Claveau Joshua
5d47ecd8f6 Fix : can't open print dialog on windows 2020-10-09 19:25:41 +02:00
Remi Collet
639ccb25e2 use pkgconfig for sqlite3 2020-10-09 08:37:27 +02:00
Martin Marmsoler
0cc6558281 Fix issue that conductors where connected wrong. This was, because instead of reusing the id's stored in the Terminal, new id's where created 2020-10-08 19:05:30 +02:00
Martin Marmsoler
52f886e34b add comment 2020-10-08 18:39:11 +02:00
Simon De Backer
746c5a81e3 Merge branch 'master' of ssh://debacker@git.tuxfamily.org/gitroot/qet/qet.git into master 2020-10-08 16:17:15 +02:00
Simon De Backer
4e44b4bcd4 QT6: Fix : dragging view don't work 2020-10-08 16:16:59 +02:00
Martin Marmsoler
a1cf3711a1 Fix issues 2020-10-07 08:05:01 +02:00
dlee99
04125dcc55 modified: lang/qet_nl.qm
modified:   lang/qet_nl.ts
2020-10-06 23:32:40 +02:00
Martin Marmsoler
b958848194 Update conductorproperties.cpp and conductor.cpp 2020-10-06 21:40:48 +02:00
Martin Marmsoler
2d21391a09 - AlignBottom shoud be the default
- move inital values to header file
2020-10-06 18:44:14 +02:00
Martin Marmsoler
beeeb252b4 fix problem of not showing reference labels 2020-10-06 17:07:16 +02:00
Martin Marmsoler
6d2a88e85f use default value if the parameter is not available 2020-10-06 12:48:39 +02:00
artgg7300
d6f08696bc translated hungarian files 2020-10-06 06:19:03 +02:00
Martin Marmsoler
8ef8a71680 add comment 2020-10-05 21:54:26 +02:00
Claveau Joshua
9193e1c39b Fix : dragging view don't work 2020-10-04 16:03:09 +02:00
David Varley
941aaf7087 Fix build for Qt < 5.10 2020-10-04 20:51:07 +11:00
Martin Marmsoler
8829974852 add comment 2020-10-04 09:34:34 +02:00
Martin Marmsoler
871a2642f4 use m_pos as value to store 2020-10-04 09:34:25 +02:00
Martin Marmsoler
9153588c94 store position when exporting to xml, because terminalData will create the document from m_pos 2020-10-04 09:33:16 +02:00
Martin Marmsoler
f3368f159d Fix problem that not all childs were added to the xml document 2020-10-03 20:50:08 +02:00
Simon De Backer
f5d2fc3916 Merge branch 'QT6' into master
initial release to Qt6

TODO:
 -remove KCoreAddons
 -remove KWidgetsAddons

* QT6: (24 commits)
  QT6: No Qt::AA_EnableHighDpiScaling in QT6
  QT6: TeDo mod QList for DeleteQGraphicsItemCommand
  QT6: Todo Fix QtConcurrent (remove KCoreAddons?)
  QT6: Todo QVariant::setValue
  QT6: std::min needs further tweaking
  QPrinting class needs further tweaking
  QT6: QStyleOptionGraphicsItem
  Add QActionGroup
  QT6: QStyleOptionGraphicsItem
  QT6: QLibraryInfo
  Totest QRegularExpression ok?
  QT6: QStyleOptionGraphicsItem
  QT6: QMouseEvent
  QT6: QDropEvent
  QT6: Fix deprecated QRegExp
  QT6: hooks added
  QT6: Mod unused function put in comments
  Add missing include QActionGroup
  QT6: set C++17
  QT6: diagramitemweight set val to Font::Weight
  ...
2020-10-03 16:18:03 +02:00
Simon De Backer
9f3c173b9f QT6: No Qt::AA_EnableHighDpiScaling in QT6 2020-10-03 16:08:55 +02:00
Simon De Backer
9a915c2ad0 QT6: TeDo mod QList for DeleteQGraphicsItemCommand 2020-10-03 16:07:55 +02:00
Simon De Backer
694cbfb1b7 QT6: Todo Fix QtConcurrent (remove KCoreAddons?) 2020-10-03 16:04:54 +02:00
Simon De Backer
f69e3a3fa7 QT6: Todo QVariant::setValue 2020-10-03 16:02:35 +02:00
Simon De Backer
8a5ba90d01 QT6: std::min needs further tweaking 2020-10-03 16:00:24 +02:00
Simon De Backer
32605e1377 QPrinting class needs further tweaking 2020-10-03 15:58:09 +02:00
Simon De Backer
0ab1b322d6 QT6: QStyleOptionGraphicsItem 2020-10-03 15:56:11 +02:00
Simon De Backer
a7920ea5fc Add QActionGroup 2020-10-03 15:54:38 +02:00
Simon De Backer
937a6d740b QT6: QStyleOptionGraphicsItem 2020-10-03 15:54:02 +02:00
Simon De Backer
a0b95ee944 QT6: QLibraryInfo 2020-10-03 15:51:53 +02:00
Simon De Backer
ad0df66ab1 Totest QRegularExpression ok? 2020-10-03 15:51:09 +02:00
Simon De Backer
c1e93fc442 QT6: QStyleOptionGraphicsItem 2020-10-03 15:48:40 +02:00
Simon De Backer
2e2a652343 QT6: QMouseEvent 2020-10-03 15:45:43 +02:00
Simon De Backer
074e2c8b2d QT6: QDropEvent 2020-10-03 15:42:58 +02:00
Simon De Backer
9034d8d791 QT6: Fix deprecated QRegExp 2020-10-03 15:40:32 +02:00
Simon De Backer
0b5091b606 QT6: hooks added 2020-10-03 12:04:35 +02:00
Simon De Backer
b339dc2812 QT6: Mod unused function put in comments 2020-10-03 12:03:44 +02:00
Simon De Backer
ce11610d1d Add missing include QActionGroup 2020-10-03 11:57:55 +02:00
Simon De Backer
10cc3cdbb7 QT6: set C++17 2020-10-03 11:57:55 +02:00
Simon De Backer
184560cc5d QT6: diagramitemweight set val to Font::Weight 2020-10-03 11:57:55 +02:00
Simon De Backer
0e10b4adfa QT6: QTextStream::setCodec use QTextStream::setEncoding 2020-10-03 11:57:54 +02:00
Simon De Backer
caac531de1 QT6: Mod QLibraryInfo::location use QLibraryInfo::path 2020-10-03 11:57:54 +02:00
Simon De Backer
bc0cb6b1b3 QT6: Mod Qt::MidButton Use Qt::MiddleButton 2020-10-03 11:57:54 +02:00
Simon De Backer
4f929ef3c9 QT6: Use the QByteArrayView overload. 2020-10-03 11:57:54 +02:00
Laurent Trinques
3b71cb7dfe Revert "macOS : disable project database export"
This reverts commit fbe1c05c7d.
2020-10-03 07:06:05 +02:00
Laurent Trinques
fbe1c05c7d macOS : disable project database export 2020-10-03 06:39:33 +02:00
Claveau Joshua
6437bf212a Add macro to disable/enable project database export 2020-10-02 20:09:03 +02:00
Claveau Joshua
aa9266ab64 Minor : use Diagram::showMe() method instead of emit several signal to do the same thing 2020-10-02 19:41:17 +02:00
Claveau Joshua
8507040aa2 Improve how element editor is opened to edit an element in a diagram.
Before this commit :
ElementPropertiesWidget emit a signal of Diagram to edit an element, and
the signal goes up from Diagram -> DiagramView -> ProjectView ->
QetDiagramEditor and QetDiagramEditor call a static function.
Now :
ElementPropertiesWidget call the static function itself and that all.
All unnecessary signals are removed.
2020-10-02 19:28:52 +02:00
Claveau Joshua
e263264752 Minor : revamp code about shortcut for edit conductor color 2020-10-02 18:57:11 +02:00
Claveau Joshua
7038e6f796 Clean diagram view code 2020-10-02 18:38:24 +02:00
Claveau Joshua
e0201a8027 Remove old Backward compatibility: prior to version 0.3 2020-10-02 17:39:07 +02:00
Ole Carlsen
cbdbdd0ec6 Updated Danish translation 2020-10-02 16:37:17 +02:00
Martin Marmsoler
9521a8aa0b WIP 2020-10-02 15:49:35 +02:00
Martin Marmsoler
c8691b243b if no uuid for the terminal is available, use write the id of the terminal to the xml file, otherwise no connection can be done after saving 2020-10-02 14:58:33 +02:00
Martin Marmsoler
9684d753ec write uuid only in partterminal to xml, because in the other case it is not needed 2020-10-02 14:57:06 +02:00
Martin Marmsoler
15ca6096ca rename f to conductor for better readability 2020-10-02 14:56:15 +02:00
Claveau Joshua
9dda3e5997 Fix fail to build on windows 2020-10-01 19:29:09 +02:00
Martin Marmsoler
a92683f3fa add comment 2020-10-01 16:51:17 +02:00
Martin Marmsoler
9e54137224 add explanation 2020-10-01 16:39:12 +02:00
Martin Marmsoler
91a56799a7 Solves problem that terminals are not placed at the correct place 2020-10-01 16:31:15 +02:00
Martin Marmsoler
10e767c3e0 add comments 2020-10-01 16:28:48 +02:00
Martin Marmsoler
27a63bbf2b WIP 2020-10-01 14:38:08 +02:00
Laurent Trinques
94e29ef749 Fix installation-paths 2020-10-01 08:10:50 +02:00
Claveau Joshua
add11e7c7a Print preview dialog : Add selection by date.
Add two news option for select diagrams to print :
select "from the date :" and select "at the date".
2020-09-30 21:29:17 +02:00
Laurent Trinques
930bb70f99 Update *TS files 2020-09-30 13:14:13 +02:00
Laurent Trinques
78ecc53b89 Minor 2020-09-30 13:09:56 +02:00
Laurent Trinques
6eec588eb9 Fix typo 2020-09-30 13:04:45 +02:00
Laurent Trinques
1e0ca043e7 Fix typo in comments 2020-09-30 12:58:14 +02:00
Laurent Trinques
191eabd0a2 Flatak build: Fix the installation paths 2020-09-30 06:07:03 +02:00
Claveau Joshua
18f536d801 Revamp the print preview window 2020-09-29 22:54:09 +02:00
Ole Carlsen
7f698bd826 Danish translation updated 2020-09-28 20:33:39 +02:00
Martin Marmsoler
adc28d32b9 revert saving title block properties in it's own child, because it makes more sense directly in the diagram 2020-09-28 16:29:09 +02:00
Martin Marmsoler
48cce42cfe fix wrong position of segments when loading file. This was, because not the segment property is asked, but the parent and this will not work
additionally support legacy orientation
2020-09-28 15:42:57 +02:00
Maximilian Federle
0907830d67 snap: Fix whitespace in snapcraft.yaml 2020-09-27 12:44:08 +02:00
Laurent Trinques
35fb45c280 Flatpak refresh 0001-build-Fix-the-installation-paths.patch 2020-09-26 22:54:51 +02:00
Laurent Trinques
ea5ba0ecc8 DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 for Snap package
see :
https://snapcraft.io/qelectrotech/builds/1126332
2020-09-26 22:19:40 +02:00
Simon De Backer
f77255c762 Add position mouse cursor in DiagramView 2020-09-25 22:06:11 +02:00
Simon De Backer
546433cac2 WIP: Add Kabel to qet 2020-09-24 22:39:48 +02:00
Simon De Backer
30b8205f82 Mod some qWarning add QObject::tr 2020-09-24 22:39:11 +02:00
Simon De Backer
3b9ba6a261 WIP: Add Kabel to qet 2020-09-24 18:53:00 +02:00
Simon De Backer
36dbe65457 Add TODO compile var + Fix doxygen issue
You can make your code warn on compile time for the TODO's
In order to do so, uncomment the following line. in pro file
DEFINES += TODO_LIST
2020-09-24 17:01:33 +02:00
Laurent Trinques
65ba816859 Try to fix Snap package with sqite3 new depend 2020-09-24 12:19:30 +02:00
Simon De Backer
bfd487effe Fix QRegularExpression pattern 2020-09-23 23:11:33 +02:00
Simon De Backer
d9f38f8a5d Fix QRegularExpression
-add isValid
-add debug
2020-09-23 22:50:41 +02:00
Simon De Backer
2fe53ba6e8 Fix QRegularExpression
-add isValid
-add debug
2020-09-23 22:19:13 +02:00
Simon De Backer
b5ae1237e3 Fix QRegularExpression
-add isValid
-add debug
2020-09-23 21:36:48 +02:00
Simon De Backer
e0c8dd9585 Fix Revert deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users
This function was introduced in Qt 5

see https://qelectrotech.org/forum/viewtopic.php?pid=13406#p13406
2020-09-23 19:03:13 +02:00
artgg7300
86f7f98031 Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet 2020-09-23 17:53:01 +02:00
artgg7300
c829a9eb2d updated hungarian files 2020-09-23 17:39:39 +02:00
Laurent Trinques
1cf48f62e9 Fix commit "Change the way how the database is exported to file" :
produce a fail to build on OSX
2020-09-23 11:25:46 +02:00
David Varley
6a47fcddc9 Merge branch 'dxf' 2020-09-23 07:50:42 +10:00
Simon De Backer
77321f6b70 Revert "Fix deprecated QRegExp"
This reverts commit 0a46b83dca.
see https://qelectrotech.org/forum/viewtopic.php?pid=13378#p13378
2020-09-22 21:12:10 +02:00
David Varley
45137987ab DXF - remove a couple of debug messages 2020-09-22 19:47:02 +10:00
David Varley
2d6bef71ae DXF - Add some color 2020-09-22 19:41:47 +10:00
David Varley
bcc5846662 DXF - Cleaning up scaling 2020-09-22 12:16:32 +10:00
Simon De Backer
2a69e540d6 Fix Qt 6 definition of macro ‘Q_DECLARE_MOVABLE_CONTAINER’
adding #include <QHash>

+ code fail to compile if it uses deprecated APIs.
=> see .pro file
2020-09-21 21:19:50 +02:00
Simon De Backer
c958d54d01 Fix Qt 6 deprecated QDockWidget::AllDockWidgetFeatures
(Deprecated) The dock widget can be closed, moved, and floated.
Since new features might be added in future releases,
the look and behavior of dock widgets might change if you use this flag.
Please specify individual flags instead.
2020-09-21 21:16:05 +02:00
Simon De Backer
a917399950 Fix Qt 6 deprecated QComboBox::AdjustToMinimumContentsLength
Use
- QComboBox::AdjustToContents
- QComboBox::AdjustToContentsOnFirstShow
instead.
2020-09-21 20:42:40 +02:00
Simon De Backer
f671a63366 Fix Qt 6 deprecated QVBoxLayout::setMargin
Use QVBoxLayout::setContentsMargins instead.
2020-09-21 20:37:10 +02:00
Simon De Backer
c7ffae7918 Fix Qt 6 deprecated Qt::SystemLocaleShortDate
The format options
Qt::SystemLocaleDate, Qt::SystemLocaleShortDate
and Qt::SystemLocaleLongDate
shall be removed in Qt 6.
	Their use should be replaced with
QLocale::system().toString(date, QLocale::ShortFormat)
or
QLocale::system().toString(date, QLocale::LongFormat).
2020-09-21 20:23:20 +02:00
Laurent Trinques
f21cdb4040 Update de translation, thanks Lars 2020-09-21 07:11:42 +02:00
Claveau Joshua
89f9f47174 Remove unused code 2020-09-20 11:40:18 +02:00
Simon De Backer
24d4885093 Fix deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users

This function was introduced in Qt 5
2020-09-19 01:13:18 +02:00
Simon De Backer
b7c8ae88e2 Fix code style 2020-09-19 01:13:13 +02:00
Simon De Backer
176dcd376b Fix deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users

This function was introduced in Qt 5
2020-09-19 01:13:09 +02:00
Simon De Backer
813014ec33 Fix deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users

This function was introduced in Qt 5
2020-09-19 01:13:01 +02:00
Simon De Backer
4c54335301 Fix deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users

This function was introduced in Qt 5
2020-09-19 01:12:54 +02:00
Simon De Backer
3eca82baad Fix deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users

This function was introduced in Qt 5
2020-09-19 01:12:46 +02:00
Simon De Backer
93055c6a96 Fix deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users

This function was introduced in Qt 5
2020-09-19 01:12:38 +02:00
Simon De Backer
7fb4033ece Fix deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users

This function was introduced in Qt 5
2020-09-19 01:12:29 +02:00
Simon De Backer
0b3238aac0 Fix deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users

This function was introduced in Qt 5
2020-09-19 01:12:20 +02:00
Simon De Backer
859f6dd06d Fix deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users

This function was introduced in Qt 5
2020-09-19 01:12:13 +02:00
Simon De Backer
432e80cecb Fix deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users

This function was introduced in Qt 5
2020-09-19 01:12:05 +02:00
Simon De Backer
46e96f0a67 Fix deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users

This function was introduced in Qt 5
2020-09-19 01:11:54 +02:00
Simon De Backer
0ee8f4187b Fix deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users

This function was introduced in Qt 5
2020-09-19 01:11:46 +02:00
Simon De Backer
402d2fbf4a Fix deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users

This function was introduced in Qt 5
2020-09-19 01:11:37 +02:00
Simon De Backer
271fd096e2 Fix deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users

This function was introduced in Qt 5
2020-09-19 01:11:28 +02:00
Simon De Backer
c5be1a98ba Fix deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users

This function was introduced in Qt 5
2020-09-19 01:11:17 +02:00
Simon De Backer
0a46b83dca Fix deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users

This function was introduced in Qt 5
2020-09-19 01:11:08 +02:00
Simon De Backer
c7f138a0e3 Fix deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users

This function was introduced in Qt 5
2020-09-19 01:10:54 +02:00
Claveau Joshua
215ddbd878 Minor : minimize code 2020-09-18 11:48:11 +02:00
David Varley
4d7ece07ab DXF - Simplifying, WIP 2020-09-17 21:45:14 +10:00
Claveau Joshua
139241e773 Change the way how the database is exported to file
The export of internal database to file is now do by sqlite3 native
function instead of a dirty home made function.
For the moment, the export to file function is unavailable on macOSX (we
need some help to add sqlite3 lib on macOSX)
2020-09-16 21:28:47 +02:00
Martin Marmsoler
6080a7b9c9 WIP 2020-09-14 21:21:32 +02:00
David Varley
07df62e362 DXF - Fix single shape rectangle scaling 2020-09-14 12:29:36 +10:00
David Varley
a68386c028 Merge branch 'cborn' of https://github.com/C-Born-Software/qelectrotech-source-mirror into cborn 2020-09-14 11:45:52 +10:00
Claveau Joshua
8e82dee8f0 Minor 2020-09-13 15:39:20 +02:00
Claveau Joshua
529027a350 Fix bug N°201: Line changes in the drawing area are not reflexted in the information area 2020-09-13 15:11:45 +02:00
Claveau Joshua
726b300999 Fix bug N°202 : Wrong bounding rect for primitive arc.
https://qelectrotech.org/bugtracker/view.php?id=202
2020-09-11 19:11:14 +02:00
Simon De Backer
989cd93a14 Remove old orientation for element Attribute in XML 2020-09-11 06:56:01 +02:00
David Varley
6b1d51bab8 DXF - Add Polylines, use for conductors and rectangles 2020-09-11 11:22:08 +10:00
David Varley
046d7c6b59 DXF - Add terminals to plot (optional) 2020-09-10 18:35:22 +10:00
David Varley
cd7f7eccec Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet 2020-09-10 00:18:39 +10:00
David Varley
45fb97f410 Start cborn branch - disable annoying startup warning 2020-09-10 00:16:03 +10:00
David Varley
d5d8181332 DXF - fine tune text item locations 2020-09-10 00:12:45 +10:00
Simon De Backer
0310cd2610 Revert "Add user warning on startup"
This reverts commit 87c957a062.
2020-09-08 17:53:37 +02:00
David Varley
713d467fe4 Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet 2020-09-08 22:10:31 +10:00
David Varley
cc8d0da0ac DXF - Fix conductor number positioning, add junction dots 2020-09-08 21:44:58 +10:00
dlee99
c0ced6dc56 Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet into master 2020-09-07 23:02:22 +02:00
dlee99
288c89daa7 modified: lang/qet_nl.qm
modified:   lang/qet_nl.ts
2020-09-07 23:00:49 +02:00
Simon De Backer
dce83f480c Add name to Terminal
now it is possible to enter the terminal name
2020-09-07 22:35:49 +02:00
Simon De Backer
5d92393ee7 Wrap code for better readability 2020-09-07 22:03:40 +02:00
Simon De Backer
8ee38fab9e Fix Coding convention
Please download and use
https://qelectrotech.org/wiki_new/_media/doc/qtcreator-qet-style.xml
when you write code in Qt
2020-09-07 21:41:45 +02:00
David Varley
babf3d2cf2 Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet 2020-09-07 22:14:07 +10:00
Laurent Trinques
82c8fb2d01 Update en fr translation 2020-09-07 10:51:56 +02:00
David Varley
68b4705630 Tidy up som comments 2020-09-07 16:27:59 +10:00
David Varley
d062175da7 Add tables to dxf export 2020-09-07 16:16:33 +10:00
Laurent Trinques
561209bc94 Update *TS files 2020-09-06 23:54:59 +02:00
Simon De Backer
87808df6c3 Moved message to QString 2020-09-05 20:09:08 +02:00
Simon De Backer
87c957a062 Add user warning on startup
notify the user of the use of dev software

ToDo: the text still needs to be adjusted
2020-09-05 00:27:24 +02:00
Simon De Backer
610a44c7cd Removed some Q_UNUSED 2020-09-04 23:19:59 +02:00
Simon De Backer
1bc2536c06 Add documentation 2020-09-04 21:13:10 +02:00
Simon De Backer
1528e1ebe2 Add build git commit sha in log file 2020-09-04 21:10:43 +02:00
David Varley
f8611c1b6e DXF Border Numbering - fix offset 2020-09-04 22:41:59 +10:00
David Varley
71d7f8bbe6 Fix some DXF issues 2020-09-04 16:06:06 +10:00
Ole Carlsen
ec464282f3 Updated Danish translation 2020-09-02 08:48:56 +02:00
Simon De Backer
81da7c6713 Fix dubbel // on log file dir 2020-08-31 22:26:03 +02:00
Simon De Backer
a4654dc6c2 remove old orientation for element Attribute in XML and code 2020-08-31 21:36:03 +02:00
Simon De Backer
504a061e71 Add loading time of collections inf to log 2020-08-31 21:22:26 +02:00
Simon De Backer
51c4b16836 Add log file's viewer in AboutQETDialog for user 2020-08-31 21:21:17 +02:00
Claveau Joshua
4a8e07b227 Fix csv export 2020-08-31 20:29:50 +02:00
sdeffaux
db4e8e3f5e add symbols 2020-08-30 19:00:31 +02:00
Laurent Trinques
6274f65455 AboutQETDialog : add Authors 2020-08-29 23:45:25 +02:00
Simon De Backer
00eb139f73 This property is obsolete. 2020-08-29 19:34:45 +02:00
Simon De Backer
62d370c99a Wrap code for better readability 2020-08-29 19:21:51 +02:00
Simon De Backer
cb0c0f8778 Fix Margin voor windows OS 2020-08-29 19:20:44 +02:00
Simon De Backer
f4550ab3b4 Wrap code for better readability 2020-08-28 18:32:24 +02:00
Simon De Backer
d8cbcf3b54 Restore add_new_diagram_button 2020-08-27 17:06:47 +02:00
Simon De Backer
63ad341b33 Fix add header file 2020-08-27 16:31:39 +02:00
Laurent Trinques
bd62f8768e ProjectView add arrows key for quickly navigate in projects
disable momentary "add diagram" button
2020-08-27 14:24:02 +02:00
Laurent Trinques
d9fde9a3e4 Doxyfile restore QCH 2020-08-26 11:01:58 +02:00
Laurent Trinques
f4c5087dc0 Restore opening of projects on the first folio 2020-08-26 02:38:25 +02:00
Laurent Trinques
0959330adf CSV export : Add "conductor_color & conductor_section" to
projectDataBase
2020-08-26 02:12:00 +02:00
Simon De Backer
4763eb92ec Update Doxyfile
bron See
https://qelectrotech.org/forum/viewtopic.php?pid=12901#p12901

run
doxygen Doxyfile
in project dir or met Qt
2020-08-25 21:12:47 +02:00
Simon De Backer
9e4af439ef Wrap code for better readability 2020-08-25 20:52:49 +02:00
Martin Marmsoler
c5f1705745 go on with the work 2020-08-25 20:14:38 +02:00
Simon De Backer
dfadcb5523 Small change to TRANSLATIONS 2020-08-24 22:22:56 +02:00
Simon De Backer
995066916b Decreases the number of declaring variables
for improve readability
2020-08-24 22:10:58 +02:00
Simon De Backer
debca09d5c Translate documentation + Fix indentation 2020-08-24 22:02:22 +02:00
Martin Marmsoler
a10709157d update 2020-08-24 20:34:18 +02:00
Simon De Backer
9dad8a5d01 Fix Bug Fill the combo box "element information" was not called
a typo it happens :)
See commit
216374d27c
2020-08-23 17:47:53 +02:00
artgg7300
347de4bcd3 updated hungarian files 2020-08-23 16:17:41 +02:00
Claveau Joshua
7960697b9e Remove unused class 2020-08-21 14:39:35 +02:00
Claveau Joshua
0e6b385be2 Write backup improvement.
Remove the waitForFinished function to truly use the multi-threading.
2020-08-21 00:25:20 +02:00
Simon De Backer
4b4732a0a8 Fix doxygen issue 2020-08-20 22:35:25 +02:00
Simon De Backer
331918d143 Wrap code for better readability 2020-08-20 21:58:23 +02:00
Simon De Backer
0c00d83b27 Fix some doxygen issues 2020-08-20 21:57:35 +02:00
Laurent Trinques
8626ca5d1b Minor fix 2020-08-20 19:45:20 +02:00
Laurent Trinques
e05754da29 Machine_info : improve code 2020-08-20 19:34:07 +02:00
Laurent Trinques
b4f733a5e5 Machine_info : add Windows RAM Available 2020-08-20 18:09:37 +02:00
Simon De Backer
9352905335 Remove some code not in a class or in a function (Q_OS_WIN) 2020-08-20 17:50:29 +02:00
Simon De Backer
88686b3cbf Wrap code for better readability 2020-08-20 17:45:24 +02:00
Simon De Backer
d1c91a7fc2 Fix some doxygen issues 2020-08-20 17:44:59 +02:00
Laurent Trinques
f24f04084c Machine_info : add Windows RAM informations 2020-08-20 06:05:55 +02:00
Simon De Backer
e3093bd06c Fix doxygen issue, Mod to and from Settings
what does this code do?
2020-08-19 21:29:18 +02:00
Simon De Backer
cdb2e7b523 Wrap code for better readability 2020-08-19 21:27:14 +02:00
Simon De Backer
666f20856e Fix some doxygen issues 2020-08-19 21:26:36 +02:00
Simon De Backer
f5725531c2 Fix some doxygen issues 2020-08-19 17:31:02 +02:00
Simon De Backer
5dd57cf003 Wrap code for better readability 2020-08-19 17:30:18 +02:00
Simon De Backer
566747eb2b Improve code style, Wrap code for better readability 2020-08-18 21:29:12 +02:00
Simon De Backer
8e956df8d8 Fix some doxygen issues 2020-08-18 21:28:52 +02:00
Simon De Backer
ef15013715 Add QElectroTech Version in log file 2020-08-18 21:24:22 +02:00
sdeffaux
20896de561 Update hag_cds765f.elmt 2020-08-18 20:47:57 +02:00
sdeffaux
8cdcb59da2 add symbols 2020-08-18 20:47:57 +02:00
sdeffaux
35f206bc7e Add symbols Hager et Legrand 2020-08-18 20:47:57 +02:00
Simon De Backer
99abc165d6 Wrap code for better readability 2020-08-18 20:08:32 +02:00
Simon De Backer
790cdc5229 Fix some doxygen issues (~100) 2020-08-18 20:07:55 +02:00
Simon De Backer
b5f212418c Improve code style, Wrap code for better readability 2020-08-17 21:24:46 +02:00
Simon De Backer
b28ca0361d Fix some doxygen issues 2020-08-17 21:24:20 +02:00
Simon De Backer
2482a0bd4c Fix log files in wrong dir
when arguments are used,
the log file change from dir,
result 2 log files,
and 1 log file is not deleted by
void delete_old_log_files(int days)
2020-08-17 19:12:52 +02:00
Claveau Joshua
319188e010 Export to csv improvement
Export to csv doesn't use is own datase, but the project database
instead.
2020-08-17 16:42:07 +02:00
Laurent Trinques
bc0fecea6c Merge branch 'C-Born-Software-dxf' into master 2020-08-17 10:23:29 +02:00
David Varley
a4c829fbcd Merge branch 'master' into dxf 2020-08-17 16:02:06 +10:00
David Varley
73dd1e8299 Merge branch 'master' of https://github.com/qelectrotech/qelectrotech-source-mirror 2020-08-17 15:53:19 +10:00
David Varley
430ec27f36 Fix dxf export of autosize text cells in titleblock 2020-08-17 15:38:24 +10:00
David Varley
0cb98b2ee1 Adjust alignment of titleblock text in DXF export 2020-08-17 09:13:19 +10:00
Simon De Backer
41cef49453 Improve code style, Wrap code for better readability 2020-08-16 14:26:40 +02:00
Simon De Backer
c4bf492616 Improve code style 2020-08-16 14:26:04 +02:00
Simon De Backer
bc176da88d Improve code style, Wrap code for better readability 2020-08-16 14:25:48 +02:00
Simon De Backer
e55d336dc1 Improve code style 2020-08-16 14:25:31 +02:00
Simon De Backer
6c806d151d Improve code style 2020-08-16 14:25:14 +02:00
Simon De Backer
5e3e3aa4bd Improve code style, Wrap code for better readability, Mod doc 2020-08-16 14:24:51 +02:00
Simon De Backer
3b3ce2cb7c Improve code style, Wrap code for better readability 2020-08-16 14:24:12 +02:00
Simon De Backer
928b56f2bf Improve code style, Wrap code for better readability 2020-08-16 14:23:59 +02:00
Simon De Backer
8144e9b21b Wrap code for better readability 2020-08-16 14:23:42 +02:00
Simon De Backer
8a484ef901 Improve code style 2020-08-16 14:23:25 +02:00
Simon De Backer
574609abf5 Improve code style 2020-08-16 14:22:54 +02:00
Simon De Backer
76d16ab600 Improve code style, Wrap code for better readability 2020-08-16 14:22:36 +02:00
Simon De Backer
60a5a83320 Improve code style, Wrap code for better readability 2020-08-16 14:22:21 +02:00
Simon De Backer
e9fcd385d5 Improve code style, Wrap code for better readability 2020-08-16 14:22:12 +02:00
Simon De Backer
4ed33109f4 Improve code style, Wrap code for better readability 2020-08-16 14:21:55 +02:00
Simon De Backer
a83ee76f39 Fix Copyright indentation 2020-08-16 14:19:38 +02:00
Simon De Backer
3783a6a543 Fix warning 'setParts' is not marked 'override' 2020-08-16 14:07:46 +02:00
Laurent Trinques
070cc2e4ac Typo 2020-08-16 12:34:49 +02:00
Yuki Atoh
012d969d92 Fix Japanese 2020-08-16 12:23:41 +02:00
Yuki Atoh
e22c618152 Add Japanese translations for IEC 60617 2020-08-16 12:23:41 +02:00
Yuki Atoh
93929399b6 Add Japanese translations of qet_directory 2020-08-16 12:23:41 +02:00
David Varley
ea9a230844 Fix dxf export for border 2020-08-16 12:22:36 +02:00
Simon De Backer
d4ee161c07 Mod doc set style de same 2020-08-16 11:19:36 +02:00
Simon De Backer
90417ae509 Fix Copyright indentation 2020-08-16 09:40:14 +02:00
David Varley
2b396960d9 Merge branch 'master' of https://github.com/qelectrotech/qelectrotech-source-mirror 2020-08-16 15:57:55 +10:00
David Varley
ddc2afa427 Fix dxf export for border 2020-08-16 15:39:20 +10:00
Simon De Backer
5832e365e9 Fix log file Dir 2020-08-15 21:40:07 +02:00
Laurent Trinques
dff825810c Update *TS files 2020-08-15 18:35:27 +02:00
Laurent Trinques
12ddd3256e Update translations_stat.pl script 2020-08-15 15:10:06 +02:00
Laurent Trinques
7aaf0c0e58 Fix typo 2020-08-15 15:03:47 +02:00
David Varley
ceb2868b02 Fix dxf export for copied conductors 2020-08-15 14:15:57 +02:00
David Varley
02afb6c003 Fix dxf export for copied conductors 2020-08-15 22:00:14 +10:00
Laurent Trinques
6916736708 Merge branch 'yukia10-l10n_jp' into master 2020-08-15 13:52:01 +02:00
Yuki Atoh
4c51448c45 Merge branch 'l10n_jp' of https://github.com/yukia10/qelectrotech-source-mirror into l10n_jp 2020-08-15 18:42:16 +09:00
Yuki Atoh
770161ac57 Initial Japanese translation 2020-08-15 18:39:41 +09:00
sdeffaux
fa8917875b Add symbols 2020-08-15 08:37:06 +02:00
Yuki Atoh
295e285067 Initial Japanese translation 2020-08-15 14:17:29 +09:00
Simon De Backer
574f5b94b0 Update Copyright date 2020-08-14 22:48:44 +02:00
Simon De Backer
70d024fe79 Update Copyright date 2020-08-14 22:00:42 +02:00
Simon De Backer
de8ccc543d Fix no line number in debug 2020-08-14 18:35:53 +02:00
Simon De Backer
274108d509 Mod debuger to 7 days logs in .qet dir
the user can now read the log files
and/or send them to us for further investigation
2020-08-14 18:31:38 +02:00
Simon De Backer
d556206998 Fix to RAM Total info 2020-08-14 17:03:58 +02:00
Simon De Backer
84a2a25fa8 Mod get Screen info
get cpu info should not collect screen info
2020-08-14 17:03:08 +02:00
Laurent Trinques
6f82ac1df1 Mod Machine_info
Forgot QProcess::close()
2020-08-14 12:57:15 +02:00
Laurent Trinques
7616d11e9d Mod Machine_info
Improve GPU RAM
2020-08-14 12:55:04 +02:00
Laurent Trinques
9486deb3de Mod Machine_info
Add macOS RAM available
2020-08-14 12:51:50 +02:00
damianCaceres
e09bfa18b9 ElementEditor: partdynamictextfield.cpp code style fixes indentation 2020-08-14 01:37:41 +02:00
damianCaceres
fc4625fc0f ElementEditor: partdynamictextfield.cpp code style 2020-08-14 01:37:41 +02:00
damianCaceres
943aa469c6 ElementEditor: partdynamictextfield.h code style 2020-08-14 01:37:41 +02:00
damianCaceres
ba1242d5bb ElementEditor: parttext.cpp code style 2020-08-14 01:37:41 +02:00
damianCaceres
9bc6f7fa94 ElementEditor: parttext.h code style 2020-08-14 01:37:41 +02:00
damianCaceres
3b4237f21f ElementEditor: partterminal.cpp code style 2020-08-14 01:37:41 +02:00
damianCaceres
ac5ec020a6 ElementEditor: partterminal.h code style 2020-08-14 01:37:41 +02:00
damianCaceres
0bae33e3f5 ElementEditor: ~TerminalEditor() suppress extra semicolon 2020-08-14 01:37:41 +02:00
Simon De Backer
e5b7aacea6 Add LibraryInfo to debuger 2020-08-14 00:36:59 +02:00
Martin Marmsoler
385d0ffd69 initial work to move everything into the propertiesinterface which is related to it 2020-08-13 23:27:11 +02:00
Simon De Backer
5ca7ff177b Merge branch 'master'
# Conflicts:
#	sources/machine_info.cpp
2020-08-13 22:56:40 +02:00
Simon De Backer
d5b7414b36 Mod Machine_info
add send_info_to_debug
Mod get data PC
send to debuger on startup
2020-08-13 22:50:58 +02:00
Laurent Trinques
34259a4749 Typo 2020-08-13 21:32:51 +02:00
Laurent Trinques
4d61166864 Restore Simmon previous commit 2020-08-13 21:31:33 +02:00
Laurent Trinques
d46d6709f3 Machine info :
remove braces
2020-08-13 21:13:12 +02:00
Simon De Backer
da4e31dfcb Fix warning Wdeprecated
warning:
‘void QProcess::start(const QString&, QIODevice::OpenMode)’ is deprecated
"Use QProcess::start(const QString &program,
                     const QStringList &arguments,
                     OpenMode mode = ReadWrite) instead"
2020-08-13 20:37:07 +02:00
Simon De Backer
21b7aa059a rap code for better readability 2020-08-13 17:58:56 +02:00
Laurent Trinques
43a531fd2d Typo 2020-08-13 17:18:28 +02:00
Laurent Trinques
c0d51ef445 Machine info :
Add Windows GPU RAM informations
2020-08-13 17:10:42 +02:00
Laurent Trinques
f0b475bd77 Machine info :
add Windows CPU & GPU informations
2020-08-13 17:05:46 +02:00
sdeffaux
984d9bc5de Update symbols 2020-08-13 09:22:02 +02:00
Simon De Backer
288737af0d Add Debugging Techniques 2020-08-12 23:54:09 +02:00
Simon De Backer
b0df6d3101 Remove code minium QT_VERSION 5.9 2020-08-12 23:53:52 +02:00
Simon De Backer
11a90d2f69 Remove code minium QT_VERSION 5.9 2020-08-12 22:04:46 +02:00
Simon De Backer
69ff437368 Mod doc, Improve code style 2020-08-12 21:59:00 +02:00
Simon De Backer
87db0e2020 Wrap code for better readability 2020-08-12 19:33:29 +02:00
Claveau Joshua
044c5310f5 minor 2020-08-12 15:48:37 +02:00
Claveau Joshua
86766a9090 Element editor : a copied/pasted terminal part have a new uuid. 2020-08-12 15:45:48 +02:00
Simon De Backer
1805ef300e Add compiler message @TODO 2020-08-10 21:16:52 +02:00
Simon De Backer
e4033dd93c Wrap code for better readability + Mod doc 2020-08-10 21:13:31 +02:00
Simon De Backer
53d89ce4f7 Add documentation 2020-08-10 21:08:52 +02:00
Simon De Backer
7834d6fb84 Mod doc, Improve code style 2020-08-08 23:58:17 +02:00
Laurent Trinques
d9ec9bf274 Update Changelog 2020-08-08 15:53:01 +02:00
Laurent Trinques
66eaf52002 Update Changelog 2020-08-08 15:35:51 +02:00
Laurent Trinques
2e3e65df5a Update Changelog : WIP : you can add what i forgot 2020-08-08 15:08:23 +02:00
Laurent Trinques
b8daec441f Fix bug 199:
ElementEditor parText changes in the drawing area are not reflexted in
the information area
2020-08-07 15:32:24 +02:00
Simon De Backer
06dc1570fc Test writeToFile on a other Thread
to improve this for windows performance
2020-08-06 22:19:44 +02:00
Laurent Trinques
0ce001ea6e Fix bug 198
Text input loose the focus after each single letter
2020-08-06 13:20:33 +02:00
damianCaceres
fa719cf8ff ElementEditor: qetelementeditor fixes wrong braces introduced in previous commit 2020-08-06 11:08:08 +02:00
damianCaceres
0507336622 ElementEditor: qtelementeditor.cpp improve code style 2020-08-06 11:08:08 +02:00
damianCaceres
3d1e30b24e ElementEditor: qtelementeditor.h indentation 2020-08-06 11:08:08 +02:00
damianCaceres
b3a74a8315 ElementEditor: texteditor.cpp surround arrows and more braces 2020-08-06 11:08:08 +02:00
damianCaceres
216374d27c ElementEditor: dynamictextfieldeditor.cpp improve code style 2020-08-06 11:08:08 +02:00
damianCaceres
ce523b71e2 ElementEditor: dynamictextfieldeditor.h improve code style 2020-08-06 11:08:08 +02:00
damianCaceres
bb84bb2098 ElementEditor: texteditor.cpp improve code style 2020-08-06 11:08:08 +02:00
damianCaceres
23c43e72b5 ElementEditor: texteditor.h improve code style 2020-08-06 11:08:08 +02:00
damianCaceres
b53c083d0a ElementEditor: terminaleditor.cpp indentation, alignment and braces 2020-08-04 21:16:58 +02:00
damianCaceres
45edc34269 ElementEditor: terminaleditor.h indentation and alignment 2020-08-04 21:16:58 +02:00
damianCaceres
f8240558a0 ElementEditor: in PolygonEditor::setPart remove redundant calls to StyleEditor::setPart 2020-08-04 11:18:20 +02:00
damianCaceres
dd70637408 ElementEditor: in RectangleEditor::setPart remove redundant calls to StyleEditor::setPart 2020-08-04 11:18:20 +02:00
damianCaceres
45d1b489c4 ElementEditor: in ArcEditor::setPart remove redundant calls to StyleEditor::setPart 2020-08-04 11:18:20 +02:00
damianCaceres
72918a31db ElementEditor: in EllipseEditor::setPart remove redundant calls to StyleEditor::setPart 2020-08-04 11:18:20 +02:00
damianCaceres
9d772b4091 ElementEditor: in LineEditor::setPart remove redundant calls to StyleEditor::setPart 2020-08-04 11:18:20 +02:00
damianCaceres
dd257c48d9 ElementEditor: always clear m_cep_list in StyleEditor::setPart bugfix 0197 2020-08-03 16:07:31 +02:00
Claveau Joshua
78992ee762 Fix backup file on windows
For unknown reason KautoSaveFile don't write the file on Windows if file
is open in another part of the code.
No error is returned and use the method :
qint64 QIODevice::write(const QByteArray &byteArray) return the good
number of bytes written but the real file stay empty.
Probably the problem don't come from KautoSaveFile but QFileDevice or
QIODevice on windows.

The fix consist to open the file just before write on it and close it
just after.
2020-08-02 22:24:46 +02:00
Simon De Backer
7a04788d54 Mod code to drop 2 inden
- if (isReadOnly()) return;
- if (dc.items(DiagramContent::All).isEmpty())
2020-08-02 20:52:52 +02:00
Simon De Backer
fa1abbd38d Wrap code for better readability + Mod doc 2020-08-02 20:29:20 +02:00
Simon De Backer
effc86e72c Translate documentation + Fix indentation 2020-08-02 20:29:06 +02:00
Simon De Backer
d4d364cfde Fix wrap code for better readability 2020-08-02 19:36:12 +02:00
Claveau Joshua
1fc893157d Minor fix
Fix : During the opening of a project, if the project contain a
nomenclature, the dialog used to inform user that the table is too small
is displayed
2020-08-02 18:20:30 +02:00
Simon De Backer
494a5f1df2 Mod Coding conventions + Wrap code
Wrap code for better readability
2020-08-02 17:38:21 +02:00
Simon De Backer
900b7e22aa Mod CONTRIBUTING.md
add info Interactive Staging
2020-08-02 16:27:23 +02:00
Simon De Backer
4751934d68 New Signal Slot Syntax 2020-08-02 15:23:38 +02:00
Simon De Backer
510aa74266 Wrap code for better readability + Mod doc 2020-08-02 15:14:16 +02:00
Simon De Backer
e938673872 Add documentation 2020-08-02 15:09:21 +02:00
Simon De Backer
2a53f09a37 Translate documentation + Fix indentation 2020-08-02 12:09:08 +02:00
Laurent Trinques
6bece6fa84 Update Ru translation, thanks Aleksander 2020-07-29 21:31:55 +02:00
Simon De Backer
1372d1c8ba Wrap code for better readability + Mod doc 2020-07-28 20:57:02 +02:00
Simon De Backer
70e54bc9b2 Translate documentation + Fix indentation 2020-07-28 20:56:41 +02:00
sdeffaux
e6eeef5cf5 update symbols 2020-07-27 21:33:58 +02:00
dlee99
96acd6ff95 modified: lang/qet_nl.qm
modified:   lang/qet_nl.ts
2020-07-26 23:22:49 +02:00
Laurent Trinques
9cdc023f31 Pugixml XML parser
Update to upstream master
2020-07-26 16:14:31 +02:00
pavelfric
a2eb92803a Updated Czech translation 2020-07-26 13:13:23 +02:00
Simon De Backer
655e608268 Doxygen using dashes to create lists of items. 2020-07-26 11:55:51 +02:00
Simon De Backer
c401e93125 Wrap code for better readability + Mod doc 2020-07-26 11:36:27 +02:00
Simon De Backer
4d57e7fbfb Mod get elementInfo from elementInfoKeys 2020-07-26 11:16:12 +02:00
Simon De Backer
0c62bf2b3b Translate documentation + Fix indentation
- Mod doc set style de same
- Fix indentation code
2020-07-26 10:33:15 +02:00
Simon De Backer
1f78196fa6 Fix widget size 2020-07-25 22:00:19 +02:00
Simon De Backer
49cca54adc Wrap code for better readability 2020-07-24 22:44:32 +02:00
Simon De Backer
c0df06c2ee Mod doc set style de same 2020-07-24 22:44:10 +02:00
Simon De Backer
d087a8be66 Moved compilation_info to class Machine_info
This is preparation for making a dev log file
2020-07-23 21:57:30 +02:00
Simon De Backer
55beaa9be9 Mod ScrollArea on demand
QScrollArea is not asked if the screen is big enough.
2020-07-23 17:24:10 +02:00
Simon De Backer
c5eb5af47d Fix name to clarify value is int 2020-07-23 17:05:48 +02:00
Simon De Backer
90e283902e This adds ScrollArea to config dialog
Not everything is visible with low resolution screens.
https://qelectrotech.org/bugtracker/view.php?id=195
2020-07-23 16:55:42 +02:00
Simon De Backer
7420eeb60d Mod name to clarify value is int 2020-07-23 16:49:31 +02:00
Simon De Backer
698db4e5c0 Add Copyright to machine_info class 2020-07-22 21:16:38 +02:00
Simon De Backer
6b95c6bf6f Add QScrollArea to configdialog and resize to max_screen 2020-07-22 21:03:54 +02:00
Claveau Joshua
2b754cffb4 AddTableDialog : fix minor bug 2020-07-21 22:56:31 +02:00
Simon De Backer
03425bcb5b Add gui resize depending on screen size
Init of request
https://qelectrotech.org/bugtracker/view.php?id=195
This is a start will have to be adjusted further.
2020-07-21 20:29:05 +02:00
Laurent Trinques
3a08e60856 aboutqetdialog.cpp minor 2020-07-21 16:01:28 +02:00
Laurent Trinques
e03e36fb2c AboutQETDialog add Linux RAM Total and MemAvailable 2020-07-21 15:58:35 +02:00
Laurent Trinques
8f5e759528 AboutQETDialog add Linux RAM 2020-07-21 14:45:41 +02:00
Laurent Trinques
bddf10588f AboutQETDialog add macOS cpuinfo 'model name' 2020-07-21 14:12:06 +02:00
Laurent Trinques
a33ae2bb13 AboutQETDialog add Linux gpu info 'model name' 2020-07-21 13:44:45 +02:00
Laurent Trinques
bd93e62341 AboutQETDialog add Linux cpuinfo 'model name' 2020-07-21 13:05:08 +02:00
Simon De Backer
119e12b1cf Add Screen info user 2020-07-20 22:41:27 +02:00
Claveau Joshua
f242e1bccc graphics table properties editor : minor
Add label to inform users that the number of row is less than the number
of information to display.
2020-07-20 20:29:13 +02:00
Claveau Joshua
709280e3c1 QetGraphicsTableItem : add dialog to inform user
When user edit the query of an existing table/s if the content to
display is bigger than the content who can be displayed by the table/s a
dialog is opened for inform user of the current situation.
2020-07-20 19:38:52 +02:00
Simon De Backer
3b14946421 Add compiler message @TODO + Mod doc set style de same 2020-07-19 22:19:21 +02:00
Simon De Backer
280e4605e8 Mod doc set style de same 2020-07-19 22:08:41 +02:00
Simon De Backer
fe4552200b Add compiler message @TODO 2020-07-19 22:06:42 +02:00
Simon De Backer
d3b237d06c Mod documentation + wrap code for better readability 2020-07-19 20:28:56 +02:00
Simon De Backer
26fd1a497c Add ignore lines to .gitignore
if doxygen Doxyfile is run all file's of folder doc are added
Qt user file should not see either
2020-07-19 20:24:37 +02:00
Simon De Backer
bbd3085b8d Fix indentation code + Mod doc 2020-07-19 20:06:22 +02:00
Simon De Backer
1251d7d9b0 Fix indentation code + Mod doc 2020-07-19 20:05:58 +02:00
Simon De Backer
2229a1938d Add documentation 2020-07-19 20:05:13 +02:00
Simon De Backer
ffcdccb469 Mod doc set style de same 2020-07-19 18:40:41 +02:00
Simon De Backer
5df6d7f403 Wrap code for better readability 2020-07-19 18:40:41 +02:00
Simon De Backer
4cd69a2450 Mod doc set style de same 2020-07-19 18:40:41 +02:00
Simon De Backer
102629b86f Mod doc set style de same + wrap code for better readability 2020-07-19 18:40:41 +02:00
Simon De Backer
7ddae811a5 Fix Wdeprecated-declarations QProcess::startDetached
QProcess::startDetached(const QString&)’ is deprecated
Use
QProcess::startDetached(const QString &program,
			const QStringList &arguments)
instead
2020-07-19 18:30:28 +02:00
Simon De Backer
cecacfc769 Fix compiler warining non-virtual destructor
ref:
https://stackoverflow.com/questions/38407723/how-to-delete-an-object-of-derived-class-that-has-no-dstructor
2020-07-19 15:48:46 +02:00
Simon De Backer
8c9b30acd6 Mod doc + Update Copyright date
And wrap code for better readability
2020-07-16 22:06:56 +02:00
Simon De Backer
6aa6d055ec Add translation for directory 2020-07-16 22:01:04 +02:00
Simon De Backer
495d9a5f51 Add documentation + wrap code for better readability 2020-07-16 22:00:33 +02:00
Simon De Backer
70ef559874 Improve portability of Doxyfile
note run "doxygen Doxyfile" in qet dir
2020-07-16 16:56:30 +02:00
sdeffaux
80c54b3edb Add new Symbols 2020-07-16 15:51:47 +02:00
Laurent Trinques
68116f4664 Fix indentation code 2020-07-15 23:00:21 +02:00
Simon De Backer
b9ce532db7 Mod doc for better readability doxygen
1. this can be an example howto
add english and french documentation without sacrificing code readability
	2. Fix indentation code
2020-07-15 22:37:29 +02:00
Laurent Trinques
a28e7289b9 Doxyfile update add QCH file for
doxygen-generated docs using qhelpgenerator and then import them into Qt Creator.
2020-07-15 22:25:29 +02:00
Claveau Joshua
ac49ecce7d Fix wrong position of slave xref after open a saved project 2020-07-15 20:48:52 +02:00
Laurent Trinques
7ed71a6312 Fix indentation code 2020-07-15 20:35:23 +02:00
Laurent Trinques
350e7e5233 Fix indentation code 2020-07-15 20:21:59 +02:00
Laurent Trinques
68e78a0de9 Fix indentation code 2020-07-15 20:20:07 +02:00
Laurent Trinques
6313319f80 Fix-indentation-code 2020-07-15 19:57:37 +02:00
Laurent Trinques
a718cfa16d Fix indentation code 2020-07-15 19:48:28 +02:00
Simon De Backer
d7e1d326a2 Wrap code for better readability + Mod doc 2020-07-15 18:34:42 +02:00
Simon De Backer
2cdfce18ec Mod doc to set style de same + Fix indentation code 2020-07-15 18:31:04 +02:00
Simon De Backer
251dfdf37a add documentation 2020-07-15 18:29:04 +02:00
Laurent Trinques
0c381eae28 Fix Remove old summary feature 2020-07-15 17:43:20 +02:00
Laurent Trinques
f8ca26f6e3 Mod doc 2020-07-15 15:32:19 +02:00
Laurent Trinques
b866323e90 Minor QETDiagramEditor::setUpMenu reorder action 2020-07-15 15:28:47 +02:00
Laurent Trinques
53663e20e1 Remove old summary feature 2020-07-15 15:06:46 +02:00
Simon De Backer
430bcae946 Wrap code for better readability 2020-07-14 22:29:23 +02:00
Simon De Backer
41b0434c20 Fix indentation 2020-07-14 22:29:06 +02:00
Simon De Backer
01d97246ce Mod doc set style de same 2020-07-14 22:28:58 +02:00
Simon De Backer
06dbb468ce Mod the doc moved info to the class 2020-07-14 22:28:49 +02:00
Claveau Joshua
132f3ad1b4 Remove old summary feature 2020-07-14 20:00:28 +02:00
sdeffaux
d44bb87d0b add symbols 2020-07-14 18:04:28 +02:00
Laurent Trinques
4d83a1b53e Add new symbols 2020-07-14 17:26:17 +02:00
Laurent Trinques
edf65c83e1 Add new example 2020-07-14 15:07:52 +02:00
sdeffaux
f2c3bd5d26 add symbols 2020-07-13 18:33:03 +02:00
Simon De Backer
c0e248bcd0 fix white space 2020-07-13 06:51:55 +02:00
Simon De Backer
c167468f29 add documentation ExportPropertiesWidget functions 2020-07-13 06:51:46 +02:00
Simon De Backer
09207eec92 add documentation ConductorNumExport function 2020-07-13 06:51:36 +02:00
Simon De Backer
169c440de1 add documentation & removed Q_UNUSED for used value's 2020-07-13 06:51:26 +02:00
Simon De Backer
f9c705f30a add documentation GenericPanel functions 2020-07-13 06:51:17 +02:00
Claveau Joshua
b9a34ce2fd Fix projectdbmodel 2020-07-12 12:33:42 +02:00
artgg7300
28ea80d458 translated hungarian files 2020-07-12 11:19:13 +02:00
sdeffaux
14431db1b2 Translate symbols 2020-07-11 12:56:10 +02:00
Claveau Joshua
83b72c4aac Fix wrong date format for nomenclature table. 2020-07-08 20:56:20 +02:00
Claveau Joshua
31ce923580 fix crash 2020-07-07 22:11:39 +02:00
Claveau Joshua
dae4329699 Update project database class
Add method :
addDiagram and removeDiagram
2020-07-06 21:52:14 +02:00
Ole Carlsen
ff19b3d4d7 Danish update 2020-07-06 18:29:58 +02:00
dlee99
8f921854a3 modified: lang/qet_nl.qm
modified:   lang/qet_nl.ts
2020-07-05 19:45:41 +02:00
Ole Carlsen
bc56820864 Danish translation updated 2020-07-05 16:12:40 +02:00
Laurent Trinques
6c2c5635a6 Update *TS files 2020-07-05 15:28:27 +02:00
Laurent Trinques
2ee11c3f1b Minor :
Rename variable for translation
2020-07-05 15:23:42 +02:00
Laurent Trinques
fb75bf0a73 Add new variables for report folio and can be added in a composite text
{conductor_color}
{conductor_section}
2020-07-05 14:01:38 +02:00
Claveau Joshua
beaa2ccdc8 Fix bug with folio report formula 2020-07-04 20:49:13 +02:00
Claveau Joshua
8ac8ff5384 Replace minus (-) by underscore (_) 2020-07-04 20:43:40 +02:00
Simon De Backer
59ba3d24af init of contribute file
this is now mainly referring to the wiki.
2020-07-04 07:55:40 +02:00
Ole Carlsen
1f9e5e130a Danish translation 2020-07-02 20:24:37 +02:00
Laurent Trinques
82b6c8e815 Update * TS files 2020-07-02 16:42:00 +02:00
Laurent Trinques
6d05038f71 minor 2020-07-02 15:20:27 +02:00
Laurent Trinques
4b117bb4d5 generalWidget : add Kindinformations 2020-07-02 14:45:28 +02:00
Laurent Trinques
7ace0e38ed generalWidget : add link type information 2020-07-02 14:34:53 +02:00
Claveau Joshua
c86f9ccc3a Improve ProjectDataBase use 2020-07-01 18:31:19 +02:00
Claveau Joshua
6652401d07 Minor improvement
Element query widget, when "all" is selected, report and slave is not
selected anymore.
Summary should be smaller.
2020-06-29 20:50:29 +02:00
artgg7300
485ccbfb61 updated hungarian files 2020-06-23 19:15:11 +02:00
Martin Marmsoler
6c84b55586 allow multiedit also for arceditor, ellipse, line, rectangle and show properties when single polygon is selected 2020-06-23 06:54:40 +02:00
Ole Carlsen
0ed9ac393c Danish translation updated 2020-06-22 18:14:55 +02:00
Laurent Trinques
3e0d8aa3c3 Update Polish translation, thanks Pawel 2020-06-22 05:36:06 +02:00
Simon De Backer
e590c76251 add Vertical sparcer's 2020-06-22 05:26:12 +02:00
Laurent Trinques
a323cbbc48 Update example with new summary and nomenclature feature 2020-06-21 19:44:56 +02:00
dlee99
168bafa9c8 modified: lang/qet_nl.qm
modified:   lang/qet_nl.ts
2020-06-21 18:24:19 +02:00
Laurent Trinques
c8bdfb3ac6 Update *TS files 2020-06-21 18:15:26 +02:00
Claveau Joshua
0a1b688003 Fix crash.
Fix crash when when move and undo the move of a QetGraphicsTableItem
2020-06-21 16:25:34 +02:00
Claveau Joshua
0587c56bba Summary query widget : config can be saved/loaded 2020-06-21 16:17:35 +02:00
Claveau Joshua
64f3001c86 Continue new summary feature
Header name is now well translated.
Open the good dialog from the properties dock widget
2020-06-21 16:00:14 +02:00
Laurent Trinques
edb5217b31 Update *TS files 2020-06-21 11:23:56 +02:00
Simon De Backer
cfb5acc8d5 fix tr() cannot be called without context
add QObject::
qetdiagrameditor.cpp:2341: tr() cannot be called without context
qetdiagrameditor.cpp:2372: tr() cannot be called without context
diagramfoliolist.cpp:175: Class 'DiagramFolioList' lacks Q_OBJECT macro
2020-06-21 11:22:44 +02:00
Simon De Backer
ca2e737df3 fix deprecated warning int QWheelEvent::delta() const
Use angleDelta() instead
and .y();
2020-06-21 10:50:26 +02:00
Simon De Backer
2241343fba fix Wmisleading-indentation
is misleadingly indented as if it were guarded by the ‘if’
2020-06-21 10:50:00 +02:00
Simon De Backer
501134ab25 add Q_UNUSED for TerminalData:: fromSettings & toSettings 2020-06-21 10:49:38 +02:00
Simon De Backer
c4850f815f fix Wdeprecated-declarations
Use default constructor instead
2020-06-21 10:49:14 +02:00
Ole Carlsen
6a926bbe50 Danish translation updated 2020-06-21 07:53:20 +02:00
Laurent Trinques
34b4d11e53 Minor 2020-06-20 23:52:12 +02:00
Simon De Backer
ddf88bbed7 add font color of the conductors 2020-06-20 23:48:20 +02:00
dlee99
53447b41c9 modified: lang/qet_nl.qm
modified:   lang/qet_nl.ts
2020-06-20 22:46:30 +02:00
Simon De Backer
47637c4779 another alternative ui for ConductorPropertiesWidget 2020-06-19 21:56:38 +02:00
Laurent Trinques
205c683d6f Improve Simon patch :
The window of the properties of the conductor does not
 exactly fit in height.
2020-06-19 09:40:45 +02:00
Simon De Backer
1278fe1124 The window of the properties of the conductor does not exactly fit in height.
On the laptop, the resolution is 1368 * 768.
2020-06-19 09:02:22 +02:00
Claveau Joshua
090da90e22 fix fail to build 2020-06-18 19:20:25 +02:00
Claveau Joshua
ec5f537da4 Add new summary table (WIP) 2020-06-18 18:52:29 +02:00
artgg7300
80b5029cd1 translated hungarian files 2020-06-17 05:34:02 +02:00
Laurent Trinques
534ab19616 Revert "MacOS: try to remove hard coded python PATH"
This reverts commit 36071e9cf5.
2020-06-16 17:36:54 +02:00
Laurent Trinques
36071e9cf5 MacOS: try to remove hard coded python PATH 2020-06-16 17:21:44 +02:00
Laurent Trinques
b8b0bbed44 Add new symbols 2020-06-16 01:32:50 +02:00
Laurent Trinques
78a02af400 Minor : general_widget add TextEditorInteraction 2020-06-15 19:26:44 +02:00
Laurent Trinques
e10ae8ce2e Update Copyright date 2020-06-15 17:42:53 +02:00
Laurent Trinques
a5465c201f Try to fix bad font rendering under Windows plateform
see : https://bugreports.qt.io/browse/QTBUG-83161
2020-06-15 13:01:05 +02:00
Laurent Trinques
bb7ef2a13f Update *TS files 2020-06-14 22:19:28 +02:00
dlee99
3f9db7b9ec modified: lang/qet_nl.qm
modified:   lang/qet_nl.ts
2020-06-14 21:20:51 +02:00
Laurent Trinques
ec13e0dde3 Try to fix Ubuntu 18.04 FTBFS, again 2020-06-14 18:14:14 +02:00
Laurent Trinques
509d1f39f0 Try to fix Ubuntu 18.04 FTBFS again 2020-06-14 17:49:50 +02:00
Martin Marmsoler
83f4a7c6ba do not set parts again when they are set already 2020-06-14 17:07:14 +02:00
Martin Marmsoler
d7b5ceece1 implement currentParts() for every elementItemEditor so the editor can be extended to multi part edit in a later step 2020-06-14 17:07:14 +02:00
Martin Marmsoler
0fb98fbdac add multiedit feature also for dynamic text 2020-06-14 17:07:14 +02:00
Martin Marmsoler
0485df25dc static_cast is enough 2020-06-14 17:07:14 +02:00
Martin Marmsoler
cfda59e978 multipart edit 2020-06-14 17:07:14 +02:00
Martin Marmsoler
4abf1c4f2e - static_cast because it is a condition that it is PartTerminal 2020-06-14 17:07:14 +02:00
Martin Marmsoler
37cc326a46 solves #7 2020-06-14 17:07:14 +02:00
Martin Marmsoler
a6137ed0d0 forgotten to commit texteditor 2020-06-14 17:07:14 +02:00
Martin Marmsoler
a07e973482 make partTextEditor capable to modify multiple parts at the same time 2020-06-14 17:07:13 +02:00
Martin Marmsoler
a2d466240b multiterminal change 2020-06-14 17:07:13 +02:00
Martin Marmsoler
b85b341941 WIP 2020-06-14 17:07:13 +02:00
Martin Marmsoler
451d5c8f58 not needed, because it is the same than a few lines below 2020-06-14 17:07:13 +02:00
Laurent Trinques
09dd92215f Try to fix Ubuntu 18.04 FTBFS 2020-06-14 16:22:23 +02:00
Laurent Trinques
a8c2283cbe hot fix zoom and scrolling
bug: was only zoom In
    (int QPoint::manhattanLength() const
    Returns the sum of the absolute values)
2020-06-14 14:29:59 +02:00
Simon De Backer
39fba2702d add be lang 2020-06-14 13:51:48 +02:00
Simon De Backer
35ba2bbe95 hot fix zoom and scrolling
bug: was only zoom In
(int QPoint::manhattanLength() const
Returns the sum of the absolute values)
2020-06-14 13:40:12 +02:00
Martin Marmsoler
81992bc777 remove inline, because it creates compile issues in release mode. see #48 2020-06-14 13:29:26 +02:00
Martin Marmsoler
3bac452141 add comments 2020-06-14 13:29:26 +02:00
Martin Marmsoler
51843bf03e replace foreach by for 2020-06-14 13:29:26 +02:00
Martin Marmsoler
af989b1cd8 Use uuid instead of an index to connect multiple elements 2020-06-14 13:29:25 +02:00
Martin Marmsoler
c2e17daab9 move initialization to header, so it must not be done in every constructor 2020-06-14 13:29:25 +02:00
Martin Marmsoler
439cf4cbd6 fix segmentation fault 2020-06-14 13:29:25 +02:00
Martin Marmsoler
89452f0b3c fix nullpointer exception 2020-06-14 13:29:25 +02:00
Martin Marmsoler
587ada643f try to use TerminalData in Terminal and PartTerminal, sou the code must not be written double 2020-06-14 13:29:25 +02:00
Martin Marmsoler
77a2ceea7d regarding to joshuas email, toXml uses a new structure. So it is changed in the properties interface and xrefproperties 2020-06-14 13:29:25 +02:00
Laurent Trinques
496b8f302a Fix FTBFS on Ubuntu 18.04 2020-06-14 08:26:52 +02:00
Laurent Trinques
22e619d6b9 Revert pull request #48 2020-06-14 07:35:52 +02:00
Martin Marmsoler
c9a7c836c5 add comments 2020-06-13 16:26:22 +02:00
Martin Marmsoler
a8a2df7c55 replace foreach by for 2020-06-13 16:26:22 +02:00
Martin Marmsoler
9b06a81c49 Use uuid instead of an index to connect multiple elements 2020-06-13 16:26:22 +02:00
Martin Marmsoler
7f07660959 move initialization to header, so it must not be done in every constructor 2020-06-13 16:26:22 +02:00
Martin Marmsoler
bc8bb63cae fix segmentation fault 2020-06-13 16:26:22 +02:00
Martin Marmsoler
e8d4b6c9d5 fix nullpointer exception 2020-06-13 16:26:22 +02:00
Martin Marmsoler
ec52032532 try to use TerminalData in Terminal and PartTerminal, sou the code must not be written double 2020-06-13 16:26:22 +02:00
Martin Marmsoler
8c6b4120f5 regarding to joshuas email, toXml uses a new structure. So it is changed in the properties interface and xrefproperties 2020-06-13 16:26:22 +02:00
Laurent Trinques
ca80b3d69f Improve last commit 2020-06-13 06:29:24 +02:00
Laurent Trinques
2e8c7d5236 Fix FTBFS
QTextStreamFunctions::endl(QTextStream&)

simple but no buffer flush
2020-06-13 06:08:11 +02:00
Laurent Trinques
f41b3ba26f QTextStreamFunctions::endl(QTextStream&)
Use Qt::endl instead
2020-06-13 05:44:34 +02:00
Simon De Backer
2aff40fd52 fix deprecated warning QTextStream& QTextStreamFunctions::endl(QTextStream&)
Use Qt::endl instead

QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl")
2020-06-13 05:42:05 +02:00
Simon De Backer
c97a239c29 fix deprecated warning Qt::WindowFlags = nullptr
Use default constructor instead

Qt::Widget 0x00000000
This is the default type for QWidget.
Widgets of this type are child widgets if they have a parent,
and independent windows if they have no parent.
See also Qt::Window and Qt::SubWindow.
2020-06-12 19:54:34 +02:00
Simon De Backer
e4f4c1e154 fix deprecated warning void QGraphicsView::resetMatrix()
Use resetTransform() instead

This class was introduced in Qt 4.2.

+ indentation warning
of "resetSceneRect();"
2020-06-12 19:54:13 +02:00
Simon De Backer
b29753e37e fix deprecated warning QMatrix QGraphicsView::matrix() const
Use transform() instead

This class was introduced in Qt 4.2.
2020-06-12 19:53:57 +02:00
Simon De Backer
71abaf92cb fix deprecated warning int QWheelEvent::delta() const
Use angleDelta() instead

manhattanLength()
Returns the sum of the absolute values of x() and y(),
traditionally known as the "Manhattan length" of the vector
from the origin to the point.

This class was introduced in Qt 5.5
2020-06-12 19:52:50 +02:00
Simon De Backer
bb093ba0cd Mod Copyright Date
from const to dynamic

benefit the date no longer needs to be translated
2020-06-12 19:52:31 +02:00
Laurent Trinques
247a14f7aa Fix Unbutu 18.04 FTFS 2020-06-12 07:22:18 +02:00
Simon De Backer
2ec018a4e9 fix deprecated warning QString::SplitBehavior
enum QString::SplitBehavior This enum is obsolete.

Use Qt::SplitBehavior instead.
This enum was introduced or modified in Qt 5.14.
2020-06-12 05:52:50 +02:00
Simon De Backer
2570108caf fix deprecated warning qsrand
This function is obsolete.

Use QRandomGenerator instead.
This class was introduced in Qt 5.10.
2020-06-12 05:52:50 +02:00
Simon De Backer
5d2d4a48a5 fix deprecated warning QButtonGroup::buttonClicked
This function is obsolete.

Use QButtonGroup::idClicked instead.
This function was introduced in Qt 5.15.
2020-06-12 05:52:50 +02:00
Simon De Backer
21c3c09341 fix deprecated warning QHash
This function is obsolete.

Use QMultiHash instead.
This function was introduced in Qt 4.3 - 5.14
2020-06-12 05:52:50 +02:00
Simon De Backer
b9ed45c8a3 fix deprecated warning QMap
This function is obsolete.

Use QMultiMap instead.
This function was introduced in Qt 4.3 - 5.14
2020-06-12 05:52:50 +02:00
Simon De Backer
573a36b93f fix deprecated warning QDirModel
This class is obsolete. It is provided to keep old source code working.
We strongly advise against using it in new code.

Use QFileSystemModel instead.
This class was introduced in Qt 4.4
2020-06-12 05:52:50 +02:00
artgg7300
e61cbfe30a translated hungarian files 2020-06-12 05:42:26 +02:00
Laurent Trinques
3e1740cee0 Revert Martin pull request for now, and return to last 7e9fd8df9 commit 2020-06-11 13:19:30 +02:00
Martin Marmsoler
bf2e02273e do not set parts again when they are set already 2020-06-11 11:12:17 +02:00
Martin Marmsoler
e36a4ddd0a implement currentParts() for every elementItemEditor so the editor can be extended to multi part edit in a later step 2020-06-11 11:12:17 +02:00
Martin Marmsoler
1ccffda93b add multiedit feature also for dynamic text 2020-06-11 11:12:17 +02:00
Martin Marmsoler
a8c62b8257 static_cast is enough 2020-06-11 11:12:17 +02:00
Martin Marmsoler
5666782e91 multipart edit 2020-06-11 11:12:17 +02:00
Martin Marmsoler
d000f611d8 - static_cast because it is a condition that it is PartTerminal 2020-06-11 11:12:17 +02:00
Martin Marmsoler
35896d5771 solves #7 2020-06-11 11:12:17 +02:00
Martin Marmsoler
8ffe50715d forgotten to commit texteditor 2020-06-11 11:12:17 +02:00
Martin Marmsoler
1c04ea0efb make partTextEditor capable to modify multiple parts at the same time 2020-06-11 11:12:17 +02:00
Martin Marmsoler
4bae1b902d multiterminal change 2020-06-11 11:12:17 +02:00
Martin Marmsoler
304ea00d7b WIP 2020-06-11 11:12:17 +02:00
Martin Marmsoler
f2c796bdb0 not needed, because it is the same than a few lines below 2020-06-11 11:12:17 +02:00
Martin Marmsoler
cccc4fc0c4 add comments 2020-06-11 11:12:05 +02:00
Martin Marmsoler
b7c2740778 replace foreach by for 2020-06-11 11:12:05 +02:00
Martin Marmsoler
e6f77ec369 Use uuid instead of an index to connect multiple elements 2020-06-11 11:12:05 +02:00
Martin Marmsoler
bb24e121eb move initialization to header, so it must not be done in every constructor 2020-06-11 11:12:05 +02:00
Martin Marmsoler
dd377eeb73 fix segmentation fault 2020-06-11 11:12:05 +02:00
Martin Marmsoler
19d494afcd fix nullpointer exception 2020-06-11 11:12:05 +02:00
Martin Marmsoler
6d782f4abb try to use TerminalData in Terminal and PartTerminal, sou the code must not be written double 2020-06-11 11:12:05 +02:00
Martin Marmsoler
dcbcb5391f regarding to joshuas email, toXml uses a new structure. So it is changed in the properties interface and xrefproperties 2020-06-11 11:12:05 +02:00
Claveau Joshua
7e9fd8df98 graphics table properties editor : Add two buttons new button
Add new two new buttons :
1. Adjust the selected table to fit as well into folio.
2. Set current geometry to all linked tables : Apply the geometry (pos,
height, width, row to display) of the selected table to all linked
tables.
2020-06-11 10:41:01 +02:00
Ole Carlsen
516435554a Danish translation updated 2020-06-09 14:10:22 +02:00
Laurent Trinques
e96a704215 Update fr en translation 2020-06-09 11:28:20 +02:00
Laurent Trinques
e3b5fbb5ac Update *TS files 2020-06-09 10:45:37 +02:00
Martin Marmsoler
d1742d5685 when model is not yet loaded, but the element editor should be opened, a segmentation fault occurs. Do not set current index when m_model is not yet loaded 2020-06-09 10:01:32 +02:00
Simon De Backer
4a3b7e708a QAbstractTableModel explicitly initialized in copy constructor
warning: base class ‘class QAbstractTableModel’
should be explicitly initialized in the copy constructor [-Wextra]
2020-06-08 21:14:15 +02:00
Ole Carlsen
521ed615d9 Minor Danish update 2020-06-08 18:43:43 +02:00
Laurent Trinques
fea245d485 Update polish translation, thanks Pawel 2020-06-08 03:55:36 +02:00
Simon De Backer
fe64923ffe fix deprecated warning QSet<T> QList<T>::toSet()
Use
QSet<T>(list.begin(), list.end())
instead.

This function was introduced in Qt 5.14
2020-06-08 03:52:51 +02:00
Simon De Backer
37658efd0d fix deprecated warning qUpperBound
Use
std::upper_bound
instead.
2020-06-07 16:42:41 +02:00
Simon De Backer
20a739fa96 fix deprecated warning QList::swap() attempt 2
Use
QList::swapItemsAt()
instead.

This function was introduced in Qt 5.13.
2020-06-07 16:42:26 +02:00
Simon De Backer
24528b0fdb fix deprecated warning QModelIndex::child
Use
QModelIndex::index
instead.

This function was DEPRECATED_SINCE(5, 8)
2020-06-07 16:42:17 +02:00
Simon De Backer
803414f716 remove user-defined copy constructor
We need to define our own copy constructor only
if an object has pointers or any runtime allocation
of the resource like file handle, a network connection..etc.

note: Default constructor does only shallow copy.
2020-06-07 16:41:42 +02:00
Claveau Joshua
9085c6fcda table item : remove a table remove also all linked tables 2020-06-05 20:00:13 +02:00
Claveau Joshua
ae9ef3cf21 Make a copie of previous table model when unlink a table from her previous table. 2020-06-04 14:17:14 +02:00
Claveau Joshua
8ad876fb31 Improve the use of the database 2020-06-03 19:46:27 +02:00
Claveau Joshua
b445ce8934 Nomenclature model : Improve function to setup the name of header 2020-06-03 19:15:21 +02:00
Claveau Joshua
042faeae32 Table widget : Enable arrow to quicly switch to previous/next linked table 2020-06-02 19:44:19 +02:00
Simon De Backer
de88b32e5b fix deprecated warning QPainter::drawRoundRect
Use
QPainter::drawRoundedRect
instead.

This function was introduced in Qt 4.4.
2020-06-02 06:23:17 +02:00
Simon De Backer
74c3fc8dd9 fix deprecated warning QTreeWidgetItem::setBackgroundColor
Use
setBackground()
instead.
This function was introduced in Qt 4.2.
2020-06-01 11:53:38 +02:00
Ole Carlsen
faf35c4985 Danish translation updated 2020-06-01 08:29:13 +02:00
Laurent Trinques
6b16f5b46d Add new conductors properties color and section 2020-05-31 22:33:25 +02:00
Simon De Backer
9b570525d3 fix deprecated warning QDrag::start
Use
QDrag::exec
instead.
2020-05-31 11:43:59 +02:00
Claveau Joshua
0897ed43fe Add table dialog : table config can saved and loaded.
The dialog used to edit the configuration of QetGraphicsTable item can
now save and load a configuration from graphics_table.json file located
in the user config dir.
2020-05-30 20:18:44 +02:00
Laurent Trinques
261abfa10b Revert "fix deprecated warning QList::swap()"
This reverts commit b5a33429df.
2020-05-30 06:47:34 +02:00
Simon De Backer
b5a33429df fix deprecated warning QList::swap()
Use
QList::swapItemsAt()
instead.
2020-05-30 06:24:40 +02:00
Simon De Backer
09006dc75f fix deprecated warning QDir& QDir::operator=(const QString&)
This function is obsolete.

Use
QDir::setPath() instead
instead.
2020-05-30 06:24:04 +02:00
Simon De Backer
9ee911e484 fix -Wswitch warning
add default and Qt::MarkdownText
2020-05-30 06:23:43 +02:00
Claveau Joshua
27472bdd8b Nomenclature model don't save header data "display role"
The model doesn't save anymore the header data with role
Qt::displayRole.
The header display role is now generated in the fly, by concequent the
header displayed texts are always in the current local
2020-05-29 20:54:50 +02:00
Simon De Backer
70f0541e06 fix deprecated warning qVariantFromValue
This function is obsolete.
Note:
This function was provided as a workaround for MSVC 6
which did not support member template functions.
It is advised to use the other form in new code.

This function is equivalent to QVariant::fromValue(value).
2020-05-29 14:56:07 +02:00
Simon De Backer
86a4701d2b fix deprecated warning QLineF::intersect
This function is obsolete.

Use
QLineF::intersects(const QLineF &line, QPointF *intersectionPoint) const
instead.
This function was introduced in Qt 5.14.
2020-05-29 14:55:54 +02:00
Simon De Backer
0611fe2798 fix deprecated warning QTime::start()
Use
QElapsedTimer::QElapsedTimer()
instead.
This function was introduced in Qt 5.4.
2020-05-29 14:55:37 +02:00
Simon De Backer
22566a1bc6 fix deprecated warning QFontMetrics::width(QChar ch)
Use
QFontMetrics::horizontalAdvance(const QString &text, int len = -1)
instead.
This function was introduced in Qt 5.11.
2020-05-29 14:55:27 +02:00
Simon De Backer
addcdeb2a0 fix -Wmisleading-indentation warning
there were spaces used to indent the conditional line
2020-05-29 14:03:26 +02:00
Simon De Backer
e56701d336 *fix deprecated warning QWidget::getContentsMargins
This function is obsolete.

Use contentsMargins().
instead.

This function was introduced in Qt 4.6.
2020-05-29 14:03:00 +02:00
aitolos
61ebbbc23c Greek Lang update 2020-05-28 21:45:37 +03:00
sdeffaux
0b3d287c75 add and update symbols 2020-05-28 17:55:11 +02:00
Simon De Backer
362509cb38 fix deprecated warning QSet<T>::toList() Use values() instead.
warning: ‘QList<T> QSet<T>::toList() const [with T = Conductor*]’
is deprecated: Use values() instead. [-Wdeprecated-declarations]

QT_VERSION 5.15.0
GCC 64bit
2020-05-28 15:54:53 +02:00
artgg7300
7948e2b1d3 updated hungarian language files 2020-05-28 06:06:14 +02:00
dlee99
abdb76b68e modified: lang/qet_nl.qm
modified:   lang/qet_nl.ts
2020-05-26 22:42:37 +02:00
Claveau Joshua
75e6f28221 Reduce the time spend when nomenclature table is created automatically 2020-05-26 22:00:32 +02:00
Laurent Trinques
5772d919e3 Update *TS files 2020-05-25 13:44:14 +02:00
Laurent Trinques
1e9cb8a75a Update Polish translation, thanks Rafal 2020-05-25 13:26:32 +02:00
Simon De Backer
bb2c822b2f Add some "Vaillant" hydraulic elements for allSTOR 2020-05-24 19:20:50 +02:00
Claveau Joshua
65777a0fb5 Minor typo 2020-05-24 17:23:11 +02:00
Claveau Joshua
df26c5b7ed Add nomenclature dialog : enable option "add new folio and table if needed" 2020-05-24 17:17:17 +02:00
Claveau Joshua
7ea42752a4 Change the way how a diagram is added
Now it's the project itself who manage the adding of diagram instead of
the diagram view, it's more coherent
2020-05-24 16:24:39 +02:00
Claveau Joshua
edfdf83c99 Nomenclature : enable option "fit to diagram" 2020-05-24 15:03:56 +02:00
Maximilian Federle
0c550497d1 snap: Start org.freedesktop.portal.Desktop on launch
Open & save dialogs might fail if it is not running.
org.freedesktop.portal.Desktop is DBus activated and this doesn't play
nicely with AppArmor at the moment.
2020-05-24 14:12:09 +02:00
Laurent Trinques
30dbcae2a5 Typo 2020-05-20 02:36:23 +02:00
Laurent Trinques
a7121cce50 Improve : Try to launch qet_tb_generator portable version of the plugin
if user put binary on QDir::homePath()
2020-05-20 02:27:47 +02:00
Laurent Trinques
83b58ec246 Try to launch qet_tb_generator portable version of the plugin if user
put binary on QDir::homePath()
2020-05-19 11:15:52 +02:00
Claveau Joshua
77c9cad501 Animate search and replace widget when close with the button of the widget 2020-05-17 15:59:23 +02:00
Laurent Trinques
987dbd3fa6 Add symbol 2020-05-17 10:24:13 +02:00
Laurent Trinques
b41a0656ec Minor : increase max conductors to 20px 2020-05-16 16:00:32 +02:00
Laurent Trinques
fca9c7c479 Minor : set maximum to 99 text conductor 2020-05-16 15:56:00 +02:00
Laurent Trinques
f360973eeb Macos add key LSMinimumSystemVersion 2020-05-15 13:34:41 +02:00
Claveau Joshua
70493a06f7 Minor : typo and tab edit order 2020-05-15 11:38:09 +02:00
Claveau Joshua
e40ba32281 Bug fix : some element informations can't be set 2020-05-15 10:26:05 +02:00
Laurent Trinques
4ee65320f3 Update binary of norwegian translation 2020-05-14 20:20:56 +02:00
Joel As
da297c8591 Recent update of norwegian translation 2020-05-14 20:16:52 +02:00
Laurent Trinques
6041818d8f Update qet_nb.ts qet_nb.qm, thanks Joel 2020-05-14 17:32:57 +02:00
Laurent Trinques
d14d5de442 Update qet_nb.ts 2020-05-14 16:48:30 +02:00
Laurent Trinques
cc9124cdfb Prepare to add new country Norwegian switch 2020-05-14 16:01:40 +02:00
Ole Carlsen
b1ef5d4b2b anish translation updated 2020-05-12 18:44:36 +02:00
Claveau Joshua
0015f4a694 Qet graphics table item can be removed from diagram 2020-05-12 11:17:25 +02:00
artgg7300
50f061697c translated hungarian files 2020-05-10 10:11:08 +02:00
Claveau Joshua
37efa97ce7 qet graphics table item : to/from xml change
The font, alignment and margins is not saved by the table anymore but by
the model.
2020-05-08 00:08:57 +02:00
Maximilian Federle
9fa7e21905 snap: Prevent the use of the KDE Plasma platformtheme
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.
2020-05-06 23:15:52 +02:00
Laurent Trinques
bc9ebca815 Update *TS files 2020-05-06 21:12:36 +02:00
Laurent Trinques
f3138960b1 Fix : key sequence 'space' don't work with nl be local 2020-05-06 21:11:11 +02:00
Laurent Trinques
f316ab5900 Update *TS files 2020-05-06 19:21:32 +02:00
Claveau Joshua
66a3c269ca Fix : key sequence 'space' don't work with nl be local 2020-05-06 19:14:42 +02:00
Laurent Trinques
d5f3531d66 Snap remove i386 architecture 2020-05-06 10:46:10 +02:00
Laurent Trinques
df3dd717d0 Enable only amd64 i386 architectures 2020-05-06 10:05:47 +02:00
Laurent Trinques
1320d12535 Refresh github link for DXFtoQET-2020 2020-05-06 09:49:03 +02:00
Laurent Trinques
2f0845daa9 Update *TS files and update english and french translation 2020-05-06 08:53:57 +02:00
Laurent Trinques
b481073993 Fix typo 2020-05-06 08:41:18 +02:00
Laurent Trinques
7ea2474a6c Update Binary be translation 2020-05-06 07:07:29 +02:00
Simon De Backer
96028b1499 add translation be 2020-05-06 07:05:42 +02:00
Claveau Joshua
efac27b9b8 Nomenclature : Add dialog when insert a new nomenclature table 2020-05-05 20:38:31 +02:00
Claveau Joshua
3905371da6 Fix wrong element text value when loading from xml 2020-05-03 20:29:55 +02:00
Laurent Trinques
c49ee74d81 Add new Vacuum Technology elements, thanks Dinozzo 2020-05-03 15:12:23 +02:00
sdeffaux
4f8df55099 suppression de doublon 2020-05-02 16:14:23 +02:00
Laurent Trinques
711db09855 Add some "Vaillant" elements, thanks riesermauf 2020-05-02 16:08:11 +02:00
Claveau Joshua
0aae330bef Minor : improve layout for low resolution screen 2020-05-01 18:33:11 +02:00
Claveau Joshua
f20df15ccf Nomenclature query can be saved/load 2020-05-01 18:07:15 +02:00
Laurent Trinques
7e7346da6e Add Weintek HMI symbols, thanks Rafał 2020-04-30 21:48:32 +02:00
gleissonjoaquim3
2c8c624e56 Update on PT_BR translation members 2020-04-30 12:17:11 +02:00
Laurent Trinques
f78ac2c82b Fix missing many languages after run make install
or made any distro specific package, thanks Charles
2020-04-29 13:49:19 +02:00
Claveau Joshua
9bb58fedea Element query widget : widget restor is state according to the current query 2020-04-29 11:48:45 +02:00
artgg7300
bc1f10aa80 Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet
Translated hungarian files
2020-04-28 20:22:58 +02:00
artgg7300
9267befbbc Translated hungarian language files 2020-04-28 20:06:56 +02:00
Laurent Trinques
418e45552d macOS : add more explanation in Message Box about install plugin 2020-04-28 17:47:52 +02:00
Ole Carlsen
a95a8b7fb6 Update danish translation 2020-04-27 19:46:10 +02:00
Claveau Joshua
a8a9ddc3d6 Add view 'element_nomenclature_view' to projectDataBase
Add a view for the nomenclature to reduce the size of the query and make
it more understandable
2020-04-25 15:52:06 +02:00
Claveau Joshua
44bf0a5ce4 minor 2020-04-23 20:01:01 +02:00
Claveau Joshua
9525278be7 Animate show and replace widget.
this feature is totally useless and by consequent indispensable.
2020-04-23 19:52:56 +02:00
Laurent Trinques
f4cbf21075 Add new Delta symbols, thanks Rafał 2020-04-23 12:45:37 +02:00
sdeffaux
a19eb57a0f add symbols and reorganised folders 2020-04-23 12:06:35 +02:00
Laurent Trinques
e4c15e21bf Update translation ang generete new Norwegian dialects nb 2020-04-20 07:11:38 +02:00
dlee99
d1af0e921c modified: lang/qet_nl.qm
modified:   lang/qet_nl.ts
2020-04-19 23:05:10 +02:00
sdeffaux
ba1b306834 add symbols
j'ai vu un louper sur les disjoncteur de l'ancien commit
2020-04-19 14:34:36 +02:00
Laurent Trinques
e99f8c9e7a Update pt_b binary translation 2020-04-19 13:46:49 +02:00
gleissonjoaquim3
88641cba2a Update translation pt-br 2020-04-19 13:44:46 +02:00
Claveau Joshua
8f4d5ef9dd element query widget : minor improvement
Double click on an item act like add or remove push button
2020-04-18 18:22:00 +02:00
Claveau Joshua
8cd9b3ba6e Element info query : fix wrong behavior 2020-04-18 18:11:56 +02:00
sdeffaux
f3c4d94822 add symbols 2020-04-18 14:44:47 +02:00
Claveau Joshua
61d4ddfcda QetGraphicsTableItem : Imrpove how the table is resized 2020-04-17 23:15:39 +02:00
Claveau Joshua
9eb651449f Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet 2020-04-17 18:41:02 +02:00
Claveau Joshua
908d79925c save/load QetGraphicsTableItem to/from .qet file 2020-04-17 18:40:28 +02:00
Laurent Trinques
64ad7967ed Update Fr translation 2020-04-17 12:21:09 +02:00
Laurent Trinques
bc11e03f00 Update En translation 2020-04-17 12:05:06 +02:00
Laurent Trinques
92074987c6 Update *TS files 2020-04-17 11:47:20 +02:00
Maximilian Federle
74d5d0f6ef snap: Use symlinks instead of bind-mounts
As per https://snapcraft.io/docs/snap-layouts,
bind-mounts significantly increase the startup time of the snap.
Use symlinks instead for better performance.
2020-04-17 05:29:31 +02:00
Maximilian Federle
983d78727c snap: Set correct PYTHONPATH
Fix qet-tb-generator not being able to find
its packages.
2020-04-17 05:29:31 +02:00
Maximilian Federle
07d3fd1ed4 snap: Use SNAP_USER_COMMON as HOME
This prevents the config and the user collection from being
backed up by snapd on update. If the user reverts qelectrotech,
the current collection will thus not be overwritten by the
possibly outdated backup.

Add a migration script that automatically transfers the user's .qet
directory to the new location.
2020-04-17 05:29:31 +02:00
Maximilian Federle
6867bf813a snap: Do not ship files already included in content snaps
Remove all files from prime that are already included in our content
snaps, which reduces snap size considerably.
2020-04-17 05:29:31 +02:00
Maximilian Federle
b9002ab4da snap: Use kde-frameworks-5-core18-sdk to build
Use kde-neon's corresponding sdk snap instead of
build-packages.
2020-04-17 05:29:31 +02:00
Maximilian Federle
5b1bd22b30 snap: Use kde-neon extension
The kde-neon extension reduces our boilerplate in snapcraft.yaml
and reduces the snap size considerably, as we do not need to ship
any library that is already included in the kde-frameworks-5-core18
snap itself.

This limits qelectrotech builds to the architectures supported
by kde-frameworks-5-core18, i.e. only amd64.
2020-04-17 05:29:31 +02:00
Laurent Trinques
f1036fe017 Add new symbols Legrand Viking, thanks Arnaud 2020-04-16 17:34:30 +02:00
Laurent Trinques
bddcb0a5ae Minor: aboutqetdialog.ui set compilation information selectable by mouse 2020-04-16 08:50:19 +02:00
Laurent Trinques
47152d7cac Update qelectrotech.qrc 2020-04-15 10:59:22 +02:00
Laurent Trinques
081f44f8be Element Editor add new ColorHTML, THANKS Arnaud for the patch 2020-04-15 10:27:54 +02:00
Laurent Trinques
cc72bb6e06 Revert Update org.qelectrotech.QElectroTech.json not fixing Python's Tkinter need for qet-tb-generator 2020-04-15 08:44:29 +02:00
Laurent Trinques
3f2441eb8a Update org.qelectrotech.QElectroTech.json for Flatpak build 2020-04-15 07:55:18 +02:00
sdeffaux
7bbef5785d update symbols
mise à jour en autre des symbols GCE il leurs manquer un  nom
2020-04-14 06:34:38 +02:00
sdeffaux
345ebeebcd add symbols and reorganise folders 2020-04-13 15:19:08 +02:00
Laurent Trinques
3fc7ff525c Add new GCE symbols 2020-04-13 07:01:06 +02:00
Claveau Joshua
851265844f Fix break from merge of qetgraphicsTableItem to master 2020-04-12 20:10:30 +02:00
Claveau Joshua
55876293bc Replace minus (-) by underscore (_) in all element information 2020-04-12 19:45:19 +02:00
Laurent Trinques
234886419d Merge
Q_OS_MACOS need now Python framework Versions 3.8 for launching
qet_tb_generator plugin
2020-04-12 19:04:08 +02:00
Laurent Trinques
73149973e3 Merge remote-tracking branch 'origin/QetGraphicsTableItem' 2020-04-12 18:51:38 +02:00
Claveau Joshua
41541dde2c Minor fix : dynamic text can't have 'label' info if formula is set
When create a new dynamic element text item, on an element which have a
formula, dynamic text can't have 'label' for source of text.
2020-04-10 15:02:18 +02:00
Claveau Joshua
5c6f556ad3 Minor revamp
Remove unused include.
QETproject : Default titleblock are set in the default constructor
instead of set by qetdiagrameditor.
conductor, border, report and xref propertie are now set in the header
of QETProject instead of set by the qetdiagrameditor just after the
creation of a new project.
2020-04-09 16:58:05 +02:00
Claveau Joshua
87f26ce691 Cross Xref : display power contact by default 2020-04-09 16:17:37 +02:00
Claveau Joshua
017f78fb13 Fix crash when close project
At time of closing project, if a master element(may be every linkable
element) is selected and the editor dock display a lot of available
slave, qet crash.
2020-04-09 16:12:21 +02:00
Claveau Joshua
94aa5c0247 Minor fix : in some condition master cross Xref are not displayed 2020-04-08 19:27:24 +02:00
Laurent Trinques
4774389ee0 Revert :
MACOS remove static path "/Library/Frameworks/Python.framework/Versions/
    *" for launching  qet_tb_generator plugin
2020-04-05 09:45:26 +02:00
Laurent Trinques
f8e0b499f3 MACOS remove static path "/Library/Frameworks/Python.framework/Versions/
*" for launching  qet_tb_generator plugin
2020-04-05 09:32:45 +02:00
Laurent Trinques
ebc55bb440 Q_OS_MACOS need now Python framework Versions 3.8 for launching
qet_tb_generator plugin
2020-04-05 08:58:01 +02:00
Laurent Trinques
5b32ce9e61 Add new Legrand elements, thanks Arnaud 2020-04-05 08:15:12 +02:00
Laurent Trinques
f1999946fa Czech translation update, thanks Pavel 2020-04-03 06:23:45 +02:00
sdeffaux
31af660c73 add symbol 2020-04-02 13:49:00 +02:00
aitolos
2f2d72ed01 Update Greel Language files (spellcheck, typos) 2020-03-30 21:01:48 +03:00
Laurent Trinques
a4dc920b62 Add new symbols, thanks Bisku 2020-03-28 13:50:17 +01:00
aitolos
c22d8d70a0 Update Greek Lang files 2020-03-28 12:45:12 +02:00
Laurent Trinques
99064fe2ab Moving elements by mouse does not respect the grid settings
When moving element by mouse, snapping to grid uses fixed 10 px steps
hardcoded in source instead of using the value from grid settings. When
moved by keyboard, the grid step is respected.
It is due to QPointF Diagram::snapToGrid(const QPointF &p) function not
considering the settings.

Thanks jethro for this patch
2020-03-27 21:21:49 +01:00
Laurent Trinques
abe5fc3b4e Update Greek TS, thanks aitolos 2020-03-27 04:52:20 +01:00
sdeffaux
970e3cd207 update symbols 2020-03-25 20:09:20 +01:00
Claveau Joshua
aaccc33e7b Minor fix: conductor text don't move with element.
When move two elements connected by a conductor, the conductor text
don't follow the movement when he is previously moved by the user.
2020-03-22 20:19:41 +01:00
Laurent Trinques
c0746b3fa4 Delete duplicate folder 2020-03-20 14:55:57 +01:00
sdeffaux
eab9e39290 mise a jour symbol 2020-03-15 21:54:27 +01:00
sdeffaux
d582e1c25b add symbols and update 2020-03-14 14:43:00 +01:00
artgg7300
9e842e5d09 updated hungarian translate 2020-03-14 08:00:46 +01:00
Laurent Trinques
23202c319c Add new Rexroth valves, thanks Fernando 2020-03-10 16:42:36 +01:00
dlee99
d703fb687f modified: lang/qet_nl.qm
modified:   lang/qet_nl.ts
2020-03-09 21:47:14 +01:00
sdeffaux
6479f8e7b8 add symbols and update 2020-03-08 17:22:19 +01:00
Claveau Joshua
a899fa720b Merge branch 'QetGraphicsTableItem' 2020-03-08 10:41:45 +01:00
Claveau Joshua
f7a090c3ca Add widget to edit QetGraphicsTableItem and QetGraphicsHeaderItem 2020-03-08 10:38:49 +01:00
Laurent Trinques
487c293860 Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet 2020-03-07 17:43:10 +01:00
Laurent Trinques
62d7d9a784 dd new Wago elements, thanks Pcl-user 2020-03-07 17:41:04 +01:00
nuri
dd5e81da6e Updated german translation 2020-03-06 18:36:49 +01:00
Ole Carlsen
0daa6b436f Danish translation updated 2020-03-06 15:41:05 +01:00
Laurent Trinques
57ded906de Update translation 2020-03-06 13:06:21 +01:00
Laurent Trinques
a9cdec6363 Update *TS file and generate new Slovakia ts file 2020-03-06 12:57:38 +01:00
sdeffaux
4c04a73022 add symbols hager 2020-03-05 16:47:04 +01:00
Laurent Trinques
ad1fddadf2 Add new symbol, thanks Mihicz 2020-03-05 06:24:57 +01:00
Laurent Trinques
7d5eab748a Refresh legrand/61-busbar/ dir, thanks Arnaud 2020-03-05 06:22:25 +01:00
Laurent Trinques
6db1fe7666 Refresh legrand/61-busbar/ dir, thanks Arnaud 2020-03-04 19:48:50 +01:00
Laurent Trinques
b5a15e49f1 Refresh bticino dir 2020-03-04 05:53:46 +01:00
Laurent Trinques
c5eba536fd Add new legrand & bticino symbols, thanks Arnaud 2020-03-03 20:05:12 +01:00
Laurent Trinques
4264384675 Add new icp-das symbols, thanks Arnaud 2020-03-03 18:18:01 +01:00
sdeffaux
fffa84efd6 add symbols 2020-03-02 12:30:18 +01:00
Laurent Trinques
27c3cc0000 Refresh ICP-DAS elements, thanks Arnaud 2020-02-29 15:27:35 +01:00
Laurent Trinques
670cad1092 Add ICP-DAS elements, thanks Arnaud 2020-02-29 13:46:40 +01:00
Laurent Trinques
85a2600e58 Improve files names extension for Gnome DE and Flatpak 2020-02-26 14:50:56 +01:00
sdeffaux
6535a93b66 Traduction and add symbols 2020-02-25 04:56:48 +01:00
Claveau Joshua
2a29b4b240 Add itemTYpe for QetGraphicsTableItem and QetGraphicsHeaderItem 2020-02-21 08:55:35 +01:00
Claveau Joshua
43baed69db Add QetGraphicsHeaderItem 2020-02-20 21:33:26 +01:00
Mathieu Bridon
a16b505aa6 flatpak: Properly rename the appdata file
Adding the full file name was required, just like for renaming the
desktop files, unlike for renaming the icons.
2020-02-17 15:17:42 +01:00
sdeffaux
39d442b53d add symbols 2020-02-16 18:06:47 +01:00
Laurent Trinques
f51fd44b55 Change dmg loaction build path to new build-aux/ 2020-02-14 14:57:38 +01:00
Mathieu Bridon
975f0db7ec build: Add a Flatpak manifest
This allows building the master branch of QElectroTech with a simple
command:

$ flatpak-builder _build build-aux/flatpak/org.qelectrotech.QElectroTech.json
2020-02-14 14:43:49 +01:00
Mathieu Bridon
d26b189d3d build: Rename the packaging directory
The Linux and Windows packaging recipes don't have any restrictions on
where they have to be located. Snapcraft is the strictest on this.

Moving this to build-aux/ means we can have all the packaging recipes in
one place.
2020-02-14 14:43:36 +01:00
Mathieu Bridon
3f38f4b16c build: Move the Snap recipes
Snapcraft can find its build recipes in 2 places:

* a snap/ directory at the top of the sources;
* a build-aux/snap/ directory, since Snapcraft 3.3;

This commit moves from the former to the latter, so that we can group
all the packaging recipes together.
2020-02-14 14:43:36 +01:00
Laurent Trinques
5265db6cf7 Add new Legrand symbols, thanks Arnaud 2020-02-02 18:34:08 +01:00
Claveau Joshua
fd2c210f49 Add QetGraphicsTableItem + entry "add nomenclature" in project menu 2020-02-02 16:33:19 +01:00
Laurent Trinques
336887b394 Fix # bug 182, thanks Wilfried 2020-01-30 16:27:27 +01:00
sdeffaux
aa06d7ffcb add symbols 2020-01-28 14:15:19 +01:00
sdeffaux
e8dcfee552 add symbols 2020-01-28 14:15:19 +01:00
Laurent Trinques
fed5a30e8f Add new symbol, thanks Alexis 2020-01-27 08:25:10 +01:00
Laurent Trinques
6abeb934e1 Merge remote-tracking branch 'origin/test_pugi' 2020-01-26 14:43:48 +01:00
Claveau Joshua
f8dcdec735 Improve loading time 2020-01-23 10:45:14 +01:00
Laurent Trinques
ebf76ef505 Add news symbols, thanks Arnaud 2020-01-22 10:56:36 +01:00
Claveau Joshua
f297e28b64 Loading elements collections doesn't freeze gui anymore. 2020-01-19 11:53:40 +01:00
dlee99
8e4b5a8dca modified: lang/qet_nl.qm
modified:   lang/qet_nl.ts
2020-01-19 00:35:09 +01:00
Claveau Joshua
ed2e72e995 Minor improvement about using pugixml 2020-01-18 20:03:24 +01:00
Claveau Joshua
dc32a4298b Remove old aboutQet class 2020-01-18 16:34:46 +01:00
Claveau Joshua
51d8b2a2bc Revamp the aboutQet dialog with Qt designer and add a new tab "libraries" 2020-01-18 16:25:30 +01:00
Claveau Joshua
dca44566e8 Clean code 2020-01-17 19:33:13 +01:00
dlee99
0e84cef85e modified: lang/qet_nl.qm
modified:   lang/qet_nl.ts
2020-01-13 20:24:57 +01:00
Laurent Trinques
12a0f8d831 Add new symbols, thanks David 2020-01-10 18:16:52 +01:00
joshua
91353b5578 Minor : Fix wrong position with cross ref item displayed as cross 2020-01-09 22:43:16 +01:00
joshua
32c135a7e5 Merge branch 'test_pugi' of ssh://git.tuxfamily.org/gitroot/qet/qet into test_pugi 2020-01-09 10:35:19 +01:00
joshua
3d051419a5 Improve file access on windows and mac OSX 2020-01-09 10:26:10 +01:00
Laurent Trinques
5e63ac316c Update SingleApplication to latest upstream sources 2020-01-08 14:27:52 +01:00
Laurent Trinques
fbec9c9aa5 Add Checkbox to enable or disable the dialog to display the elpsaed time
of collection loading
2020-01-07 13:02:43 +01:00
Laurent Trinques
7ebc395f8b Update Polish translation, thanks Pawel 2020-01-06 12:49:37 +01:00
joshua
3492540d53 Use pugixml for parse local name of directory and element informations 2020-01-04 23:33:35 +01:00
joshua
eb903a12b0 Add option to switch between Qtxml or pugi xml. Add dialog to display the elpsaed time of collection loading. 2020-01-04 15:59:27 +01:00
joshua
6398feba0d Minor pugi improvement 2020-01-04 13:50:58 +01:00
joshua
674e9e31a5 Add pugi_xml test branch 2020-01-04 11:30:43 +01:00
Laurent Trinques
3a2a99c87a Update README.md 2019-12-31 11:43:24 +01:00
Laurent Trinques
4ee05530ae Update README.md 2019-12-27 18:43:18 +01:00
Laurent Trinques
f10df82887 Improve README.md 2019-12-27 11:21:02 +01:00
Laurent Trinques
5e6ba5f157 Restore old READMe file 2019-12-27 03:01:33 +01:00
Laurent Trinques
96fc140918 Rename README file extenstion 2019-12-27 02:55:40 +01:00
Laurent Trinques
95a36d54dc Improve Readme file for Github repository 2019-12-27 02:44:16 +01:00
Laurent Trinques
d7e5a84be1 Merge branch '20191111_fix_permissions' 2019-12-26 03:49:02 +01:00
dlee99
d743f15bb3 modified: lang/qet_nl.qm
modified:   lang/qet_nl.ts
2019-12-22 16:00:34 +01:00
joshua
523e6692ad Remove a diagram doesn't save the project anymore 2019-12-20 18:32:55 +01:00
Laurent Trinques
f7c183c9a9 Revert 2019-12-14 13:38:39 +01:00
Laurent Trinques
fb8f86f7f1 App does not work with Qt::AA_EnableHighDpiScaling flags enabled on
Windows platform since Qt 5.13.X
2019-12-14 12:10:11 +01:00
joshua
e618539ddb Fix crash when quickly move tab of digramview 2019-12-10 20:01:39 +01:00
Laurent Trinques
2435d23334 Add QFutureWatcher 2019-11-27 17:41:51 +01:00
artgg7300
cec62679be fixed syntax error in hungarian translation 2019-11-24 15:59:47 +01:00
dlee99
f806d82b41 modified: lang/qet_nl.qm
modified:   lang/qet_nl.ts
2019-11-23 18:38:55 +01:00
Laurent Trinques
41af7abadb Fix typo 2019-11-18 12:53:05 +01:00
nuri
b39e000fa8 Updated german translation 2019-11-18 08:35:10 +01:00
Ole Carlsen
2e89016098 Updated Danish translation 2019-11-17 14:20:56 +01:00
artgg7300
236b37fa12 Updated hungarian translate 2019-11-17 07:21:21 +01:00
Laurent Trinques
68a685a87e Update *TS files 2019-11-17 02:41:40 +01:00
stromie@web.de
15c58e2362 bugfix, XREF Update when Text Alignment used
Signed-off-by: stromie@web.de <stromie@web.de>
2019-11-16 13:17:08 +01:00
joshua
0b196b6caf Remove QTabBar custom style 2019-11-14 21:24:55 +01:00
Kim Kirwan
fe2071c4b2 Remove Execute Permissions from Non-Executables
No source code changes.
Removed execute permissions from 7 files total:
*.pro and *.pri files (4)
main.cpp (2)
*.txt file (1)

Signed-off-by: Kim Kirwan <Kim@KimKirwan.com>
2019-11-11 04:22:22 -06:00
joshua
740b0942b7 Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet 2019-11-11 11:17:32 +01:00
joshua
c68c1a281e CSV export : minor gui change 2019-11-11 11:17:18 +01:00
artgg7300
7a24f2fb36 updated hungarian translation 2019-11-11 06:29:09 +01:00
sdeffaux
72315a2a0f update symbols 2019-11-10 22:32:38 +01:00
sdeffaux
e887845897 add symbol 2019-11-10 22:32:38 +01:00
sdeffaux
cb52625afa Update qet_directory 2019-11-10 22:32:38 +01:00
joshua
6e0eab2608 Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet 2019-11-10 19:46:46 +01:00
joshua
f912eea8d4 CSV export : improve save/load export configuration. 2019-11-10 19:46:28 +01:00
Laurent Trinques
a0fbcfe06c Fix symbol state 2019-11-09 18:27:58 +01:00
joshua
35d6fe5935 CSV export : change menu and dialog text 2019-11-09 14:33:33 +01:00
joshua
43361942e3 CSV export : improve selection type. 2019-11-09 14:28:13 +01:00
joshua
c8ab83a3ad CSV export : improve database and query 2019-11-09 11:38:30 +01:00
joshua
143cf088ba Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet 2019-11-08 19:06:25 +01:00
joshua
2df9528082 CSV export : fix some missing informations. 2019-11-08 19:06:11 +01:00
nuri
aa487495b5 Updated german translation 2019-11-08 07:58:29 +01:00
dlee99
da6dacca04 modified: lang/qet_nl.qm
modified:   lang/qet_nl.ts
2019-11-07 22:01:48 +01:00
joshua
fc73d53d73 CSV export : correctly export label 2019-11-07 21:21:07 +01:00
Ole Carlsen
32a4d9c3fe Danish translation updated 2019-11-06 17:14:03 +01:00
Laurent Trinques
ff9ccd6f86 Update *TS files 2019-11-06 17:01:47 +01:00
Laurent Trinques
13971c00ee Typo 2019-11-06 16:13:41 +01:00
Laurent Trinques
60d2c403b3 Nomenclature export : Minor change in UI 2019-11-06 16:10:24 +01:00
Laurent Trinques
3fa6025c1d Update *TS files 2019-11-06 14:25:18 +01:00
Laurent Trinques
9c874af52e Nomenclature export : add coil and protection query 2019-11-06 14:16:55 +01:00
Ole Carlsen
ce190dd323 Updated Danish translation 2019-11-05 21:06:13 +01:00
nuri
8f13ef06cb Updated german translation 2019-11-05 13:39:31 +01:00
tititiou36
dc360c57b5 Update qet_fr.ts
Ajout/correction de traduction avec pluriel
2019-11-05 11:07:18 +01:00
Laurent Trinques
a75c0c5c41 Update *TS files 2019-11-05 08:03:24 +01:00
joshua
97a2c8d2c9 Nomenclature export : items double click
User can double click on item to add/remove information to export.
2019-11-04 20:16:48 +01:00
joshua
ff7eb4d11c Revampe nomenclature
Nomenclature is now totally revamped, user can define information to
export and the order of theme.
2019-11-03 13:27:46 +01:00
joshua
7d9b3d8c36 Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet 2019-11-03 13:20:16 +01:00
Laurent Trinques
ce335f321f Add element, thanks Alexis 2019-11-01 16:48:21 +01:00
Laurent Trinques
d09b117bef Update EN translation 2019-10-29 18:08:29 +01:00
Laurent Trinques
8da9903877 Minor 2019-10-27 17:57:23 +01:00
Laurent Trinques
b2a77450de Revert previous commit 2019-10-27 17:56:13 +01:00
Laurent Trinques
345a1b4420 Typo 2019-10-20 17:29:19 +02:00
Laurent Trinques
fae2b0dab0 Try to fix Windows sqlite cache PATH 2019-10-20 17:25:54 +02:00
joshua
3c89c6f2ac Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet 2019-10-11 20:37:14 +02:00
Laurent Trinques
5fb7414b45 Add contributor 2019-10-09 14:47:47 +02:00
Laurent Trinques
7140cf9ca6 Update turkish translation, add forget qml files thanks Emir 2019-10-09 14:44:37 +02:00
Laurent Trinques
99681d27e4 Update turkish translation, thanks Emir 2019-10-09 14:33:25 +02:00
Laurent Trinques
265de06fe8 Update Hungarian translations, thanks Gabor 2019-10-07 06:58:59 +02:00
nuri
c50caadf78 Updated german translation 2019-10-06 11:28:42 +02:00
Ole Carlsen
e2e18e3736 Dansih translation updated 2019-10-06 09:57:22 +02:00
dlee99
de443e9f7b modified: lang/qet_nl.qm
modified:   lang/qet_nl.ts
2019-10-05 22:55:47 +02:00
Laurent Trinques
87d3322ee9 Update TS files 2019-10-05 14:56:55 +02:00
joshua
5de220c485 Conductors num can be exported to csv file. 2019-10-04 19:37:46 +02:00
joshua
8cc34d5f6a Simplify how a project is save
Probably only on windows, sometime the .qet file is empty after saving.
With this commit we simplify the save function, by avoiding to import an
xml node from another one, so we minimize the risk of failure.
2019-09-30 20:03:24 +02:00
joshua
eba9148924 Fix crash when a .qet file with 0 diagrams. 2019-09-27 19:25:38 +02:00
nuri
2caaa2fae6 Updated german translation 2019-09-23 09:08:40 +02:00
Laurent Trinques
6c21b1fb5f Refresh Wago symbols, thanks Plc-user 2019-09-22 16:23:53 +02:00
Laurent Trinques
b8e33bdf98 Update hungarian translation, thanks Gábor 2019-09-20 14:28:07 +02:00
Laurent Trinques
f86e26314d Add symbol, thanks Christophe 2019-09-20 10:09:50 +02:00
dlee99
79d3c75857 modified: lang/qet_nl.qm
modified:   lang/qet_nl.ts
2019-09-18 23:07:36 +02:00
Ole Carlsen
8c50496bd2 Danish translation updated, latest update apparently went wrong. 2019-09-18 16:37:58 +02:00
joshua
0ceb38eb66 Fix : element prefix don't work with custom path of user elements collection
See post at
https://qelectrotech.org/forum/viewtopic.php?pid=10593#p10593
2019-09-17 20:52:47 +02:00
Laurent Trinques
4327080b3c Add EN and FR translations 2019-09-17 13:07:34 +02:00
Laurent Trinques
33a851a9b4 Update *TS files 2019-09-17 12:58:24 +02:00
Laurent Trinques
5a3b5c9cd7 Update Changelog 2019-09-09 16:44:32 +02:00
Laurent Trinques
c4c829c205 Update Changelog 2019-09-09 10:38:56 +02:00
Laurent Trinques
ccb8b06427 macOs : add command key for fix mouse scroll 2019-09-09 09:02:16 +02:00
Laurent Trinques
a0a7513847 Replance Q_OS_MAC Deprecated by Q_OS_MACOS 2019-09-08 18:29:29 +02:00
Laurent Trinques
83eba80445 aDD scroll page tabs ON MACos, Thanks Giovanni 2019-09-08 18:07:20 +02:00
Laurent Trinques
76ba2aa3eb Add new symbols, thanks Michele 2019-09-08 15:51:38 +02:00
Laurent Trinques
01723497f3 Improve QTabBar::tab:selected style 2019-09-05 16:02:01 +02:00
Laurent Trinques
579e0badb2 Typo 2019-09-04 23:45:02 +02:00
Laurent Trinques
d24df771a3 Add green style color for tab selected 2019-09-04 23:42:24 +02:00
Laurent Trinques
b121dad562 For the Flatpak package : remove the file name extension added
automatically to the saved files even if the user sets an unknown file
extension for the program.
2019-09-03 22:54:09 +02:00
Laurent Trinques
e4741f3604 Improve Wago symbols, thanks Plc-user 2019-09-03 10:35:28 +02:00
joshua
519517a8fd Minor : fix typo 2019-09-02 20:37:33 +02:00
Laurent Trinques
701a34b033 Minor : remove Dolphin .directory view file 2019-09-02 03:48:44 +02:00
joshua
86b610dc84 Element editor : improve polygon edition 2019-09-01 21:05:33 +02:00
Laurent Trinques
3fa071841c Merge and clean Stromie patch : feature set xref slave position 2019-08-31 07:37:34 +02:00
Laurent Trinques
d37d802e6b Update MacQetDeploy.sh script 2019-08-30 14:09:08 +02:00
Laurent Trinques
10f249831d Force Fusion style on macOS 2019-08-29 13:12:00 +02:00
Laurent Trinques
cf8947cbc2 Element editor : add a control key for moving by keyboard thes
primitives selected by mouse area in 0.1 increments instead of 1
2019-08-26 14:08:51 +02:00
nuri
1218636cab Updated german translation 2019-08-26 13:55:09 +02:00
Laurent Trinques
130067ffb2 Element editor : add a control key for moving by keyboard selected
primitives in 0.1 increments instead of 1
2019-08-26 12:38:31 +02:00
nuri
80fd3c75ea Updated german translation 2019-08-26 11:13:40 +02:00
Laurent Trinques
0d464af32b Add new Wago elements, thanks Plc-user 2019-08-25 12:40:42 +02:00
Laurent Trinques
7ffa806b1b Improve folio list position (user don't know index is 0)
1 for first position
2 for second position
0 always in the end
2019-08-20 13:11:46 +02:00
Laurent Trinques
348a8d9975 Move symbols, thanks Galexis 2019-08-19 13:52:48 +02:00
Laurent Trinques
c054079d7b Set defaut position to second page 2019-08-17 12:58:24 +02:00
Laurent Trinques
6c09dd31d2 Add in setting folio list position spinbox
0 for first position
1 for second position
99999 always in the end
2019-08-17 11:43:13 +02:00
Laurent Trinques
603824aabb Snap: Remove tag hack 2019-08-07 16:19:14 +02:00
Laurent Trinques
86e658692f snap : add cups-bsd stage-packages 2019-08-07 13:22:02 +02:00
Maximilian Federle
90f43e686b snap: Add cups-control interface 2019-08-06 11:05:18 +02:00
Laurent Trinques
9fc7554dfd Update Greek TS, thanks aitolos 2019-08-03 16:05:04 +02:00
Laurent
e583919d72 Update_Spanish_Translations, thanks Alfredo 2019-07-31 19:30:49 +02:00
Laurent Trinques
9ea527986a Update translation BE-nl, thanks Ronny 2019-07-28 05:17:15 +02:00
Laurent Trinques
3e7bb303b8 Rename element 2019-07-24 16:22:33 +02:00
Laurent Trinques
88022b7ed2 Delete element 2019-07-24 16:20:20 +02:00
Laurent Trinques
3a50edbfac Rename folder 2019-07-24 16:18:24 +02:00
sdeffaux
02e1ea447c reorganize 2019-07-24 15:04:58 +02:00
sdeffaux
39c8469481 remove doublon 2019-07-24 15:04:58 +02:00
sdeffaux
9e01b54d0f Update 1734_ib8s.elmt 2019-07-24 15:04:58 +02:00
sdeffaux
132aa754b2 add manufacturer 2019-07-24 15:04:58 +02:00
sdeffaux
ba31d05e0d Update qet_directory 2019-07-24 15:04:58 +02:00
sdeffaux
a13ff777de Update qet_directory 2019-07-24 15:04:58 +02:00
sdeffaux
f0fa3f8929 add munufacturer 2019-07-24 15:04:58 +02:00
sdeffaux
171cd0aeab Update qet_directory 2019-07-24 15:04:58 +02:00
sdeffaux
b8d9334626 Update qet_directory 2019-07-24 15:04:58 +02:00
sdeffaux
85b9280cd7 Update qet_directory 2019-07-24 15:04:58 +02:00
sdeffaux
f564135eb3 Update split-pared-d.elmt 2019-07-24 15:04:58 +02:00
sdeffaux
d9cd48e5ab renaming dossier 2019-07-24 15:04:58 +02:00
Laurent Trinques
abdcef1c46 Splash : minor change 2019-07-21 16:24:01 +02:00
Laurent Trinques
528cb870a7 Update splash 2019-07-21 16:17:13 +02:00
Laurent Trinques
6468063c30 Change Version and displayedVersion update Doxyfile 2019-07-21 15:00:07 +02:00
Dik Leenheer
5fd3f7978d Update Dutch Translation 2019-07-21 14:18:49 +02:00
Dik Leenheer
6382f61c8c Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet 2019-07-21 14:07:53 +02:00
Ole Carlsen
70dc2bcf8d Danish translation update 2019-07-20 14:47:15 +02:00
Laurent Trinques
c0543bb9b0 Update *TS files 2019-07-20 14:35:55 +02:00
Laurent Trinques
f5a22b61c7 Fix lintian spelling_error 2019-07-20 14:27:52 +02:00
Laurent Trinques
a375424c07 Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet 2019-07-17 18:36:27 +02:00
Laurent Trinques
02af727b52 Bump year in Copyrigh notice, thanks Remi 2019-07-17 18:34:55 +02:00
Maximilian Federle
ccc43c8167 Snap: Remove tag hack & remove 'g' from git hash 2019-07-17 17:49:48 +02:00
Ole Carlsen
cb734a0581 Danish translation updated 2019-07-17 15:24:07 +02:00
Laurent Trinques
37fa30a34f Change displayedVersion 2019-07-17 15:00:14 +02:00
Dik Leenheer
5b838c3ca9 Update Dutch Translation 2019-07-16 22:26:27 +02:00
Dik Leenheer
7bea6343b4 Update Dutch Translation 2019-07-16 22:19:25 +02:00
Laurent Trinques
98363379b8 Fix symbol, thanks S.DEFFAUX 2019-07-15 22:00:17 +02:00
Laurent Trinques
be0ec5e12a Remove some duplicate elements and organize elements, thanks S.DEFFAUX 2019-07-15 11:49:02 +02:00
Laurent Trinques
5645188c5c Add new symbols, thanks Richard 2019-07-11 13:53:05 +02:00
Maximilian Federle
474c944692 Add gitignore file 2019-07-08 14:59:24 +02:00
Maximilian Federle
968a68a2a3 Snap: Derive version from git describe 2019-07-08 14:27:44 +02:00
Laurent Trinques
5ef009092a Add new symbols, thanks S.DEFFAUX 2019-07-03 20:04:51 +02:00
Laurent Trinques
5e27d65342 Update Changelog 2019-07-03 15:27:57 +02:00
joshua
863b337972 Minor : don't display gui when qet is launched with specific argument 2019-07-02 21:13:55 +02:00
joshua
e3d386af67 Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet 2019-07-02 21:12:01 +02:00
Laurent Trinques
cfdb9858e9 Update changelog 2019-07-02 08:26:19 +02:00
Laurent Trinques
4d79751d37 Update *TS files 2019-07-01 20:40:54 +02:00
joshua
63f039e721 Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet 2019-07-01 20:16:24 +02:00
joshua
097645f5ff Use of QSAveFile instead a QFile. 2019-07-01 20:12:12 +02:00
nuri
95d1fca171 Updated german translation 2019-06-28 10:36:45 +02:00
Laurent Trinques
0f93e028ba Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet 2019-06-27 16:29:40 +02:00
Laurent Trinques
05e4425913 Remove some duplicate elements and organize elements, thanks S.DEFFAUX 2019-06-27 16:26:37 +02:00
Laurent Trinques
69146a65f7 Sync since SVN
Revision: 5947
Author:   blacksun
Date:     2019-06-26 17:35:49 +0200 (Wed, 26 Jun 2019)
Log Message:
-----------
Fix crash when launch qet with command line argument -v.
2019-06-27 16:21:40 +02:00
ppd
d3ede55f03 Snap: Modify displayedVersion to reflect snap build & set grade: stable
+ add subversion to build-packages


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5945 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-26 07:55:06 +00:00
scorpio810
8fab43c0ec Fix error: cannot validate snap "qelectrotech": cannot validate license "GPL-2.0-or-later": unknown license: GPL-2.0-or-later
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5944 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-25 20:10:23 +00:00
scorpio810
a8789f78ee Change Displayed version
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5942 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-25 16:55:14 +00:00
scorpio810
408c2418c1 AboutQET : Add compilation date and time
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5941 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-25 15:35:01 +00:00
scorpio810
9ad634291e AboutQET : minor changes
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5940 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-25 15:19:52 +00:00
scorpio810
66e0ba9c50 AboutQET : improve QSysInfo informations
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5939 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-25 12:58:29 +00:00
scorpio810
1f130846c2 AboutQET : add QSysInfo informations for macOS
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5938 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-25 01:10:49 +00:00
scorpio810
38ca53f5d3 AboutQET : add more QSysInfo informations for debug users
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5937 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-25 01:09:16 +00:00
blacksun
eb6d76f6ba Fix unwanted restore dialog who appear for the current project
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5936 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-24 17:44:37 +00:00
scorpio810
36ca191609 Add license specification
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5935 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-24 17:05:56 +00:00
ppd
73a7da682c Snap: Use Github repos for qet_tb_generator & DXFtoQET
+ small fix for amdgpu.ids warning message



git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5934 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-24 15:06:13 +00:00
ppd
5b34e02ddf Linux: Add support for building snap packages
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5933 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-24 10:22:46 +00:00
scorpio810
985b368b33 Remove old Snap folder
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5932 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-23 14:43:30 +00:00
blacksun
21de961933 Windows fix : When launch QElectrotech with in argument a .qet file, QElectroTech ask to user to open the restore file of the argument file.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5928 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-22 11:24:59 +00:00
scorpio810
b73d339c78 Minor symbols change
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5927 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-21 18:56:04 +00:00
scorpio810
8ef3e9c136 Add new symbols, thanks Christophe
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5926 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-21 18:34:10 +00:00
dlee99
507da9c58f Update Dutch translation
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5925 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-21 18:13:25 +00:00
scorpio810
dbfe824186 Update yaml, thanks Max
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5924 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-18 17:02:12 +00:00
scorpio810
6402b6d63b Add snap packaging, thanks Max
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5923 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-17 18:30:57 +00:00
scorpio810
0bc4a63a93 Remove some duplicate elements and organize elements, thanks S.DEFFAUX
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5922 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-15 21:41:15 +00:00
scorpio810
418b4d57cc Remove some duplicate elements and organize elements, thanks S.DEFFAUX
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5921 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-15 21:18:41 +00:00
ossau2mation
89c6565d04 Update Danish translation
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5920 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-13 14:39:02 +00:00
pawel32640
162668fa27 polish translation update
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5919 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-12 18:29:42 +00:00
scorpio810
421c7821be Basic shapes : set solid line pattern by default
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5918 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-12 13:16:54 +00:00
artgg
ac217ed862 Updated Hungarian translation
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5917 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-12 04:18:19 +00:00
scorpio810
f67d4703a4 When user cleanning an project, set project to modified
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5916 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-12 01:03:02 +00:00
scorpio810
281a93091d Adding or revoming diagram set project to modified
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5915 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-12 00:48:36 +00:00
scorpio810
4f7ce670b4 Update *TS files
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5914 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-11 23:47:11 +00:00
scorpio810
6af5b7b9f8 Add new symbols, thanks Eric
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5913 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-11 16:05:20 +00:00
scorpio810
60e6999c2e Remove some duplicate elements and organize elements, thanks S.DEFFAUX part 2
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5912 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-10 13:16:41 +00:00
scorpio810
6f8a2e70ef Remove some duplicate elements and organize elements, thanks S.DEFFAUX
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5911 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-10 12:38:38 +00:00
scorpio810
1b771037c2 Bug fix : when user load a project which contains summary pages, project
was marked modified (summary was created on the fly and moved on second
position by default), now the project is no longer marked as amended


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5910 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-10 11:34:57 +00:00
scorpio810
a8978f2f86 Typo
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5909 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-10 10:12:00 +00:00
scorpio810
d77ae57c64 Add a "configure" shortcut "Ctrl+Shift+p" to quickly open the dialog used
for create the auto numbering rules.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5908 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-10 10:07:13 +00:00
scorpio810
707207044e Add Fernando Contributor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5907 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-09 18:02:30 +00:00
scorpio810
fd7893d7e6 Elements final terminals change link type simlple to terminal, thanks S.DEFFAUX to report it
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5906 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-09 16:57:53 +00:00
scorpio810
6f7bbd2e10 Element translation, thanks S.DEFFAUX
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5905 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-09 15:22:36 +00:00
blacksun
8a4c9a23cf Remove some duplicate elements
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5904 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-07 19:34:47 +00:00
scorpio810
dc444af4cf Add new symbols, thanks Galexis
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5903 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-06 20:29:20 +00:00
pawel32640
337a589047 polish translation update
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5902 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-04 05:58:58 +00:00
alfredo
3c21e66fbe Spanish translation Qet
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5901 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-02 03:33:26 +00:00
scorpio810
4b566b7b08 Element translation, thanks S.DEFFAUX
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5900 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-31 09:21:12 +00:00
scorpio810
73430beb1f Minor : remove unused shortcut "reload collection"
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5899 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-30 23:15:26 +00:00
scorpio810
af04d5e16b Elementspanelwidget: adds keyboard shortcuts to quickly move up, down,
or move the targeted folio to the beginning of the project

F3 MoveUp
F4 MoveDown
F5 MoveUpTop


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5898 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-30 22:17:03 +00:00
scorpio810
76fafc19b2 Fix Static text size of element exported to dxf
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5897 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-30 18:49:43 +00:00
blacksun
4cbf103cbc Static text of element are now exported to dxf
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5896 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-28 19:22:36 +00:00
scorpio810
571d9fdac5 Add symbols
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5895 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-28 15:59:42 +00:00
pawel32640
f1b6abe1f2 polish translation update
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5894 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-26 21:03:27 +00:00
scorpio810
c869cd46a9 Add new symbol, thanks S.DEFFAUX
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5893 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-26 10:12:22 +00:00
scorpio810
42d065df4e Element translation, thanks S.DEFFAUX
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5892 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-26 09:55:26 +00:00
artgg
0ce48e0681 Updated Hungarian translation
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5891 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-23 19:58:58 +00:00
silvio
3c1cac43ee Update .ts file translation ITA
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5890 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-23 07:57:52 +00:00
scorpio810
d3a4c833f6 Add symbols
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5889 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-23 00:31:49 +00:00
scorpio810
8d2d187e0f Rfresh symbol, change static texts by dynamic texts
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5888 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-22 23:50:46 +00:00
ossau2mation
ab58375447 Update Danish translation
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5887 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-22 19:16:34 +00:00
scorpio810
7d5708b493 Add symbols
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5886 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-21 23:03:11 +00:00
scorpio810
98a9084859 Update nl translations, thanks Dik
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5885 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-21 20:30:25 +00:00
nuri
1a626fb966 Updated german translation
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5884 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-21 06:29:23 +00:00
scorpio810
7826512687 Update *TS files
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5883 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-21 00:27:04 +00:00
scorpio810
9cb6d62725 QMessageBox : Add QObject to improve translations
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5882 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-21 00:06:50 +00:00
scorpio810
1519f21a47 QMessageBox : improve HTML messages
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5881 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-20 18:51:32 +00:00
scorpio810
749519ff45 Diagram editor : when plugin qet-tb-generator
"generate terminal blocks and connectors" isn't installed show an
QMessageBox instruction now depending on the operating system for
install it 
Add in QMessageBox url encoding/decoding for easy download packages


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5880 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-20 14:54:04 +00:00
scorpio810
a9b6b20b92 Update *TS files
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5879 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-19 20:00:54 +00:00
scorpio810
3e6a71d899 Diagram editor : Add StatusTip instruction for install and launching DXF
plugin depending on the operating system


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5878 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-19 19:47:32 +00:00
scorpio810
cc60650b4c Update *TS files
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5877 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-19 18:34:04 +00:00
scorpio810
cc9fbc2967 Minor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5876 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-19 18:28:39 +00:00
pavelfric
2aaca04ffc Updated Czech translations
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5875 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-19 18:17:14 +00:00
scorpio810
53c0d95f4e Typo
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5874 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-19 17:23:20 +00:00
scorpio810
9f53198c2a Diagram editor : Add missing tooltip of some QAction
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5873 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-19 17:18:21 +00:00
pavelfric
aae825b6ac Updated Czech translations
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5872 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-19 08:02:17 +00:00
scorpio810
e324e9c59d Minor : add clear button on formulaautonumberingw and numparteditorw
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5871 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-19 00:30:14 +00:00
scorpio810
be860044fb Update *TS files
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5870 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-19 00:19:23 +00:00
blacksun
28cceca3c5 Element editor : finish the creation of polyline with the last point at the same position of the first point, close the polyline.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5869 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-18 19:49:27 +00:00
blacksun
3f9685832d Add missing tooltip of some QAction
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5868 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-18 19:35:57 +00:00
scorpio810
ef833732f9 Update *TS files
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5867 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-18 10:58:17 +00:00
scorpio810
b8b39e2f24 Diagram editor : when user add a polygon, improve message in statusBar
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5866 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-18 10:49:01 +00:00
scorpio810
328a33832f Element translation, thanks S.DEFFAUX
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5865 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-17 22:00:07 +00:00
scorpio810
5f44933c21 Diagram editor : when user add a polygon, a message in stausBar show how
to finish this shape


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5864 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-17 21:22:10 +00:00
blacksun
2f9b101c19 Diagram editor : when user add a polygon, if the last point is at the same position of the first, then the polygon is closed.
Undo commit 5862


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5863 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-16 17:38:13 +00:00
scorpio810
4503132140 Add ToolTip for QetShapeItem
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5862 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-16 16:06:42 +00:00
scorpio810
6187e9de44 Refres element directory
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5861 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-12 23:28:02 +00:00
scorpio810
e382b21334 Element translation, thanks S.DEFFAUX
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5860 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-12 21:22:01 +00:00
blacksun
466835d7f0 Minor fix : Advanced replace of independent text doesn't work.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5859 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-09 19:36:51 +00:00
silvio
a1fc3189af Update .ts file translation ITA
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5858 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-09 10:50:09 +00:00
dlee99
fa7d93dcb2 Update Dutch translation
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5857 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-04 21:11:40 +00:00
scorpio810
963893fd54 Add new symbol, thanks S.DEFFAUX
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5856 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-03 13:40:34 +00:00
nuri
0888c74ac7 Updated german translation
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5855 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-02 14:25:01 +00:00
artgg
56631637ad Updated Hungarian translation
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5854 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-05-02 06:02:44 +00:00
ossau2mation
a92c85cf73 Update Danish translation
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5853 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-30 17:27:39 +00:00
scorpio810
bd843753a2 Add new symbols, thanks Galexis & S.DEFFAUX
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5852 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-30 12:44:36 +00:00
pawel32640
e7d21a0cad updated polish translation
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5851 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-30 09:55:15 +00:00
pawel32640
0c9cd509e2 updated polish translation
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5850 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-30 08:42:41 +00:00
scorpio810
94d2462c2f Update *TS files
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5849 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-30 04:53:36 +00:00
blacksun
cd9a42184f Add new slave type : delay on/off
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5848 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-29 16:41:06 +00:00
scorpio810
c49cf8d136 Add new symbols, thanks S.DEFFAUX
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5847 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-28 12:32:20 +00:00
scorpio810
63ba7f3d20 Add new symbols, thanks S.DEFFAUX
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5846 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-27 19:45:40 +00:00
blacksun
da99c82670 Minor : The Xref (draw as contact) of temporised switch contact are not represented with the parachute
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5845 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-26 18:01:28 +00:00
scorpio810
da19adc565 Add new symbols, thanks Jevgenijs
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5844 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-26 09:54:50 +00:00
scorpio810
7274a1ff4d Add symbols, thanks Alexis
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5843 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-25 14:46:08 +00:00
scorpio810
b3d06b73f1 Minor move symbol
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5842 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-25 14:25:56 +00:00
scorpio810
92e5baf492 Add new symbol, thanks Alexis
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5841 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-25 14:22:55 +00:00
scorpio810
b39c263c7c Element fix, thanks Jevgenijs
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5840 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-22 04:07:04 +00:00
scorpio810
8c363e4298 Refresh symbol
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5839 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-20 11:57:55 +00:00
scorpio810
fc30985d59 Add new symbols, thanks Jevgenijs
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5838 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-14 14:07:57 +00:00
scorpio810
3ecc19146a Update Changelog
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5837 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-13 13:43:50 +00:00
scorpio810
b26a36d6de Update Changelog
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5836 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-13 13:08:34 +00:00
scorpio810
e5fa888a6a Add new symbols, thanks Tourniere & DEFFAUX
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5835 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-13 11:11:48 +00:00
scorpio810
cd1cfc0a46 Fix warning, thanks Remi
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5834 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-12 05:45:41 +00:00
9180 changed files with 472074 additions and 133434 deletions

7
.gitignore vendored Normal file
View File

@@ -0,0 +1,7 @@
*.snap
.flatpak-builder
# Qt build output
*.user
# doxygen Doxyfile output
doc/
QElectroTech.tag

121
CONTRIBUTING.md Normal file
View File

@@ -0,0 +1,121 @@
# How to contribute
I'm really glad you're reading this,
because we need volunteer developers to help
this project come to fruition.
Here are some important resources:
* [Qet code style](https://qelectrotech.org/wiki_new/doc/qt_creator#on_ajoute_le_style_de_code_qet)
* [git Documentation](https://git-scm.com/doc)
## Testing
## Submitting changes
Always write a clear log message for your commits.
One-line messages are fine for small changes,
but bigger changes should look like this:
$ git commit -m "A brief summary of the commit
>
> A paragraph describing what changed and its impact."
* It is always appropriate to keep the commits small.
* For major changes it is recommended to use branches.
### Interactive Staging
https://git-scm.com/book/en/v2/Git-Tools-Interactive-Staging
issue: you have modified a class but you want to write it in 2 commits
´git add -p´ or ´git add -i´
/qet> git add -i
staged unstaged path
1: unchanged +1/-1 sources/diagram.cpp
*** Commands ***
1: status 2: update 3: revert 4: add untracked
5: patch 6: diff 7: quit 8: help
What now> 5
staged unstaged path
1: unchanged +1/-1 sources/diagram.cpp
Patch update>> 1
staged unstaged path
* 1: unchanged +1/-1 sources/diagram.cpp
Patch update>>
diff --git a/sources/diagram.cpp b/sources/diagram.cpp
index bffca653f..9bd2280f7 100644
--- a/sources/diagram.cpp
+++ b/sources/diagram.cpp
@@ -103,9 +103,9 @@ Diagram::Diagram(QETProject *project) :
connect(&border_and_titleblock,
&BorderTitleBlock::titleBlockFolioChanged,
this, &Diagram::updateLabels);
- connect(this, &Diagram::diagramActivated,
+ foo(do_a);
- adjust(diagramActivated);
+ bar(do_c);
adjustSceneRect();
}
(1/1) Stage this hunk [y,n,q,a,d,s,e,?]? s
Split into 2 hunks.
@@ -103,5 +103,5 @@
connect(&border_and_titleblock,
&BorderTitleBlock::titleBlockFolioChanged,
this, &Diagram::updateLabels);
- connect(this, &Diagram::diagramActivated,
+ foo(do_a);
(1/2) Stage this hunk [y,n,q,a,d,j,J,g,/,e,?]? y
@@ -107,5 +107,5 @@
this, &Diagram::loadElmtFolioSeq);
- adjust(diagramActivated);
+ bar(do_c);
adjustSceneRect();
}
(2/2) Stage this hunk [y,n,q,a,d,K,g,/,e,?]? n
*** Commands ***
1: status 2: update 3: revert 4: add untracked
5: patch 6: diff 7: quit 8: help
What now>What now>7
Bye.
git commit -m "Mod Signal Slot to funsion"
## Coding conventions
Start reading our code and you'll get the hang of it.
We optimize for readability:
* We use tabs to indent, and interpret tabs as taking up to 8 spaces.
see https://qelectrotech.org/wiki_new/doc/qt_creator#on_ajoute_le_style_de_code_qet
* We try to keep to at most 80 characters per line.
* Try to make your code understandable.
You may put comments in, but comments invariably tend to stale out when
the code they were describing changes.
Often splitting a function into two
makes the intention of the code much clearer.
Thanks,
QElectroTech

179
ChangeLog
View File

@@ -1,3 +1,137 @@
====== ChangeLog from 0.7 to 0.8 ======
* Moving the main QET repository SVN trunk to GIT.
* Add a mirror of the main QET repository, which is synced to hosted at tuxfamily.org to Github.
* Doxyfile update add QCH file for doxygen-generated docs using qhelpgenerator and then import them into Qt Creator.
* Improve portability of Doxyfile (Simon).
* Fix deprecated warnings (Simon).
* Wrap code for better readability (Simon, Damian).
* Elements collection :
Improve collection 7378 elements in 1092 categories
Thanks Sebastien, Dinozzo, Simon, Rafał, Arnaud, Bisku, Fernando, Riesermauf, Alexis, david, Plc-user, Christophe, Michele, Galexis, Jevgenijs, Gabor,
Benoit Michel, Franck, Ludovic, Cyrille, ossau2mation, Mitzot, Edgar, Nuri, Friskolon, Baboune41, Wiktor, shateks, Dik, Shateks, Marcin
* Diagram editor :
* The export of the nomenclature to csv file has been completely rewritten :
It is now possible to choose which information to export as well as the order in which it should be displayed.
An option allows filtering by type of element: all, terminal block, button / switch.
Another option allows to display or not the column headers in the csv file.
With these options, it is possible to create a nomenclature, an order list, but also for printing labels: list of terminals and list of buttons / switches.
It is possible to save / load a configuration easily.
Finally, the work being done by an SQLite database, a text field allows the user to create his own SQL query.
* Add Conductors numbering to csv file.
* Add new summary table.
* add BOM creation dialog :
nomenclature is now integrated into the project (accompanied by several parameters in order to be customizable).
Tables can have a name.
Tables an be added to any folio.
Font margin and alignment (right center left) separately adjustable for headers and table cells.
Position size and number of lines is adjustable.
Possibility of linking several tables together, especially when the entire nomenclature cannot be contained in a folio.
Automatic adjustment of the size of the table in relation to the folio.
Option to apply the geometry of an array to all the array linked to it, so that everything is homogeneous.
Save / load table configuration and content to make creation faster.
Option to automatically adjust the table to the folio.
Option to automatically add new tables in new folios if the nomenclature cannot be contained in 1 to N folios / tables.
* Table content:
Fully customizable, you display what you want or want (info to display in the desired order, filter on type of element, filter on content of the info "contains, not contains, not empty etc ..." ).
The content being generated from a sqlite database, you can write your own request.
* Loading of element collections is now faster (thanks to the pugixml parser)
* The loading of collections of elements no longer freezes QElectroTech.
* The appearance and disappearance of the search / replace menu is animated.
* Fix wrong position of slave xref after open a saved project
* Add font color of the conductors (Simon).
* Add section and color properties for wires.
* config dialog :
* Add QScrollArea to configdialog and resize to max_screen (Simon).
* Add gui resize depending on screen size (Simon).
* Add Screen info user (Simon).
* Mod ScrollArea on demand (Simon).
* Element editor:
* Polygon editing widget, when you click on a point in the list, the corresponding point changes color in order to better visualize what you are doing.
On this same list, a right click opens a contextual menu allowing to delete the selected point or inserted a point after the selected one.
When holding the ctrl + directional arrow key, the selected parts move by 0.1 instead of 1 point.
* with Ctrl key you can moving by keyboard primitives selected by 0.1 point instead by 1 points, added the same feature for moving the selected aera.
* Added 140 web standard colors In Element editor (Arnaud).
* Add multiedit feature (martin).
* Add terminals uuid for next features (martin).
* Windows :
* Fix bad fonts rendering if Qt version >= 5.13.1.
See : https://bugreports.qt.io/browse/QTBUG-83161
* Fix backup file on windows
For unknown reason KautoSaveFile don't write the file on Windows if file
is open in another part of the code.
No error is returned and use the method :
qint64 QIODevice::write(const QByteArray &byteArray) return the good
number of bytes written but the real file stay empty.
Probably the problem don't come from KautoSaveFile but QFileDevice or
QIODevice on windows.
The fix consist to open the file just before write on it and close it
just after.
* writeToFile on a other Thread to improve this for windows performance (Simon).
* macOS :
* Add Fusion style and fix tilesets tab bar size
* Enable mouse wheel on tilesets tab bar with command keyboard, thanks Giovanni.
(removed by Qt upstream) https://codereview.qt-project.org/gitweb?p=qt/qtbase.git;a=commitdiff;h=ea47d152b35158ba07a55d009f57df0e4c2a048f;hp=08cc9b9991ae9ab51bed5b857b6257401401ff6f
* Add Snap packages :
* thanks Max for help.
https://snapcraft.io/qelectrotech
See: https://qelectrotech.org/forum/viewtopic.php?id=1426
* Use kde-neon extension
The kde-neon extension reduces our boilerplate in snapcraft.yaml
and reduces the snap size considerably, as we do not need to ship
any library that is already included in the kde-frameworks-5-core18
snap itself.
This limits qelectrotech builds to the architectures supported
by kde-frameworks-5-core18, i.e. only amd64.
https://git.tuxfamily.org/qet/qet.git/log/?qt=grep&q=snap
* Add Flatpak packages :
* thanks Mathieu for help.
See: https://github.com/qelectrotech/qelectrotech-source-mirror/pull/18
* remove the file name extension added
automatically to the saved files even if the user sets an unknown file
extension for the program.
https://git.tuxfamily.org/qet/qet.git/log/?qt=grep&q=flatpak
====== ChangeLog from 0.6 to 0.7 ======
@@ -10,6 +144,7 @@
* Alignment of text field can be edited.
* Added two new actions in context menu for insert or remove point of a selected polygon.
* Rectangle can have rounded corner.
* Polyline: finish the creation of polyline with the last point at the same position of the first point, close the polyline.
* Diagram editor :
@@ -47,13 +182,36 @@ This commit fix it : When element is removed one or several conductors are creat
* Added 4 tools for edit the depth (Z value) of items.
* Element panel : elements can be searched by their name but also with by all their informations.
* New free selection style.
* Diagram editor : dock used to edit the shape item, can now edit several items in the same time.
* Dynamic element text item : The font of the dynamic texts can be individually be setted.
* Adding or revoming diagram set project to modified
* When user cleanning an project, set project to modified
* Add a shortcut "Ctrl+Shift+P" to quickly open the dialog used for create the auto numbering rules.
* Add missing StatusTip of some QAction
* When user add a polygon, a message in statusBar show how to finish this shape
* Polyline: finish the creation of polyline with the last point at the same position of the first point, close the polyline.
* Plug-in : Add StatusTip instruction for install and launching DXF plugin depending on the operating system
* when plugin qet-tb-generator"generate terminal blocks and connectors" isn't installed show an QMessageBox instruction now depending on the operating system for install it
Add in QMessageBox url encoding/decoding for easy download packages
* Elementspanelwidget: adds keyboard shortcuts to quickly move up, down,or move the targeted folio to the beginning of the project
F3 MoveUp
F4 MoveDown
F5 MoveUpTop
* Title block editor :
Added new title block variables %projectpath, %projectfilename, %projecttitle, previous-folio-num and next-folio-num
"%saveddate, %savedtime, %savedfilename and %savedfilepath" they variables should be updated after file save or save as dialog is confirmed,
before file is saved.
* NameList widget : add a combo box for easily paste texts, like the variables for title block.
* The font of the dynamic text field can be edited.
* The font of the static text field can be edited.
* The color of the static text field can be edited.
@@ -64,6 +222,8 @@ If not a file dialog is showed to select the QET project.
* QET create a backup file, use to restore the project when a crash occur.
* Use KAutoSaveFile for the backup system, instead of home made function.
* Use of QSAveFile instead a QFile.
* User can enable and edit autosave timer.
* let user define the file system path of the common,custom elements collections, and custom title blocks template.
@@ -71,6 +231,7 @@ If not a file dialog is showed to select the QET project.
* QetGraphicsItem, remove the function applyRotation and rotateBy, and use instead the native function of QGraphicsItem : setRotation
* Conductor is an herited class of QGraphicsObject, instead of QObject and QGraphicsPathItem
* Clean (and reduce the size) the class QETDiagramEditor, mostly by replacing the connection syntax "signal -> slot" by "signal -> lambda".
* Replace deprecated QMatrix by QTransform.
* DXF export : fix some double items in dxf file.
@@ -93,8 +254,19 @@ clear the element texts when paste an element with the option "Do not store the
* Fix : in some condition, dynamic text are not at the same position when open a project.
* On windows when user drag and drop an element from the common elements collection to the custom elements collection,
the element file stay in read only mode, and so user can't save the element
* Improvement : minimize the unwanted gap of the top right folio of the view (see https://qelectrotech.org/forum/viewtopic.php?pid=9379#p9379)
* Fix: bug 168
* Fix : when create multiple conductors with the free hand selection, the checking of existing potentiel don't search trought a folio report.
* Fix: DXF export.
* Minor fix : remove from the element information the html hexadecimal and decimal characters of line feed and carriage return.
* fix : in the diagram editor, when we select several shapes at the same time, the properties widget only apply the change to one shape.
* Bug fix : when user load a project which contains summary pages, project was marked modified (summary was created on the fly and moved from the end on second
position), now the project is no longer marked as amended when user have one or multiples summary pages when loading this project.
* Static text of element are now exported to dxf
* Fix Static text size of element exported to dxf
* Improvement : minimize the unwanted gap of the top right folio of the view
* Fix : when create multiple conductors with the free hand selection, the checking of existing potentiel don't search trought a folio report.
* Don't display gui when qet is launched with specific argument
@@ -371,4 +543,5 @@ Le dialogue "Exporter" (pour générer un fichier image d'un schéma) a égaleme
* Affinage du constructeur de la classe QETApp
* Moins d'avertissements à la compilation (testé avec gcc 4.3)
* Moins d'inclusions non pertinentes
* Nettoyage du trunk : déplacement des sources dans un sous-répertoire

2860
Doxyfile

File diff suppressed because it is too large Load Diff

View File

@@ -175,3 +175,15 @@ Dette værk er licenseret under Creative Commons Attribution 3.0 License.
For at se en kopi af denne licens, besøg
http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative
Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
[ja]
QElectroTech と一緒に提供される要素コレクションは現状のまま提供され、
あなたの目的や作業に適合することを保証するものではありません。
回路図での要素の利用、変更、統合は、回路図の最終的なライセンスに関わらず
無条件で許可されます。
回路図とは別に QElectroTech コレクションの全部または一部を
変更の有無に関わらず再配布する場合は CC-BY ライセンスを尊重しなければなりません:
この作品は Creative Commons Attribution 3.0 の下でライセンスされます。
ライセンスのコピーを見るには http://creativecommons.org/licenses/by/3.0/ にアクセスするか、
「Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.」に
手紙を送ってください。

11
INSTALL
View File

@@ -140,3 +140,14 @@ $ qmake (qmake-qt5 for Debian baserede systemer)
$ make
# umask 0022
# make install
[ja]
必要条件 :
libQt5 (パッケージ libqt5* を参照)
cupsys-bsd 印刷用
コンパイルの方法 :
$ qmake (Debian ベースのシステムでは qmake-qt5)
$ make
# umask 0022
# make install

4
README
View File

@@ -50,3 +50,7 @@ QET gebruikt XML voor de elementen en schema's en omvat een schematische editor,
[da]
QElectroTech er et Qt5 program til at redigere elektriske diagrammer.
Det bruger XML filer for symboler og diagrammer og inkluderer diagram, symbol og titelblok redigering.
[ja]
QElectroTech は電気回路図を作成する Qt5 アプリケーションです。
QET は要素と回路図に XML 形式を利用し、回路図エディタ、要素エディタ、表題欄エディタを含みます。

178
README.md Normal file
View File

@@ -0,0 +1,178 @@
![](logo.png)
# QElectroTech
### What it is
QElectroTech, or QET in short, is a libre and open source desktop application to create diagrams and schematics.
The software is primarily intended to create electrical documentation but it can also be used to draw any kinds of diagrams, such as those made in pneumatics, hydraulics, process industries, electronics...
Generally speaking, QET is a **CAD/CAE editor focusing on schematics drawing features**.
This means that there are no embedded simulating or calculating functionalities and it is not planned to implement them.
The main goal of the developers is to provide a libre, easy to use and effective software for **schematics drawing purposes**.
### Version
The current stable version is 0.70 and was released on 2019.07.13.
Once it has been officialy released, the stable version is always frozen and is no longer developed.
New functionalities, bug and issue fixings are further made in the development version (currently 0.8), which can also be [downloaded](https://qelectrotech.org/download.html).
Users who want to test and take benefits from the last software implementations should use the development version. But... use it at your own risk, since things are sometimes broken or only partialy implemented until they are done!
### License
The software is licensed under [GNU/GPL](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html).
You are free to use, copy, modify and redistribute it under the terms of the license.
Like many other open source softwares, QElectroTech is provided as it is, without any warranty.
### Development / technical choices
The development follows the classical way of free and open source software: the source code, written by a community of users, is freely accessible.
Here are the technical choices made for the software development:
* Integrated development environment: [Qt Framework](https://www.qt.io/ide/)
* Libraries: Qt 5.x
* [KF5 Framework](https://github.com/KDE)
[Cmake](https://cmake.org/install/)
[kcoreaddons](https://github.com/KDE/kcoreaddons)
[kwidgetsaddons](https://github.com/KDE/kwidgetsaddons).
* Coding language: [C++](https://en.wikipedia.org/wiki/C%2B%2B)
* GUI translations: [Qt Linguist](http://doc.qt.io/qt-5/qtlinguist-index.html)
* Version control: [GIT](https://git.tuxfamily.org/qet/qet.git/)
* File format for projects, elements and titleblocks: [XML](http://www.w3schools.com/xml/xml_whatis.asp)
* Main development platform: [GNU/Linux](http://getgnulinux.org/en/linux/)
* Targeted platforms: Windows, GNU/Linux, Mac OS X, BSDs
* [Forum](https://qelectrotech.org/forum/index.php)
* [Wiki](https://qelectrotech.org/wiki_new/)
* [Mantis_bugtracker](https://qelectrotech.org/bugtracker/my_view_page.php)
If you wish to be informed of the latest developments, browse the [archive](https://listengine.tuxfamily.org/lists.tuxfamily.org/qet/) of the project mailing list where all commits (changes) are registered. This archive is publicly available, you don't need any account to access it.
# Features
QElectroTech is a free and open source software.
No need to worry about restrictive licensing, privacy violation or dependency on a company.
Zero cost and no licensing fees!
But you are welcome to make a donation to support the development
QElectroTech runs on the 3 most widespread operating systems for desktop computers in the world.
Files that were created on an OS can be edited on another OS without any conversion or restriction.
MS Windows users can even run the "ready-to-use" version of QElectroTech from an external medium with no need to install it on an access restricted computer.
Take advantage of the modern GUI
Toolbars and panels can be enabled/disabled, moved and displayed the way you want to work.
Panels can be stacked on each other (as tabs) or docked on the sides (as docks) or completely separated from the main window (as windows).
The GUI can fit to small or big screens, and even to multi-display configurations.
![](https://download.tuxfamily.org/qet/images-features/0030.png "GUI overview")
The GUI of QElectroTech is translated in 19 languages.
You only need to restart the application for the new selected language to take effect.
![](https://download.tuxfamily.org/qet/images-features/0040.png "Lang menu")
Create technical documentation in professional quality
Size, look and informations of the folios (sheets) are fully configurable.
You can set vertical and horizontal headers (printed rulers) individually on and off, set number of columns and rows, and set width/height of each column/row.
Titlebocks can be created and edited with the embedded titleblock editor to perfectly suit your needs.
Custom variables can be defined to display the informations you wish in the titleblock.
![](https://download.tuxfamily.org/qet/images-features/0055.png "Titleblock editor")
With only 2 mouse clicks you can add a full automatic generated table of content.
Changes in the documentation are updated on the fly.
![](https://download.tuxfamily.org/qet/images-features/0060.png "Table of content")
Choose from more than 7.000 symbols...
The embedded QET collection contains a rich library of electric, logic, pneumatic, hydraulic and fluid symbols.
The library grows at every new release thanks to an active user community.
![](https://download.tuxfamily.org/qet/images-features/0070.png "Collections")
...or create your own collection
The embedded element editor is a nice tool to create your own elements (symbols or anything else).
Your own elements are stored in the user collection.
![](https://download.tuxfamily.org/qet/images-features/0080.png "Element editor")
Quickly find what you need
All collections can quickly be searched with the integrated search engine.
Furthermore, the search request can be restricted to the folder of your choice.
![](https://download.tuxfamily.org/qet/images-features/0090.png "Search engine")
Easily draw complex schematics
To add an element on the drawing area, it only needs a drag & drop from the collection panel.
![](https://download.tuxfamily.org/qet/images-features/0102.png "Drag and drop")
Elements are automatically connected if they are aligned, or connected from point to point by pulling a conductor with the mouse.
![](https://download.tuxfamily.org/qet/images-features/0105.png "Conductor connections")
The path of every conductor can be modified by moving its handles with the mouse.
![](https://download.tuxfamily.org/qet/images-features/0107.png "Conductor handles")
And of course, you can accurately zoom with the mouse wheel over the drawing area to catch the smallest details.
Link elements together to create cross references
Several types of element can be linked together to display a cross reference text.
All types of cross references are automatically updated on the fly, you don't need to think about them if you make changes.
![](https://download.tuxfamily.org/qet/images-features/0112.png "Cross ref elements")
To speed up your work, linkable elements are easily searched and shown.
![](https://download.tuxfamily.org/qet/images-features/0115.png "Cross ref search")
Export informations to a parts list
Informations of all elements in the project can be exported to a .csv file that can be read and edited by any spreadsheet application.
![](https://download.tuxfamily.org/qet/images-features/0122.png "Element informations")
This way, you can make your own parts list or bill of material using the full power of a spreadsheet program.
![](https://download.tuxfamily.org/qet/images-features/0125.png "Spreadsheet")
Print to pdf and/or export your work to images
Your whole documentation or only selected parts of it can be printed to a real printer or to a pdf file.
Alternatively, you can export to vector (svg) or pixel (png, jpg, bmp) format images.
### And much more:
* open and edit several projects at the same time
* import images (.bmp, .jpg, .png, .svg) in your diagrams
* add basic shapes (lines, rectangles, ellipses, polygons) to your drawings
* edit the thickness, the line style and the color of conductors
* define some autonum patterns for conductors, symbols and folios
* take advantage of the open xml standard of elements and projects to create custom tools
* search and replace Widget (Ctrl + F) in entire project
* conductors num can be exported to csv file.
* ***
### Story
The QElectroTech project was founded in 2007 by two french students, Xavier and Benoit.
Xavier developed the base application itself and made all technical choices about the development.
The first version of QET (0.1) was released on 09.03.2008.
However, both Xavier and Benoit do not participate anymore in the project since 2013.
Following this period, new developers and contributors took over the project and kept it alive.
The development and the many translations are actively maintained.
New functionalities and evolutions are planned to make QET ever better.
Nowadays, QET is not only used by many individuals, teachers and students but also by professional electricians and companies all over the world.
### Donate Money
If you love QElectroTech, you can help developers to buy new hardware to test
and implement new features. Thanks in advance for your generous donations.
For more information, look at [Paypal](https://www.paypal.com/donate/?token=rqf80cP0Ck1F2jn4Y46G7tIPv9bq7x0crXkwt3GZ6OZYG6ihJYi8lZxmmQ8itsFwMUdd1G&country.x=GB&locale.x=GB)
or at [leetchi.com](https://www.leetchi.com/c/qelectroteck)

View File

@@ -1,6 +1,54 @@
Changelog
=========
__3.0.18__
----------
* Fallback to standard QApplication class on iOS and Android systems where
the library is not supported.
* Added Build CI tests to verify the library builds successfully on Linux, Windows and MacOS across multiple Qt versions.
_Anton Filimonov_
__3.0.17__
----------
* Fixed compilation warning/error caused by `geteuid()` on unix based systems.
_Iakov Kirilenko_
* Added CMake support
_Hennadii Chernyshchyk_
__3.0.16__
----------
* Use geteuid and getpwuid to get username on Unix, fallback to environment variable.
_Jonas Kvinge_
__3.0.15__
----------
* Bug Fix: sendMessage() might return false even though data was actually written.
_Jonas Kvinge_
__3.0.14__
----------
* Fixed uninitialised variables in the `SingleApplicationPrivate` constructor.
__3.0.13a__
----------
* Process socket events asynchronously
* Fix undefined variable error on Windows
_Francis Giraldeau_
__3.0.12a__
----------
@@ -113,7 +161,7 @@ __3.0.1a__
__v3.0a__
---------
* Depricated secondary instances count.
* Deprecated secondary instances count.
* Added a sendMessage() method to send a message to the primary instance.
* Added a receivedMessage() signal, emitted when a message is received from a
secondary instance.

View File

@@ -0,0 +1,43 @@
cmake_minimum_required(VERSION 3.1.0)
project(SingleApplication)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
# SingleApplication base class
set(QAPPLICATION_CLASS QCoreApplication CACHE STRING "Inheritance class for SingleApplication")
set_property(CACHE QAPPLICATION_CLASS PROPERTY STRINGS QApplication QGuiApplication QCoreApplication)
# Libary target
add_library(${PROJECT_NAME} STATIC
singleapplication.cpp
singleapplication_p.cpp
)
# Find dependencies
find_package(Qt5Network)
if(QAPPLICATION_CLASS STREQUAL QApplication)
find_package(Qt5 COMPONENTS Widgets REQUIRED)
elseif(QAPPLICATION_CLASS STREQUAL QGuiApplication)
find_package(Qt5 COMPONENTS Gui REQUIRED)
else()
find_package(Qt5 COMPONENTS Core REQUIRED)
endif()
add_compile_definitions(QAPPLICATION_CLASS=${QAPPLICATION_CLASS})
# Link dependencies
target_link_libraries(${PROJECT_NAME} PRIVATE Qt5::Network)
if(QAPPLICATION_CLASS STREQUAL QApplication)
target_link_libraries(${PROJECT_NAME} PRIVATE Qt5::Widgets)
elseif(QAPPLICATION_CLASS STREQUAL QGuiApplication)
target_link_libraries(${PROJECT_NAME} PRIVATE Qt5::Gui)
else()
target_link_libraries(${PROJECT_NAME} PRIVATE Qt5::Core)
endif()
if(WIN32)
target_link_libraries(${PROJECT_NAME} PRIVATE advapi32)
endif()
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

View File

@@ -50,15 +50,27 @@ how:
git submodule add git@github.com:itay-grudev/SingleApplication.git singleapplication
```
Then include the `singleapplication.pri` file in your `.pro` project file. Also
don't forget to specify which `QCoreApplication` class your app is using if it
is not `QCoreApplication`.
**Qmake:**
Then include the `singleapplication.pri` file in your `.pro` project file.
```qmake
include(singleapplication/singleapplication.pri)
DEFINES += QAPPLICATION_CLASS=QApplication
```
**CMake:**
Then include the subdirectory in your `CMakeLists.txt` project file.
```cmake
set(QAPPLICATION_CLASS QApplication CACHE STRING "Inheritance class for SingleApplication")
add_subdirectory(src/third-party/singleapplication)
```
Also don't forget to specify which `QCoreApplication` class your app is using if it
is not `QCoreApplication` as in examples above.
The `Instance Started` signal
------------------------

View File

@@ -24,7 +24,7 @@ Here is an example:
```cpp
if( app.isSecondary() ) {
// This API requires LIBS += User32.lib to be added to the project
AllowSetForegroundWindow( DWORD( app.getPrimaryPid() ) );
AllowSetForegroundWindow( DWORD( app.primaryPid() ) );
}
if( app.isPrimary() ) {

0
SingleApplication/examples/basic/basic.pro Executable file → Normal file
View File

0
SingleApplication/examples/basic/main.cpp Executable file → Normal file
View File

0
SingleApplication/examples/sending_arguments/main.cpp Executable file → Normal file
View File

View File

View File

@@ -25,150 +25,171 @@
#include <QtCore/QDateTime>
#include <QtCore/QByteArray>
#include <QtCore/QSharedMemory>
#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0) // ### Qt 6: remove
#else
#if TODO_LIST
#pragma message("@TODO remove code for QT 5.10 or later")
#endif
#include <QRandomGenerator>
#endif
#include "singleapplication.h"
#include "singleapplication_p.h"
/**
* @brief Constructor. Checks and fires up LocalServer or closes the program
* if another instance already exists
* @param argc
* @param argv
* @param {bool} allowSecondaryInstances
*/
@brief Constructor. Checks and fires up LocalServer or closes the program
if another instance already exists
@param argc
@param argv
@param {bool} allowSecondaryInstances
*/
SingleApplication::SingleApplication( int &argc, char *argv[], bool allowSecondary, Options options, int timeout )
: app_t( argc, argv ), d_ptr( new SingleApplicationPrivate( this ) )
: app_t( argc, argv ), d_ptr( new SingleApplicationPrivate( this ) )
{
Q_D(SingleApplication);
Q_D(SingleApplication);
// Store the current mode of the program
d->options = options;
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
// On Android and iOS since the library is not supported fallback to
// standard QApplication behaviour by simply returning at this point.
qWarning() << "SingleApplication is not supported on Android and iOS systems.";
return;
#endif
// Generating an application ID used for identifying the shared memory
// block and QLocalServer
d->genBlockServerName();
// Store the current mode of the program
d->options = options;
// Generating an application ID used for identifying the shared memory
// block and QLocalServer
d->genBlockServerName();
#ifdef Q_OS_UNIX
// By explicitly attaching it and then deleting it we make sure that the
// memory is deleted even after the process has crashed on Unix.
d->memory = new QSharedMemory( d->blockServerName );
d->memory->attach();
delete d->memory;
// By explicitly attaching it and then deleting it we make sure that the
// memory is deleted even after the process has crashed on Unix.
d->memory = new QSharedMemory( d->blockServerName );
d->memory->attach();
delete d->memory;
#endif
// Guarantee thread safe behaviour with a shared memory block.
d->memory = new QSharedMemory( d->blockServerName );
// Guarantee thread safe behaviour with a shared memory block.
d->memory = new QSharedMemory( d->blockServerName );
// Create a shared memory block
if( d->memory->create( sizeof( InstancesInfo ) ) ) {
// Initialize the shared memory block
d->memory->lock();
d->initializeMemoryBlock();
d->memory->unlock();
} else {
// Attempt to attach to the memory segment
if( ! d->memory->attach() ) {
qCritical() << "SingleApplication: Unable to attach to shared memory block.";
qCritical() << d->memory->errorString();
delete d;
::exit( EXIT_FAILURE );
}
}
// Create a shared memory block
if( d->memory->create( sizeof( InstancesInfo ) ) ) {
// Initialize the shared memory block
d->memory->lock();
d->initializeMemoryBlock();
d->memory->unlock();
} else {
// Attempt to attach to the memory segment
if( ! d->memory->attach() ) {
qCritical() << "SingleApplication: Unable to attach to shared memory block.";
qCritical() << d->memory->errorString();
delete d;
::exit( EXIT_FAILURE );
}
}
InstancesInfo* inst = static_cast<InstancesInfo*>( d->memory->data() );
QTime time;
time.start();
InstancesInfo* inst = static_cast<InstancesInfo*>( d->memory->data() );
QElapsedTimer time;
time.start();
// Make sure the shared memory block is initialised and in consistent state
while( true ) {
d->memory->lock();
// Make sure the shared memory block is initialised and in consistent state
while( true ) {
d->memory->lock();
if( d->blockChecksum() == inst->checksum ) break;
if( d->blockChecksum() == inst->checksum ) break;
if( time.elapsed() > 5000 ) {
qWarning() << "SingleApplication: Shared memory block has been in an inconsistent state from more than 5s. Assuming primary instance failure.";
d->initializeMemoryBlock();
}
if( time.elapsed() > 5000 ) {
qWarning() << "SingleApplication: Shared memory block has been in an inconsistent state from more than 5s. Assuming primary instance failure.";
d->initializeMemoryBlock();
}
d->memory->unlock();
d->memory->unlock();
// Random sleep here limits the probability of a collision between two racing apps
qsrand( QDateTime::currentMSecsSinceEpoch() % std::numeric_limits<uint>::max() );
QThread::sleep( 8 + static_cast <unsigned long>( static_cast <float>( qrand() ) / RAND_MAX * 10 ) );
}
// Random sleep here limits the probability of a collision between two racing apps
#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0) // ### Qt 6: remove
qsrand( QDateTime::currentMSecsSinceEpoch() % std::numeric_limits<uint>::max() );
QThread::sleep( 8 + static_cast <unsigned long>( static_cast <float>( qrand() ) / RAND_MAX * 10 ) );
#else
#if TODO_LIST
#pragma message("@TODO remove code for QT 5.10 or later")
#endif
quint32 value = QRandomGenerator::global()->generate();
QThread::sleep( 8 + static_cast <unsigned long>( static_cast <float>( value ) / RAND_MAX * 10 ) );
#endif
}
if( inst->primary == false) {
d->startPrimary();
d->memory->unlock();
return;
}
if( inst->primary == false) {
d->startPrimary();
d->memory->unlock();
return;
}
// Check if another instance can be started
if( allowSecondary ) {
inst->secondary += 1;
inst->checksum = d->blockChecksum();
d->instanceNumber = inst->secondary;
d->startSecondary();
if( d->options & Mode::SecondaryNotification ) {
d->connectToPrimary( timeout, SingleApplicationPrivate::SecondaryInstance );
}
d->memory->unlock();
return;
}
// Check if another instance can be started
if( allowSecondary ) {
inst->secondary += 1;
inst->checksum = d->blockChecksum();
d->instanceNumber = inst->secondary;
d->startSecondary();
if( d->options & Mode::SecondaryNotification ) {
d->connectToPrimary( timeout, SingleApplicationPrivate::SecondaryInstance );
}
d->memory->unlock();
return;
}
d->memory->unlock();
d->memory->unlock();
d->connectToPrimary( timeout, SingleApplicationPrivate::NewInstance );
d->connectToPrimary( timeout, SingleApplicationPrivate::NewInstance );
delete d;
delete d;
::exit( EXIT_SUCCESS );
::exit( EXIT_SUCCESS );
}
/**
* @brief Destructor
*/
@brief Destructor
*/
SingleApplication::~SingleApplication()
{
Q_D(SingleApplication);
delete d;
Q_D(SingleApplication);
delete d;
}
bool SingleApplication::isPrimary()
{
Q_D(SingleApplication);
return d->server != nullptr;
Q_D(SingleApplication);
return d->server != nullptr;
}
bool SingleApplication::isSecondary()
{
Q_D(SingleApplication);
return d->server == nullptr;
Q_D(SingleApplication);
return d->server == nullptr;
}
quint32 SingleApplication::instanceId()
{
Q_D(SingleApplication);
return d->instanceNumber;
Q_D(SingleApplication);
return d->instanceNumber;
}
qint64 SingleApplication::primaryPid()
{
Q_D(SingleApplication);
return d->primaryPid();
Q_D(SingleApplication);
return d->primaryPid();
}
bool SingleApplication::sendMessage( QByteArray message, int timeout )
{
Q_D(SingleApplication);
Q_D(SingleApplication);
// Nobody to connect to
if( isPrimary() ) return false;
// Nobody to connect to
if( isPrimary() ) return false;
// Make sure the socket is connected
d->connectToPrimary( timeout, SingleApplicationPrivate::Reconnect );
// Make sure the socket is connected
d->connectToPrimary( timeout, SingleApplicationPrivate::Reconnect );
d->socket->write( message );
bool dataWritten = d->socket->flush();
d->socket->waitForBytesWritten( timeout );
return dataWritten;
d->socket->write( message );
bool dataWritten = d->socket->waitForBytesWritten( timeout );
d->socket->flush();
return dataWritten;
}

View File

@@ -25,6 +25,7 @@
#include <QtCore/QtGlobal>
#include <QtNetwork/QLocalSocket>
#include <QElapsedTimer>
#ifndef QAPPLICATION_CLASS
#define QAPPLICATION_CLASS QCoreApplication
@@ -35,99 +36,99 @@
class SingleApplicationPrivate;
/**
* @brief The SingleApplication class handles multipe instances of the same
* Application
* @see QCoreApplication
*/
@brief The SingleApplication class handles multiple instances of the same
Application
@see QCoreApplication
*/
class SingleApplication : public QAPPLICATION_CLASS
{
Q_OBJECT
typedef QAPPLICATION_CLASS app_t;
public:
/**
* @brief Mode of operation of SingleApplication.
* Whether the block should be user-wide or system-wide and whether the
* primary instance should be notified when a secondary instance had been
* started.
* @note Operating system can restrict the shared memory blocks to the same
* user, in which case the User/System modes will have no effect and the
* block will be user wide.
* @enum
*/
enum Mode {
User = 1 << 0,
System = 1 << 1,
SecondaryNotification = 1 << 2,
ExcludeAppVersion = 1 << 3,
ExcludeAppPath = 1 << 4
};
Q_DECLARE_FLAGS(Options, Mode)
/**
* @brief Intitializes a SingleApplication instance with argc command line
* arguments in argv
* @arg {int &} argc - Number of arguments in argv
* @arg {const char *[]} argv - Supplied command line arguments
* @arg {bool} allowSecondary - Whether to start the instance as secondary
* if there is already a primary instance.
* @arg {Mode} mode - Whether for the SingleApplication block to be applied
* User wide or System wide.
* @arg {int} timeout - Timeout to wait in miliseconds.
* @note argc and argv may be changed as Qt removes arguments that it
* recognizes
* @note Mode::SecondaryNotification only works if set on both the primary
* instance and the secondary instance.
* @note The timeout is just a hint for the maximum time of blocking
* operations. It does not guarantee that the SingleApplication
* initialisation will be completed in given time, though is a good hint.
* Usually 4*timeout would be the worst case (fail) scenario.
* @see See the corresponding QAPPLICATION_CLASS constructor for reference
*/
explicit SingleApplication( int &argc, char *argv[], bool allowSecondary = false, Options options = Mode::User, int timeout = 1000 );
~SingleApplication();
/**
* @brief Returns if the instance is the primary instance
* @returns {bool}
*/
bool isPrimary();
/**
* @brief Returns if the instance is a secondary instance
* @returns {bool}
*/
bool isSecondary();
/**
* @brief Returns a unique identifier for the current instance
* @returns {qint32}
*/
quint32 instanceId();
/**
* @brief Returns the process ID (PID) of the primary instance
* @returns {qint64}
*/
qint64 primaryPid();
/**
* @brief Sends a message to the primary instance. Returns true on success.
* @param {int} timeout - Timeout for connecting
* @returns {bool}
* @note sendMessage() will return false if invoked from the primary
* instance.
*/
bool sendMessage( QByteArray message, int timeout = 100 );
Q_SIGNALS:
void instanceStarted();
void receivedMessage( quint32 instanceId, QByteArray message );
private:
SingleApplicationPrivate *d_ptr;
Q_DECLARE_PRIVATE(SingleApplication)
Q_OBJECT
typedef QAPPLICATION_CLASS app_t;
public:
/**
@brief Mode of operation of SingleApplication.
Whether the block should be user-wide or system-wide and whether the
primary instance should be notified when a secondary instance had been
started.
@note Operating system can restrict the shared memory blocks to the same
user, in which case the User/System modes will have no effect and the
block will be user wide.
@enum
*/
enum Mode {
User = 1 << 0,
System = 1 << 1,
SecondaryNotification = 1 << 2,
ExcludeAppVersion = 1 << 3,
ExcludeAppPath = 1 << 4
};
Q_DECLARE_FLAGS(Options, Mode)
/**
@brief Intitializes a SingleApplication instance with argc command line
arguments in argv
@arg {int &} argc - Number of arguments in argv
@arg {const char *[]} argv - Supplied command line arguments
@arg {bool} allowSecondary - Whether to start the instance as secondary
if there is already a primary instance.
@arg {Mode} mode - Whether for the SingleApplication block to be applied
User wide or System wide.
@arg {int} timeout - Timeout to wait in milliseconds.
@note argc and argv may be changed as Qt removes arguments that it
recognizes
@note Mode::SecondaryNotification only works if set on both the primary
instance and the secondary instance.
@note The timeout is just a hint for the maximum time of blocking
operations. It does not guarantee that the SingleApplication
initialisation will be completed in given time, though is a good hint.
Usually 4*timeout would be the worst case (fail) scenario.
@see See the corresponding QAPPLICATION_CLASS constructor for reference
*/
explicit SingleApplication( int &argc, char *argv[], bool allowSecondary = false, Options options = Mode::User, int timeout = 1000 );
~SingleApplication();
/**
@brief Returns if the instance is the primary instance
@returns {bool}
*/
bool isPrimary();
/**
@brief Returns if the instance is a secondary instance
@returns {bool}
*/
bool isSecondary();
/**
@brief Returns a unique identifier for the current instance
@returns {qint32}
*/
quint32 instanceId();
/**
@brief Returns the process ID (PID) of the primary instance
@returns {qint64}
*/
qint64 primaryPid();
/**
@brief Sends a message to the primary instance. Returns true on success.
@param {int} timeout - Timeout for connecting
@returns {bool}
@note sendMessage() will return false if invoked from the primary
instance.
*/
bool sendMessage( QByteArray message, int timeout = 100 );
Q_SIGNALS:
void instanceStarted();
void receivedMessage( quint32 instanceId, QByteArray message );
private:
SingleApplicationPrivate *d_ptr;
Q_DECLARE_PRIVATE(SingleApplication)
};
Q_DECLARE_OPERATORS_FOR_FLAGS(SingleApplication::Options)

View File

@@ -1,5 +1,5 @@
QT += core network
CONFIG += c++11
CONFIG += c++17
HEADERS += $$PWD/singleapplication.h \
$$PWD/singleapplication_p.h

View File

@@ -33,11 +33,8 @@
#include <cstddef>
#include <QtCore/QDir>
#include <QtCore/QProcess>
#include <QtCore/QByteArray>
#include <QtCore/QSemaphore>
#include <QtCore/QDataStream>
#include <QtCore/QStandardPaths>
#include <QtCore/QCryptographicHash>
#include <QtNetwork/QLocalServer>
#include <QtNetwork/QLocalSocket>
@@ -45,134 +42,140 @@
#include "singleapplication.h"
#include "singleapplication_p.h"
#ifdef Q_OS_UNIX
#include <unistd.h>
#include <sys/types.h>
#include <pwd.h>
#endif
#ifdef Q_OS_WIN
#include <windows.h>
#include <lmcons.h>
#include <windows.h>
#include <lmcons.h>
#endif
SingleApplicationPrivate::SingleApplicationPrivate( SingleApplication *q_ptr )
: q_ptr( q_ptr )
: q_ptr( q_ptr )
{
server = nullptr;
socket = nullptr;
server = nullptr;
socket = nullptr;
memory = nullptr;
instanceNumber = -1;
}
SingleApplicationPrivate::~SingleApplicationPrivate()
{
if( socket != nullptr ) {
socket->close();
delete socket;
}
if( socket != nullptr ) {
socket->close();
delete socket;
}
memory->lock();
InstancesInfo* inst = static_cast<InstancesInfo*>(memory->data());
if( server != nullptr ) {
server->close();
delete server;
inst->primary = false;
inst->primaryPid = -1;
inst->checksum = blockChecksum();
}
memory->unlock();
memory->lock();
InstancesInfo* inst = static_cast<InstancesInfo*>(memory->data());
if( server != nullptr ) {
server->close();
delete server;
inst->primary = false;
inst->primaryPid = -1;
inst->checksum = blockChecksum();
}
memory->unlock();
delete memory;
delete memory;
}
void SingleApplicationPrivate::genBlockServerName()
{
QCryptographicHash appData( QCryptographicHash::Sha256 );
appData.addData( "SingleApplication", 17 );
appData.addData( SingleApplication::app_t::applicationName().toUtf8() );
appData.addData( SingleApplication::app_t::organizationName().toUtf8() );
appData.addData( SingleApplication::app_t::organizationDomain().toUtf8() );
QCryptographicHash appData( QCryptographicHash::Sha256 );
appData.addData( "SingleApplication", 17 );
appData.addData( SingleApplication::app_t::applicationName().toUtf8() );
appData.addData( SingleApplication::app_t::organizationName().toUtf8() );
appData.addData( SingleApplication::app_t::organizationDomain().toUtf8() );
if( ! (options & SingleApplication::Mode::ExcludeAppVersion) ) {
appData.addData( SingleApplication::app_t::applicationVersion().toUtf8() );
}
if( ! (options & SingleApplication::Mode::ExcludeAppVersion) ) {
appData.addData( SingleApplication::app_t::applicationVersion().toUtf8() );
}
if( ! (options & SingleApplication::Mode::ExcludeAppPath) ) {
if( ! (options & SingleApplication::Mode::ExcludeAppPath) ) {
#ifdef Q_OS_WIN
appData.addData( SingleApplication::app_t::applicationFilePath().toLower().toUtf8() );
appData.addData( SingleApplication::app_t::applicationFilePath().toLower().toUtf8() );
#else
appData.addData( SingleApplication::app_t::applicationFilePath().toUtf8() );
appData.addData( SingleApplication::app_t::applicationFilePath().toUtf8() );
#endif
}
}
// User level block requires a user specific data in the hash
if( options & SingleApplication::Mode::User ) {
// User level block requires a user specific data in the hash
if( options & SingleApplication::Mode::User ) {
#ifdef Q_OS_WIN
wchar_t username [ UNLEN + 1 ];
// Specifies size of the buffer on input
DWORD usernameLength = UNLEN + 1;
if( GetUserNameW( username, &usernameLength ) ) {
appData.addData( QString::fromWCharArray(username).toUtf8() );
} else {
appData.addData( QStandardPaths::standardLocations( QStandardPaths::HomeLocation ).join("").toUtf8() );
}
wchar_t username [ UNLEN + 1 ];
// Specifies size of the buffer on input
DWORD usernameLength = UNLEN + 1;
if( GetUserNameW( username, &usernameLength ) ) {
appData.addData( QString::fromWCharArray(username).toUtf8() );
} else {
appData.addData( qgetenv("USERNAME") );
}
#endif
#ifdef Q_OS_UNIX
QProcess process;
process.start( "whoami" );
if( process.waitForFinished( 100 ) &&
process.exitCode() == QProcess::NormalExit) {
appData.addData( process.readLine() );
} else {
appData.addData(
QDir(
QStandardPaths::standardLocations( QStandardPaths::HomeLocation ).first()
).absolutePath().toUtf8()
);
}
QByteArray username;
uid_t uid = geteuid();
struct passwd *pw = getpwuid(uid);
if( pw ) {
username = pw->pw_name;
}
if( username.isEmpty() ) {
username = qgetenv("USER");
}
appData.addData(username);
#endif
}
}
// Replace the backslash in RFC 2045 Base64 [a-zA-Z0-9+/=] to comply with
// server naming requirements.
blockServerName = appData.result().toBase64().replace("/", "_");
// Replace the backslash in RFC 2045 Base64 [a-zA-Z0-9+/=] to comply with
// server naming requirements.
blockServerName = appData.result().toBase64().replace("/", "_");
}
void SingleApplicationPrivate::initializeMemoryBlock()
{
InstancesInfo* inst = static_cast<InstancesInfo*>( memory->data() );
inst->primary = false;
inst->secondary = 0;
inst->primaryPid = -1;
inst->checksum = blockChecksum();
InstancesInfo* inst = static_cast<InstancesInfo*>( memory->data() );
inst->primary = false;
inst->secondary = 0;
inst->primaryPid = -1;
inst->checksum = blockChecksum();
}
void SingleApplicationPrivate::startPrimary()
{
Q_Q(SingleApplication);
Q_Q(SingleApplication);
// Successful creation means that no main process exists
// So we start a QLocalServer to listen for connections
QLocalServer::removeServer( blockServerName );
server = new QLocalServer();
// Successful creation means that no main process exists
// So we start a QLocalServer to listen for connections
QLocalServer::removeServer( blockServerName );
server = new QLocalServer();
// Restrict access to the socket according to the
// SingleApplication::Mode::User flag on User level or no restrictions
if( options & SingleApplication::Mode::User ) {
server->setSocketOptions( QLocalServer::UserAccessOption );
} else {
server->setSocketOptions( QLocalServer::WorldAccessOption );
}
// Restrict access to the socket according to the
// SingleApplication::Mode::User flag on User level or no restrictions
if( options & SingleApplication::Mode::User ) {
server->setSocketOptions( QLocalServer::UserAccessOption );
} else {
server->setSocketOptions( QLocalServer::WorldAccessOption );
}
server->listen( blockServerName );
QObject::connect(
server,
&QLocalServer::newConnection,
this,
&SingleApplicationPrivate::slotConnectionEstablished
);
server->listen( blockServerName );
QObject::connect(
server,
&QLocalServer::newConnection,
this,
&SingleApplicationPrivate::slotConnectionEstablished
);
// Reset the number of connections
InstancesInfo* inst = static_cast <InstancesInfo*>( memory->data() );
// Reset the number of connections
InstancesInfo* inst = static_cast <InstancesInfo*>( memory->data() );
inst->primary = true;
inst->primaryPid = q->applicationPid();
inst->checksum = blockChecksum();
inst->primary = true;
inst->primaryPid = q->applicationPid();
inst->checksum = blockChecksum();
instanceNumber = 0;
instanceNumber = 0;
}
void SingleApplicationPrivate::startSecondary()
@@ -181,223 +184,261 @@ void SingleApplicationPrivate::startSecondary()
void SingleApplicationPrivate::connectToPrimary( int msecs, ConnectionType connectionType )
{
// Connect to the Local Server of the Primary Instance if not already
// connected.
if( socket == nullptr ) {
socket = new QLocalSocket();
}
// Connect to the Local Server of the Primary Instance if not already
// connected.
if( socket == nullptr ) {
socket = new QLocalSocket();
}
// If already connected - we are done;
if( socket->state() == QLocalSocket::ConnectedState )
return;
// If already connected - we are done;
if( socket->state() == QLocalSocket::ConnectedState )
return;
// If not connect
if( socket->state() == QLocalSocket::UnconnectedState ||
socket->state() == QLocalSocket::ClosingState ) {
socket->connectToServer( blockServerName );
}
// If not connect
if( socket->state() == QLocalSocket::UnconnectedState ||
socket->state() == QLocalSocket::ClosingState ) {
socket->connectToServer( blockServerName );
}
// Wait for being connected
if( socket->state() == QLocalSocket::ConnectingState ) {
socket->waitForConnected( msecs );
}
// Wait for being connected
if( socket->state() == QLocalSocket::ConnectingState ) {
socket->waitForConnected( msecs );
}
// Initialisation message according to the SingleApplication protocol
if( socket->state() == QLocalSocket::ConnectedState ) {
// Notify the parent that a new instance had been started;
QByteArray initMsg;
QDataStream writeStream(&initMsg, QIODevice::WriteOnly);
// Initialisation message according to the SingleApplication protocol
if( socket->state() == QLocalSocket::ConnectedState ) {
// Notify the parent that a new instance had been started;
QByteArray initMsg;
QDataStream writeStream(&initMsg, QIODevice::WriteOnly);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
writeStream.setVersion(QDataStream::Qt_5_6);
writeStream.setVersion(QDataStream::Qt_5_6);
#endif
writeStream << blockServerName.toLatin1();
writeStream << static_cast<quint8>(connectionType);
writeStream << instanceNumber;
quint16 checksum = qChecksum(initMsg.constData(), static_cast<quint32>(initMsg.length()));
writeStream << checksum;
writeStream << blockServerName.toLatin1();
writeStream << static_cast<quint8>(connectionType);
writeStream << instanceNumber;
// The header indicates the message length that follows
QByteArray header;
QDataStream headerStream(&header, QIODevice::WriteOnly);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // ### Qt 6: remove
quint16 checksum =
qChecksum(
initMsg.constData(),
static_cast<quint32>(initMsg.length()));
#else
#if TODO_LIST
#pragma message("@TODO remove code for QT 6 or later")
#endif
quint16 checksum =
qChecksum(
QByteArrayView(
initMsg.constData(),
static_cast<quint32>(initMsg.length())));
#endif
writeStream << checksum;
// The header indicates the message length that follows
QByteArray header;
QDataStream headerStream(&header, QIODevice::WriteOnly);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
headerStream.setVersion(QDataStream::Qt_5_6);
headerStream.setVersion(QDataStream::Qt_5_6);
#endif
headerStream << static_cast <quint64>( initMsg.length() );
headerStream << static_cast <quint64>( initMsg.length() );
socket->write( header );
socket->write( initMsg );
socket->flush();
socket->waitForBytesWritten( msecs );
}
socket->write( header );
socket->write( initMsg );
socket->flush();
socket->waitForBytesWritten( msecs );
}
}
quint16 SingleApplicationPrivate::blockChecksum()
{
return qChecksum(
static_cast <const char *>( memory->data() ),
offsetof( InstancesInfo, checksum )
);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // ### Qt 6: remove
return qChecksum(
static_cast <const char *>( memory->data() ),
offsetof( InstancesInfo, checksum )
);
#else
#if TODO_LIST
#pragma message("@TODO remove code for QT 6 or later")
#endif
return qChecksum(
QByteArrayView(
static_cast <const char *>( memory->data() ),
offsetof( InstancesInfo, checksum )));
#endif
}
qint64 SingleApplicationPrivate::primaryPid()
{
qint64 pid;
qint64 pid;
memory->lock();
InstancesInfo* inst = static_cast<InstancesInfo*>( memory->data() );
pid = inst->primaryPid;
memory->unlock();
memory->lock();
InstancesInfo* inst = static_cast<InstancesInfo*>( memory->data() );
pid = inst->primaryPid;
memory->unlock();
return pid;
return pid;
}
/**
* @brief Executed when a connection has been made to the LocalServer
*/
@brief Executed when a connection has been made to the LocalServer
*/
void SingleApplicationPrivate::slotConnectionEstablished()
{
QLocalSocket *nextConnSocket = server->nextPendingConnection();
connectionMap.insert(nextConnSocket, ConnectionInfo());
QLocalSocket *nextConnSocket = server->nextPendingConnection();
connectionMap.insert(nextConnSocket, ConnectionInfo());
QObject::connect(nextConnSocket, &QLocalSocket::aboutToClose,
[nextConnSocket, this]() {
auto &info = connectionMap[nextConnSocket];
Q_EMIT this->slotClientConnectionClosed( nextConnSocket, info.instanceId );
}
);
QObject::connect(nextConnSocket, &QLocalSocket::aboutToClose,
[nextConnSocket, this]() {
auto &info = connectionMap[nextConnSocket];
Q_EMIT this->slotClientConnectionClosed( nextConnSocket, info.instanceId );
}
);
QObject::connect(nextConnSocket, &QLocalSocket::disconnected,
[nextConnSocket, this](){
connectionMap.remove(nextConnSocket);
nextConnSocket->deleteLater();
}
);
QObject::connect(nextConnSocket, &QLocalSocket::disconnected,
[nextConnSocket, this](){
connectionMap.remove(nextConnSocket);
nextConnSocket->deleteLater();
}
);
QObject::connect(nextConnSocket, &QLocalSocket::readyRead,
[nextConnSocket, this]() {
auto &info = connectionMap[nextConnSocket];
switch(info.stage) {
case StageHeader:
readInitMessageHeader(nextConnSocket);
break;
case StageBody:
readInitMessageBody(nextConnSocket);
break;
case StageConnected:
Q_EMIT this->slotDataAvailable( nextConnSocket, info.instanceId );
break;
default:
break;
};
}
);
QObject::connect(nextConnSocket, &QLocalSocket::readyRead,
[nextConnSocket, this]() {
auto &info = connectionMap[nextConnSocket];
switch(info.stage) {
case StageHeader:
readInitMessageHeader(nextConnSocket);
break;
case StageBody:
readInitMessageBody(nextConnSocket);
break;
case StageConnected:
Q_EMIT this->slotDataAvailable( nextConnSocket, info.instanceId );
break;
default:
break;
};
}
);
}
void SingleApplicationPrivate::readInitMessageHeader( QLocalSocket *sock )
{
if (!connectionMap.contains( sock )) {
return;
}
if (!connectionMap.contains( sock )) {
return;
}
if( sock->bytesAvailable() < ( qint64 )sizeof( quint64 ) ) {
return;
}
if( sock->bytesAvailable() < ( qint64 )sizeof( quint64 ) ) {
return;
}
QDataStream headerStream( sock );
QDataStream headerStream( sock );
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
headerStream.setVersion( QDataStream::Qt_5_6 );
headerStream.setVersion( QDataStream::Qt_5_6 );
#endif
// Read the header to know the message length
quint64 msgLen = 0;
headerStream >> msgLen;
ConnectionInfo &info = connectionMap[sock];
info.stage = StageBody;
info.msgLen = msgLen;
// Read the header to know the message length
quint64 msgLen = 0;
headerStream >> msgLen;
ConnectionInfo &info = connectionMap[sock];
info.stage = StageBody;
info.msgLen = msgLen;
if ( sock->bytesAvailable() >= (qint64) msgLen ) {
readInitMessageBody( sock );
}
if ( sock->bytesAvailable() >= (qint64) msgLen ) {
readInitMessageBody( sock );
}
}
void SingleApplicationPrivate::readInitMessageBody( QLocalSocket *sock )
{
Q_Q(SingleApplication);
Q_Q(SingleApplication);
if (!connectionMap.contains( sock )) {
return;
}
if (!connectionMap.contains( sock )) {
return;
}
ConnectionInfo &info = connectionMap[sock];
if( sock->bytesAvailable() < ( qint64 )info.msgLen ) {
return;
}
ConnectionInfo &info = connectionMap[sock];
if( sock->bytesAvailable() < ( qint64 )info.msgLen ) {
return;
}
// Read the message body
QByteArray msgBytes = sock->read(info.msgLen);
QDataStream readStream(msgBytes);
// Read the message body
QByteArray msgBytes = sock->read(info.msgLen);
QDataStream readStream(msgBytes);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
readStream.setVersion( QDataStream::Qt_5_6 );
readStream.setVersion( QDataStream::Qt_5_6 );
#endif
// server name
QByteArray latin1Name;
readStream >> latin1Name;
// server name
QByteArray latin1Name;
readStream >> latin1Name;
// connection type
ConnectionType connectionType = InvalidConnection;
quint8 connTypeVal = InvalidConnection;
readStream >> connTypeVal;
connectionType = static_cast <ConnectionType>( connTypeVal );
// connection type
ConnectionType connectionType = InvalidConnection;
quint8 connTypeVal = InvalidConnection;
readStream >> connTypeVal;
connectionType = static_cast <ConnectionType>( connTypeVal );
// instance id
quint32 instanceId = 0;
readStream >> instanceId;
// instance id
quint32 instanceId = 0;
readStream >> instanceId;
// checksum
quint16 msgChecksum = 0;
readStream >> msgChecksum;
// checksum
quint16 msgChecksum = 0;
readStream >> msgChecksum;
const quint16 actualChecksum = qChecksum( msgBytes.constData(), static_cast<quint32>( msgBytes.length() - sizeof( quint16 ) ) );
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // ### Qt 6: remove
const quint16 actualChecksum =
qChecksum(
msgBytes.constData(),
static_cast<quint32>( msgBytes.length() - sizeof( quint16 ) ) );
#else
#if TODO_LIST
#pragma message("@TODO remove code for QT 6 or later")
#endif
const quint16 actualChecksum =
qChecksum(
QByteArrayView(
msgBytes.constData(),
static_cast<quint32>(msgBytes.length() - sizeof(quint16))));
#endif
bool isValid = readStream.status() == QDataStream::Ok &&
QLatin1String(latin1Name) == blockServerName &&
msgChecksum == actualChecksum;
bool isValid = readStream.status() == QDataStream::Ok &&
QLatin1String(latin1Name) == blockServerName &&
msgChecksum == actualChecksum;
if( !isValid ) {
sock->close();
return;
}
if( !isValid ) {
sock->close();
return;
}
info.instanceId = instanceId;
info.stage = StageConnected;
info.instanceId = instanceId;
info.stage = StageConnected;
if( connectionType == NewInstance ||
( connectionType == SecondaryInstance &&
options & SingleApplication::Mode::SecondaryNotification ) )
{
Q_EMIT q->instanceStarted();
}
if( connectionType == NewInstance ||
( connectionType == SecondaryInstance &&
options & SingleApplication::Mode::SecondaryNotification ) )
{
Q_EMIT q->instanceStarted();
}
if (sock->bytesAvailable() > 0) {
//This line crash
//Q_EMIT this->slotDataAvailable( sock, instanceId );
}
if (sock->bytesAvailable() > 0) {
Q_EMIT this->slotDataAvailable( sock, instanceId );
}
}
void SingleApplicationPrivate::slotDataAvailable( QLocalSocket *dataSocket, quint32 instanceId )
{
Q_Q(SingleApplication);
Q_EMIT q->receivedMessage( instanceId, dataSocket->readAll() );
Q_Q(SingleApplication);
Q_EMIT q->receivedMessage( instanceId, dataSocket->readAll() );
}
void SingleApplicationPrivate::slotClientConnectionClosed( QLocalSocket *closedSocket, quint32 instanceId )
{
if( closedSocket->bytesAvailable() > 0 )
Q_EMIT slotDataAvailable( closedSocket, instanceId );
if( closedSocket->bytesAvailable() > 0 )
Q_EMIT slotDataAvailable( closedSocket, instanceId );
}

View File

@@ -38,62 +38,62 @@
#include "singleapplication.h"
struct InstancesInfo {
bool primary;
quint32 secondary;
qint64 primaryPid;
quint16 checksum;
bool primary;
quint32 secondary;
qint64 primaryPid;
quint16 checksum;
};
struct ConnectionInfo {
explicit ConnectionInfo() :
msgLen(0), instanceId(0), stage(0) {}
qint64 msgLen;
quint32 instanceId;
quint8 stage;
explicit ConnectionInfo() :
msgLen(0), instanceId(0), stage(0) {}
qint64 msgLen;
quint32 instanceId;
quint8 stage;
};
class SingleApplicationPrivate : public QObject {
Q_OBJECT
public:
enum ConnectionType : quint8 {
InvalidConnection = 0,
NewInstance = 1,
SecondaryInstance = 2,
Reconnect = 3
};
enum ConnectionStage : quint8 {
StageHeader = 0,
StageBody = 1,
StageConnected = 2,
};
Q_DECLARE_PUBLIC(SingleApplication)
SingleApplicationPrivate( SingleApplication *q_ptr );
~SingleApplicationPrivate();
void genBlockServerName();
void initializeMemoryBlock();
void startPrimary();
void startSecondary();
void connectToPrimary(int msecs, ConnectionType connectionType );
quint16 blockChecksum();
qint64 primaryPid();
void readInitMessageHeader(QLocalSocket *socket);
void readInitMessageBody(QLocalSocket *socket);
SingleApplication *q_ptr;
QSharedMemory *memory;
QLocalSocket *socket;
QLocalServer *server;
quint32 instanceNumber;
QString blockServerName;
SingleApplication::Options options;
QMap<QLocalSocket*, ConnectionInfo> connectionMap;
public Q_SLOTS:
void slotConnectionEstablished();
void slotDataAvailable( QLocalSocket*, quint32 );
void slotClientConnectionClosed( QLocalSocket*, quint32 );
Q_OBJECT
public:
enum ConnectionType : quint8 {
InvalidConnection = 0,
NewInstance = 1,
SecondaryInstance = 2,
Reconnect = 3
};
enum ConnectionStage : quint8 {
StageHeader = 0,
StageBody = 1,
StageConnected = 2,
};
Q_DECLARE_PUBLIC(SingleApplication)
SingleApplicationPrivate( SingleApplication *q_ptr );
~SingleApplicationPrivate();
void genBlockServerName();
void initializeMemoryBlock();
void startPrimary();
void startSecondary();
void connectToPrimary(int msecs, ConnectionType connectionType );
quint16 blockChecksum();
qint64 primaryPid();
void readInitMessageHeader(QLocalSocket *socket);
void readInitMessageBody(QLocalSocket *socket);
SingleApplication *q_ptr;
QSharedMemory *memory;
QLocalSocket *socket;
QLocalServer *server;
quint32 instanceNumber;
QString blockServerName;
SingleApplication::Options options;
QMap<QLocalSocket*, ConnectionInfo> connectionMap;
public Q_SLOTS:
void slotConnectionEstablished();
void slotDataAvailable( QLocalSocket*, quint32 );
void slotClientConnectionClosed( QLocalSocket*, quint32 );
};
#endif // SINGLEAPPLICATION_P_H

View File

@@ -0,0 +1,37 @@
{
"id": "org.qelectrotech.QElectroTech",
"runtime": "org.kde.Platform",
"runtime-version": "5.14",
"sdk": "org.kde.Sdk",
"command": "qelectrotech",
"rename-desktop-file": "qelectrotech.desktop",
"rename-appdata-file": "qelectrotech.appdata.xml",
"rename-icon": "qelectrotech",
"copy-icon": true,
"finish-args": [
"--socket=wayland",
"--socket=x11",
"--device=dri",
"--share=ipc",
"--filesystem=host"
],
"modules": [
{
"name": "qelectrotech",
"buildsystem": "qmake",
"post-install": [
"mv /app/share/mime/packages/qelectrotech.xml /app/share/mime/packages/org.qelectrotech.QElectroTech.xml"
],
"sources": [
{
"type": "dir",
"path": "../.."
},
{
"type": "patch",
"path": "patches/0001-build-Fix-the-installation-paths.patch"
}
]
}
]
}

View File

@@ -0,0 +1,44 @@
From 2a390b5188fe070295090b1bd37273d12963b371 Mon Sep 17 00:00:00 2001
From: Laurent Trinques <scorpio@qelectrotech.org>
Date: Sat, 26 Sep 2020 22:52:52 +0200
Subject: [PATCH] build: Fix the installation paths
---
qelectrotech.pro | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/qelectrotech.pro b/qelectrotech.pro
index 2901a30d5..1019a9870 100644
--- a/qelectrotech.pro
+++ b/qelectrotech.pro
@@ -5,20 +5,20 @@
# Chemins utilises pour la compilation et l'installation de QET
unix {
# Chemins UNIX
- COMPIL_PREFIX = '/usr/local/'
- INSTALL_PREFIX = '/usr/local/'
+ COMPIL_PREFIX = '/app/'
+ INSTALL_PREFIX = '/app/'
QET_BINARY_PATH = 'bin/'
QET_COMMON_COLLECTION_PATH = 'share/qelectrotech/elements/'
QET_COMMON_TBT_PATH = 'share/qelectrotech/titleblocks/'
QET_LANG_PATH = 'share/qelectrotech/lang/'
QET_EXAMPLES_PATH = 'share/qelectrotech/examples/'
- QET_LICENSE_PATH = 'doc/qelectrotech/'
- QET_MIME_XML_PATH = '../share/mime/application/'
- QET_MIME_DESKTOP_PATH = '../share/mimelnk/application/'
- QET_MIME_PACKAGE_PATH = '../share/mime/packages/'
+ QET_LICENSE_PATH = 'share/doc/qelectrotech/'
+ QET_MIME_XML_PATH = 'share/mime/application/'
+ QET_MIME_DESKTOP_PATH = 'share/mimelnk/application/'
+ QET_MIME_PACKAGE_PATH = 'share/mime/packages/'
QET_DESKTOP_PATH = 'share/applications/'
QET_ICONS_PATH = 'share/icons/hicolor/'
- QET_MAN_PATH = 'man/'
+ QET_MAN_PATH = 'share/man/'
QET_APPDATA_PATH = 'share/appdata'
}
win32 {
--
2.28.0

View File

@@ -36,3 +36,6 @@ Elementen collectie voor QElectroTech.
[da]
Symbol samling for QElectroTech.
[ja]
QElectroTech の要素コレクション。

View File

@@ -0,0 +1,34 @@
#!/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
from="$SNAP_USER_DATA/.qet"
to="$SNAP_USER_COMMON/.qet"
if [ ! -d "$to" ] && [ -d "$from" ]; then
echo "Migrating user data from $from to $to"
mkdir "$to"
cp -av "$from/." "$to"
fi
# link DXFtoQET so that QET finds it
mkdir -p "$HOME/.qet"
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 "${@}"

View File

@@ -0,0 +1,124 @@
name: qelectrotech
title: QElectroTech
base: core18
adopt-info: qelectrotech
license: GPL-2.0
summary: Electrical diagram editor
description: |
QElectroTech, or QET in short, is a libre and open source desktop application
to create diagrams and schematics.
grade: stable
confinement: strict
architectures:
- build-on: amd64
run-on: amd64
layout:
/usr/local/share/qelectrotech:
symlink: $SNAP/usr/local/share/qelectrotech
/usr/share/libdrm/amdgpu.ids:
symlink: $SNAP/kf5/usr/share/libdrm/amdgpu.ids
apps:
qelectrotech:
command: usr/local/bin/qelectrotech
command-chain:
- bin/qelectrotech-launch
desktop: usr/local/share/applications/qelectrotech.desktop
extensions: [kde-neon]
plugs: &plugs [opengl, unity7, home, removable-media, gsettings, network, cups-control]
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
QT_QPA_PLATFORMTHEME: gtk3
QT_AUTO_SCREEN_SCALE_FACTOR: 1
HOME: $SNAP_USER_COMMON
PYTHONPATH: $SNAP:$SNAP/lib/python3.6/site-packages:$SNAP/usr/lib/python3.6:$SNAP/usr/lib/python3.6/lib-dynload
qet-tb-generator:
command: bin/qelectrotech-launch $SNAP/bin/qet_tb_generator
extensions: [kde-neon]
plugs: *plugs
environment: *env
dxf-to-qet:
command: bin/DXFtoQET
extensions: [kde-neon]
plugs: *plugs
environment: *env
parts:
launchers:
plugin: dump
source: build-aux/snap/local/launchers
organize:
'*': bin/
qet-tb-generator:
plugin: python
python-version: python3
source: https://github.com/qelectrotech/qet_tb_generator.git
stage-packages:
- python3-lxml
- python3-tk
- libtk8.6
kde-sdk-setup:
plugin: nil
build-snaps:
- kde-frameworks-5-core18-sdk
build-packages:
- g++
- mesa-common-dev
- libglvnd-dev
- rsync
override-build: |
rsync -a --ignore-existing /snap/kde-frameworks-5-core18-sdk/current/ /
dxf-to-qet:
after: [kde-sdk-setup]
plugin: nil
source: https://github.com/qelectrotech/DXFtoQET-2020.git
override-build: |
qmake "$SNAPCRAFT_PART_SRC/DXFtoQET.pro"
make -j$(nproc)
mkdir -p "$SNAPCRAFT_PART_INSTALL/bin"
cp DXFtoQET "$SNAPCRAFT_PART_INSTALL/bin/"
qelectrotech:
after: [kde-sdk-setup]
plugin: nil
source: .
stage-packages: [ git, sqlite3 ]
build-packages:
- git
- 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: |
qmake "$SNAPCRAFT_PART_SRC/qelectrotech.pro"
make -j$(nproc)
make install INSTALL_ROOT="$SNAPCRAFT_PART_INSTALL"
override-stage: |
snapcraftctl stage
# patch desktop file with correct icon path
SED_CMD="sed -i -E s|^Icon=(.*)|Icon=\${SNAP}/usr/local/share/icons/hicolor/128x128/apps/\1.png|g"
$SED_CMD usr/local/share/applications/qelectrotech.desktop
cleanup:
after: [qelectrotech, dxf-to-qet, qet-tb-generator]
plugin: nil
build-snaps: [core18, kde-frameworks-5-core18]
override-prime: |
# Remove all files from snap that are already included in the base snap or in
# any connected content snaps
set -eux
for snap in "core18" "kde-frameworks-5-core18"; do # List all content-snaps and base snaps you're using here
cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" \;
done

View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

Before

Width:  |  Height:  |  Size: 151 KiB

After

Width:  |  Height:  |  Size: 151 KiB

View File

Before

Width:  |  Height:  |  Size: 151 KiB

After

Width:  |  Height:  |  Size: 151 KiB

0
dev_doc/ID_of_QUndoCommand.txt Executable file → Normal file
View File

View File

@@ -1,16 +1,16 @@
Type = UserType + ???
###DIAGRAM EDITOR###
Element + 1000
Conductor + 1001
Terminal + 1002
ElementTextItem + 1003
DiagramTextItem + 1004
Element + 1000
Conductor + 1001
Terminal + 1002
ElementTextItem + 1003
DiagramTextItem + 1004
IndependentTextItem + 1005
ConductorTextItem + 1006
DiagramImageItem + 1007
QetShapItem + 1008
crossRefItem + 1009
DynamiqueElementTextItem + 1010
ConductorTextItem + 1006
DiagramImageItem + 1007
QetShapItem + 1008
crossRefItem + 1009
DynamiqueElementTextItem + 1010
ElementPrimitiveDecorator + 2200
###ELEMENT EDITOR###
@@ -25,4 +25,8 @@ part rectangle + 1109
part dynamic text field + 1110
###QetGraphicsHandlerItem###
QetGraphicsHandlerItem = 1200
QetGraphicsHandlerItem + 1200
###VIEW ITEMS###
QetGraphicsTableItem + 1300
QetGraphicsHeaderItem + 1301

View File

@@ -1,4 +1,4 @@
<definition width="40" version="0.3" hotspot_x="18" hotspot_y="15" height="30" type="element" ic="true" orientation="dyyy"
<definition width="40" version="0.3" hotspot_x="18" hotspot_y="15" height="30" type="element" ic="true"
link_type="next_report">
<uuid uuid="{717352A1-F3C7-49C7-9A06-51620AB5CA00}"/><names>
<name lang="ru">Следующая страница</name>

View File

@@ -12,5 +12,6 @@
<name lang="es">Referencias</name>
<name lang="nl">Referenties</name>
<name lang="da">Ark henvisninger</name>
<name lang="ja">フォリオ参照</name>
</names>
</qet-directory>

View File

@@ -0,0 +1,37 @@
<definition type="element" height="80" hotspot_y="40" version="0.70" width="50" hotspot_x="23" link_type="simple">
<uuid uuid="{65b9e889-c2eb-4d85-aa9e-c1dff55678f5}"/>
<names>
<name lang="en">Three-pole source + PEN</name>
<name lang="el">Τριφασικό + PEN</name>
<name lang="es">Fuente tripolar + PEN</name>
<name lang="nl">driefasen + aardenul</name>
<name lang="pl">Linia trójfazowa (PEN)</name>
<name lang="it">Sorgente tripolare + PEN</name>
<name lang="de">Drehstrom + PEN</name>
<name lang="ru">Трёхполюсный + PEN</name>
<name lang="fr">Source tripolaire + PEN</name>
<name lang="ar">مصدر ثلاثي القطبيّة + PEN</name>
<name lang="cs">3 fáze + PEN pravý</name>
</names>
<elementInformations/>
<informations>Author: The QElectroTech team
License: see http://qelectrotech.org/wiki/doc/elements_license</informations>
<description>
<dynamic_text z="1" Valignment="AlignTop" x="-7" text_from="ElementInfo" font="Sans Serif,9,-1,5,50,0,0,0,0,0" rotation="0" uuid="{7c68cf51-b979-4e89-97b2-a93b5ad61f95}" y="-60.45" Halignment="AlignLeft" frame="false" text_width="-1">
<text></text>
<info_name>label</info_name>
</dynamic_text>
<text x="7" font="Sans Serif,5,-1,5,50,0,0,0,0,0" rotation="0" y="33" text="PEN" color="#000000"/>
<text x="7" font="Sans Serif,5,-1,5,50,0,0,0,0,0" rotation="0" y="13" text="L3" color="#000000"/>
<text x="7" font="Sans Serif,5,-1,5,50,0,0,0,0,0" rotation="0" y="-7" text="L2" color="#000000"/>
<text x="7" font="Sans Serif,5,-1,5,50,0,0,0,0,0" rotation="0" y="-27" text="L1" color="#000000"/>
<line style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" x1="-15" y2="-30" end1="none" y1="-30" length1="1.5" length2="1.5" antialias="false" x2="-5"/>
<line style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" x1="-15" y2="-10" end1="none" y1="-10" length1="1.5" length2="1.5" antialias="false" x2="-5"/>
<line style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" x1="-15" y2="10" end1="none" y1="10" length1="1.5" length2="1.5" antialias="false" x2="-5"/>
<line style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" x1="-14" y2="30" end1="none" y1="30" length1="1.5" length2="1.5" antialias="false" x2="-5"/>
<terminal orientation="w" x="-15" y="-30"/>
<terminal orientation="w" x="-15" y="-10"/>
<terminal orientation="w" x="-15" y="30"/>
<terminal orientation="w" x="-15" y="10"/>
</description>
</definition>

View File

@@ -0,0 +1,40 @@
<definition type="element" height="100" hotspot_y="40" version="0.70" width="40" hotspot_x="20" link_type="simple">
<uuid uuid="{b4b70d3d-8784-4323-b17b-d8ff3677cdc1}"/>
<names>
<name lang="en">Three-pole source + PEN</name>
<name lang="el">Τριφασικό + PEN</name>
<name lang="es">Fuente tripolar + PEN</name>
<name lang="nl">driefasen + aardenul</name>
<name lang="pl">Linia trójfazowa (PEN)</name>
<name lang="it">Sorgente tripolare + PEN</name>
<name lang="de">Drehstrom + PEN</name>
<name lang="ru">Трёхполюсный + PEN</name>
<name lang="fr">Source tripolaire + PEN</name>
<name lang="ar">مصدر ثلاثي القطبيّة + PEN</name>
<name lang="cs">3 fáze + N+PE pravý</name>
</names>
<elementInformations/>
<informations>Author: The QElectroTech team
License: see http://qelectrotech.org/wiki/doc/elements_license</informations>
<description>
<dynamic_text z="1" Valignment="AlignTop" x="-7" text_from="ElementInfo" font="Sans Serif,9,-1,5,50,0,0,0,0,0" rotation="0" uuid="{1955f25e-b33b-4106-8b36-46862006122c}" y="-60.45" Halignment="AlignLeft" frame="false" text_width="-1">
<text></text>
<info_name>label</info_name>
</dynamic_text>
<text x="7" font="Sans Serif,5,-1,5,50,0,0,0,0,0" rotation="0" y="53" text="PE" color="#000000"/>
<text x="7" font="Sans Serif,5,-1,5,50,0,0,0,0,0" rotation="0" y="33" text="N" color="#000000"/>
<line style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" x1="-15" y2="50" end1="none" y1="50" length1="1.5" length2="1.5" antialias="false" x2="-5"/>
<text x="7" font="Sans Serif,5,-1,5,50,0,0,0,0,0" rotation="0" y="13" text="L3" color="#000000"/>
<text x="7" font="Sans Serif,5,-1,5,50,0,0,0,0,0" rotation="0" y="-7" text="L2" color="#000000"/>
<text x="7" font="Sans Serif,5,-1,5,50,0,0,0,0,0" rotation="0" y="-27" text="L1" color="#000000"/>
<line style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" x1="-15" y2="-30" end1="none" y1="-30" length1="1.5" length2="1.5" antialias="false" x2="-5"/>
<line style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" x1="-15" y2="-10" end1="none" y1="-10" length1="1.5" length2="1.5" antialias="false" x2="-5"/>
<line style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" x1="-15" y2="10" end1="none" y1="10" length1="1.5" length2="1.5" antialias="false" x2="-5"/>
<line style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" x1="-15" y2="30" end1="none" y1="30" length1="1.5" length2="1.5" antialias="false" x2="-5"/>
<terminal orientation="w" x="-15" y="50"/>
<terminal orientation="w" x="-15" y="-30"/>
<terminal orientation="w" x="-15" y="-10"/>
<terminal orientation="w" x="-15" y="30"/>
<terminal orientation="w" x="-15" y="10"/>
</description>
</definition>

View File

@@ -1,26 +1,42 @@
<definition width="30" link_type="simple" version="0.5" hotspot_x="16" orientation="dyyy" height="50" hotspot_y="29" type="element">
<uuid uuid="{75d4e5ef-6080-4118-9eab-afb53220b9ef}"/>
<definition height="50" width="30" link_type="terminal" hotspot_x="16" version="0.80" type="element" hotspot_y="29">
<uuid uuid="{a98ac40d-9055-4b9b-88ab-cffe6b08ed37}"/>
<names>
<name lang="ro">Masă</name>
<name lang="pt">Massa</name>
<name lang="es">Masa</name>
<name lang="cs">Kostra</name>
<name lang="it">Massa</name>
<name lang="nl">Massa</name>
<name lang="el">Γείωση</name>
<name lang="ru">Шасси</name>
<name lang="de">Masse</name>
<name lang="cs">Kostra</name>
<name lang="pl">Masa</name>
<name lang="ro">Masă</name>
<name lang="it">Massa</name>
<name lang="en">Ground</name>
<name lang="pl">Masa</name>
<name lang="es">Masa</name>
<name lang="ar">هيكل معدني</name>
<name lang="fr">Masse</name>
<name lang="ru">Шасси</name>
</names>
<informations>titus
<elementInformations>
<elementInformation name="comment" show="1"></elementInformation>
<elementInformation name="machine_manufacturer_reference" show="1"></elementInformation>
<elementInformation name="manufacturer_reference" show="1"></elementInformation>
<elementInformation name="description" show="1"></elementInformation>
<elementInformation name="manufacturer" show="1"></elementInformation>
<elementInformation name="designation" show="1"></elementInformation>
<elementInformation name="quantity" show="1"></elementInformation>
<elementInformation name="unity" show="1"></elementInformation>
<elementInformation name="supplier" show="1"></elementInformation>
<elementInformation name="plant" show="1"></elementInformation>
<elementInformation name="label" show="1"></elementInformation>
</elementInformations>
<informations>titus&#xd;
titus0818@yahoo.com</informations>
<description>
<line antialias="false" length1="1.5" x2="0" end2="none" x1="0" end1="none" y2="13" length2="1.5" style="line-style:normal;line-weight:hight;filling:none;color:black" y1="-16"/>
<line antialias="false" length1="1.5" x2="12.62" end2="none" x1="-13.6493" end1="none" y2="14" length2="1.5" style="line-style:normal;line-weight:hight;filling:none;color:black" y1="14"/>
<input x="8" y="2" tagg="label" size="9" rotate="true" text="_"/>
<line y1="-16" x1="0" style="line-style:normal;line-weight:hight;filling:none;color:black" end2="none" y2="13" length2="1.5" length1="1.5" x2="0" end1="none" antialias="false"/>
<line y1="14" x1="-13.6493" style="line-style:normal;line-weight:hight;filling:none;color:black" end2="none" y2="14" length2="1.5" length1="1.5" x2="12.62" end1="none" antialias="false"/>
<dynamic_text uuid="{7f02ce13-533d-4501-980d-6cb67bd1110d}" Halignment="AlignLeft" frame="false" x="8" Valignment="AlignTop" text_from="ElementInfo" y="-9" font="Sans Serif,9,-1,5,50,0,0,0,0,0" z="3" rotation="0" text_width="-1">
<text></text>
<info_name>label</info_name>
</dynamic_text>
<terminal x="0" y="-20" orientation="n"/>
</description>
</definition>

View File

@@ -1,4 +1,4 @@
<definition width="20" link_type="simple" version="0.5" hotspot_x="9" orientation="dyyy" height="30" hotspot_y="20" type="element">
<definition width="20" link_type="simple" version="0.5" hotspot_x="9" height="30" hotspot_y="20" type="element">
<uuid uuid="{5983fe6f-de69-4368-a387-a6ce3b9c2951}"/>
<names>
<name lang="pt">Massa</name>

View File

@@ -11,5 +11,6 @@
<name lang="cs">Síťové zdroje</name>
<name lang="es">Fuentes de red</name>
<name lang="da">Netværkskilder</name>
<name lang="ja">電源網</name>
</names>
</qet-directory>

View File

@@ -1,4 +1,4 @@
<definition width="30" link_type="simple" version="0.5" hotspot_x="15" orientation="dyyy" height="60" hotspot_y="30" type="element">
<definition width="30" link_type="simple" version="0.5" hotspot_x="15" height="60" hotspot_y="30" type="element">
<uuid uuid="{35f2834a-308b-4e79-bc2a-1c00486b24e7}"/>
<names>
<name lang="es">Fuente unipolo + PE +N</name>

View File

@@ -1,4 +1,4 @@
<definition width="40" link_type="simple" version="0.5" hotspot_x="22" orientation="dyyy" height="40" hotspot_y="20" type="element">
<definition width="40" link_type="simple" version="0.5" hotspot_x="22" height="40" hotspot_y="20" type="element">
<uuid uuid="{fd042050-e73b-4f95-b4c1-834aa403b07a}"/>
<names>
<name lang="es">Fuente unipolo + PEN</name>

View File

@@ -1,4 +1,4 @@
<definition width="30" link_type="simple" version="0.5" hotspot_x="15" orientation="dyyy" height="40" hotspot_y="20" type="element">
<definition width="30" link_type="simple" version="0.5" hotspot_x="15" height="40" hotspot_y="20" type="element">
<uuid uuid="{457a0c01-871c-40fd-83d7-14033333fb95}"/>
<names>
<name lang="pt">Fonte unipolar + neutro</name>

View File

@@ -1,4 +1,4 @@
<definition width="30" link_type="simple" version="0.5" hotspot_x="15" orientation="dyyy" height="60" hotspot_y="30" type="element">
<definition width="30" link_type="simple" version="0.5" hotspot_x="15" height="60" hotspot_y="30" type="element">
<uuid uuid="{03b9e482-cb45-4bee-8030-96b93624fc60}"/>
<names>
<name lang="pt">Fonte tripolar</name>

View File

@@ -1,4 +1,4 @@
<definition width="30" link_type="simple" version="0.5" hotspot_x="15" orientation="dyyy" height="100" hotspot_y="50" type="element">
<definition width="30" link_type="simple" version="0.5" hotspot_x="15" height="100" hotspot_y="50" type="element">
<uuid uuid="{0e017749-6c0f-44c0-8726-6804be8bbee7}"/>
<names>
<name lang="es">Fuente tripolar + PE +N</name>

View File

@@ -1,4 +1,4 @@
<definition width="40" link_type="simple" version="0.5" hotspot_x="23" orientation="dyyy" height="80" hotspot_y="41" type="element">
<definition width="40" link_type="simple" version="0.5" hotspot_x="23" height="80" hotspot_y="41" type="element">
<uuid uuid="{c0913e95-3b3c-4dc2-a74d-bc73ded78c32}"/>
<names>
<name lang="es">Fuente tripolar + PEN</name>

View File

@@ -1,4 +1,4 @@
<definition width="30" link_type="simple" version="0.5" hotspot_x="15" orientation="dyyy" height="80" hotspot_y="40" type="element">
<definition width="30" link_type="simple" version="0.5" hotspot_x="15" height="80" hotspot_y="40" type="element">
<uuid uuid="{8bfb1790-0735-47d5-88a2-8b4d91aba2f1}"/>
<names>
<name lang="pt">Fonte tripolar + neutro</name>

View File

@@ -1,4 +1,4 @@
<definition width="30" link_type="simple" version="0.5" hotspot_x="15" orientation="dyyy" height="20" hotspot_y="10" type="element">
<definition width="30" link_type="simple" version="0.5" hotspot_x="15" height="20" hotspot_y="10" type="element">
<uuid uuid="{b5ad2e41-804d-4745-99be-e8951cffdf98}"/>
<names>
<name lang="pt">Fonte de neutro</name>

View File

@@ -1,4 +1,4 @@
<definition width="30" link_type="simple" version="0.5" hotspot_x="15" orientation="dyyy" height="20" hotspot_y="10" type="element">
<definition width="30" link_type="simple" version="0.5" hotspot_x="15" height="20" hotspot_y="10" type="element">
<uuid uuid="{7693c5e0-762b-4309-8d97-cb74619f9efd}"/>
<names>
<name lang="pt">Fonte de fase</name>

View File

@@ -1,4 +1,4 @@
<definition width="70" link_type="simple" version="0.5" hotspot_x="34" orientation="dyyy" height="100" hotspot_y="40" type="element">
<definition width="70" link_type="simple" version="0.5" hotspot_x="34" height="100" hotspot_y="40" type="element">
<uuid uuid="{4b9794cf-e7c0-4f59-aa0a-bb1fce4dfe48}"/>
<names>
<name lang="es">Punto de distribución TN-C > TN-S</name>

View File

@@ -1,27 +1,43 @@
<definition width="20" link_type="simple" version="0.5" hotspot_x="10" orientation="dyyy" height="30" hotspot_y="19" type="element">
<uuid uuid="{93eafb79-a84a-45e3-b43b-327d0944591b}"/>
<definition height="30" width="20" link_type="terminal" hotspot_x="10" version="0.80" type="element" hotspot_y="19">
<uuid uuid="{e4e753a8-9fde-4e8e-9256-0cf99d67e3de}"/>
<names>
<name lang="pt">Terra</name>
<name lang="el">Γείωση</name>
<name lang="es">Tierra</name>
<name lang="nl">Aarde</name>
<name lang="de">Erde</name>
<name lang="cs">Země</name>
<name lang="pl">Uziemienie</name>
<name lang="it">Terra</name>
<name lang="ar">تأريض</name>
<name lang="en">Ground</name>
<name lang="fr">Terre</name>
<name lang="el">Γείωση</name>
<name lang="nl">Aarde</name>
<name lang="ru">Земля</name>
<name lang="de">Erde</name>
<name lang="en">Ground</name>
<name lang="pl">Uziemienie</name>
<name lang="es">Tierra</name>
<name lang="ar">تأريض</name>
<name lang="fr">Terre</name>
</names>
<informations>Author: The QElectroTech team
<elementInformations>
<elementInformation name="comment" show="1"></elementInformation>
<elementInformation name="machine_manufacturer_reference" show="1"></elementInformation>
<elementInformation name="manufacturer_reference" show="1"></elementInformation>
<elementInformation name="description" show="1"></elementInformation>
<elementInformation name="manufacturer" show="1"></elementInformation>
<elementInformation name="designation" show="1"></elementInformation>
<elementInformation name="quantity" show="1"></elementInformation>
<elementInformation name="unity" show="1"></elementInformation>
<elementInformation name="supplier" show="1"></elementInformation>
<elementInformation name="plant" show="1"></elementInformation>
<elementInformation name="label" show="1"></elementInformation>
</elementInformations>
<informations>Author: The QElectroTech team&#xd;
License: see http://qelectrotech.org/wiki/doc/elements_license</informations>
<description>
<input x="2" y="-11.5" tagg="label" size="9" rotate="true" text="_"/>
<line antialias="false" length1="1.5" x2="3" end2="none" x1="-3" end1="none" y2="4" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="4"/>
<line antialias="false" length1="1.5" x2="5" end2="none" x1="-5" end1="none" y2="2" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="2"/>
<line antialias="false" length1="1.5" x2="7" end2="none" x1="-7" end1="none" y2="0" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0"/>
<line antialias="false" length1="1.5" x2="0" end2="none" x1="0" end1="none" y2="0" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10"/>
<dynamic_text uuid="{0af57a27-1887-4576-8b51-200ca996e582}" Halignment="AlignLeft" frame="false" x="2" Valignment="AlignTop" text_from="ElementInfo" y="-22.5" font="Sans Serif,9,-1,5,50,0,0,0,0,0" z="1" rotation="0" text_width="-1">
<text></text>
<info_name>label</info_name>
</dynamic_text>
<line y1="4" x1="-3" style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" y2="4" length2="1.5" length1="1.5" x2="3" end1="none" antialias="false"/>
<line y1="2" x1="-5" style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" y2="2" length2="1.5" length1="1.5" x2="5" end1="none" antialias="false"/>
<line y1="0" x1="-7" style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" y2="0" length2="1.5" length1="1.5" x2="7" end1="none" antialias="false"/>
<line y1="-10" x1="0" style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" y2="0" length2="1.5" length1="1.5" x2="0" end1="none" antialias="false"/>
<terminal x="0" y="-11" orientation="n"/>
</description>
</definition>

View File

@@ -0,0 +1,15 @@
<definition width="20" height="20" hotspot_y="9" type="element" link_type="simple" hotspot_x="9" version="0.60">
<uuid uuid="{079913f8-18b5-4524-84bd-aadf75dfefbf}"/>
<names>
<name lang="cs">Bod</name>
</names>
<informations></informations>
<description>
<circle diameter="4" style="line-style:normal;line-weight:normal;filling:black;color:black" antialias="false" y="-2" x="-2"/>
<input rotate="true" text=" " tagg="label" size="9" y="-3" x="-11"/>
<terminal orientation="e" y="0" x="2"/>
<terminal orientation="w" y="0" x="-2"/>
<terminal orientation="s" y="2" x="0"/>
<terminal orientation="n" y="-2" x="0"/>
</description>
</definition>

View File

@@ -1,4 +1,4 @@
<definition hotspot_x="11" hotspot_y="4" version="0.70" type="element" height="20" orientation="dyyy" link_type="terminal" width="30">
<definition hotspot_x="11" hotspot_y="4" version="0.70" type="element" height="20" link_type="terminal" width="30">
<uuid uuid="{141e7e1e-4f7f-456d-9f04-52c32109b969}"/>
<names>
<name lang="en">Combine</name>

View File

@@ -1,4 +1,4 @@
<definition hotspot_y="7" width="20" orientation="dyyy" type="element" height="20" version="0.70" hotspot_x="11" link_type="terminal">
<definition hotspot_y="7" width="20" type="element" height="20" version="0.70" hotspot_x="11" link_type="terminal">
<uuid uuid="{2d505b61-db0f-4784-9b9c-189366058272}"/>
<names>
<name lang="es">Esquina</name>

View File

@@ -1,4 +1,4 @@
<definition height="20" link_type="terminal" hotspot_x="9" width="20" orientation="dyyy" hotspot_y="9" version="0.70" type="element">
<definition height="20" link_type="terminal" hotspot_x="9" width="20" hotspot_y="9" version="0.70" type="element">
<uuid uuid="{8c0d3e9c-dc37-41d7-bfd5-fe4dbf8dc4fb}"/>
<names>
<name lang="ru">Пересечение</name>

View File

@@ -1,4 +1,4 @@
<definition width="10" hotspot_y="14" hotspot_x="5" height="30" link_type="terminal" orientation="dyyy" version="0.70" type="element">
<definition width="10" hotspot_y="14" hotspot_x="5" height="30" link_type="terminal" version="0.70" type="element">
<uuid uuid="{b5abb4c2-455d-45ff-95f2-328521f4e2e1}"/>
<names>
<name lang="en">Jump</name>

View File

@@ -0,0 +1,19 @@
<definition version="0.70" height="30" type="element" width="30" hotspot_x="14" link_type="simple" hotspot_y="12">
<uuid uuid="{3015326e-2599-495e-8ef0-c12ff5313dd0}"/>
<names>
<name lang="cs">Všestranný spoj</name>
</names>
<elementInformations/>
<informations></informations>
<description>
<polygon x6="6" x2="-5" x8="6" y5="5" y2="0" closed="false" x10="0" x3="0" x7="10" y7="0" y4="10" y11="-5" antialias="false" x9="0" x11="0" style="line-style:normal;line-weight:normal;filling:none;color:black" x5="0" y9="5" y10="-5" y1="0" y6="0" x4="0" x1="-10" y8="0" y3="5"/>
<dynamic_text font="Sans Serif,9,-1,5,50,0,0,0,0,0" frame="false" x="-13" text_from="ElementInfo" y="-12" z="2" rotation="0" Valignment="AlignTop" text_width="-1" uuid="{14c0b70c-c028-49ef-bf72-3c3c9cd64669}" Halignment="AlignLeft">
<text></text>
<info_name>label</info_name>
</dynamic_text>
<terminal x="0" y="-5" orientation="n"/>
<terminal x="0" y="10" orientation="s"/>
<terminal x="-10" y="0" orientation="w"/>
<terminal x="10" y="0" orientation="e"/>
</description>
</definition>

View File

@@ -0,0 +1,17 @@
<definition type="element" hotspot_x="35" version="0.80" width="70" height="80" hotspot_y="46" link_type="simple">
<uuid uuid="{e5a46987-e259-4ca4-9e40-eedc3652f738}"/>
<names>
<name lang="cs">Pokus</name>
</names>
<elementInformations/>
<informations></informations>
<description>
<rect width="60" x="-30" style="line-style:normal;line-weight:normal;filling:none;color:black" height="65" rx="0" y="-35" antialias="false" ry="0"/>
<dynamic_text z="3" font="Sans Serif,9,-1,5,0,0,0,0,0,0,normal" Valignment="AlignTop" uuid="{cec75afa-b854-41b8-aed8-6edba82c76ff}" text_from="ElementInfo" x="-45" text_width="-1" y="-20" frame="false" rotation="0" Halignment="AlignLeft">
<text></text>
<info_name>label</info_name>
</dynamic_text>
<terminal orientation="n" x="20" y="-40"/>
<terminal orientation="n" x="-20" y="-40"/>
</description>
</definition>

View File

@@ -11,5 +11,6 @@
<name lang="nl">Verbindingen</name>
<name lang="es">Conexiones</name>
<name lang="da">Forbindelser</name>
<name lang="ja">接続</name>
</names>
</qet-directory>

View File

@@ -1,4 +1,4 @@
<definition type="element" height="20" width="30" orientation="dyyy" version="0.70" hotspot_y="4" link_type="terminal" hotspot_x="17">
<definition type="element" height="20" width="30" version="0.70" hotspot_y="4" link_type="terminal" hotspot_x="17">
<uuid uuid="{709e6400-adc2-4faf-ba46-aa513d1dcaf1}"/>
<names>
<name lang="fr">Epissure</name>

View File

@@ -1,4 +1,4 @@
<definition hotspot_y="4" height="20" hotspot_x="17" type="element" width="30" link_type="terminal" orientation="dyyy" version="0.70">
<definition hotspot_y="4" height="20" hotspot_x="17" type="element" width="30" link_type="terminal" version="0.70">
<uuid uuid="{9e88368e-1b20-4a56-8941-5d17a4cce2d4}"/>
<names>
<name lang="cs">Levé spojení</name>

View File

@@ -1,4 +1,4 @@
<definition link_type="terminal" width="30" hotspot_x="14" orientation="dyyy" height="20" version="0.70" hotspot_y="4" type="element">
<definition link_type="terminal" width="30" hotspot_x="14" height="20" version="0.70" hotspot_y="4" type="element">
<uuid uuid="{6e40fff3-691c-4622-b9aa-4ff930a5b981}"/>
<names>
<name lang="en">Thru right</name>

View File

@@ -1,4 +1,4 @@
<definition width="120" version="0.3" hotspot_x="71" hotspot_y="10" height="40" type="element" orientation="dyyy">
<definition width="120" version="0.3" hotspot_x="71" hotspot_y="10" height="40" type="element">
<names>
<name lang="ar">كايبل طورين + تأريض</name>
<name lang="de">Kabel 3G</name>

View File

@@ -1,4 +1,4 @@
<definition width="120" version="0.3" hotspot_x="70" hotspot_y="10" height="40" type="element" orientation="dyyy">
<definition width="120" version="0.3" hotspot_x="70" hotspot_y="10" height="40" type="element">
<names>
<name lang="ar">كايبل ثلاثي الطور + تأريض</name>
<name lang="de">Kabel 4G</name>

View File

@@ -1,4 +1,4 @@
<definition width="100" version="0.3" hotspot_x="60" hotspot_y="10" height="40" type="element" orientation="dyyy">
<definition width="100" version="0.3" hotspot_x="60" hotspot_y="10" height="40" type="element">
<names>
<name lang="ar">كايبل بطورين و تأريض</name>
<name lang="de">Kabel 3G</name>

View File

@@ -1,4 +1,4 @@
<definition width="130" version="0.3" hotspot_x="88" hotspot_y="18" height="40" type="element" orientation="dyyy">
<definition width="130" version="0.3" hotspot_x="88" hotspot_y="18" height="40" type="element">
<names>
<name lang="ar">كايبل رباعي النواة</name>
<name lang="It">Cavo ? 4G</name>

View File

@@ -1,4 +1,4 @@
<definition hotspot_y="3" orientation="dyyy" version="0.51" hotspot_x="47" link_type="simple" width="100" type="element" height="20">
<definition hotspot_y="3" version="0.51" hotspot_x="47" link_type="simple" width="100" type="element" height="20">
<uuid uuid="{9923c1a5-b49a-4243-923e-cde9d916ea2b}"/>
<names>
<name lang="fr">Cable 5G</name>

View File

@@ -1,4 +1,4 @@
<definition hotspot_y="3" orientation="dyyy" version="0.51" hotspot_x="29" link_type="simple" width="60" type="element" height="20">
<definition hotspot_y="3" version="0.51" hotspot_x="29" link_type="simple" width="60" type="element" height="20">
<uuid uuid="{5f981421-4c54-4cd5-929e-7f77dab94fef}"/>
<names>
<name lang="It">Cavo ? 3G</name>

View File

@@ -1,4 +1,4 @@
<definition width="70" link_type="simple" version="0.5" hotspot_x="15" orientation="dyyy" height="20" hotspot_y="9" type="element">
<definition width="70" link_type="simple" version="0.5" hotspot_x="15" height="20" hotspot_y="9" type="element">
<uuid uuid="{4b9a04b1-0d35-4d54-b5cb-b573ed3a9b0d}"/>
<names>
<name lang="de">Kabel 3x</name>

View File

@@ -1,4 +1,4 @@
<definition width="60" link_type="simple" version="0.5" hotspot_x="21" orientation="dyyy" height="10" hotspot_y="-6" type="element">
<definition width="60" link_type="simple" version="0.5" hotspot_x="21" height="10" hotspot_y="-6" type="element">
<uuid uuid="{822e6fc1-0104-4d3a-ba3c-995c24c79cf2}"/>
<names>
<name lang="nl">Scherm</name>

View File

@@ -1,4 +1,4 @@
<definition width="30" link_type="simple" version="0.5" hotspot_x="15" orientation="dyyy" height="20" hotspot_y="9" type="element">
<definition width="30" link_type="simple" version="0.5" hotspot_x="15" height="20" hotspot_y="9" type="element">
<uuid uuid="{6ac285f9-6492-40cb-be58-9ba565ea1921}"/>
<names>
<name lang="de">Kabelader</name>

View File

@@ -1,4 +1,4 @@
<definition width="20" link_type="simple" version="0.5" hotspot_x="10" orientation="dyyy" height="20" hotspot_y="9" type="element">
<definition width="20" link_type="simple" version="0.5" hotspot_x="10" height="20" hotspot_y="9" type="element">
<uuid uuid="{374ed6b3-7329-4cad-ac8c-200b17508460}"/>
<names>
<name lang="de">Verdrahtung</name>

View File

@@ -0,0 +1,33 @@
<definition width="70" hotspot_x="35" hotspot_y="5" version="0.80" type="element" height="10" link_type="simple">
<uuid uuid="{3cfdc90d-f114-4ecd-9ab2-37786c279287}"/>
<names>
<name lang="de">Kabel 3G</name>
<name lang="fr">Cable 3G</name>
<name lang="cs">Kabel 3G</name>
</names>
<elementInformations/>
<informations>Author: The QElectroTech team&#xd;
License: see http://qelectrotech.org/wiki/doc/elements_license</informations>
<description>
<line x2="1.95" end1="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-2.05" length2="1.5" antialias="true" y2="1.95" end2="none" x1="-2.05" length1="1.5"/>
<line x2="22" end1="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-2" length2="1.5" antialias="true" y2="2" end2="none" x1="18" length1="1.5"/>
<dynamic_text text_width="-1" font="Sans Serif,7,-1,5,50,0,0,0,0,0" Halignment="AlignLeft" z="3" Valignment="AlignTop" frame="false" x="-50" uuid="{fe752adf-2e2b-4005-a272-42dd6976c493}" y="0.5" text_from="UserText" rotation="0">
<text>3G</text>
</dynamic_text>
<line x2="30" end1="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" length2="1.5" antialias="false" y2="0" end2="none" x1="-29.9373" length1="1.5"/>
<line x2="-18" end1="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-2" length2="1.5" antialias="true" y2="2" end2="none" x1="-22" length1="1.5"/>
<dynamic_text text_width="-1" font="Sans Serif,7,-1,5,50,0,0,0,0,0" Halignment="AlignLeft" z="6" Valignment="AlignTop" frame="false" x="-51" uuid="{65bfd07e-7af5-4193-a5ba-b3dc967da121}" y="-18.5" text_from="ElementInfo" rotation="0">
<text></text>
<info_name>label</info_name>
</dynamic_text>
<dynamic_text text_width="-1" font="Sans Serif,4,-1,5,25,0,0,0,0,0" Halignment="AlignLeft" z="7" Valignment="AlignTop" frame="false" x="-22" uuid="{df01c7dd-b2e7-4b24-9057-b8bc3478ff67}" y="-11" text_from="UserText" rotation="0">
<text>1</text>
</dynamic_text>
<dynamic_text text_width="-1" font="Sans Serif,4,-1,5,25,0,0,0,0,0" Halignment="AlignLeft" z="8" Valignment="AlignTop" frame="false" x="-2" uuid="{ce5a0030-5247-47ab-a975-63256db0d2bd}" y="-11" text_from="UserText" rotation="0">
<text>2</text>
</dynamic_text>
<dynamic_text text_width="-1" font="Sans Serif,4,-1,5,25,0,0,0,0,0" Halignment="AlignLeft" z="9" Valignment="AlignTop" frame="false" x="18" uuid="{e0a00f86-dd76-48fe-be8b-8ff6f510e651}" y="-11" text_from="UserText" rotation="0">
<text>PE</text>
</dynamic_text>
</description>
</definition>

View File

@@ -0,0 +1,27 @@
<definition type="element" height="10" link_type="simple" version="0.60" hotspot_x="36" hotspot_y="5" width="90">
<uuid uuid="{e02f4582-b5dd-4f81-ba71-e3d5521b4152}"/>
<names>
<name lang="ru">Кабель 3 жилы + PE</name>
<name lang="pl">Oznaczenie przewodu czterożyłowego</name>
<name lang="cs">Kabel 4G</name>
<name lang="de">Kabel 4G</name>
<name lang="es">Cable 3 fases+tierra</name>
<name lang="it">Cavo 3 fasi + terra</name>
<name lang="fr">Cable 3 phases+terre</name>
</names>
<informations>Author: The QElectroTech team&#xd;
License: see http://qelectrotech.org/wiki/doc/elements_license</informations>
<description>
<line x1="-2.05" y1="-2.05" end1="none" style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" length1="1.5" length2="1.5" x2="1.95" y2="1.95" antialias="true"/>
<line x1="37.95" y1="-2.05" end1="none" style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" length1="1.5" length2="1.5" x2="41.95" y2="1.95" antialias="true"/>
<line x1="18" y1="-2" end1="none" style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" length1="1.5" length2="1.5" x2="22" y2="2" antialias="true"/>
<input size="7" tagg="none" rotate="true" x="-50" y="10" text="4G"/>
<line x1="-29.9373" y1="0" end1="none" style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" length1="1.5" length2="1.5" x2="47.932" y2="0" antialias="false"/>
<line x1="-22" y1="-2" end1="none" style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" length1="1.5" length2="1.5" x2="-18" y2="2" antialias="true"/>
<input size="7" tagg="label" rotate="true" x="-51" y="-9" text="_"/>
<input size="4" tagg="none" rotate="true" x="-22" y="-4" text="1"/>
<input size="4" tagg="none" rotate="true" x="-2" y="-4" text="2"/>
<input size="4" tagg="none" rotate="true" x="18" y="-4" text="3"/>
<input size="4" tagg="none" rotate="true" x="38" y="-4" text="PE"/>
</description>
</definition>

View File

@@ -0,0 +1,33 @@
<definition type="element" height="10" link_type="simple" version="0.60" hotspot_x="73" hotspot_y="5" width="150">
<uuid uuid="{d1007c67-032b-4925-8560-aac9e547d6ae}"/>
<names>
<name lang="ru">Кабель 6 жилы + PE</name>
<name lang="pl">Oznaczenie przewodu czterożyłowego</name>
<name lang="cs">Kabel 7G</name>
<name lang="de">Kabel 7G</name>
<name lang="es">Cable 6 fases+tierra</name>
<name lang="it">Cavo fasi + terra</name>
<name lang="fr">Cable 6 phases+terre</name>
</names>
<informations>Author: The QElectroTech team&#xd;
License: see http://qelectrotech.org/wiki/doc/elements_license</informations>
<description>
<input size="4" tagg="none" rotate="true" x="38" y="-4" text="6"/>
<input size="4" tagg="none" rotate="true" x="18" y="-4" text="5"/>
<input size="4" tagg="none" rotate="true" x="-2" y="-4" text="4"/>
<line x1="57.95" y1="-2.05" end1="none" style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" length1="1.5" length2="1.5" x2="61.95" y2="1.95" antialias="true"/>
<line x1="-42.05" y1="-2.05" end1="none" style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" length1="1.5" length2="1.5" x2="-38.05" y2="1.95" antialias="true"/>
<line x1="37.95" y1="-2.05" end1="none" style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" length1="1.5" length2="1.5" x2="41.95" y2="1.95" antialias="true"/>
<line x1="17.95" y1="-2.05" end1="none" style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" length1="1.5" length2="1.5" x2="21.95" y2="1.95" antialias="true"/>
<line x1="-2.05" y1="-2.05" end1="none" style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" length1="1.5" length2="1.5" x2="1.95" y2="1.95" antialias="true"/>
<line x1="-22" y1="-2" end1="none" style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" length1="1.5" length2="1.5" x2="-18" y2="2" antialias="true"/>
<input size="7" tagg="none" rotate="true" x="-89" y="10" text="7G"/>
<line x1="-67.9373" y1="0" end1="none" style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" length1="1.5" length2="1.5" x2="71" y2="0" antialias="false"/>
<line x1="-62" y1="-2" end1="none" style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" length1="1.5" length2="1.5" x2="-58" y2="2" antialias="true"/>
<input size="7" tagg="label" rotate="true" x="-90" y="-9" text="_"/>
<input size="4" tagg="none" rotate="true" x="-62" y="-4" text="1"/>
<input size="4" tagg="none" rotate="true" x="-42" y="-4" text="2"/>
<input size="4" tagg="none" rotate="true" x="-22" y="-4" text="3"/>
<input size="4" tagg="none" rotate="true" x="58" y="-4" text="PE"/>
</description>
</definition>

View File

@@ -1,4 +1,4 @@
<definition width="30" link_type="simple" version="0.5" hotspot_x="14" orientation="dyyy" height="20" hotspot_y="4" type="element">
<definition width="30" link_type="simple" version="0.5" hotspot_x="14" height="20" hotspot_y="4" type="element">
<uuid uuid="{a0e9e33a-ee38-4c08-8f40-c307da8d822b}"/>
<names>
<name lang="el">Διατομή αγωγού</name>

View File

@@ -11,5 +11,6 @@
<name lang="nl">Kabels en draden</name>
<name lang="cs">Kabely a drátové propojení</name>
<name lang="da">Kabler og ledninger</name>
<name lang="ja">ケーブルと配線</name>
</names>
</qet-directory>

View File

@@ -1,4 +1,4 @@
<definition width="30" link_type="simple" version="0.5" hotspot_x="15" orientation="dyyy" height="10" hotspot_y="5" type="element">
<definition width="30" link_type="simple" version="0.5" hotspot_x="15" height="10" hotspot_y="5" type="element">
<uuid uuid="{b96a76a6-a798-497b-a044-dd933756d175}"/>
<names>
<name lang="de">Verdrahtungsdefinition 1 Leiter</name>

View File

@@ -1,4 +1,4 @@
<definition width="70" link_type="simple" version="0.5" hotspot_x="16" orientation="dyyy" height="10" hotspot_y="5" type="element">
<definition width="70" link_type="simple" version="0.5" hotspot_x="16" height="10" hotspot_y="5" type="element">
<uuid uuid="{448ac784-f459-4f8f-bd3f-d911802b3369}"/>
<names>
<name lang="de">Verdrahtungsdefinition 2 Leiter</name>

View File

@@ -1,4 +1,4 @@
<definition width="40" link_type="simple" version="0.5" hotspot_x="14" orientation="dyyy" height="10" hotspot_y="5" type="element">
<definition width="40" link_type="simple" version="0.5" hotspot_x="14" height="10" hotspot_y="5" type="element">
<uuid uuid="{c94d9e16-e3bb-4117-b037-466a15edcb14}"/>
<names>
<name lang="de">Verdrahtungsdefinition 2 Leiter</name>

View File

@@ -1,4 +1,4 @@
<definition width="70" link_type="simple" version="0.5" hotspot_x="16" orientation="dyyy" height="10" hotspot_y="5" type="element">
<definition width="70" link_type="simple" version="0.5" hotspot_x="16" height="10" hotspot_y="5" type="element">
<uuid uuid="{9d939952-9c2b-4b12-898f-262abc91e845}"/>
<names>
<name lang="de">Verdrahtungsdefinition 3 Leiter</name>

View File

@@ -1,4 +1,4 @@
<definition height="80" hotspot_y="39" hotspot_x="17" version="0.5" orientation="dyyy" width="40" link_type="simple" type="element">
<definition height="80" hotspot_y="39" hotspot_x="17" version="0.5" width="40" link_type="simple" type="element">
<uuid uuid="{9d2d8902-b36a-4974-b46d-4de6741f6b9b}"/>
<names>
<name lang="en">Terminal strip label</name>

View File

@@ -1,4 +1,4 @@
<definition height="90" hotspot_y="44" hotspot_x="15" version="0.5" orientation="dyyy" width="30" link_type="simple" type="element">
<definition height="90" hotspot_y="44" hotspot_x="15" version="0.5" width="30" link_type="simple" type="element">
<uuid uuid="{2d155649-d0f5-419b-b94a-a13d3fcf38c7}"/>
<names>
<name lang="fr">Borne (continuité)</name>

View File

@@ -1,4 +1,4 @@
<definition height="90" hotspot_y="44" hotspot_x="15" version="0.5" orientation="dyyy" width="30" link_type="simple" type="element">
<definition height="90" hotspot_y="44" hotspot_x="15" version="0.5" width="30" link_type="simple" type="element">
<uuid uuid="{da19301b-f6e7-478f-a6dd-eb72e497883b}"/>
<names>
<name lang="fr">Borne (terre)</name>

View File

@@ -1,4 +1,4 @@
<definition orientation="dyyy" version="0.51" width="110" height="20" type="element" hotspot_x="55" link_type="simple" hotspot_y="13">
<definition version="0.51" width="110" height="20" type="element" hotspot_x="55" link_type="simple" hotspot_y="13">
<uuid uuid="{17db296d-b50e-47ea-9125-aa9c1837b523}"/>
<names>
<name lang="fr">Interruption bornier</name>

View File

@@ -1,4 +1,4 @@
<definition orientation="dyyy" version="0.51" width="50" height="110" type="element" hotspot_x="15" link_type="simple" hotspot_y="54">
<definition version="0.51" width="50" height="110" type="element" hotspot_x="15" link_type="simple" hotspot_y="54">
<uuid uuid="{387b403b-d81d-45ca-957d-e9014fe009a7}"/>
<names>
<name lang="fr">Borne double-étage (continuité)</name>

View File

@@ -1,4 +1,4 @@
<definition height="10" hotspot_y="5" hotspot_x="5" version="0.5" orientation="dyyy" width="30" link_type="simple" type="element">
<definition height="10" hotspot_y="5" hotspot_x="5" version="0.5" width="30" link_type="simple" type="element">
<uuid uuid="{9a3ee0a0-5a0e-4f0c-93dd-396ddc3d7f11}"/>
<names>
<name lang="de">Einlegebrücke</name>

View File

@@ -1,4 +1,4 @@
<definition orientation="dyyy" version="0.51" width="50" height="10" type="element" hotspot_x="5" link_type="simple" hotspot_y="5">
<definition version="0.51" width="50" height="10" type="element" hotspot_x="5" link_type="simple" hotspot_y="5">
<uuid uuid="{5075e5fb-c219-4643-89b8-8096d090ff3d}"/>
<names>
<name lang="en">Insertion bridge (double width)</name>

View File

@@ -1,4 +1,4 @@
<definition height="90" hotspot_y="44" hotspot_x="15" version="0.5" orientation="dyyy" width="510" link_type="simple" type="element">
<definition height="90" hotspot_y="44" hotspot_x="15" version="0.5" width="510" link_type="simple" type="element">
<uuid uuid="{c17e98a3-738f-4c7a-ac89-91bb4c08fb45}"/>
<names>
<name lang="fr">Connecteur 25 fiches</name>

View File

@@ -1,4 +1,4 @@
<definition height="80" hotspot_y="67" hotspot_x="15" version="0.5" orientation="dyyy" width="30" link_type="simple" type="element">
<definition height="80" hotspot_y="67" hotspot_x="15" version="0.5" width="30" link_type="simple" type="element">
<uuid uuid="{116e1210-b7f9-4737-a94f-1034ecb45cc4}"/>
<names>
<name lang="fr">Appareil (connexion en bas)</name>

View File

@@ -1,4 +1,4 @@
<definition height="80" hotspot_y="13" hotspot_x="15" version="0.5" orientation="dyyy" width="30" link_type="simple" type="element">
<definition height="80" hotspot_y="13" hotspot_x="15" version="0.5" width="30" link_type="simple" type="element">
<uuid uuid="{e396fc1b-28d7-4978-879a-9b666a2648d3}"/>
<names>
<name lang="fr">Appareil (connexion en bas)</name>

View File

@@ -1,4 +1,4 @@
<definition orientation="dyyy" version="0.51" width="30" height="80" type="element" hotspot_x="15" link_type="simple" hotspot_y="67">
<definition version="0.51" width="30" height="80" type="element" hotspot_x="15" link_type="simple" hotspot_y="67">
<uuid uuid="{bf7c6c86-5f96-4644-9f0f-004abccc79ad}"/>
<names>
<name lang="fr">Appareil (connexion en bas) - début</name>

Some files were not shown because too many files have changed in this diff Show More