Commit Graph

616 Commits

Author SHA1 Message Date
blacksun
1a1dbbc3be master element: add auto label when "comment" isn't empty and must show
element info widget -> comment line: must show is checked by default


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2951 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-31 16:02:47 +00:00
blacksun
9766b8f01e cross ref item: improve improve the position of the comment at the bottom of the cross
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2950 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-28 10:33:14 +00:00
blacksun
0c486bcb09 cross ref item : show the master comment at the bottom of cross
element : improve the function to sort an element list
qet graphics item : add a bool to disable the snap to grid (used for cross ref item, to be exactly at the bottom of element)


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2948 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-26 10:41:06 +00:00
blacksun
0109a5d188 slave element: when linked to master, label is replaced by the label of master, and show the position of the master
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2946 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-21 14:40:33 +00:00
scorpio810
0570862e41 cross ref item:reduce table and redrawing symbolic by joshua
Basic shapes: workaround,pen set with 1px only in Win OS


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2944 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-21 02:28:47 +00:00
scorpio810
5760403f11 Basic shapes: after many print tests retore line with 1.0
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2943 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-20 14:09:31 +00:00
scorpio810
2c6ebeeeeb cross ref item:reduce pixel table for printers
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2942 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-20 13:56:53 +00:00
scorpio810
3612bd0fad cross ref item:restore cosmetic for text
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2941 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-20 13:47:58 +00:00
scorpio810
68a6fcab75 cross ref item: redraw symbolic contacts for reduce size
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2940 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-20 13:32:41 +00:00
scorpio810
246910ba84 Basic shapes crossrefitem: update to cosmetic changes
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2939 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-20 11:56:06 +00:00
scorpio810
25e0ace619 Fix typo in previous commit
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2937 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-19 16:29:25 +00:00
scorpio810
c21f0b4017 crossrefitem fix printing on X11
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2936 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-19 15:18:25 +00:00
scorpio810
d34c15537c Basic shapes: better fix
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2935 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-19 14:56:06 +00:00
scorpio810
64b706c30f Basic shapes:fix line type on MS Windows printing
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2934 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-19 14:30:27 +00:00
blacksun
e516cc6a87 add function to sort an elements list by the positions of elements.
this function is use by:
cross ref item -> shild are always sorted
element selector widget -> list of widget are sorted.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2931 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-18 12:35:36 +00:00
blacksun
0d536f9c21 cross ref item: use symbolic contact instead of text NO NC (No need to translate, understand everywhere)
Element selector widget: add label of element.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2929 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-17 17:58:04 +00:00
blacksun
48e37ce3c9 bug fix: cross ref item doesn't update when shild is moving
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2924 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-14 14:45:54 +00:00
blacksun
6c77a8ae07 cross ref item : grow the size of the cross according to the number of linked elements
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2923 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-13 14:59:40 +00:00
scorpio810
d5817fc557 Minor change
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2913 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-08 13:45:36 +00:00
abhishekm71
7242854045 Basic Shapes: Move coords corrected for XML, DXF export
(Bounding Rectangle had to be updated with each move)



git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2912 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-07 12:34:47 +00:00
abhishekm71
82ad6168c1 Basic Shapes: Edit property(style) added, undo/redo style added
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2910 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-07 08:05:25 +00:00
abhishekm71
dbd1607a7a Basic Shape Delete/CUT/Copy: Keyboard Shortcuts now possible
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2909 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-06 15:40:18 +00:00
blacksun
020d4f575c add cross reference graphic item, only for master element.
(basic implementation, need to be improved)


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2906 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-03 17:31:45 +00:00
abhishekm71
d80a2289d6 Basic Shape: qgraphicsitem_cast<> instead of dynamic_cast
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2897 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-02 13:49:11 +00:00
blacksun
578cda387b Move load of kind information from element to custom element, because the kind information
belong to the element definition, so custom element.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2896 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-03-02 11:15:59 +00:00
abhishekm71
092c638868 Basic Shapes: XML export/import added.
Many files were changed, so debugging required.
Minor Bug exists: 
If we export to xml first time, it is OK. But if we then add another shape and then export, then the new shape is not added in XML.
Reason: UndoAction not implemented at present for basi shape addition.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2888 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-02-28 14:30:59 +00:00
abhishekm71
0af7b828b0 Basic Shapes: DXF Export added.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2886 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-02-28 08:20:00 +00:00
scorpio810
ece4baca66 Basic shapes add setRenderHint(QPainter::Antialiasing, false);
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2880 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-02-27 12:54:09 +00:00
abhishekm71
8e4c71c3e7 Basic shapes: Items can be selected and moved (thanks joshua)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2879 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-02-27 09:55:54 +00:00
abhishekm71
25aa9603fc Basic Shapes: Dynamic Preview added when constructing the shape.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2876 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-02-24 14:22:26 +00:00
abhishekm71
b0e9e7efc1 Basic Primitive shapes added (line,rectangle,ellipse). Default style dashed.
Pending work:
1. DXF Export
2. XML Import / Export
3. Properties Edit option (line style/colour/weight)
4. Debugging required



