Populating/editing list with modal dialogs in Glamour

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

Populating/editing list with modal dialogs in Glamour

Uko2
Hi everyone,

I’m playing with glamour, and I’m trying to construct a list that can be edited e.g. you can add items, edit them and remove and for adding and editing you have a custom popup written again in glamour. So first question is how can I dead with basic actions? Is the GLMActionListPresentation way to go, or I should look on the other things. Another question is how do you open a modal window with glamour and how do you get the result from it.

I’ll be very thankful for any reply.
Cheers.
Uko
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] Populating/editing list with modal dialogs in Glamour

Andrei Chis
Hi,

GLMActionListPresentation is currently the only mechanism to have a separate list of actions as buttons.
However, usually when working with lists we add actions directly in the toolbar of the presentation.

There is no default way of opening a pop-up. However, it shouldn't be so difficult to have a special action that opens a pop-up.
We are actually adding one now because we need it for something :)

Cheers,
Andrei


On Tue, Mar 24, 2015 at 12:00 PM, Yuriy Tymchuk <[hidden email]> wrote:
Hi everyone,

I’m playing with glamour, and I’m trying to construct a list that can be edited e.g. you can add items, edit them and remove and for adding and editing you have a custom popup written again in glamour. So first question is how can I dead with basic actions? Is the GLMActionListPresentation way to go, or I should look on the other things. Another question is how do you open a modal window with glamour and how do you get the result from it.

I’ll be very thankful for any reply.
Cheers.
Uko


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

Re: [Pharo-dev] Populating/editing list with modal dialogs in Glamour

Uko2
Thanks for your answer.

I somehow made my way for a simple list updating. But I am puzzled a bit with global updates. What should I do if I want another pane to be updated when the list is updated? Should I use ports somehow?

Cheers.
Uko

On 24 Mar 2015, at 16:20, Andrei Chis <[hidden email]> wrote:

Hi,

GLMActionListPresentation is currently the only mechanism to have a separate list of actions as buttons.
However, usually when working with lists we add actions directly in the toolbar of the presentation.

There is no default way of opening a pop-up. However, it shouldn't be so difficult to have a special action that opens a pop-up.
We are actually adding one now because we need it for something :)

Cheers,
Andrei


On Tue, Mar 24, 2015 at 12:00 PM, Yuriy Tymchuk <[hidden email]> wrote:
Hi everyone,

I’m playing with glamour, and I’m trying to construct a list that can be edited e.g. you can add items, edit them and remove and for adding and editing you have a custom popup written again in glamour. So first question is how can I dead with basic actions? Is the GLMActionListPresentation way to go, or I should look on the other things. Another question is how do you open a modal window with glamour and how do you get the result from it.

I’ll be very thankful for any reply.
Cheers.
Uko

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

Re: [Pharo-dev] Populating/editing list with modal dialogs in Glamour

Andrei Chis
Yes. You should populate a port of the presentation that you modify, have a transmission to a port of the other presentation, and then when the port is populated execute an action.

Look at #populate:icon:on:entitled:with:  for populating ports, and #onChangeOfPort:act: for reacting to port changes.


Cheers,
Andrei

On Tue, Mar 24, 2015 at 4:40 PM, Yuriy Tymchuk <[hidden email]> wrote:
Thanks for your answer.

I somehow made my way for a simple list updating. But I am puzzled a bit with global updates. What should I do if I want another pane to be updated when the list is updated? Should I use ports somehow?

Cheers.
Uko

On 24 Mar 2015, at 16:20, Andrei Chis <[hidden email]> wrote:

Hi,

GLMActionListPresentation is currently the only mechanism to have a separate list of actions as buttons.
However, usually when working with lists we add actions directly in the toolbar of the presentation.

There is no default way of opening a pop-up. However, it shouldn't be so difficult to have a special action that opens a pop-up.
We are actually adding one now because we need it for something :)

Cheers,
Andrei


On Tue, Mar 24, 2015 at 12:00 PM, Yuriy Tymchuk <[hidden email]> wrote:
Hi everyone,

I’m playing with glamour, and I’m trying to construct a list that can be edited e.g. you can add items, edit them and remove and for adding and editing you have a custom popup written again in glamour. So first question is how can I dead with basic actions? Is the GLMActionListPresentation way to go, or I should look on the other things. Another question is how do you open a modal window with glamour and how do you get the result from it.

I’ll be very thankful for any reply.
Cheers.
Uko

_______________________________________________
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



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

Re: [Pharo-dev] Populating/editing list with modal dialogs in Glamour

Uko2

On 24 Mar 2015, at 21:42, Andrei Chis <[hidden email]> wrote:

Yes. You should populate a port of the presentation that you modify, have a transmission to a port of the other presentation, and then when the port is populated execute an action.

Look at #populate:icon:on:entitled:with:  for populating ports, and #onChangeOfPort:act: for reacting to port changes.

I will take a look, thank you very much!

Uko



Cheers,
Andrei

On Tue, Mar 24, 2015 at 4:40 PM, Yuriy Tymchuk <[hidden email]> wrote:
Thanks for your answer.

I somehow made my way for a simple list updating. But I am puzzled a bit with global updates. What should I do if I want another pane to be updated when the list is updated? Should I use ports somehow?

Cheers.
Uko

On 24 Mar 2015, at 16:20, Andrei Chis <[hidden email]> wrote:

Hi,

GLMActionListPresentation is currently the only mechanism to have a separate list of actions as buttons.
However, usually when working with lists we add actions directly in the toolbar of the presentation.

There is no default way of opening a pop-up. However, it shouldn't be so difficult to have a special action that opens a pop-up.
We are actually adding one now because we need it for something :)

Cheers,
Andrei


On Tue, Mar 24, 2015 at 12:00 PM, Yuriy Tymchuk <[hidden email]> wrote:
Hi everyone,

I’m playing with glamour, and I’m trying to construct a list that can be edited e.g. you can add items, edit them and remove and for adding and editing you have a custom popup written again in glamour. So first question is how can I dead with basic actions? Is the GLMActionListPresentation way to go, or I should look on the other things. Another question is how do you open a modal window with glamour and how do you get the result from it.

I’ll be very thankful for any reply.
Cheers.
Uko

_______________________________________________
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


_______________________________________________
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