Re: [Pharo-users] iStoa, some new

2014-02-05 Thread Hilaire Fernandes
What about:

StoaApp current openInWorld.


Along Cliparts/, you may need to create a Users/ folder

Hilaire

Le 02/02/2014 22:13, Carlo a écrit :
> Stoa beUnix.
> StoaApp current show.


-- 
Dr. Geo http://drgeo.eu




Re: [Pharo-users] Spec question

2014-02-05 Thread Glenn Cavarlé
Hi,
I have looked at the TreeModel class and it's not exactly that i seek.
The idea is rather something like that :

MyListModel>>initializeWidgets
title := self newLabel.
manager := self newListManager.
manager model:#MyDummyItemModel

MyListModel class>>defaultSpec
^SpecLayout composed
newColumn:[:mainCol|
mainCol add: #title;
add: #manager
];
yourself

MyDummyItemModel>>initializeWidgets
image := self newImage.
address := self newLabel.
zipCode := self newLabel.
city := self newLabel.
editBtn := self newButton.
delBtn := self newButton.

MyDummyItemModel class>>defaultSpec:
^SpecLayout composed
newRow:[:mainRow|
mainRow add: #image;
newColumn:[:addrCol|
addrCol add: #address;
   add: #zipCode;
   add: #city
];
newColumn:[:btnCol|
btnCol add: #editBtn;
  add: #delBtn
];   
];
yourself


 mlm := MyListModel new.
 mlm openWithSpec.
 mlm title value: 'I am a list'.
 mlm manager items: aCollectionOfDummyObjects 


it seem there isn't such implementation in Spec.
What would be the best way to implement it (if it's possible)? a mix between
ListModel and TabManager ?

Regards,
Glenn



-
Glenn Cavarlé
--
View this message in context: 
http://forum.world.st/Spec-question-tp4741608p4741681.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Xs&Os game

2014-02-05 Thread Damien Cassou
On Tue, Feb 4, 2014 at 8:58 PM, Маркіян Різун  wrote:
> I should think how to write this tutorial.


on the technical point of view, I advise you to use Pillar:
http://www.smalltalkhub.com/#!/~Pier/Pillar

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm."
Winston Churchill



Re: [Pharo-users] Xs&Os game

2014-02-05 Thread Маркіян Різун
Thanks, I'll certainly take a look at it


2014-02-05 Damien Cassou :

> On Tue, Feb 4, 2014 at 8:58 PM, Маркіян Різун  wrote:
> > I should think how to write this tutorial.
>
>
> on the technical point of view, I advise you to use Pillar:
> http://www.smalltalkhub.com/#!/~Pier/Pillar
>
> --
> Damien Cassou
> http://damiencassou.seasidehosting.st
>
> "Success is the ability to go from one failure to another without
> losing enthusiasm."
> Winston Churchill
>
>


Re: [Pharo-users] Spec question

2014-02-05 Thread btc

Welcome Glenn,
As a native english speaker I'd say your English is pretty darn good. 
I've presumed to do a few corrections and you can see it is a very few.  
So don't hold back. 
---


Hi all,
i'm new (first post) and my english is very poor so please don't blame me
:).

I would like to use Spec _to_ display a collection of domain objects and i
would like to specify the layout which _applys_ to each _item_,
not just display a String or a Text like "ListModel>>displayBlock:" but a
more _complex_ layout with rows, columns and images within (for example).
To illustrate, an equivalent would be the component ListView in Android.

I turn to you to know if it's possible to do that with Spec.
---

Besides, I think there are more people on the list with english as a second 
language that those with native english.
cheers -ben


Glenn Cavarlé wrote:

Hi all,
i'm new (first post) and my english is very poor so please don't blame me
:).

I would like to use Spec for display a collection of domain objects and i
would like to specify the layout which apply to each items,
not just display a String or a Text like "ListModel>>displayBlock:" but a
more complexe layout with rows, columns and images within (for example).
To illustrate, an equivalent would be the component ListView in Android.

I turn to you to know if it's possible to do that with Spec.
Thanks,


Regards,
Glenn



-
Glenn Cavarlé
--
View this message in context: http://forum.world.st/Spec-question-tp4741608.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.


  






Re: [Pharo-users] Google Summer of Code is here, your ideas please!

2014-02-05 Thread Dennis Schetinin
Zdravo Janko!

- Amber - Pharo interaction via WebSocket. Specifically, Pharo as IDE for
Amber -- as continuation of http://gsoc2013.esug.org/projects/amber-tools
 and http://gsoc2012.esug.org/projects/mmi-amber

- Boundless and zoomable interfaces with Pharo. Continuation of
http://gsoc2012.esug.org/projects/esse using Athens. Perhaps creating some
development tools.

- Implementation of "Object Semantic Networks" as a new
knowledge-representation engine to be used inside Pharo (for various
purposes).


--

Best regards,


Dennis Schetinin


Re: [Pharo-users] Spec question

2014-02-05 Thread Benjamin
Ok :)

So displayBlock can return any morph you want :)
So I think you can do this quite easily :)

I will have a deeper look tomorrow afternoon, and tell you :)

Ben

On 05 Feb 2014, at 01:34, Glenn Cavarlé  wrote:

