Re: [Pharo-users] Spec and an application menu

2014-02-20 Thread kmo
Great to see that application menus have arrived in Spec! Many thanks Benjamin. I suppose it shows how well Spec has been designed and coded that the menus could be added so quickly. -- View this message in context: http://forum.world.st/Spec-and-an-application-menu-tp4744164p4745357.html Sent

Re: [Pharo-users] Spec and an application menu

2014-02-19 Thread Goubier Thierry
Le 18/02/2014 20:17, Johan Fabry a écrit : Just to motivate the browser example: we did try to find a different example but it's not so easy. If you want an application example, you need to explain the application and its' needs. The advantage of the browser is that you do not need to explai

Re: [Pharo-users] Spec and an application menu

2014-02-18 Thread Benjamin
Spec provides today a new missing feature: a menu toolbar.As recently suggested in the mailing list, a menu toolbar is often a requirement to build an application.In order to provide an easy way to add a menu toolbar, Spec reuse **MenuModel** to generate the toolbar entries.So now, a **MenuModel**

Re: [Pharo-users] Spec and an application menu

2014-02-18 Thread Sven Van Caekenberghe
I takes a long time and a lot of work to write decent documentation: once again, thanks Johan and Ben. There is nothing to prevent others from writing extra tutorials, blog posts or whatever, showing how to build cool stuff using Spec. You can refer to the base documentation and then get going.

Re: [Pharo-users] Spec and an application menu

2014-02-18 Thread Johan Fabry
Just to motivate the browser example: we did try to find a different example but it's not so easy. If you want an application example, you need to explain the application and its' needs. The advantage of the browser is that you do not need to explain it. Also the browser has all the elements tha

Re: [Pharo-users] Spec and an application menu

2014-02-18 Thread kmo
Spec can only get better and more complete as time goes on. I'm sure the effort will be turn out to be worthwhile. I'm just a bit disappointed that stuff like a menu widget is missing. It's not difficult to surmise what an application developer might want - there's probably less than a dozen basi

Re: [Pharo-users] Spec and an application menu

2014-02-18 Thread Goubier Thierry
Le 18/02/2014 14:32, Johan Fabry a écrit : And I agree with Ben :-) Also, since a UI framework is something very large and complicated, with many possible uses, it's not realistic to expect a few developers to be able to do a 'big bang' release that is 100% feature complete. Spec, as is, is

Re: [Pharo-users] Spec and an application menu

2014-02-18 Thread Johan Fabry
And I agree with Ben :-) Also, since a UI framework is something very large and complicated, with many possible uses, it's not realistic to expect a few developers to be able to do a 'big bang' release that is 100% feature complete. Spec, as is, is very complete and useful for a large variety

Re: [Pharo-users] Spec and an application menu

2014-02-18 Thread Benjamin
I do agree with you all :) The things is many people ask for more things into Spec, but at the end, I am still the only one implementing them :) And as you can imagine, my time is not infinite :P I will end up proposing a kickstarted project I think :P Ben On 18 Feb 2014, at 09:36, Hilaire Fe

Re: [Pharo-users] Spec and an application menu

