Updating a tab "brother" in glamour

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

Updating a tab "brother" in glamour

Santiago Vidal
Hi, 
I'm running the following example:
| browser |
browser := GLMTabulator new.
browser
  row: [ :r | r column: #columnA; column: #columnB ].

browser transmit to: #columnA; andShow: [ :a |
       a list display: [" :model | "#('Value 1' 'Value 2' 'Value 3' 'Value 1') ]
].
browser transmit from: #columnA; to: #columnB; andShow: [ :a |
               a list titleIcon: GLMUIThemeExtraIcons glamorousBrowse ;title:'Data'; display:#('data A' 'data B' 'data C').
               a text titleIcon: GLMUIThemeExtraIcons glamorousAccept; title:'Additional Information 1';display:'something'.
               a text titleIcon: GLMUIThemeExtraIcons glamorousAdd; title:'Additional Information 2';display:'add something'.
].

browser openOn: MooseModel root allModels anyOne.

I want to show data in the tabs "'Additional Information 1" and "Additional Information 2" only if 'data A', 'data B', or  'data C' is selected in the tab 'Data'.
what is the best way to do it? I could not find a similar example.

Thanks,
  Cheers,
     Santiago

--
Santiago Vidal

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

Re: Updating a tab "brother" in glamour

Tudor Girba-2
Hi,

As far as I understand, in the #columnB pane, you are using a
composite presentation with multiple presentations, and you now want
to get some communication going between them,

You cannot communicate between two presentations. You can only
communicate between two panes.

So, basically, you need panes. For this, you can use a GLMStacker.
There is a tiny example in GLMBasicExamples>>stacker. This is an
explicit browser, like Tabulator, the difference being that it shows
panes as tabs, and not next to each other.

Cheers,
Doru



On Tue, Jan 31, 2012 at 3:31 PM, Santiago Vidal
<[hidden email]> wrote:

> Hi,
> I'm running the following example:
> | browser |
> browser := GLMTabulator new.
> browser
>   row: [ :r | r column: #columnA; column: #columnB ].
>
> browser transmit to: #columnA; andShow: [ :a |
>        a list display: [" :model | "#('Value 1' 'Value 2' 'Value 3' 'Value
> 1') ]
> ].
> browser transmit from: #columnA; to: #columnB; andShow: [ :a |
>                a list titleIcon: GLMUIThemeExtraIcons glamorousBrowse
> ;title:'Data'; display:#('data A' 'data B' 'data C').
>                a text titleIcon: GLMUIThemeExtraIcons glamorousAccept;
> title:'Additional Information 1';display:'something'.
>                a text titleIcon: GLMUIThemeExtraIcons glamorousAdd;
> title:'Additional Information 2';display:'add something'.
> ].
>
> browser openOn: MooseModel root allModels anyOne.
>
> I want to show data in the tabs "'Additional Information 1" and "Additional
> Information 2" only if 'data A', 'data B', or  'data C' is selected in the
> tab 'Data'.
> what is the best way to do it? I could not find a similar example.



> Thanks,
>   Cheers,
>      Santiago
>
> --
> Santiago Vidal
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>



--
www.tudorgirba.com

"Every thing has its own flow"

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

Re: Updating a tab "brother" in glamour

Santiago Vidal
Thanks!

2012/1/31 Tudor Girba <[hidden email]>
Hi,

As far as I understand, in the #columnB pane, you are using a
composite presentation with multiple presentations, and you now want
to get some communication going between them,

You cannot communicate between two presentations. You can only
communicate between two panes.

So, basically, you need panes. For this, you can use a GLMStacker.
There is a tiny example in GLMBasicExamples>>stacker. This is an
explicit browser, like Tabulator, the difference being that it shows
panes as tabs, and not next to each other.

Cheers,
Doru



