185 Commits

Author SHA1 Message Date
blacksun
9d9f6bd0db Add flags for qmake to use C++11
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3079 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-05-26 14:42:00 +00:00
abhishekm71
215e268467 QetShapeItem: Add Scale option with UNDO/REDO
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3078 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-05-25 18:33:06 +00:00
blacksun
2e2ac0cb61 Xref item: minor improvement
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3066 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-05-13 19:28:11 +00:00
blacksun
7b7471c14c cross ref item: min cross size is set for 4 contacts.
cross ref item: improve code (will be faster)


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3065 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-05-13 17:37:14 +00:00
blacksun
56bf8b1c6b Cross ref item: when xref is show has table, user can add prefix to the text of power and delay contact.
Minor improvemnt: the table update is size according to his content


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3060 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-05-07 20:56:51 +00:00
scorpio810
3c3a7c9255 Bugfix:foliolist and shapeitem are now translated
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3043 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-05-03 00:37:57 +00:00
blacksun
af22c5bc70 improve behavior of Xref item (must show or not the power contact)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3042 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-05-02 18:14:42 +00:00
scorpio810
1148cd8557 Basic shapes, Workaround: QCheckBox cb(tr("Verrouiller la position") setVisible(false);
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3037 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-04-29 03:47:37 +00:00
blacksun
1cd9c4b28c cross ref item: bugfix
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3035 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-04-28 19:00:49 +00:00
blacksun
91552373cf Cross ref item: user can select if xref must be displayed has a table or a contacts list.
Option is found in config dialog under the tab Cross ref.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3033 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-04-28 15:41:58 +00:00
blacksun
eee2a9181e Bug fix: qet crash when close a diagram with a cross ref item.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3015 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-04-20 23:37:03 +00:00
blacksun
b4999bfafb fix some memory leaks
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3012 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-04-19 12:56:30 +00:00
blacksun
0f5154ed55 cross ref item: comment is wrapped for better visual
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2990 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-04-16 19:39:20 +00:00
blacksun
ff14edda6b Cross ref item, check properties for show power contacts or not.
Change properties in project is applied immediately to cross ref


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2985 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-04-12 12:51:25 +00:00
blacksun
c7fe3f583b bug fix: cross ref item have wrong behavior when rotate is master. (thanks mmiacca)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2984 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-04-12 01:26:19 +00:00
blacksun
1ce608e7df cross ref item: don't show postion of element 'power'.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2959 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-04-02 17:36:40 +00:00
blacksun
07eed05123 improve commit 2954
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2956 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-04-02 16:57:13 +00:00
scorpio810
5f7836710a cross ref item: bug fix
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2954 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-04-01 01:58:37 +00:00
scorpio810
28e41fd4cb cross ref item: refresh table align
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2953 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-04-01 01:45:53 +00:00
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