Commit Graph

331 Commits

Author SHA1 Message Date
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
Claveau Joshua
0aae330bef Minor : improve layout for low resolution screen 2020-05-01 18:33:11 +02:00
Laurent Trinques
081f44f8be Element Editor add new ColorHTML, THANKS Arnaud for the patch 2020-04-15 10:27:54 +02:00
Claveau Joshua
55876293bc Replace minus (-) by underscore (_) in all element information 2020-04-12 19:45:19 +02:00
Laurent Trinques
85a2600e58 Improve files names extension for Gnome DE and Flatpak 2020-02-26 14:50:56 +01:00
Laurent Trinques
41af7abadb Fix typo 2019-11-18 12:53:05 +01:00
Laurent Trinques
a0a7513847 Replance Q_OS_MAC Deprecated by Q_OS_MACOS 2019-09-08 18:29:29 +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
joshua
519517a8fd Minor : fix typo 2019-09-02 20:37:33 +02:00
joshua
86b610dc84 Element editor : improve polygon edition 2019-09-01 21:05:33 +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
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
Laurent Trinques
f5a22b61c7 Fix lintian spelling_error 2019-07-20 14:27:52 +02: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
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
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
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
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
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
blacksun
acab6f3dc3 Really fix the removing of carriage return and line feed.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5817 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-03-31 18:43:45 +00:00
blacksun
a7f4be0c12 Same as previous commit, for the element editor.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5816 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-03-31 13:49:07 +00:00
blacksun
32e2fd3c89 Replace deprecated QMatrix by QTransform
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5801 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-03-18 20:14:36 +00:00
blacksun
1ac950cd81 Replace Q_ENUMS (with S, deprecated since Qt5.5) by Q_ENUM (without S)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5800 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-03-18 19:49:12 +00:00
blacksun
47b78bfec1 use KColorButton instead of QPushButton when needed
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5787 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-03-15 18:07:57 +00:00
blacksun
ad76d438ef Element editor :
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. 


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5775 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-03-10 17:58:33 +00:00
scorpio810
3ed7a4e63b Minor : update Copyright date
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5705 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-01-13 16:56:12 +00:00
blacksun
04e890ab7d NameList widget : add a combo box for easily paste texts, like the variables for title block.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5687 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-01-02 16:56:46 +00:00
scorpio810
2fe25e74fa Minor : indentation
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5630 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-12-04 22:33:11 +00:00
nuri
f27954e507 Correction of some french and english notions and correction of typos. Variable %machine changed in %plant.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5629 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-12-04 19:07:14 +00:00
scorpio810
4ba3f477f8 Add new field "Group function" on properties of the selection widget and
for csv export


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5627 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-12-03 13:13:27 +00:00
scorpio810
e0c6cc6768 Add new fields "Quantity, Unity" onproperties of the selection widget
and for csv export


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5626 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-12-02 15:54:08 +00:00
blacksun
e8c03da193 Element editor bug fix : Unable to clear an information of the edited element (label, manufacturer etc...).
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5625 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-12-01 20:12:24 +00:00
scorpio810
58fb59491b Revert last commits
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5624 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-12-01 12:55:05 +00:00
scorpio810
ee91337d75 Add new fild and titleblock "Function group"
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5622 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-11-30 23:53:13 +00:00
scorpio810
a4508008d4 Force set dynamic text length to default -1
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5618 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-11-29 09:48:51 +00:00
blacksun
d8ed6a5130 Change xml tag name : dynamicitemfont
by : font_family


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5604 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-11-24 21:26:24 +00:00
scorpio810
9e7899fd40 Add a new tab in settings, user can select a font size, a rotation angle
and a text width by default for new dynamic text, it work also in
element editor command.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5568 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-10-26 23:42:49 +00:00
blacksun
e6d73977c1 1-Use the "implicite shared" of Qt for the QPicture and QPixmap of element (https://doc.qt.io/qt-5/implicit-sharing.html).
This avoid to parse the same element definition each time user drop the same element in the diagram.
Only the first element build the picture, all other get the created picture which is shared.

2- For use the "implicite shared" QPicture and QPixmap of element, now this isn't the element who build her picture, but a dedicated class who made only this job : build the QPicture and QPixmap of elements.

3- With the two previous novelty, the class CustomElement and GhostElement are became useless, and so was removed.
Some few member function of CustomElement was moved to Element.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5492 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-08-23 19:41:58 +00:00
scorpio810
30bee81432 Revert r5449 and disable r5452 momentary : Load time from elements is
very slow


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5461 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-07-30 15:24:29 +00:00
scorpio810
b97b01d63c Apply clang-tidy's modernize-use-auto
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5449 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-07-19 16:27:20 +00:00
scorpio810
e4b1ba9797 Apply clang-tidy's performance-unnecessary-value-param, performance-for-
range-copy


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5448 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-07-19 14:14:31 +00:00
blacksun
18a295fa4a Element editor : add rounded rect
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5444 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-07-17 12:19:56 +00:00
blacksun
9db5c4fe9f Fix bug when resize the angle of a part arc with the handles.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5435 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-07-11 09:28:38 +00:00
blacksun
57e5ccd943 Mutualize code
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5427 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-07-03 14:25:46 +00:00
blacksun
28faaf12c5 Element editor : add two new actions in context menu for insert or remove point of a selected polygon.
All parts items : remove the 'open hand cursor' when hover a selected part.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5419 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-06-30 21:41:27 +00:00
blacksun
24812944eb Forget qet.cpp and qet.h from previous comit.
Add new function for create QAction used for edit the depth of items.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5402 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-06-20 18:35:06 +00:00
blacksun
cc9184c0b6 Fix : element text alignment work also when font size change.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5370 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-05-18 18:28:04 +00:00
blacksun
31e6db8757 Element editor : alignment of text field can be edited
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5362 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-05-13 19:03:38 +00:00