> Thanks for your reply,
> 
> I haven't an image but google yes :)
> An example with Android ListView:
> http://www.codelearn.org/android-tutorial/assets/list_view/list-view-example-1-95973c43c6eed64af57c7e050981966b.jpg
> 
>   
> 
> TreeModel to make a list? I look at it.
> 
> Thanks,
> 
> Glenn
> 
> 
> 
> 
> -
> Glenn Cavarlé
> --
> View this message in context: 
> http://forum.world.st/Spec-question-tp4741608p4741617.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 



Re: [Pharo-users] iStoa, some new

2014-02-05 Thread Carlo
Thanks, that seems to work.

On 05 Feb 2014, at 12:38 PM, Hilaire Fernandes  
wrote:

What about:

StoaApp current openInWorld.


Along Cliparts/, you may need to create a Users/ folder

Hilaire

Le 02/02/2014 22:13, Carlo a écrit :
> Stoa beUnix.
> StoaApp current show.


-- 
Dr. Geo http://drgeo.eu






[Pharo-users] Path issue?

2014-02-05 Thread vmusulainen
FileSystem disk resolve: '.'  => Path / 'home' / 'vmusulainen' /
'Downloads' / 'pharo3.0' / 'shared' 
FileSystem disk resolve: '..' => Path / 'home' / 'vmusulainen' /
'Downloads' / 'pharo3.0'
Ta-da:
FileSystem disk resolve: '../..'  => Path / 'home' / 'vmusulainen' /
'Downloads' / 'pharo3.0' / 'shared'

chain of messages from #resolve:  brings to Path>>from:

Path from: '.' => Path workingDirectory
Path from: '..' => Path * '..'
Path from: '../..' Path workingDirectory

and it's implementation of addParentElementTo:

addParentElementTo: result
result isEmpty
ifTrue: [result add: '..']
ifFalse: [result removeLast]

I think that is the wrong behavior, isn't it?

 



--
View this message in context: http://forum.world.st/Path-issue-tp4741803.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Spec question

2014-02-05 Thread Pharo4Stef
hi glenn

were are you located?
Because if you are around lille you should come to hack with us :)

Stef
On 05 Feb 2014, at 11:54, Glenn Cavarlé  wrote:

> Hi,
> I have looked at the TreeModel class and it's not exactly that i seek.
> The idea is rather something like that :
> 
> MyListModel>>initializeWidgets
>title := self newLabel.
>manager := self newListManager.
>manager model:#MyDummyItemModel
> 
> MyListModel class>>defaultSpec
>^SpecLayout composed
>newColumn:[:mainCol|
>mainCol add: #title;
>add: #manager
>];
>yourself
> 
> MyDummyItemModel>>initializeWidgets
>image := self newImage.
>address := self newLabel.
>zipCode := self newLabel.
>city := self newLabel.
>editBtn := self newButton.
>delBtn := self newButton.
> 
> MyDummyItemModel class>>defaultSpec:
>^SpecLayout composed
>newRow:[:mainRow|
>mainRow add: #image;
>newColumn:[:addrCol|
>addrCol add: #address;
>   add: #zipCode;
>   add: #city
>];
>newColumn:[:btnCol|
>btnCol add: #editBtn;
>  add: #delBtn
>];   
>];
>yourself
> 
> 
> mlm := MyListModel new.
> mlm openWithSpec.
> mlm title value: 'I am a list'.
> mlm manager items: aCollectionOfDummyObjects 
> 
> 
> it seem there isn't such implementation in Spec.
> What would be the best way to implement it (if it's possible)? a mix between
> ListModel and TabManager ?
> 
> Regards,
> Glenn
> 
> 
> 
> -
> Glenn Cavarlé
> --
> View this message in context: 
> http://forum.world.st/Spec-question-tp4741608p4741681.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 




Re: [Pharo-users] Spec question

2014-02-05 Thread Glenn Cavarlé
Hi Stef,

It would be a pleasure but i'm located in Brest, so,a bit too distant...
For holidays maybe ? :)

But you can come in Brest if you want ? it's so beautiful !

Regards,
Glenn



-
Glenn Cavarlé
--
View this message in context: 
http://forum.world.st/Spec-question-tp4741608p4741808.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Spec question

2014-02-05 Thread Glenn Cavarlé
Tkanks Ben for your corrections and your encouragement,
Google help me a little :) but it's a good exercice, especially if i want to
make me understand in the Smalltalk community.

Regards,
Glenn 



-
Glenn Cavarlé
--
View this message in context: 
http://forum.world.st/Spec-question-tp4741608p4741811.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Spec question

2014-02-05 Thread Alain Plantec
Hi Stephane, all
Hello Glenn

Glenn is starting his phd at Brest.
You will meet him the next time you come at Brest :)
and we will attend esug together.

Cheers
Alain

On 5 févr. 2014, at 23:30, Glenn Cavarlé  wrote:

> Hi Stef,
> 
> It would be a pleasure but i'm located in Brest, so,a bit too distant...
> For holidays maybe ? :)
> 
> But you can come in Brest if you want ? it's so beautiful !
> 
> Regards,
> Glenn
> 
> 
> 
> -
> Glenn Cavarlé
> --
> View this message in context: 
> http://forum.world.st/Spec-question-tp4741608p4741808.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>