84 Commits

Author SHA1 Message Date
blacksun
b9013a8914 Add bicolor conductor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4999 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-01 19:09:31 +00:00
scorpio810
41659fa6fd Revert r4900
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4902 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-02-05 16:18:50 +00:00
scorpio810
6422dd096f Replace foreach function by for, please try and report problem
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4900 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-02-04 21:43:23 +00:00
scorpio810
54c85db29c Minor update Copyright year
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4860 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-20 10:55:49 +00:00
blacksun
eee1095761 Minor fix : Conductor keep up to date there label, when the formula contain the variable %F, and the text pointed by %F contain the variable %id
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4858 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-19 14:18:41 +00:00
blacksun
7bad2f1b50 Text of conductor is updated when folio position change, if formula contain the variable %id.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4845 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-14 15:01:49 +00:00
blacksun
a6ace77052 Minor fix : in some condition when open a project, the conductors properties aren't well apply
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4836 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-08 11:01:03 +00:00
blacksun
1b8b901ef6 Minor fix : In some case, add a conductor in an existing potential, with a formula, display the formula instead of the final numerotation.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4826 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-12-30 20:15:18 +00:00
blacksun
14f02d4ed1 revert and merge rev 4823.
Fix : in old projects without the conductors formula, the conductors texts aren't loaded and displayed
Fix it in method void Conductor::refreshText()


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4825 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-12-28 10:03:47 +00:00
scorpio810
52f911887d Revert rev 4814 and 4820 momentarily
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4823 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-12-24 12:48:44 +00:00
blacksun
d8a374629b Modifie the text item of a conductor directly on a diagram also change the value of formula and label of the conductor property.
The change is apply for every conductors in the same potential


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4814 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-12-19 15:57:20 +00:00
blacksun
543578c3dc Conductor :
Use method toXml and fromXml of sequentialNumbers.
Use m_freeze_label instead of m_frozen_label to save the frozen status of the text item.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4807 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-12-12 10:52:44 +00:00
blacksun
9f014d55af Revamp struct sequenceStruct to class sequentialNumbers.
Element now use methods (toXml and fromXml) of sequentialNumbers to store and load sequential.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4803 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-12-08 15:06:46 +00:00
blacksun
7ab0115c62 Conductor : formula and text is now two different things.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4799 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-12-06 19:49:18 +00:00
blacksun
543c7b6b3e Move methods used for autonum and sequential value, from conductor and element class, to autonum namespace.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4790 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-11-22 17:21:53 +00:00
blacksun
1c5c0425fb Conductor : variable assignement of label is now managed by an external class instead of the conductor itself
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4775 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-11-11 16:37:37 +00:00
blacksun
b09cd6898c Bug fix : conductor don't apply text to text item
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4762 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-10-26 16:26:05 +00:00
blacksun
ea27c6f823 Probably fix the fucking crash of ghost conductor.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4752 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-10-20 12:35:44 +00:00
blacksun
0ea8b45f70 Fix wrong way to save number value in xml file. (store without local formating)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4748 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-10-17 19:41:44 +00:00
blacksun
6ea169e1f7 Bug fix : Conductor text with formula that contain %id isn't good when open project (variable %id is replaced by 0 in each folio)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4746 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-10-17 14:26:13 +00:00
blacksun
5c4ad9a0fd Fix bug 086: print text of conductor on top of conductor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4734 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-10-06 20:01:08 +00:00
scorpio810
24df870700 Minor : Assign new variables %M and %LM to Conductor Autonum
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4689 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-09-05 16:49:16 +00:00
dfochi
0f22bf4774 Fix Undo(Ctrl+Z) crash related with conductor frozen label. Prevent freezing blank label in conductor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4686 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-09-04 18:14:26 +00:00
dfochi
30a9aa9cfe Update Policy now works with conductor autonumberings
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4680 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-09-01 19:41:49 +00:00
dfochi
230700f845 Conductor Autonum now works with variables. Folio Autonumberings added to conductor autonum
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4674 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-08-29 15:37:42 +00:00
scorpio810
f13b329624 Fix ability conductor size less than 1, thanks Timbul Widodo
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4607 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-08-06 10:58:56 +00:00
scorpio810
4ed18b28aa Center cross junction ellipse, thank Timbul Widodo
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4606 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-08-05 15:41:46 +00:00
dfochi
4814ac812d Fix copy and paste crash of Elements with Sequential Autonum
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4593 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-07-26 20:40:54 +00:00
dfochi
138505a14e Fix Terminal Crash and corrected Terminal prefix behavior.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4590 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-07-25 14:17:54 +00:00
dfochi
989905da01 Conductor now support variables. (%F, %id, %total, %f and titleblock and project variables). Minor: labels that use %F update when folio field is changed
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4586 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-07-20 21:54:54 +00:00
scorpio810
e218228ea9 Increase size of the conductors junction points
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4572 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-07-13 04:57:02 +00:00
blacksun
167cba85e2 Change the Z value of conducteur (11) to be upper than an element (10).
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4506 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-05-23 13:57:01 +00:00
scorpio810
025fa64f67 Minor : update Copyright date
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4481 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-05-13 17:40:36 +00:00
scorpio810
47996a8028 For common properties for every conductors at the same potential,
add color and size type on related Potential Conductors


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4290 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-12-23 22:13:03 +00:00
scorpio810
2286036e67 Improve conductor bigger when is hovered
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4289 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-12-23 19:27:51 +00:00
scorpio810
ed4e16657f Improve Conductor Properties size function
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4288 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-12-23 18:41:13 +00:00
blacksun
65862756cb Conductor : minor change
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4203 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-09-15 08:20:39 +00:00
blacksun
6b17088116 Element editor : Add new tagg for text field (function and tension/protocol).
Report element : text field tagged function or tension/protocol display the function tension/protocol of the potential.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4195 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-09-10 08:48:33 +00:00
blacksun
1bdb13594b Conductor properties : Add two value, function and tension/protocol.
Revamp some widget to edit it.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4172 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-08-29 14:18:30 +00:00
blacksun
3336237a3f Conductor : remove the possibility to have different texts on the same potential
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4150 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-08-22 13:18:20 +00:00
blacksun
ed75c57c1d Use QPropertyUndoCommand instead of ChangeSeveralConductorsPropertiesCommand and ChangeConductorsPropertiesCommand.
Remove class ChangeSeveralConductorsPropertiesCommand and ChangeConductorsPropertiesCommand.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4092 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-08-09 12:06:31 +00:00
blacksun
4142f9c6a2 Bug fix : Qet crash when load a conductor without two terminal (because the allocation of a new conductor fail)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3974 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-05-18 22:19:14 +00:00
scorpio810
81c684ca49 Merge Qt5 branch sources folder to trunk
-Cette ligne, et les suivantes ci-dessous, seront ignorées--

