175 Commits

Author SHA1 Message Date
blacksun
195494cf83 element editor bug fix:
at save, if element aren't drawn at the origin point (red cross),
we move element to the nearest point of origin


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2553 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-09-21 13:09:23 +00:00
blacksun
8201daa564 element editor: improve context menu and fix the end of polygon
diagram: fix memory leak


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2544 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-09-17 20:14:30 +00:00
scorpio810
d12793e95b Element editor context menu: adding a submenu
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2539 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-09-15 11:21:07 +00:00
scorpio810
e6f082f6af Fix hotspot auto when importing element in the draw area
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2536 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-09-14 19:44:07 +00:00
scorpio810
74354275f3 Element editor update context menu end
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2535 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-09-14 14:42:24 +00:00
scorpio810
1e7f23ec58 Element editor update context menu.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2534 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-09-14 13:36:06 +00:00
scorpio810
f7973f43ae Element editor: add context menu
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2533 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-09-14 13:11:32 +00:00
scorpio810
ab0afb7596 Element editor: disable zoomFit after paste a primitive.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2531 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-09-14 03:29:35 +00:00
blacksun
835288f02f element editor: improve the drag of the scene with wheel click
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2419 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-08-08 19:58:15 +00:00
blacksun
302b519dfb Remove file and code, because unused with the new auto hotspot
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2410 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-08-05 13:20:57 +00:00
blacksun
006d117edc element editor bugfix: when close the editor and a primitive have focus, qet crash
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2408 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-08-03 12:00:32 +00:00
blacksun
c0920f1118 element editor: improve the autosize of element
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2406 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-08-01 23:17:39 +00:00
blacksun
2d0bdb72f0 previous comit was wrong, this is good bugfix
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2402 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-07-28 22:48:36 +00:00
blacksun
ee02965880 element editor bugfix: after reload element, add a primitive crash qet
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2401 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-07-28 21:55:02 +00:00
scorpio810
20f37a2595 Element editor: disable action reload temporarily, elements after reload action are not editable.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2400 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-07-28 14:42:24 +00:00
scorpio810
2306413b64 Disable checkElement in slot_save.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2399 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-07-28 13:09:17 +00:00
blacksun
ef124bbdeb element editor: start work to define automatically the size of element
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2398 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-07-28 00:23:10 +00:00
blacksun
df16f13c86 editor element: color selection, change radio button by combobox
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2330 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-06-23 19:16:14 +00:00
scorpio810
c71ed69342 Updated Copyright 2006-2013
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2288 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-06-18 11:10:19 +00:00
scorpio810
0ab769d8c2 qetelementeditor: added warnings when close editor if primitives seem to be out of the element bordenow and change method
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2276 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-06-16 05:36:57 +00:00
scorpio810
461d8fe16e element editor: remove the possible bypass action by close window when save element
if seem to be out of the element bordenow, now check and don't save same if user responds yes,
it now close editor and don't save element .
Cette ligne, et les suivantes ci-dessous, seront ignorées--

M    sources/editor/qetelementeditor.cpp


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2273 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-06-15 16:40:41 +00:00
scorpio810
595a2e00d4 Fix compil error
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2271 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-06-15 09:33:18 +00:00
scorpio810
eb920104d5 Refresh qetelementeditor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2267 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-06-14 08:27:11 +00:00
scorpio810
2822c7c51f qetelementeditor check element if it seem to be out of the element border and set all actions save to disable.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2261 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-06-13 11:36:19 +00:00
scorpio810
7058fcfd87 Added warnings if disable every save if a primitive is out of the hospot
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2250 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-06-11 18:56:30 +00:00
blacksun
929c185525 element editor: disable every save if a primitive is out of the hospot
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2248 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-06-11 16:48:15 +00:00
scorpio810
fdcf1e3608 Refresh qetelementeditor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2247 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-06-11 16:27:16 +00:00
scorpio810
03672b8046 Add method to don't save, save as save to file a element if it seem to be out of the element border (hotspot).
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2246 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-06-11 16:15:29 +00:00
scorpio810
a830d61bd8 Add method to don't save a element if it seem to be out of the element border (hotspot).
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2244 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-06-11 10:30:01 +00:00
scorpio810
25d3622d63 Add dashdotted_style for line in symbol editor.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2193 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-06-01 16:09:58 +00:00
scorpio810
ed235184ee Refresh customelementgraphicpart.cpp and update .TS files
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2188 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-05-31 14:29:08 +00:00
scorpio810
4b969c2323 Add basic color line in symbol editor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2187 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-05-31 13:30:50 +00:00
scorpio810
3a3732add3 Minor change.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2185 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-05-30 15:42:46 +00:00
scorpio810
36a7d81ce6 Minor change and updated TS file
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2182 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-05-29 13:29:53 +00:00
scorpio810
005107cb4d Add basic color for filling symbols
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2181 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-05-29 09:02:26 +00:00
blacksun
b837ffa0b1 element editor and diagram view, now can move view by holding wheel click and drag mouse
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2153 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-05-11 18:20:26 +00:00
scorpio810
d78a6ca56c Delete icons "zoom in/out in menubar in elementEditor && in diagramview, it 's now obsolete because: the MidButton click set selection or visualisation mode.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2116 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-04-16 12:36:24 +00:00
cfdev
5dc829569e Clean wheelEvent in diagramview and add the same system to element Editor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2115 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-04-16 12:00:41 +00:00
blacksun
c932a0f57b delete unnecessary code
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2111 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-04-15 12:07:59 +00:00
blacksun
aae0c96689 revert the way of scaling operations before rev 2108 except for vertical and horizontal line
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2110 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-04-14 19:36:02 +00:00
scorpio810
e6b68ebb0c Revert the way scaling operations get rounded for fix move/scale line primitive if horizontal or vertical
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2108 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-04-14 12:53:39 +00:00
xavier
5af8573960 Element editor: changed the way scaling operations get rounded.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2058 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-03-06 18:51:29 +00:00
xavier
d36820ca2b Element editor: removed the "circle" tool because it was incompatible with non 1:1 scaling operations.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2039 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-02-11 21:45:51 +00:00
xavier
d69130f3aa Element editor: the decorator now relies on sceneGeometricRect() instead of sceneBoundingRect().
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2036 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-02-11 18:35:16 +00:00
xavier
ec6ea11d0d Element editor: introduced CustomElementPart::sceneGeometricRect(), which provides a margin-less equivalent to sceneBoundingRect().
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2035 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-02-11 18:35:13 +00:00
xavier
036b2657a7 Element Editor does not apply the "paste offset" the first time cut content is pasted.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2032 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-02-09 19:46:14 +00:00
xavier
af3e9c7c04 Element editor: keyboard shortcuts work again.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2031 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-02-09 19:07:08 +00:00
xavier
47f9c5ebe6 ElementEditor: decorator: got rid of calls to grabKeyboard()
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2030 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-02-08 22:05:22 +00:00
xavier
e78b0d5804 Element editor: revamped ElementScene::zItems() to fulfil the needs of ElementScene::managePrimitivesGroups()
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2029 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-02-08 22:05:20 +00:00
xavier
1ba32a5b27 The primitive decorator now handles keyboard-driven movements.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2028 bfdf4180-ca20-0410-9c96-a3a8aa849046
2013-02-08 22:05:18 +00:00