git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2873 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-02-23 18:55:26 +00:00
blacksun
105c1c87b6 element master widget property: improve gui.
add slave element class.
element class: replace diagramcontext informations by elementInformations because informations is already used in xml file for element.
minor improvement.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2869 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-02-22 17:24:20 +00:00
blacksun
cddc841916 add base for master element feature
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2863 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-02-18 20:44:54 +00:00
blacksun
3eaa0fe823 remove unused include, can't compil.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2851 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-02-12 17:46:23 +00:00
blacksun
b361788873 Add ability to store informations for element like label, manufacturer, ref etc....
Add widget to edit it, save/load works
Informations are stored in a diagramcontext, this class was modified (new feature) to store information
but keep compatibilty with older version.  


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2850 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-02-12 17:36:35 +00:00
blacksun
801a2d298f bug fix: segfault when load project with folio report linked but without the same potential text
(Assert QList(), in conductor.cpp)


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2815 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-02-06 21:35:13 +00:00
blacksun
5ace5ba5ee When link report, check if all text of the potential is equal.
If not ask user what must to do.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2801 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-02-04 18:03:02 +00:00
scorpio810
433ebc7158 Update Copyright to 2014
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2792 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-01-29 18:37:45 +00:00
blacksun
c3042460e2 Bug fix: Paste element, make new uuid for the element.
In previous version, uuid are same whith copied and paste element.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2784 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-01-28 10:45:45 +00:00
scorpio810
6d1d4e3bb8 Update Copyright
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2780 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-01-27 03:00:37 +00:00
blacksun
e1f9a26f4d folio report: add user able to make custom label.
Revamp GUI dialog for new diagram configuration.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2749 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-01-18 19:04:39 +00:00
abhishekm71
9699f8d010 DXF Export: Added Ellipse and Element Text Document for export.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2746 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-01-18 12:23:35 +00:00
blacksun
d25e07db7c element text item: element isn't movable by defaut,
for move text we must hold ctrl key


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2734 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-01-11 18:09:04 +00:00
abhishekm71
8c86ced6df Bug Fix: Extra line in polygon of elements and arcs and ellipses added.
Arcs and ellipses are approximated with circles at present.
Also, element rotation is not supported right now. Needs to be added.



git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2733 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-01-11 08:31:39 +00:00
abhishekm71
ea953c4c4c DXF Export: Added some parts of elements:
1. lines
2. rectangles
3. circles
4. polygons

Coordinate accuracy to be checked. More element parts to be added.




git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2732 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-01-10 18:25:14 +00:00
blacksun
6e58482495 add undo command for linkable element
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2716 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-01-07 20:11:28 +00:00
scorpio810
c7660de89a test
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2705 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-01-04 16:27:07 +00:00
blacksun
c795bf72fc folio report can only be linked to inverted folio report
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2694 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-01-01 19:21:10 +00:00
blacksun
c58448bf76 update folio report when move diagram position
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2692 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-01-01 16:28:19 +00:00
blacksun
cd9e78a49f Electric potential search: folio report are take into account
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2689 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-12-31 17:01:14 +00:00