Issue 654 in moose-technology: [Glamour] Undocumented differences between types of actions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 654 in moose-technology: [Glamour] Undocumented differences between types of actions

moose-technology
Status: Accepted
Owner: [hidden email]
CC: [hidden email],  [hidden email]
Labels: Type-Other Priority-Medium Component-Glamour Difficulty-Easy

New issue 654 by [hidden email]: [Glamour] Undocumented differences  
between types of actions
http://code.google.com/p/moose-technology/issues/detail?id=654

There are multiple ways to add actions to a presentation:

- using #selectionAct:
- using #act:*
- using #dynamicActionsOnSelection:

These methods do not have comments that help in distinguishing them. The  
moose book doesn't present them either.

If you explain them to me, I will write the documentation at the  
appropriate places.

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 654 in moose-technology: [Glamour] Undocumented differences between types of actions

moose-technology
Updates:
        Cc: -[hidden email] [hidden email]

Comment #1 on issue 654 by [hidden email]: [Glamour] Undocumented  
differences between types of actions
http://code.google.com/p/moose-technology/issues/detail?id=654

Thanks for looking into this. Indeed it would be great to document them.

I added the following explanations to the Moose book. Is it clearer now?

---
http://www.themoosebook.org/book/internals/glamour/actions

There are several kinds of actions supported by Glamour. First, there are  
actions that are supposed to work for the entire presentation, and actions  
that are meant to work only contextually when there is a selection. These  
are specified using the following messages:

- the act:* messages define actions for the entire presentation. These  
actions are typically rendered in the toolbar from the top-right of the  
presentation.
- the selectionAct:* messages define actions that should be active only  
when there is a selection. These actions are typically mapped on the  
contextual menu.
The above messages define static actions. That means that regardless of  
what the values of the ports are, these actions will always be available.  
However, at times, we can also decide to provide actions dynamically  
depending on the port values. This can be achieved through dynamicActions:  
and dynamicActionsOnSelection: messages. These messages receive a block  
that will be evaluated on the presentation and should return a list of  
GLMAction objects.

These messages are meant to be used as a last result because they work with  
the internals of Glamour.

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 654 in moose-technology: [Glamour] Undocumented differences between types of actions

moose-technology
Updates:
        Status: Fixed

Comment #2 on issue 654 by [hidden email]: [Glamour] Undocumented  
differences between types of actions
http://code.google.com/p/moose-technology/issues/detail?id=654

Much clearer thank you. I just don't get the last note:

"
These messages are meant to be used as a last result because they work with  
the internals of Glamour.
"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 654 in moose-technology: [Glamour] Undocumented differences between types of actions

moose-technology

Comment #3 on issue 654 by [hidden email]: [Glamour] Undocumented  
differences between types of actions
http://code.google.com/p/moose-technology/issues/detail?id=654

It means that ideally, this mechanism should be replaced by some nicer API.  
Basically, now you have to instantiate the GLMAction in the block and  
manually create a list. I do not particularly like that :). So, I thought  
that we should warn people that this might change.

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev