Difference: DpHipeTools (52 vs. 53)

Revision 532010-06-02 - JavierDiaz

Line: 1 to 1
 
META TOPICPARENT name="DpHipe"

Adding Tools to HIPE

Line: 120 to 120
 The system generates a default input dialog for all registered tasks within the software. As the system does not know the intent of your task, it can only provide a dry-listing of all requested parameters; such a dialog may not be suitable for your purposes.

The default dialog for the crop task:

Changed:
<
<
crop.png
>
>
crop_closed.png
  As for instance you may want to have more control over how the input parameters are presented to the user:
  • you may only want to provide a sub-set of parameters (and leave the full-set to expert users on the command-line)
Line: 130 to 130
 Warning, important A new default dialog layout has been implemented following the request of the DPUG: It puts two parameters per line: lines are filled left to right, and then top to bottom. If you only have 1 input (or output) it will fill the whole line. Modifiers implementors should take care that the preferred size of their modifier is smaller (about 20 chars max).
Changed:
<
<
Provided modifiers have been updated but some modifiers are too wide for this layout (ex. AngleModifier, can have 3 texts and 1 combo in a line).
>
>
Provided modifiers have been updated but some modifiers are too wide for this layout (ex. AngleModifier, can have 3 texts and 1 combo in a line, see rotate later).
The default dialog for the crop task, with all sections opened:
crop_new.png
  To adapt to these scenarios and more, the system provides three ways for customizing you Task dialogs:
  • Parameter Modifiers
Line: 144 to 147
 The system provides a default dialog displaying an input area for setting the values of the parameter based on a composition of Modifiers.

The input area for the crop task:

Changed:
<
<
crop_input.png
>
>
crop_input_new.png
  The composition of Modifiers is created based on the types of the values of the Task Parameters of the Task Signature.

The Modifier for the row1 Parameter of the crop task:

Changed:
<
<
crop_modifier.png
>
>
crop_modifier_new.png
  Currently the system contains basic implementation for the simple types Boolean, Integer, Float, Long, Double, String and few more, so there's still a lot of space for improvements and contribution. You can find the general available modifiers in package herschel.ia.gui.apps.modifier; please consult the Javadoc of your HIPE installation.
Line: 221 to 224
 
In case the default input area based on Modifiers doesn't fit your needs you can just replace it by your own implementation.
Changed:
<
<
Rotate Alternative Signature:
>
>
Rotate Alternative Signature (old):
  rotate.jpg
Added:
>
>
Rotate Alternative Signature (new):
rotate_new.png
 If this is the case you need to:
  • Implement a Task Signature Component
  • Register it to the system.
Line: 264 to 270
 
Added:
>
>
Warning, important NOTE:
You no longer need a signature component to choose your own modifiers for your task (and link them with events ...): Task has a new function
public Map<String, Modifier> getCustomModifiers()
where you can do just that, see above "Register a Modifier".
Conventions for labels for input parameters: (see DM). The static function
 public static JLabel getDecoratedLabel(TaskParameter tp, boolean isPrimeInput, String altName) 
provides a decorated label (including tooltip) that follows the standard style. For the function to work properly your task parameters should be fully configured (for example, the parameter description will be the tooltip of the label)

If some other function needs to be made public so that tasks can follow the default style, they will be added above.

 
Register a Task Signature Component

Line: 280 to 295
  See also the Extension Registry documentation for more details.
Deleted:
<
<
Warning, important NOTE: Conventions for labels for input parameters: (see DM). The static function
 public static JLabel getDecoratedLabel(TaskParameter tp, boolean isPrimeInput, String altName) 
provides a decorated label (including tooltip) that follows the standard style.

If some other function needs to be made public so that tasks can follow the default style, they will be added above.

 
Line: 570 to 579
  -->
Added:
>
>
META FILEATTACHMENT attr="" autoattached="1" comment="rotate panel updated to the new look of tasks" date="1275479566" name="rotate_new.png" path="rotate_new.png" size="10857" user="Main.JavierDiaz" version="1"
 
META FILEATTACHMENT attr="h" autoattached="1" comment="Rotate Task Panel" date="1203583605" name="rotate_panel.jpg" path="rotate_panel.jpg" size="6678" user="Main.NicolaDeCandussio" version="1"
Added:
>
>
META FILEATTACHMENT attr="" autoattached="1" comment="crop input updated to the new look of tasks" date="1275479674" name="crop_input_new.png" path="crop_input_new.png" size="14159" user="Main.JavierDiaz" version="1"
 
META FILEATTACHMENT attr="" autoattached="1" comment="crop task with input highlighted" date="1254240567" name="crop_input.png" path="crop_input.png" size="14865" user="Main.JaimeSaiz" version="1"
META FILEATTACHMENT attr="" autoattached="1" comment="Tasks and variables" date="1254240686" name="tasks.png" path="tasks.png" size="13304" user="Main.JaimeSaiz" version="1"
META FILEATTACHMENT attr="" autoattached="1" comment="" date="1254239744" name="crop.png" path="crop.png" size="14045" user="Main.JaimeSaiz" version="1"
META FILEATTACHMENT attr="h" autoattached="1" comment="Rotate Alternative Signature" date="1203074625" name="rotate.jpg" path="rotate.jpg" size="19901" user="Main.NicolaDeCandussio" version="1"
META FILEATTACHMENT attr="h" autoattached="1" comment="Task, tools and variables" date="1198422543" name="hipe-tools.jpg" path="hipe-tools.jpg" size="13675" user="Main.JorgoBakker" version="1"
Added:
>
>
META FILEATTACHMENT attr="" autoattached="1" comment="crop modifier updated to the new look of tasks" date="1275479639" name="crop_modifier_new.png" path="crop_modifier_new.png" size="14021" user="Main.JavierDiaz" version="1"
META FILEATTACHMENT attr="" autoattached="1" comment="crop with closed sections updated to the new look of tasks" date="1275479716" name="crop_closed.png" path="crop_closed.png" size="8289" user="Main.JavierDiaz" version="1"
META FILEATTACHMENT attr="" autoattached="1" comment="crop updated to the new look of tasks" date="1275479736" name="crop_new.png" path="crop_new.png" size="14211" user="Main.JavierDiaz" version="1"
 
META FILEATTACHMENT attr="" autoattached="1" comment="crop task with modifier highlighted" date="1254240597" name="crop_modifier.png" path="crop_modifier.png" size="14728" user="Main.JaimeSaiz" version="1"
META TOPICMOVED by="DavideRizzo" date="1272527701" from="Hcss.DpHipeTools" to="Public.DpHipeTools"
 
This site is powered by the TWiki collaboration platform Powered by Perl