Re: [Pharo-users] Writing a GUI - Where to start?
The problem is here rowPlayer add: (textPlayer at:i) ; add:#captainButton; add: (buttonStartingEleven at:i). ]. As you see, the argument of add: is a symbol, but in the first and third add, you add directly a TextInputFieldModel In addition your usage of class inst var is a bit disturbing :) Ben On 22 Nov 2013, at 11:08, prova email prova...@hotmail.it wrote: Hi Ben, here the .st file, there are some comments in italian, i hope it's not a problem. I know that Spec is the most used and it will be the standard GUI builders in the future, so i'd like to find a solution here, without changing to Morph and Polymorphic. Paolo From: benjamin.vanryseghem.ph...@gmail.com Date: Fri, 22 Nov 2013 11:04:53 +0100 To: pharo-users@lists.pharo.org Subject: Re: [Pharo-users] Writing a GUI - Where to start? It seems that you return the wrong object somewhere :) Could you commit your code somewhere so I can have a look ? Ben On 22 Nov 2013, at 11:01, prova email prova...@hotmail.it wrote: I started to use Spec, i love nested layouts and so on. But i've got a little problem. I'm creating a Window with 14 TextInputFieldModel and 14 ButtonModel and, to avoid the definition of 28 different instance variables (obviously), i created two arrays which contain the ButtonModel and the TextInputFieldModel that i need. ^ SpecLayout composed newColumn: [ :columnTeam | 1 to: 14 do:[:i| columnTeam newRow: [ :rowPlayer | rowPlayer add: (textPlayer at:i) ; add:#captainButton; add: (buttonStartingEleven at:i). ]. . This is what i did in the defaultSpec of my Player class. captainButton is a RadioButton defined in self instantiateModels: in initializeWidgets, while textPlayer and buttonStartingEleven are the arrays of above. Theoretically the idea is great, while in practice it doesn't work. It give me the following message: TextInputFieldModellayoutFrame: Help me please! Paolo From: jfa...@dcc.uchile.cl Date: Wed, 20 Nov 2013 14:38:58 -0300 To: pharo-users@lists.pharo.org Subject: Re: [Pharo-users] Writing a GUI - Where to start? I recommend you to go with Spec. It is the newest and designed to be the most capable. It is also the way forward, it will be the 'standard' GUI builders in the future. We know that the documentation right now is far from optimal. Ben and I will work on that in January. On Nov 20, 2013, at 1:30 PM, Mun Mun mun.sys...@gmail.com wrote: Hi everyone, Nobody mentioned Polymorphic. My understanding is that both Spec and Polymorph are built on top of Morphic. I only looked at code example and brief tutorial for both of them, but it seemed to me that Polymorph was easier to grasp: it's quite obivous in the code where and how the widgets are built. I have trouble understanding how the job is done in Spec. On the other hand, Spec seems to have a lot of users in this mailling list. To sum up this thread with many different options proposed, what would be the right path for a newbie like me ? Thanks in advance ! --- Save our in-boxes! http://emailcharter.org --- Johan Fabry - http://pleiad.cl/~jfabry PLEIAD lab - Computer Science Department (DCC) - University of Chile PBE-SquadraPROVA.st
Re: [Pharo-users] Writing a GUI - Where to start?
Here is a working version based on DynamicComposableModel (a subclass dedicated to the caseswhere you have a lot, or an undefined number of sub widgets) ProvaSquadra.st Description: Binary data Ben On 22 Nov 2013, at 11:08, prova email prova...@hotmail.it wrote:Hi Ben,here the .st file, there are some comments in italian, i hope it's not a problem.I know that Spec is the most used and it will be the standard GUI builders in the future, so i'd like to find a solution here, without changing to Morph and Polymorphic.PaoloFrom:benjamin.vanryseghem.ph...@gmail.comDate: Fri, 22 Nov 2013 11:04:53 +0100To:pharo-users@lists.pharo.orgSubject: Re: [Pharo-users] Writing a GUI - Where to start?It seems that you return the wrong object somewhere :)Could you commit your code somewhere so I can have a look ?BenOn 22 Nov 2013, at 11:01, prova email prova...@hotmail.it wrote:I started to use Spec, i love nested layouts and so on. But i've got a little problem. I'm creating a Window with 14 TextInputFieldModel and 14 ButtonModel and, to avoid the definition of 28 different instance variables (obviously), i created two arrays which contain the ButtonModel and the TextInputFieldModel that i need.^ SpecLayout composed newColumn: [ :columnTeam | 1 to: 14 do:[:i|columnTeam newRow: [ :rowPlayer | rowPlayer add: (textPlayer at:i) ; add:#captainButton; add: (buttonStartingEleven at:i).]..This is what i did in the defaultSpec of my Player class. captainButton is a RadioButton defined in self instantiateModels: in initializeWidgets, while textPlayer and buttonStartingEleven are the arrays of above.Theoretically the idea is great, while in practice it doesn't work. It give me the following message:TextInputFieldModellayoutFrame:Help me please!Paolo From:jfa...@dcc.uchile.cl Date: Wed, 20 Nov 2013 14:38:58 -0300 To:pharo-users@lists.pharo.org Subject: Re: [Pharo-users] Writing a GUI - Where to start? I recommend you to go with Spec. It is the newest and designed to be the most capable. It is also the way forward, it will be the 'standard' GUI builders in the future. We know that the documentation right now is far from optimal. Ben and I will work on that in January. On Nov 20, 2013, at 1:30 PM, Mun Mun mun.sys...@gmail.com wrote: Hi everyone, Nobody mentioned Polymorphic. My understanding is that both Spec and Polymorph are built on top of Morphic. I only looked at code example and brief tutorial for both of them, but it seemed to me that Polymorph was easier to grasp: it's quite obivous in the code where and how the widgets are built. I have trouble understanding how the job is done in Spec. On the other hand, Spec seems to have a lot of users in this mailling list. To sum up this thread with many different options proposed, what would be the right path for a newbie like me ? Thanks in advance ! --- Save our in-boxes!http://emailcharter.org--- Johan Fabry -http://pleiad.cl/~jfabry PLEIAD lab - Computer Science Department (DCC) - University of ChilePBE-SquadraPROVA.st
Re: [Pharo-users] Writing a GUI - Where to start?
I started to use Spec, i love nested layouts and so on. But i've got a little problem. I'm creating a Window with 14 TextInputFieldModel and 14 ButtonModel and, to avoid the definition of 28 different instance variables (obviously), i created two arrays which contain the ButtonModel and the TextInputFieldModel that i need. ^ SpecLayout composed newColumn: [ :columnTeam | 1 to: 14 do:[:i|columnTeam newRow: [ :rowPlayer | rowPlayer add: (textPlayer at:i) ;add:#captainButton; add: (buttonStartingEleven at:i). ]. . This is what i did in the defaultSpec of my Player class. captainButton is a RadioButton defined in self instantiateModels: in initializeWidgets, while textPlayer and buttonStartingEleven are the arrays of above.Theoretically the idea is great, while in practice it doesn't work. It give me the following message: TextInputFieldModellayoutFrame: Help me please! Paolo From: jfa...@dcc.uchile.cl Date: Wed, 20 Nov 2013 14:38:58 -0300 To: pharo-users@lists.pharo.org Subject: Re: [Pharo-users] Writing a GUI - Where to start? I recommend you to go with Spec. It is the newest and designed to be the most capable. It is also the way forward, it will be the 'standard' GUI builders in the future. We know that the documentation right now is far from optimal. Ben and I will work on that in January. On Nov 20, 2013, at 1:30 PM, Mun Mun mun.sys...@gmail.com wrote: Hi everyone, Nobody mentioned Polymorphic. My understanding is that both Spec and Polymorph are built on top of Morphic. I only looked at code example and brief tutorial for both of them, but it seemed to me that Polymorph was easier to grasp: it's quite obivous in the code where and how the widgets are built. I have trouble understanding how the job is done in Spec. On the other hand, Spec seems to have a lot of users in this mailling list. To sum up this thread with many different options proposed, what would be the right path for a newbie like me ? Thanks in advance ! --- Save our in-boxes! http://emailcharter.org --- Johan Fabry - http://pleiad.cl/~jfabry PLEIAD lab - Computer Science Department (DCC) - University of Chile
Re: [Pharo-users] Writing a GUI - Where to start?
About Glamour, isn'it used to create Browser? How can i create a typical window? From: step...@stack.nl Date: Fri, 22 Nov 2013 12:39:06 +0100 To: pharo-users@lists.pharo.org Subject: Re: [Pharo-users] Writing a GUI - Where to start? Johan wrote: I recommend you to go with Spec. It is the newest and designed to be the most capable. It is also the way forward, it will be the 'standard' GUI builders in the future. We know that the documentation right now is far from optimal. Ben and I will work on that in January. I’d recommend to try to build your application with Glamour first. Only if that doesn’t provide a good fit, take a look at spec. Spec is much more powerful, but too low level for most applications. Stephan
Re: [Pharo-users] Writing a GUI - Where to start?
About Glamour, isn'it used to create Browser? How can i create a typical window? What is a typical window? Spec gives too much freedom and not enough structure for 'typical’ applications. Almost every window in your smalltalk system is a browser. Nearly all would be significantly less code when build with Glamour. Stephan
Re: [Pharo-users] Writing a GUI - Where to start?
Hi everyone, Nobody mentioned Polymorphic. My understanding is that both Spec and Polymorph are built on top of Morphic. I only looked at code example and brief tutorial for both of them, but it seemed to me that Polymorph was easier to grasp: it's quite obivous in the code where and how the widgets are built. I have trouble understanding how the job is done in Spec. On the other hand, Spec seems to have a lot of users in this mailling list. To sum up this thread with many different options proposed, what would be the right path for a newbie like me ? Thanks in advance ! 2013/11/6 François Stephany tulipe.mouta...@gmail.com Great, thanks for sharing =) On Wed, Nov 6, 2013 at 12:22 PM, Esteban Lorenzano esteba...@gmail.comwrote: this is old stuff (from before I came to RMoD team)... but well, is something like this: - a client-server app, connecting to a centralized mongodb (in fact, I developed the first version of Voyage for this app). - Glamour + Magritte + my own extensions to magritte and glamour. There is no Spec (The project is in Pharo 1.4), and most of the changes I made at the time to glamour were integrated. - Libharu (http://www.squeaksource.com/HPDF.html) to export to PDF, with a Magritte extension to produce the reports. the cool thing is that even if I developed many frameworks to help me in the task, I tool 15 days to have first version working and 1 month to finish it :) cheers, Esteban On Wed, Nov 6, 2013 at 6:35 AM, François Stephany tulipe.mouta...@gmail.com wrote: That looks cool! Did you embed a MongoDB instance in the application package? Or the application is connecting to a remote MongoDB? Is it full Glamour or did you have to use Spec/Morph manually at some point? Sorry to bother you, I'm just getting curious ;) On Tue, Nov 5, 2013 at 1:43 PM, Esteban Lorenzano esteba...@gmail.comwrote: I also have used Glamour+Magritte with success (but certainly some work), as you can see here: http://smallworks.eu/web/projects/lawsuitTracker On Tue, Nov 5, 2013 at 7:13 AM, p...@highoctane.be p...@highoctane.bewrote: Here: http://www.smalltalkhub.com/#!/~Magritte/Magritte3/packages/Magritte-Morph Ah Fossil, good thing. Sqlite creator's all in one DVCS. It is what is used for another language I like: Tcl. http://www2.tcl.tk/36711 Phil On Tue, Nov 5, 2013 at 10:18 AM, Bahman Movaqar bah...@bahmanm.comwrote: On 11/05/2013 11:46, p...@highoctane.be wrote: If you want to do a business application, well, I'd use Seaside and a web based UI. (that's the current conclusion for my own ongoing development) Of course. However this is not a business application. It's a front-end to a DVCS named Fossil. Otherwise, Spec (which is in a state of flux), or Morphic (which is not covering all you may need in an application). You can also follow the work of Sean De Nigris who is trying to get a Magritte Morphic working. Where can I follow his work? On Tue, Nov 5, 2013 at 8:36 AM, Alain Busser alain.bus...@gmail.com mailto:alain.bus...@gmail.com wrote: Hi, as I have a similar need, I guess what you are aiming at is a tutorial for absolute beginners in Spec, so the question is more where could we find such a tutorial?. And of course I will read it carefully if there exists one ;-) Alain On Tue, Nov 5, 2013 at 9:07 AM, Bahman Movaqar bah...@bahmanm.com mailto:bah...@bahmanm.com wrote: Hi all, I need to build a typical GUI application (menus, buttons, modal dialogs, ...). I'd appreciate if you could point me to where should I start and what are the choices for a UI framework in Pharo? -- Bahman Movaqar (http://BahmanM.com) ERP Evaluation, Implementation Deployment Consultant PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)
Re: [Pharo-users] Writing a GUI - Where to start?
You wan to create applications with standard lookfeel, Phobos [1] may be interesting for you. [1] https://code.google.com/p/phobos-framework/ -- Pavel 2013/11/5 Bahman Movaqar bah...@bahmanm.com Hi all, I need to build a typical GUI application (menus, buttons, modal dialogs, ...). I'd appreciate if you could point me to where should I start and what are the choices for a UI framework in Pharo? TIA, -- Bahman Movaqar (http://BahmanM.com) ERP Evaluation, Implementation Deployment Consultant PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)
Re: [Pharo-users] Writing a GUI - Where to start?
That looks cool! Did you embed a MongoDB instance in the application package? Or the application is connecting to a remote MongoDB? Is it full Glamour or did you have to use Spec/Morph manually at some point? Sorry to bother you, I'm just getting curious ;) On Tue, Nov 5, 2013 at 1:43 PM, Esteban Lorenzano esteba...@gmail.comwrote: I also have used Glamour+Magritte with success (but certainly some work), as you can see here: http://smallworks.eu/web/projects/lawsuitTracker On Tue, Nov 5, 2013 at 7:13 AM, p...@highoctane.be p...@highoctane.bewrote: Here: http://www.smalltalkhub.com/#!/~Magritte/Magritte3/packages/Magritte-Morph Ah Fossil, good thing. Sqlite creator's all in one DVCS. It is what is used for another language I like: Tcl. http://www2.tcl.tk/36711 Phil On Tue, Nov 5, 2013 at 10:18 AM, Bahman Movaqar bah...@bahmanm.comwrote: On 11/05/2013 11:46, p...@highoctane.be wrote: If you want to do a business application, well, I'd use Seaside and a web based UI. (that's the current conclusion for my own ongoing development) Of course. However this is not a business application. It's a front-end to a DVCS named Fossil. Otherwise, Spec (which is in a state of flux), or Morphic (which is not covering all you may need in an application). You can also follow the work of Sean De Nigris who is trying to get a Magritte Morphic working. Where can I follow his work? On Tue, Nov 5, 2013 at 8:36 AM, Alain Busser alain.bus...@gmail.com mailto:alain.bus...@gmail.com wrote: Hi, as I have a similar need, I guess what you are aiming at is a tutorial for absolute beginners in Spec, so the question is more where could we find such a tutorial?. And of course I will read it carefully if there exists one ;-) Alain On Tue, Nov 5, 2013 at 9:07 AM, Bahman Movaqar bah...@bahmanm.com mailto:bah...@bahmanm.com wrote: Hi all, I need to build a typical GUI application (menus, buttons, modal dialogs, ...). I'd appreciate if you could point me to where should I start and what are the choices for a UI framework in Pharo? -- Bahman Movaqar (http://BahmanM.com) ERP Evaluation, Implementation Deployment Consultant PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)
[Pharo-users] Writing a GUI - Where to start?
Esteban wrote: - Libharu (http://www.squeaksource.com/HPDF.html) to export to PDF, with a Magritte extension to produce the reports. the cool thing is that even if I developed many frameworks to help me in the task, I tool 15 days to have first version working and 1 month to finish it :) Thats why I created such infrastructure projects like HPDF - it makes life more easier for any new projects afterwards. Glad that it was usefull. Meanwhile HPDF is outdated (still on FFI, a port to NativeBoost would now be state of the art) and we also have Artefact for PDF generation as a Pharo only solution. One question: did you hard code the PDF layouts for the documents in the lawsuitTracker or what did you use to (quickly) define the report layouts? I would like to see some kind of general reporting engine in the future. Either a pharo based one or by using templates from existing engines (for instance JasperReports has a nice visual ui designer and layout templates are stored in XML files) With a future UIBuilder for PharoUI's, Seaside for Web-UI's and a (Pharo based) ReportingEngine Pharo could be an attractive solution to build business software... Thx T.
Re: [Pharo-users] Writing a GUI - Where to start?
Some spec documentation can be found here: https://pharo.fogbugz.com/default.asp?W71 Otherwise there is an Example package in Spec :) There are also some example methods on Spec classes :) And then you can ask question here, I ill always reply :) Ben On 05 Nov 2013, at 08:36, Alain Busser alain.bus...@gmail.com wrote: Hi, as I have a similar need, I guess what you are aiming at is a tutorial for absolute beginners in Spec, so the question is more where could we find such a tutorial?. And of course I will read it carefully if there exists one ;-) Alain On Tue, Nov 5, 2013 at 9:07 AM, Bahman Movaqar bah...@bahmanm.com wrote: Hi all, I need to build a typical GUI application (menus, buttons, modal dialogs, ...). I'd appreciate if you could point me to where should I start and what are the choices for a UI framework in Pharo? TIA, -- Bahman Movaqar (http://BahmanM.com) ERP Evaluation, Implementation Deployment Consultant PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)
Re: [Pharo-users] Writing a GUI - Where to start?
On 11/05/2013 11:46, p...@highoctane.be wrote: If you want to do a business application, well, I'd use Seaside and a web based UI. (that's the current conclusion for my own ongoing development) Of course. However this is not a business application. It's a front-end to a DVCS named Fossil. Otherwise, Spec (which is in a state of flux), or Morphic (which is not covering all you may need in an application). You can also follow the work of Sean De Nigris who is trying to get a Magritte Morphic working. Where can I follow his work? On Tue, Nov 5, 2013 at 8:36 AM, Alain Busser alain.bus...@gmail.com mailto:alain.bus...@gmail.com wrote: Hi, as I have a similar need, I guess what you are aiming at is a tutorial for absolute beginners in Spec, so the question is more where could we find such a tutorial?. And of course I will read it carefully if there exists one ;-) Alain On Tue, Nov 5, 2013 at 9:07 AM, Bahman Movaqar bah...@bahmanm.com mailto:bah...@bahmanm.com wrote: Hi all, I need to build a typical GUI application (menus, buttons, modal dialogs, ...). I'd appreciate if you could point me to where should I start and what are the choices for a UI framework in Pharo? -- Bahman Movaqar (http://BahmanM.com) ERP Evaluation, Implementation Deployment Consultant PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com) signature.asc Description: OpenPGP digital signature
Re: [Pharo-users] Writing a GUI - Where to start?
Here: http://www.smalltalkhub.com/#!/~Magritte/Magritte3/packages/Magritte-Morph Ah Fossil, good thing. Sqlite creator's all in one DVCS. It is what is used for another language I like: Tcl. http://www2.tcl.tk/36711 Phil On Tue, Nov 5, 2013 at 10:18 AM, Bahman Movaqar bah...@bahmanm.com wrote: On 11/05/2013 11:46, p...@highoctane.be wrote: If you want to do a business application, well, I'd use Seaside and a web based UI. (that's the current conclusion for my own ongoing development) Of course. However this is not a business application. It's a front-end to a DVCS named Fossil. Otherwise, Spec (which is in a state of flux), or Morphic (which is not covering all you may need in an application). You can also follow the work of Sean De Nigris who is trying to get a Magritte Morphic working. Where can I follow his work? On Tue, Nov 5, 2013 at 8:36 AM, Alain Busser alain.bus...@gmail.com mailto:alain.bus...@gmail.com wrote: Hi, as I have a similar need, I guess what you are aiming at is a tutorial for absolute beginners in Spec, so the question is more where could we find such a tutorial?. And of course I will read it carefully if there exists one ;-) Alain On Tue, Nov 5, 2013 at 9:07 AM, Bahman Movaqar bah...@bahmanm.com mailto:bah...@bahmanm.com wrote: Hi all, I need to build a typical GUI application (menus, buttons, modal dialogs, ...). I'd appreciate if you could point me to where should I start and what are the choices for a UI framework in Pharo? -- Bahman Movaqar (http://BahmanM.com) ERP Evaluation, Implementation Deployment Consultant PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)
Re: [Pharo-users] Writing a GUI - Where to start?
the system is exporting CVS and PDFs... I didn't had the time to read/write XLS (which is an ridiculous difficult format). the cool part was that I used magritte to produce the reports, so it was pretty easy :) Esteban On Tue, Nov 5, 2013 at 10:31 AM, Ignacio Matías Sniechowski 0800na...@gmail.com wrote: Esteban, Congratulations. That looks great! How do you integrate with spreadsheets? Using CVS or directly reading from .xls or .odf? Cheers Nacho *Lic. Ignacio Sniechowski, MBA* On Tue, Nov 5, 2013 at 9:43 AM, Esteban Lorenzano esteba...@gmail.comwrote: I also have used Glamour+Magritte with success (but certainly some work), as you can see here: http://smallworks.eu/web/projects/lawsuitTracker On Tue, Nov 5, 2013 at 7:13 AM, p...@highoctane.be p...@highoctane.bewrote: Here: http://www.smalltalkhub.com/#!/~Magritte/Magritte3/packages/Magritte-Morph Ah Fossil, good thing. Sqlite creator's all in one DVCS. It is what is used for another language I like: Tcl. http://www2.tcl.tk/36711 Phil On Tue, Nov 5, 2013 at 10:18 AM, Bahman Movaqar bah...@bahmanm.comwrote: On 11/05/2013 11:46, p...@highoctane.be wrote: If you want to do a business application, well, I'd use Seaside and a web based UI. (that's the current conclusion for my own ongoing development) Of course. However this is not a business application. It's a front-end to a DVCS named Fossil. Otherwise, Spec (which is in a state of flux), or Morphic (which is not covering all you may need in an application). You can also follow the work of Sean De Nigris who is trying to get a Magritte Morphic working. Where can I follow his work? On Tue, Nov 5, 2013 at 8:36 AM, Alain Busser alain.bus...@gmail.com mailto:alain.bus...@gmail.com wrote: Hi, as I have a similar need, I guess what you are aiming at is a tutorial for absolute beginners in Spec, so the question is more where could we find such a tutorial?. And of course I will read it carefully if there exists one ;-) Alain On Tue, Nov 5, 2013 at 9:07 AM, Bahman Movaqar bah...@bahmanm.com mailto:bah...@bahmanm.com wrote: Hi all, I need to build a typical GUI application (menus, buttons, modal dialogs, ...). I'd appreciate if you could point me to where should I start and what are the choices for a UI framework in Pharo? -- Bahman Movaqar (http://BahmanM.com) ERP Evaluation, Implementation Deployment Consultant PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)
[Pharo-users] Writing a GUI - Where to start?
Hi all, I need to build a typical GUI application (menus, buttons, modal dialogs, ...). I'd appreciate if you could point me to where should I start and what are the choices for a UI framework in Pharo? TIA, -- Bahman Movaqar (http://BahmanM.com) ERP Evaluation, Implementation Deployment Consultant PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com) signature.asc Description: OpenPGP digital signature
Re: [Pharo-users] Writing a GUI - Where to start?
Hi, as I have a similar need, I guess what you are aiming at is a tutorial for absolute beginners in Spec, so the question is more where could we find such a tutorial?. And of course I will read it carefully if there exists one ;-) Alain On Tue, Nov 5, 2013 at 9:07 AM, Bahman Movaqar bah...@bahmanm.com wrote: Hi all, I need to build a typical GUI application (menus, buttons, modal dialogs, ...). I'd appreciate if you could point me to where should I start and what are the choices for a UI framework in Pharo? TIA, -- Bahman Movaqar (http://BahmanM.com) ERP Evaluation, Implementation Deployment Consultant PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)