adding checkbox in glamour status bar

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

adding checkbox in glamour status bar

Usman Bhatti
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
Reply | Threaded
Open this post in threaded view
|

Re: adding checkbox in glamour status bar

Tudor Girba-2
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
Reply | Threaded
Open this post in threaded view
|

Re: adding checkbox in glamour status bar

Usman Bhatti
On Mon, Jan 2, 2012 at 3:50 PM, Tudor Girba <[hidden email]> wrote:
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).

Thanx for the correction. This is indeed a menu and not the status bar that I am looking for.
 

>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

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.

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


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