2014-02-18 Thread btc
Goubier Thierry wrote: Le 18/02/2014 09:36, Hilaire Fernandes a écrit : Le 18/02/2014 09:26, Goubier Thierry a écrit : Now I want to try something: populate the menu bar with all possible menu/shortcuts commands defined in my app (i.e. tree node contextual menu, code pane contextual menu,

Re: [Pharo-users] Spec and an application menu

2014-02-18 Thread Goubier Thierry
Le 18/02/2014 09:36, Hilaire Fernandes a écrit : Le 18/02/2014 09:26, Goubier Thierry a écrit : Now I want to try something: populate the menu bar with all possible menu/shortcuts commands defined in my app (i.e. tree node contextual menu, code pane contextual menu, smart-suggestions type c

Re: [Pharo-users] Spec and an application menu

2014-02-18 Thread Hilaire Fernandes
Le 18/02/2014 09:26, Goubier Thierry a écrit : > > Now I want to try something: populate the menu bar with all possible > menu/shortcuts commands defined in my app (i.e. tree node contextual > menu, code pane contextual menu, smart-suggestions type commands) to > ensure discoverability, in as fe

Re: [Pharo-users] Spec and an application menu

2014-02-18 Thread Goubier Thierry
Has been moved to: WidgetExamples new exampleWindowWithToolbars in Pharo 3.0 Le 18/02/2014 09:12, Hilaire Fernandes a écrit : UITheme exampleWindowWithToolbars -- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax

Re: [Pharo-users] Spec and an application menu

2014-02-18 Thread Goubier Thierry
Le 18/02/2014 09:12, Hilaire Fernandes a écrit : Le 17/02/2014 20:22, kmo a écrit : Yes - there's no problem with menus if you use Morphs. Here's an interface that uses a ToolDockingBarMorph to implement a menu. It is already th

Re: [Pharo-users] Spec and an application menu

2014-02-18 Thread Hilaire Fernandes
Le 17/02/2014 21:44, kilon alios a écrit : > > Whats stops you from using Morphic and Spec at the same time ? > Entropy control? -- Dr. Geo http://drgeo.eu

Re: [Pharo-users] Spec and an application menu

2014-02-18 Thread Hilaire Fernandes
Le 17/02/2014 20:22, kmo a écrit : > Yes - there's no problem with menus if you use Morphs. Here's an interface > that uses a ToolDockingBarMorph to implement a menu. > > It is already there as Morph: UITheme exampleWindowWithToolba

Re: [Pharo-users] Spec and an application menu

2014-02-17 Thread Sergi Reyner
2014-02-17 20:44 GMT+00:00 kilon alios : > > " If you constantly have to fall back on Morphs > then you might as well build the whole thing with Morphs." > > Whats stops you from using Morphic and Spec at the same time ? > > It is even possible to use Morphic + Spec + Athens + NBOpenGL + Mars + >

Re: [Pharo-users] Spec and an application menu

2014-02-17 Thread kilon alios
" If you constantly have to fall back on Morphs then you might as well build the whole thing with Morphs." Whats stops you from using Morphic and Spec at the same time ? It is even possible to use Morphic + Spec + Athens + NBOpenGL + Mars + personally I am making my own GUI API using Athens

Re: [Pharo-users] Spec and an application menu

2014-02-17 Thread kmo
Yes - there's no problem with menus if you use Morphs. Here's an interface that uses a ToolDockingBarMorph to implement a menu. The question is - why can't you do this in Spec? if Spec is to become the standard way to build interfaces

Re: [Pharo-users] Spec and an application menu

2014-02-17 Thread Goubier Thierry
Le 17/02/2014 15:18, b...@openinworld.com a écrit : Goubier Thierry wrote: Note that Squeak 4.3 has a true menu bar ;) Note 2: a small change or extension to the MenuMorph infrastructure in Pharo would hold a normal menu bar... Wait, it may already be there, unknown to all :) Thierry Cool.

Re: [Pharo-users] Spec and an application menu

2014-02-17 Thread btc
Goubier Thierry wrote: Le 17/02/2014 15:02, b...@openinworld.com a écrit : Benjamin wrote: I think a Spec model could be done to provide this feature About the integration in 3.0, one may argue it’s not present since years, nobody complained so :P Ben True, but Pharo is moving into a doma

Re: [Pharo-users] Spec and an application menu

2014-02-17 Thread Goubier Thierry
Le 17/02/2014 15:02, b...@openinworld.com a écrit : Benjamin wrote: I think a Spec model could be done to provide this feature About the integration in 3.0, one may argue it’s not present since years, nobody complained so :P Ben True, but Pharo is moving into a domain that Squeak didn't ta

Re: [Pharo-users] Spec and an application menu

2014-02-17 Thread btc
Benjamin wrote: I think a Spec model could be done to provide this feature About the integration in 3.0, one may argue it’s not present since years, nobody complained so :P Ben True, but Pharo is moving into a domain that Squeak didn't target :P :P cheers -ben On

Re: [Pharo-users] Spec and an application menu

2014-02-16 Thread Benjamin
I think a Spec model could be done to provide this feature About the integration in 3.0, one may argue it’s not present since years, nobody complained so :P Ben On 16 Feb 2014, at 23:33, b...@openinworld.com wrote: > Benjamin wrote: >> >> There is no such a morph existing (yet). >> >> You ca

Re: [Pharo-users] Spec and an application menu

2014-02-16 Thread btc
Benjamin wrote: There is no such a morph existing (yet). You can do something based on button invoking popup menu (like here: https://github.com/BenjaminVanRyseghem/Triton/blob/master/Screenshots/Screenshot3.png) If you want some snippet based on this work around, just ask

Re: [Pharo-users] Spec and an application menu

2014-02-16 Thread Benjamin
There is no such a morph existing (yet). You can do something based on button invoking popup menu (like here: https://github.com/BenjaminVanRyseghem/Triton/blob/master/Screenshots/Screenshot3.png) If you want some snippet based on this work around, just ask Ben On 16 Feb 2014, at 20:11, kmo w