Commit Graph

616 Commits

Author SHA1 Message Date
blacksun
0306bace46 QETshapeItem rectangle can have rounded corner.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5436 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-07-12 10:01:34 +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
0f4a058e63 git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5420 bfdf4180-ca20-0410-9c96-a3a8aa849046 2018-07-01 18:35:03 +00:00
blacksun
3ff5b00953 Minor code refactoring
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5417 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-06-29 07:55:48 +00:00
blacksun
ea3b25fa75 Element text item group can now be framed.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5410 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-06-24 11:16:37 +00:00
blacksun
de9096d8a2 Widget used to edit text item group can edit the pos of the group.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5408 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-06-21 18:44:13 +00:00
blacksun
4cdd17e21f forget files from previous comit
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5407 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-06-21 18:02:58 +00:00
blacksun
749e0e5e78 Fix : in some condition, dynamic text are not at the same position when open a project.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5406 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-06-21 17:57:33 +00:00
blacksun
52eb4b5f71 Diagram editor : add 4 tools for edit the depth (Z value) of items.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5394 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-06-17 18:21:56 +00:00
blacksun
43f7bad2d0 Fix : clear the element texts when paste an element with the option "Do not store the labels of items in the copy paste" enabled
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5385 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-06-03 18:13:25 +00:00
blacksun
bca58fa555 Conductor is an herited class of QGraphicsObject, instead of QObject and QGraphicsPathItem
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5371 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-05-18 19:36:27 +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
f975cb4d3b Fix : element text item alignment work well when text rotation != 0.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5357 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-05-12 12:59:49 +00:00
blacksun
609fcc351f Dynamic element text item : add new feature -> alignment
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5353 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-05-11 18:14:41 +00:00
blacksun
aaea6968d0 fix bug
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5343 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-04-28 13:56:04 +00:00
blacksun
d53f830ad9 Text of conductor can be placed at top/bottom/left/right of conductor, and text never overlaps the conductor.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5342 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-04-28 13:35:23 +00:00
blacksun
c96593e373 Multipaste : improve the conductor autonum, conductors are numerated from top to bottom, and left to right
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5340 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-04-24 17:23:27 +00:00
blacksun
e3930df5b5 multi past dialog : add check box for autonum the pasted element
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5333 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-04-12 17:59:05 +00:00
blacksun
ad7f52997d Minor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5330 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-04-12 16:01:00 +00:00
blacksun
7b9fbb3382 dynamic element text item : "label" is not updated when report are unlinked, or when a folio is removed.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5329 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-04-11 17:47:45 +00:00
blacksun
8d56e7809c Function for search conductor at the same potential.
When the search function is searching in a terminal element, they search only for the first terminal found, no matter if the terminal element have more than two terminals.
So the list of conductors at the same potential is missing some conductors.
This commit fix it, now the search function search for every terminals of a terminal element 


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5307 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-04-07 13:25:05 +00:00
blacksun
fa547a34c8 Fix compilation warning (clang and gcc)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5301 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-04-05 18:49:28 +00:00
blacksun
22f95c22f0 simplify some code
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5299 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-04-05 09:37:35 +00:00
blacksun
819c6c6f86 QetGraphicsItem, remove the function applyRotation and rotateBy, and use instead the native function of QGraphicsItem : setRotation
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5281 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-03-27 19:04:43 +00:00
blacksun
da186f2efb Remove the class fixed element
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5280 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-03-25 18:56:16 +00:00
blacksun
37ef43b97b clean some code
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5279 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-03-25 18:42:18 +00:00
blacksun
d44ead205b Fix : rotation of independent text item is not saved
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5278 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-03-25 18:20:54 +00:00
blacksun
6a958c668a remove the class comment item
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5277 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-03-25 14:58:33 +00:00
blacksun
a7917bb5bb Remove the class element text item.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5276 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-03-25 14:33:49 +00:00
blacksun
f2fd446bb5 Fix : Composite text dialog widget can't be selected when he is open by the element properties dialog widget
Fix : The ui freeze when use the drag and drop in the tab widget "texts" of element properties, when he is displayed by the element properties dialog widget.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5268 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-03-13 16:20:59 +00:00
blacksun
cbfd8fbc59 Fix compil fail, forget an include
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5261 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-03-11 13:10:49 +00:00
blacksun
275f20fa61 Element editor : dynamic text field can be set with element info as source of text.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5260 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-03-11 12:59:53 +00:00
scorpio810
9af3b48f70 Add Gabberworld patch for fix bug N°153, thanks
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5257 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-03-08 23:45:08 +00:00
blacksun
eb8294cdbd Fix bug N°153
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5250 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-03-01 18:45:40 +00:00
blacksun
0fe955ec86 Bug fix
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5249 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-03-01 18:38:37 +00:00
scorpio810
b94ed5674c Fix element mixed with link report properties on new dynamic text
grouping conversion.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5248 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-03-01 13:36:18 +00:00
blacksun
7a64f88341 Fix : Element text item doesn't display label, when autonum is used.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5246 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-02-26 15:27:42 +00:00
scorpio810
fc05a2f2ec Add some colors for basic shapes inside dxf, thanks Gabberworld for this
patch


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5238 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-02-11 16:14:53 +00:00
scorpio810
ea8ee983df Fix crash if location text is so long (typo in code), thanks David666 to
report it


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5231 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-02-07 00:20:50 +00:00
blacksun
a49769970e forget file from previous commit
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5225 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-02-01 18:42:26 +00:00
blacksun
70fbce280f Element text item group : add new property -> hold to bottom of the page
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5224 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-02-01 18:40:12 +00:00
blacksun
8e74d88e65 Fix wrong behavior when move a text item group, with rotation different than 0
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5223 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-01-28 11:16:09 +00:00
blacksun
31fcec10ff Dynamic element text item : Add a new option "width" for define the width of the text.
If the text is wider than the defined width, the text is broken into multiple line.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5220 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-01-26 18:49:38 +00:00
blacksun
d85e395b46 Element text item with are now converted to dynamic element text item.
From now, the class ElementTextItem is not anymore use in qet. Every texts in a diagram are DynamicElementTextItem.
the Xref item was adapted to dynamic text.
Previously, the comment and location, displayed as a "static text" below the "old text" tagged "label" are now automaticaly converted to DynamicElementTextItem, so visually, these texts stay unchanged 


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5216 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-01-19 12:17:20 +00:00
blacksun
1b18b980a9 User can export / import the configuration of the texts and texts group of an element.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5195 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-12-30 14:41:25 +00:00
blacksun
94d52880a7 Element texts group can be renamed
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5191 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-12-18 20:05:00 +00:00
blacksun
3340489145 Dynamic element text item : remove the "tagg" property:
Tree Widget for edit the element text item :
-Change a value of a spinbox with the mouse wheel, apply the change in live (no need to press enter or leave focus).
-Remove the sub-level of source of text.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5182 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-12-13 21:15:05 +00:00
scorpio810
f873ab73c5 Minor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5178 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-12-12 18:05:22 +00:00
blacksun
292c45166a Element text item group : Add new property for edit the adjustment of the space between texts
Dynamic element text item editor : Add new entry for edit the alignment, rotation and vertical adjustment of a group
Element Mover : Minor, remove the group texts from the moved content


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5165 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-12-10 14:31:27 +00:00
scorpio810
7c8ea795e4 Dissociate fonts policy and size for independent text item
Possiblility to overide defaut settings by adding in QElectroTech.conf
diagramitemsize, diagramitemfont variable, for example: 
[General]
diagramitemsize=12
diagramitemfont=droid


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5163 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-12-10 01:03:36 +00:00