pracro:widgets
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
pracro:widgets [2008/11/25 08:56] – created deva | pracro:widgets [2010/08/04 08:31] (current) – deva | ||
---|---|---|---|
Line 1: | Line 1: | ||
======Pracro Widgets design page====== | ======Pracro Widgets design page====== | ||
- | =====Pseudo | + | |
+ | =====Meta widget===== | ||
<code xml> | <code xml> | ||
- | <pseudo | + | <metawidget |
<label caption=" | <label caption=" | ||
< | < | ||
<label caption=" | <label caption=" | ||
< | < | ||
- | </pseudo> | + | </metawidget> |
</ | </ | ||
- | The pseudo | + | The meta widget encapsulates a number of widgets in a single widget, producing their result value through a format string.\\ |
- | When '' | + | When '' |
- | It does not as such make any sense to '' | + | It does not as such make any sense to '' |
The contained (named) widgets will not be stored independently in the database.\\ | The contained (named) widgets will not be stored independently in the database.\\ | ||
\\ | \\ | ||
Line 33: | Line 34: | ||
\\ | \\ | ||
The entire regexp match scenario might be implemented and activated through an attribute '' | The entire regexp match scenario might be implemented and activated through an attribute '' | ||
+ | |||
+ | |||
=====Combobox alternative widget===== | =====Combobox alternative widget===== | ||
Line 49: | Line 52: | ||
The lineedit and its label will be put below the combobox (due to the vbox layout attribute of the altcombobox) and the label and lineedit will be positioned horizontally (due to the hbox layout attribute of the altitem tag).\\ | The lineedit and its label will be put below the combobox (due to the vbox layout attribute of the altcombobox) and the label and lineedit will be positioned horizontally (due to the hbox layout attribute of the altitem tag).\\ | ||
When the altitem is selected, the lineedit is active, and its value is defining the value of the outer altcombo.\\ | When the altitem is selected, the lineedit is active, and its value is defining the value of the outer altcombo.\\ | ||
- | When reloading the value from the db, it will first try to match the value against all items, and if that fails, it will set the value to " | + | When reloading the value from the db, it will first try to match the value against all items, and if that fails, it will set the value to " |
+ | \\ | ||
+ | IDEA: Mulitple '' | ||
+ | An area are reserved for the largest '' | ||
+ | \\ | ||
+ | IDEA-Shootdown!\\ | ||
+ | Multiple '' | ||
- | =====Alternative widget===== | + | =====Alternative widget |
**OBSOLETE**\\ | **OBSOLETE**\\ | ||
Two format strings. One for each widget set. | Two format strings. One for each widget set. | ||
Line 69: | Line 78: | ||
</ | </ | ||
which can be used later to determine which of the alternatives were used, given that the fields in primary and secondary do not contain overlapping names. | which can be used later to determine which of the alternatives were used, given that the fields in primary and secondary do not contain overlapping names. | ||
+ | |||
+ | =====LUA methods===== | ||
+ | <code lua> | ||
+ | name() | ||
+ | |||
+ | type() | ||
+ | |||
+ | value() | ||
+ | setValue() | ||
+ | |||
+ | enabled() | ||
+ | setEnabled() | ||
+ | |||
+ | visible() | ||
+ | setVisible() | ||
+ | |||
+ | valid() | ||
+ | setValid() | ||
+ | </ | ||
+ | |||
+ | <code lua> | ||
+ | checked() | ||
+ | setChecked() | ||
+ | </ | ||
pracro/widgets.1227599794.txt.gz · Last modified: 2008/11/25 08:56 by deva