On Tue, Jan 31, 2012 at 3:31 PM, Santiago Vidal
<[hidden email]> wrote:
> Hi,
> I'm running the following example:
> | browser |
> browser := GLMTabulator new.
> browser
>   row: [ :r | r column: #columnA; column: #columnB ].
>
> browser transmit to: #columnA; andShow: [ :a |
>        a list display: [" :model | "#('Value 1' 'Value 2' 'Value 3' 'Value
> 1') ]
> ].
> browser transmit from: #columnA; to: #columnB; andShow: [ :a |
>                a list titleIcon: GLMUIThemeExtraIcons glamorousBrowse
> ;title:'Data'; display:#('data A' 'data B' 'data C').
>                a text titleIcon: GLMUIThemeExtraIcons glamorousAccept;
> title:'Additional Information 1';display:'something'.
>                a text titleIcon: GLMUIThemeExtraIcons glamorousAdd;
> title:'Additional Information 2';display:'add something'.
> ].
>
> browser openOn: MooseModel root allModels anyOne.
>
> I want to show data in the tabs "'Additional Information 1" and "Additional
> Information 2" only if 'data A', 'data B', or  'data C' is selected in the
> tab 'Data'.
> what is the best way to do it? I could not find a similar example.



> Thanks,
>   Cheers,
>      Santiago
>
> --
> Santiago Vidal
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>



--
www.tudorgirba.com

"Every thing has its own flow"

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



--
Santiago Vidal

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

Re: Updating a tab "brother" in glamour

Santiago Vidal
I've updated the script using GLMStacker but I still have problems. Right now I have:

| browser browserB|
browser := GLMTabulator new.
browser
  row: [ :r | r column: #columnA; column: #columnB ].

browser transmit to: #columnA; andShow: [ :a |
       a list display: #('Value 1' 'Value 2' 'Value 3' 'Value 1').
].

browserB:=GLMStacker new.
browserB aPane: #data; aPane: #AdditionalInformation1; aPane: #AdditionalInformation2.
browserB transmit to:#data; andShow: [ :a |
a titleIcon: GLMUIThemeExtraIcons glamorousBrowse ;title:'Data'.
a list display:#('data A' 'data B' 'data C').
].
browserB transmit from:#data; to:#AdditionalInformation1; andShow: [ :a |
a titleIcon: GLMUIThemeExtraIcons glamorousAccept ;title:'Additional Information 1'.
a text display:'something'.
].

browser transmit from: #columnA; to: #columnB; andShow: [ :a |
              a custom: browserB.
].

browser openOn: MooseModel root allModels anyOne.

Currently I have 2 problems: (1) the icon of the tab #AdditionalInformation1 isn't shown and (2) I received the following error after selecting "data A" "data B" or "data C": MessageNotUnderstood; receiver of "fullBounds" is nil.

I don't know if this is a bug or I'm doing something wrong. There is documentation of  GLMStacker?

Thanks again

2012/1/31 Santiago Vidal <[hidden email]>
Thanks!


2012/1/31 Tudor Girba <[hidden email]>
Hi,

As far as I understand, in the #columnB pane, you are using a
composite presentation with multiple presentations, and you now want
to get some communication going between them,

You cannot communicate between two presentations. You can only
communicate between two panes.

So, basically, you need panes. For this, you can use a GLMStacker.
There is a tiny example in GLMBasicExamples>>stacker. This is an
explicit browser, like Tabulator, the difference being that it shows
panes as tabs, and not next to each other.

Cheers,
Doru



On Tue, Jan 31, 2012 at 3:31 PM, Santiago Vidal
<[hidden email]> wrote:
> Hi,
> I'm running the following example:
> | browser |
> browser := GLMTabulator new.
> browser
>   row: [ :r | r column: #columnA; column: #columnB ].
>
> browser transmit to: #columnA; andShow: [ :a |
>        a list display: [" :model | "#('Value 1' 'Value 2' 'Value 3' 'Value
> 1') ]
> ].
> browser transmit from: #columnA; to: #columnB; andShow: [ :a |
>                a list titleIcon: GLMUIThemeExtraIcons glamorousBrowse
> ;title:'Data'; display:#('data A' 'data B' 'data C').
>                a text titleIcon: GLMUIThemeExtraIcons glamorousAccept;
> title:'Additional Information 1';display:'something'.
>                a text titleIcon: GLMUIThemeExtraIcons glamorousAdd;
> title:'Additional Information 2';display:'add something'.
> ].
>
> browser openOn: MooseModel root allModels anyOne.
>
> I want to show data in the tabs "'Additional Information 1" and "Additional
> Information 2" only if 'data A', 'data B', or  'data C' is selected in the
> tab 'Data'.
> what is the best way to do it? I could not find a similar example.



