Re: [Pharo-dev] List editor spec widget

2014-03-20 Thread Yuriy Tymchuk

On 16 Mar 2014, at 00:37, Benjamin benjamin.vanryseghem.ph...@gmail.com wrote:

 On 15 Mar 2014, at 22:39, Yuriy Tymchuk yuriy.tymc...@me.com wrote:
 
 Hi everyone.
 
 I wander if there is already something like the list editing buttons in OS X 
 i.e. ‘+’ and ‘-‘ buttons that either open a dialog with another list that 
 allows to select what to add, or remove selected items from the list. 
 (example on screenshot).
 
 I would answer “not yet” :)
 
 Feel free to submit one :P
 If you have questions, I will be glad to answer them, and to help you to 
 propose such a widget,

Ok, now I’m more confident with spec, so I have a couple of questions:

Should this be an extension of List with buttons, of a buttons widget that has 
a setters for the list to modify and the block for retrieving the rest of items 
(during the addition action)

Cheers.
Uko

 reusable enough so we can add it to the spec widgets :)
 
 Ben
 



Re: [Pharo-dev] List editor spec widget

2014-03-20 Thread Benjamin
On 20 Mar 2014, at 18:13, Yuriy Tymchuk yuriy.tymc...@me.com wrote:

 Should this be an extension of List with buttons, of a buttons widget that 
 has a setters for the list to modify and the block for retrieving the rest of 
 items (during the addition action)

Sorry I do not understand your question :)
But I think the answer is
Make a complete new widget, with one list and two buttons, and enough methods 
to tweak the buttons and the list :)

You could even have a dedicated widget for the buttons, so one can replace them 
with a special new “buttons toolbar” widget

Hope it helps,
Ben


Re: [Pharo-dev] List editor spec widget

2014-03-20 Thread Yuriy Tymchuk

On 20 Mar 2014, at 18:20, Benjamin benjamin.vanryseghem.ph...@gmail.com wrote:

 On 20 Mar 2014, at 18:13, Yuriy Tymchuk yuriy.tymc...@me.com wrote:
 
 Should this be an extension of List with buttons, of a buttons widget that 
 has a setters for the list to modify and the block for retrieving the rest 
 of items (during the addition action)
 
 Sorry I do not understand your question :)
 But I think the answer is
 Make a complete new widget, with one list and two buttons, and enough methods 
 to tweak the buttons and the list :)
 
 You could even have a dedicated widget for the buttons, so one can replace 
 them with a special new “buttons toolbar” widget

Thanks Ben, I’ll try to do something tomorrow and share with you, to get some 
feedback. We will do something cool :).

P.S.

The thing that I was asking, is that as this widget will have a list inside, it 
will be probably useful to have all the list api there. And I don’t think that 
duplicating all the methods and forwarding them to list will be good.

 
 Hope it helps,
 Ben




Re: [Pharo-dev] List editor spec widget

2014-03-20 Thread Christophe Demarey
Hello

Did you check EditableList?


Le 20 mars 2014 à 18:20, Benjamin a écrit :

 On 20 Mar 2014, at 18:13, Yuriy Tymchuk yuriy.tymc...@me.com wrote:
 
 Should this be an extension of List with buttons, of a buttons widget that 
 has a setters for the list to modify and the block for retrieving the rest 
 of items (during the addition action)
 
 Sorry I do not understand your question :)
 But I think the answer is
 Make a complete new widget, with one list and two buttons, and enough methods 
 to tweak the buttons and the list :)
 
 You could even have a dedicated widget for the buttons, so one can replace 
 them with a special new “buttons toolbar” widget
 
 Hope it helps,
 Ben



smime.p7s
Description: S/MIME cryptographic signature


Re: [Pharo-dev] List editor spec widget

2014-03-20 Thread Yuriy Tymchuk
Oh wow.

No. Thank you Christophe! I’ll try it out.

Uko

On 20 Mar 2014, at 18:29, Christophe Demarey christophe.dema...@inria.fr 
wrote:

 Hello
 
 Did you check EditableList?
 
 
 Le 20 mars 2014 à 18:20, Benjamin a écrit :
 
 On 20 Mar 2014, at 18:13, Yuriy Tymchuk yuriy.tymc...@me.com wrote:
 
 Should this be an extension of List with buttons, of a buttons widget that 
 has a setters for the list to modify and the block for retrieving the rest 
 of items (during the addition action)
 
 Sorry I do not understand your question :)
 But I think the answer is
 Make a complete new widget, with one list and two buttons, and enough 
 methods 
 to tweak the buttons and the list :)
 
 You could even have a dedicated widget for the buttons, so one can replace 
 them with a special new “buttons toolbar” widget
 
 Hope it helps,
 Ben
 




Re: [Pharo-dev] List editor spec widget

2014-03-15 Thread Benjamin
On 15 Mar 2014, at 22:39, Yuriy Tymchuk yuriy.tymc...@me.com wrote:

 Hi everyone.
 
 I wander if there is already something like the list editing buttons in OS X 
 i.e. ‘+’ and ‘-‘ buttons that either open a dialog with another list that 
 allows to select what to add, or remove selected items from the list. 
 (example on screenshot).

I would answer “not yet” :)

Feel free to submit one :P
If you have questions, I will be glad to answer them, and to help you to 
propose such a widget,
reusable enough so we can add it to the spec widgets :)

Ben