ProgrammingCube / lcdhost

Automatically exported from code.google.com/p/lcdhost
1 stars 0 forks source link

A17: New Data Sources system requires new flags #69

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Presently all setup_items can potentially be used as a data source or as a data 
driven value. A flag that would disable this would be good for components which 
do not make sense.

Also a new method is needed to tell LCDHost that a specific setup_item should 
display a data-linking button next to it but that it should in fact link to 
another control entirely, e.g. the custom formatting class has a string list 
box that lists all the rules. However this purely an editing ui: the real data 
is located in a hidden QTextEdit field containing an XML representation of the 
rules. Ideally linking the data in the "ui" list box would in fact link to the 
real xml data. This would make it really easy to link lots of objects to the 
same set of rules.

e.g.:
setup_cf_rules_->setDataValueSouce(setup_cf_XML_);
Now the data linking button next to setup_cf_rules_ really links to 
setup_cf_XML_.

Original issue reported on code.google.com by a...@bridgesuk.com on 3 Jul 2011 at 8:42

GoogleCodeExporter commented 8 years ago

Original comment by a...@bridgesuk.com on 3 Jul 2011 at 8:42

GoogleCodeExporter commented 8 years ago
Can't you just intercept "changed()" and manually forward the data? Given that 
these situations are edge cases.

Original comment by jo...@linkdata.se on 3 Jul 2011 at 12:13

GoogleCodeExporter commented 8 years ago
What about a flag to hide the value section of a setup item? So you wouldn't 
need to hide the entire XML item, just it's data, still showing the title 
(containing some explaining what the item is) and the link button.

Original comment by jo...@linkdata.se on 3 Jul 2011 at 2:46

GoogleCodeExporter commented 8 years ago
Yes that would do.

Two flags then: one flag turn off data linking for items where it make no sense 
and one to hide the ui objects so there's just linking and the label / help icon

Original comment by a...@bridgesuk.com on 3 Jul 2011 at 5:37

GoogleCodeExporter commented 8 years ago
Implemented.

Original comment by jo...@linkdata.se on 3 Jul 2011 at 9:29