> Thanks,
>   Cheers,
>      Santiago
>
> --
> Santiago Vidal
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>



--
www.tudorgirba.com

"Every thing has its own flow"

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



--
Santiago Vidal



--
Santiago Vidal

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

Re: Updating a tab "brother" in glamour

Tudor Girba-2
Hi,

These are both bugs. Please open tickets for them.

Cheers,
Doru


On 31 Jan 2012, at 19:13, Santiago Vidal wrote:

> I've updated the script using GLMStacker but I still have problems. Right now I have:
>
> | browser browserB|
> browser := GLMTabulator new.
> browser
>   row: [ :r | r column: #columnA; column: #columnB ].
>
> browser transmit to: #columnA; andShow: [ :a |
>        a list display: #('Value 1' 'Value 2' 'Value 3' 'Value 1').
> ].
>
> browserB:=GLMStacker new.
> browserB aPane: #data; aPane: #AdditionalInformation1; aPane: #AdditionalInformation2.
> browserB transmit to:#data; andShow: [ :a |
> a titleIcon: GLMUIThemeExtraIcons glamorousBrowse ;title:'Data'.
> a list display:#('data A' 'data B' 'data C').
> ].
> browserB transmit from:#data; to:#AdditionalInformation1; andShow: [ :a |
> a titleIcon: GLMUIThemeExtraIcons glamorousAccept ;title:'Additional Information 1'.
> a text display:'something'.
> ].
>
> browser transmit from: #columnA; to: #columnB; andShow: [ :a |
>               a custom: browserB.
> ].
>
> browser openOn: MooseModel root allModels anyOne.
>
> Currently I have 2 problems: (1) the icon of the tab #AdditionalInformation1 isn't shown and (2) I received the following error after selecting "data A" "data B" or "data C": MessageNotUnderstood; receiver of "fullBounds" is nil.
> I don't know if this is a bug or I'm doing something wrong. There is documentation of  GLMStacker?
>
> Thanks again
>
> 2012/1/31 Santiago Vidal <[hidden email]>
> Thanks!
>
>
> 2012/1/31 Tudor Girba <[hidden email]>
> Hi,
>
> As far as I understand, in the #columnB pane, you are using a
> composite presentation with multiple presentations, and you now want
> to get some communication going between them,
>
> You cannot communicate between two presentations. You can only
> communicate between two panes.
>
> So, basically, you need panes. For this, you can use a GLMStacker.
> There is a tiny example in GLMBasicExamples>>stacker. This is an
> explicit browser, like Tabulator, the difference being that it shows
> panes as tabs, and not next to each other.
>
> Cheers,
> Doru
>
>
>
> On Tue, Jan 31, 2012 at 3:31 PM, Santiago Vidal
> <[hidden email]> wrote:
> > Hi,
> > I'm running the following example:
> > | browser |
> > browser := GLMTabulator new.
> > browser
> >   row: [ :r | r column: #columnA; column: #columnB ].
> >
> > browser transmit to: #columnA; andShow: [ :a |
> >        a list display: [" :model | "#('Value 1' 'Value 2' 'Value 3' 'Value
> > 1') ]
> > ].
> > browser transmit from: #columnA; to: #columnB; andShow: [ :a |
> >                a list titleIcon: GLMUIThemeExtraIcons glamorousBrowse
> > ;title:'Data'; display:#('data A' 'data B' 'data C').
> >                a text titleIcon: GLMUIThemeExtraIcons glamorousAccept;
> > title:'Additional Information 1';display:'something'.
> >                a text titleIcon: GLMUIThemeExtraIcons glamorousAdd;
> > title:'Additional Information 2';display:'add something'.
> > ].
> >
> > browser openOn: MooseModel root allModels anyOne.
> >
> > I want to show data in the tabs "'Additional Information 1" and "Additional
> > Information 2" only if 'data A', 'data B', or  'data C' is selected in the
> > tab 'Data'.
> > what is the best way to do it? I could not find a similar example.
>
>
>
> > Thanks,
> >   Cheers,
> >      Santiago
> >
> > --
> > Santiago Vidal
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
>
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
> --
> Santiago Vidal
>
>
>
> --
> Santiago Vidal
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

Things happen when they happen,
not when you talk about them happening.


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