blacksun
6693bb6cad
Dynamic element text can have a frame
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5093 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-11-07 18:35:26 +00:00
blacksun
5bb0a3f0a3
minor fix
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5087 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-10-27 18:44:37 +00:00
blacksun
e2a49e4872
Dynamic element text item : when the source of text is label or composite text with variable %{label}, and the label of the element is created from a formula,
...
the displayed text of the dynamic text item is up to date according to the formula
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5086 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-10-26 17:12:49 +00:00
blacksun
7e2134e0db
When parse the defintion of an element in the diagram editor, befor parse anything, we get every DomElement with tagg "input".
...
If no one of these "input" have the attribute "tagg" set to "label", we set it to the first "input"
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5084 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-10-21 12:05:57 +00:00
blacksun
02fb84caec
Diagram editor :
...
1° When user drag and drop an element with text item (tagg input in the xml), the text item are converted to a dynamic text item.
2° When open an existing project, every texts item of elements in the project are converted to dynamic text field.
Note that the changes described upper don't work for the texts which have a tagg (for the moment)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5083 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-10-19 09:10:23 +00:00
blacksun
bb39413992
Element editor : element informations (manufacturer, reference etc...) can be created directly from the element editor. For that go to the widget "Element Property"
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5057 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-10-01 15:25:34 +00:00
blacksun
aa5241896c
Element editor : dynamic text item can be added directly from the element editor (WIP)
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5046 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-09-25 17:44:02 +00:00
blacksun
2e389fb80f
Dynamic element text item :
...
when text is owned by a folio report, the only information available to the text is :
the label (formula used for the Xref between linked report), the function of the potential and tension/protocol of the potential.
Unlike other elements there is no more information, because a report is not a real element.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5039 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-09-13 16:38:16 +00:00
blacksun
5248c891f4
Dynamic element text item :
...
First : If the parent element of the text item is a slave,
the info use to create the text (both if option are 'element info' or 'composite text') are taken to the linked master element, and not the slave.
If the salve element is not linked, no information is taken.
Second : if the text is composed with the variable 'label' of the master (both if text from are 'element info' or 'composite text') double click on the text, act like a link and go to the master.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5035 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-29 14:54:27 +00:00
blacksun
99eac96475
Conductor : double click on an handler open the property editor of the conductor
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5029 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-24 14:55:13 +00:00
blacksun
53ae49b3c7
When we select an element dynamic text, the element properties widget switch to the tab of dynamics text and expand and select the item in the tree that represent the dynamic text.
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5024 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-22 18:27:23 +00:00
blacksun
fe46dc29a6
Fix ftbfs for ubuntu 14.04
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5023 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-22 17:24:51 +00:00
blacksun
29748874fd
Dynamic element text item, can have for source of text a composite text, a text composed both by user typed text and element info.
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5021 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-16 13:52:15 +00:00
blacksun
6e2ed873bb
Dynamic element text item can display information of parent element
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5010 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-06 10:18:33 +00:00
scorpio810
31f36b8625
Modernize-use-override refactors code
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5009 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-05 02:10:01 +00:00
scorpio810
9f9b127c04
Modernize-use-nullptr refactors code
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5008 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-05 02:06:59 +00:00
blacksun
3ef55906a4
First step for the dynamic element text : Now user can add directly from the diagram editor an editable text of an element.
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5005 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-03 17:36:08 +00:00
blacksun
0df5391491
Fix the left margin of the diagram : In some condition, (most of time when use copy and paste) a margin appear in the left of the folio.
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5004 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-03 17:04:08 +00:00
blacksun
f4f14ff4db
Minor
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5002 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-03 16:47:40 +00:00
blacksun
618683d962
Toatly revamp of the handlers use to modify primitves, shapes and conductors.
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5001 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-02 15:26:14 +00:00
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
blacksun
f390c750d5
Fix behavior :
...
In some condition, label of report element are not up to date.
In some condition, the title of tabs widget of folios are not up to date
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4980 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-06-20 19:15:39 +00:00
blacksun
c03a862151
Fix the lose of the text of element text item tagged "label" in some case.
...
See the diff for more information.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4940 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-03-31 17:09:04 +00:00
blacksun
3f601ebc7e
Fix regression : Autonum doesn't work for terminal element
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4924 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-02-28 18:52:48 +00:00
blacksun
1b120550e8
Fix bugtracker report N° 119 : Variable %F (of several element Xref) is not always up to date when the corresponding value of titleblock change.
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4906 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-02-11 11:42:52 +00:00
blacksun
9792e95e6f
Minor : remove a signal in diagram and use directly a signal of qetproject
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4904 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-02-09 11:07:45 +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
aded80e4ae
Replace QSort function has been deprecated
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4898 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-02-03 13:48:42 +00:00
blacksun
37e7477d09
Unlink a slave element, reset her text to "_".
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4885 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-29 13:57:17 +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
43dbc4aa0a
Minor fix : Element 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@4859 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-19 14:55:19 +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
4f192940b3
Element : change freeze label variable from a string to a bool.
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4805 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-12-10 12:00:52 +00:00
blacksun
ae2afe8424
Element : edit an element text item (with tagg) directly on the folio, also update the information of the element.
...
For exemple, edit the element text item tagged "label", update the value with key "label" of element information.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4804 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-12-08 16:54:41 +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
18df62cea1
Conductor autonum : use a default QUndoCommand as parent of other inherited QUndoCommand.
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4802 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-12-07 18:56:31 +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
c811b02516
Element now use the pattern and variable of formula to create the label, both stored in diagram context (instead of the label with a pattern and formula, to create the final label)
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4795 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-12-01 09:09:50 +00:00
blacksun
489f2c2035
Move code use to find prefix of element from element class, to autonum namespace
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4793 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-11-26 19:30:59 +00:00
blacksun
60c7b9302e
Start to revamp the code about formula and label of elements and conductors
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4791 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-11-24 16:45:55 +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
261c7ecf51
Cross ref item : clickable link work when Xref is displayed as a cross
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4786 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-11-17 14:42:07 +00:00