Commit Graph

569 Commits

Author SHA1 Message Date
nuri
374edc43be Change order of tabulations in folio properties widget
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5072 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-10-08 21:49:13 +00:00
scorpio810
c9dd9ee8a2 Fix typo
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5064 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-10-04 23:07:35 +00:00
scorpio810
2a8d4920a1 Change the minimum conductor text size to 3
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5053 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-09-28 07:51:58 +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
31775871a4 When we link two reports together, if the text is the same for every conductors, we don't ask to user what to do, even if the function or the tension/protocol are not identical.
Now we check : text, function and tension/protocol, if one of these three values is not identical, we ask to user what to do.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5032 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-27 11:27:41 +00:00
blacksun
6419f84d9c Keep up to date the model when a dynamic text item change, for exemple after an undo command
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5030 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-24 17:35:40 +00:00
blacksun
78a2b8a301 Enclose a class function into a macro because available since Qt 5.3
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5027 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-24 12:38:35 +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
e71fc99464 Fix crash
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5011 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-06 11:35:01 +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
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
4c56ebf353 Fix crash. Close a project with a selected linkable element (master, slave, report) cause a crash
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4992 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-07-20 12:40:30 +00:00
blacksun
edd18042ec Improve some widget and layout
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4922 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-02-27 16:58:05 +00:00
blacksun
070c601f7b Switch the header label : Folio label or Folio number, according to the curent settings of qet
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4916 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-02-16 13:27:26 +00:00
blacksun
07be603a1f Minor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4915 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-02-15 16:10:07 +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
902037d278 Link single element widget : use folio label/ID switch for show or hide
columns in the QTreeWidgetItem


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4897 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-02-02 18:00:53 +00:00
scorpio810
66c24c51ed Fix FTBFS if QT VERSION < 5.5.0
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4895 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-31 15:50:43 +00:00
blacksun
7569c5cc99 Master, slave and report QTreeWidget used for Xref :
The header of the QTreeWidget have a context menu used to save the current state of the columns (size and position).


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4887 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-30 14:29:01 +00:00
blacksun
4f17eaa9c3 Link single element widget : when link a folio report, add columns for the values : Conductor text, function, tension/protocole
Add a line edit used to filter the QTreeWidgetItem. 


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4886 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-29 18:43:42 +00:00
scorpio810
0f53d5e69e Minor fix
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4884 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-27 21:03:06 +00:00
scorpio810
a906a38c1e Minor, Link single element widget : move folio title to rightmost
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4883 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-27 20:11:28 +00:00
scorpio810
7824df7804 Typo
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4876 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-26 18:56:49 +00:00
blacksun
0b943ed52d Link single element widget : revamp the widget (use a QTreeWidget instead of a list of widgets) and add the variable %F to the value displayed
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4874 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-26 10:09:07 +00:00
blacksun
a4ba895e02 Fix crash
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4868 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-22 16:47:18 +00:00
blacksun
f97b9bcc84 Add variable %F in the widget used to link master element.
Revamp the widget : replace QListWidget by QTreeWidget


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4867 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-22 13:48:58 +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
scorpio810
4172a2a06e Typo
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4849 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-15 19:29:10 +00:00
blacksun
8f30a51945 Add a dialog to change the formula when two potentials is linked by a folio report, and the new potential have incompatible variables like %id.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4848 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-15 12:23:05 +00:00
blacksun
521c495ef0 Minor : Element info widget : when editing the field formula, the field label must be disable.
Only work when element info widget is in the dock, but not with the dialog : fix it.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4839 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-10 09:09:30 +00:00
blacksun
33a944b3cc Minor revamp
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4834 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-05 19:32:52 +00:00
blacksun
eb418ddaf8 Continue to fix bug tracker N°118
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4833 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-05 15:25:07 +00:00
blacksun
caf81b924b Fix wrong conductor autonum/formula when linking two folio report with two existing potential.
The new potential number isn't apply well.
This commit should be the last step for fix the bug report N° 118. 



git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4830 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-02 18:46:19 +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
scorpio810
ee9ffb988d Minor : conductor properties widget change focus to formula field
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4820 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-12-23 16:38:24 +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
6480a7b120 Forget file from previous commit
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4800 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-12-06 19:57:22 +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
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
103f2d3db0 Minor fix : set a correct size of the pixmap displayed in the element properties widget
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4781 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-11-15 16:27:41 +00:00
blacksun
bb2fff7e5f Element : variable assignement of label is now managed by an external class instead of the element itself
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4772 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-11-09 16:06:04 +00:00
blacksun
2b952f4189 Move files related to autonum in autoNum directory
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4771 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-11-07 15:11:12 +00:00