I am trying to add a checkbox in the glamour status bar for allowing user to change the type of interaction with a visualization. I've seen different glamour examples but most are about adding lists, buttons and dropdown lists.
My question: Is there an easy way to add a checkbox in the status bar of the GLMTabulator? I have a (not so elegant) solution that allows toggling for the moment. browser := GLMTabulator withStatusbar. browser column: #painting. browser
act: [:b | ((b actions at: 1) title includesSubString: 'Provider')
ifTrue: [(b actions at: 1) title: 'Client Dependencies'.] ifFalse: [(b actions at: 1) title: 'Provider Dependencies']
] entitled: 'Client Dependencies'. browser transmit to: #painting; andShow: [ :a |
a mondrian view: self view ]. ^ browser thanx
Usman
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Hi Usman,
I think your question is about a menu, not about the status bar (the status bar is what appears at the bottom with explanations). >From what I understand, you are asking about having a means to parameterize a presentation. There is no support for this at this moment. Just a wish: http://code.google.com/p/moose-technology/issues/detail?id=687 But, your problem can be solved reasonably well with two presentations presented as tabs. Take a look at MooseDependencyBrowser. Cheers, Doru On 2 Jan 2012, at 15:32, Usman Bhatti wrote: > I am trying to add a checkbox in the glamour status bar for allowing user to change the type of interaction with a visualization. I've seen different glamour examples but most are about adding lists, buttons and dropdown lists. > > My question: Is there an easy way to add a checkbox in the status bar of the GLMTabulator? > > I have a (not so elegant) solution that allows toggling for the moment. > > browser := GLMTabulator withStatusbar. > browser column: #painting. > browser > act: [:b | > ((b actions at: 1) title includesSubString: 'Provider') > ifTrue: [(b actions at: 1) title: 'Client Dependencies'.] > ifFalse: [(b actions at: 1) title: 'Provider Dependencies'] > ] entitled: 'Client Dependencies'. > browser transmit to: #painting; andShow: [ :a | > a mondrian view: self view ]. > ^ browser > > thanx > Usman > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.iam.unibe.ch/mailman/listinfo/moose-dev -- www.tudorgirba.com "Quality cannot be an afterthought." _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
On Mon, Jan 2, 2012 at 3:50 PM, Tudor Girba <[hidden email]> wrote:
Hi Usman, Thanx for the correction. This is indeed a menu and not the status bar that I am looking for.
My case is a bit different as I am not looking to parameterize the whole presentation but just the interaction (dependencies) between the components drawn (eclipse plugins) on the presentation, which appears when mouse hovering/clicking occurs. Currently, I can switch the interaction by toggling the action list elements. Instead, I was looking to add a checkbox in the menu. So, I rephrase my question: is there any way to add a checkbox on the GLMTabulator menu (or status bar, whichever is convenient)?
tx But, your problem can be solved reasonably well with two presentations presented as tabs. Take a look at MooseDependencyBrowser. _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Free forum by Nabble | Edit this page |