M    sources/aboutqet.cpp
M    sources/bordertitleblock.cpp
M    sources/conductorproperties.h
M    sources/configdialog.cpp
M    sources/configpages.cpp
M    sources/configpages.h
M    sources/createdxf.h
M    sources/diagram.cpp
M    sources/diagram.h
M    sources/diagramcommands.cpp
M    sources/diagramcommands.h
M    sources/diagramprintdialog.cpp
M    sources/diagramprintdialog.h
M    sources/diagramschooser.cpp
M    sources/diagramschooser.h
M    sources/diagramview.cpp
M    sources/diagramview.h
M    sources/dvevent/dveventaddimage.cpp
M    sources/dvevent/dveventaddshape.cpp
M    sources/editor/arceditor.cpp
M    sources/editor/arceditor.h
M    sources/editor/editorcommands.cpp
M    sources/editor/editorcommands.h
M    sources/editor/elementitemeditor.h
M    sources/editor/elementprimitivedecorator.cpp
M    sources/editor/elementscene.cpp
M    sources/editor/elementscene.h
M    sources/editor/elementview.cpp
M    sources/editor/ellipseeditor.cpp
M    sources/editor/ellipseeditor.h
M    sources/editor/esevent/eseventaddtext.cpp
M    sources/editor/esevent/eseventaddtextfield.cpp
M    sources/editor/esevent/eseventinterface.cpp
M    sources/editor/graphicspart/customelementpart.h
M    sources/editor/graphicspart/parttext.cpp
M    sources/editor/graphicspart/parttext.h
M    sources/editor/graphicspart/parttextfield.cpp
M    sources/editor/graphicspart/parttextfield.h
M    sources/editor/lineeditor.cpp
M    sources/editor/lineeditor.h
M    sources/editor/polygoneditor.cpp
M    sources/editor/qetelementeditor.cpp
M    sources/editor/qetelementeditor.h
M    sources/editor/rectangleeditor.cpp
M    sources/editor/rectangleeditor.h
M    sources/editor/styleeditor.cpp
M    sources/editor/styleeditor.h
M    sources/editor/terminaleditor.cpp
M    sources/editor/terminaleditor.h
M    sources/editor/texteditor.cpp
M    sources/editor/texteditor.h
M    sources/editor/textfieldeditor.cpp
M    sources/editor/textfieldeditor.h
M    sources/editor/ui/elementpropertieseditorwidget.cpp
M    sources/elementdefinition.cpp
M    sources/elementdeleter.cpp
M    sources/elementdeleter.h
M    sources/elementdialog.cpp
M    sources/elementscategorieslist.h
M    sources/elementscategorieswidget.cpp
M    sources/elementscategorieswidget.h
M    sources/elementscategory.cpp
M    sources/elementscategorydeleter.cpp
M    sources/elementscategorydeleter.h
M    sources/elementscategoryeditor.cpp
M    sources/elementscategoryeditor.h
M    sources/elementscollection.cpp
M    sources/elementscollectioncache.cpp
M    sources/elementspanel.cpp
M    sources/elementspanel.h
M    sources/elementspanelwidget.cpp
M    sources/elementspanelwidget.h
M    sources/elementtextsmover.h
M    sources/exportdialog.cpp
M    sources/exportdialog.h
M    sources/exportproperties.cpp
M    sources/exportpropertieswidget.cpp
M    sources/exportpropertieswidget.h
M    sources/genericpanel.cpp
M    sources/integrationmoveelementshandler.cpp
M    sources/integrationmoveelementshandler.h
M    sources/interactivemoveelementshandler.cpp
M    sources/nameslistwidget.cpp
M    sources/nameslistwidget.h
M    sources/newelementwizard.cpp
M    sources/newelementwizard.h
M    sources/nomenclature.cpp
M    sources/nomenclature.h
M    sources/projectconfigpages.cpp
M    sources/projectview.cpp
M    sources/projectview.h
M    sources/qet.cpp
M    sources/qetapp.cpp
M    sources/qetapp.h
M    sources/qetdiagrameditor.cpp
M    sources/qetdiagrameditor.h
M    sources/qetgraphicsitem/conductor.cpp
M    sources/qetgraphicsitem/conductortextitem.cpp
M    sources/qetgraphicsitem/customelement.cpp
M    sources/qetgraphicsitem/diagramimageitem.cpp
M    sources/qetgraphicsitem/diagramtextitem.cpp
M    sources/qetgraphicsitem/diagramtextitem.h
M    sources/qetgraphicsitem/element.cpp
M    sources/qetgraphicsitem/ghostelement.cpp
M    sources/qetgraphicsitem/qetshapeitem.cpp
M    sources/qetgraphicsitem/terminal.cpp
M    sources/qetgraphicsitem/terminal.h
M    sources/qeticons.cpp
M    sources/qeticons.h
M    sources/qetmainwindow.cpp
M    sources/qetmessagebox.cpp
M    sources/qetmessagebox.h
M    sources/qetprintpreviewdialog.cpp
M    sources/qetprintpreviewdialog.h
M    sources/qetproject.cpp
M    sources/qetsingleapplication.cpp
M    sources/qettabbar.h
M    sources/qfilenameedit.cpp
M    sources/qtextorientationspinboxwidget.cpp
M    sources/qtextorientationspinboxwidget.h
M    sources/qtextorientationwidget.cpp
M    sources/qtextorientationwidget.h
M    sources/richtext/richtexteditor.cpp
M    sources/richtext/richtexteditor_p.h
M    sources/richtext/ui_addlinkdialog.h
M    sources/titleblock/dimensionwidget.h
M    sources/titleblock/gridlayoutanimation.h
M    sources/titleblock/helpercell.h
M    sources/titleblock/integrationmovetemplateshandler.cpp
M    sources/titleblock/integrationmovetemplateshandler.h
M    sources/titleblock/qettemplateeditor.cpp
M    sources/titleblock/qettemplateeditor.h
M    sources/titleblock/templatecellsset.h
M    sources/titleblock/templatecellwidget.cpp
M    sources/titleblock/templatecellwidget.h
M    sources/titleblock/templatecommands.cpp
M    sources/titleblock/templatedeleter.cpp
M    sources/titleblock/templatedeleter.h
M    sources/titleblock/templatelocationchooser.cpp
M    sources/titleblock/templatelocationchooser.h
M    sources/titleblock/templatelocationsaver.cpp
M    sources/titleblock/templatelocationsaver.h
M    sources/titleblock/templatelogomanager.cpp
M    sources/titleblock/templatelogomanager.h
M    sources/titleblock/templateview.cpp
M    sources/titleblock/templatevisualcell.h
M    sources/titleblockcell.cpp
M    sources/titleblocktemplate.cpp
M    sources/treecoloranimation.h
M    sources/ui/conductorpropertieswidget.cpp
M    sources/ui/diagrampropertiesdialog.cpp
M    sources/ui/diagramselection.cpp
M    sources/ui/dialogautonum.cpp
M    sources/ui/dialogwaiting.cpp
M    sources/ui/elementpropertieswidget.cpp
M    sources/ui/elementselectorwidget.cpp
M    sources/ui/linksingleelementwidget.cpp
M    sources/ui/masterpropertieswidget.cpp
M    sources/ui/potentialtextsdialog.cpp
M    sources/ui/projectpropertiesdialog.cpp
M    sources/ui/selectautonumw.cpp
M    sources/ui/titleblockpropertieswidget.cpp
M    sources/ui/xrefpropertieswidget.cpp
M    sources/undocommand/changeelementinformationcommand.cpp


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3783 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-03-02 20:14:56 +00:00
scorpio810
eaff56b669 Update copyright date
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3734 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-02-20 14:56:22 +00:00
blacksun
6ac8a3f610 Fix regression provided by rev 3604
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3614 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-01-18 10:27:36 +00:00
blacksun
78a1b56d7e Conductor : extend terminal return a point snapped to the diagram grid
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3604 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-01-11 20:39:58 +00:00
blacksun
3154a1bdae Bug fix
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3597 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-01-11 11:31:53 +00:00
blacksun
3e80f7076f Finish a move element with free terminal aligned with other terminal from other element, will create auto creation of conductor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3594 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-01-09 17:18:16 +00:00
blacksun
e2211389e9 Minor clean code
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3556 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-12-14 21:52:27 +00:00
blacksun
0e9dc51879 Conductor text item : minor bug fix
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3555 bfdf4180-ca20-0410-9c96-a3a8aa849046
2014-12-14 21:30:58 +00:00