From matteo.lisi at ...648... Mon Feb 1 09:50:57 2010 From: matteo.lisi at ...648... (Matteo Lisi) Date: Mon, 01 Feb 2010 09:50:57 +0100 Subject: [Gambas-devel] Enhancing the gb.debug component In-Reply-To: <201001301652.32226.gambas@...1...> References: <201001301652.32226.gambas@...1...> Message-ID: <4B6695F1.3050808@...648...> Hi, Beno?t. Before start , let's make a small remote debug session simulation. Suppose I wrote a program on PC and I want to debug it on my target machine. I made also a gambas component for the SPI (ex. gb.spi), that use a peripheral that exists only on target system and not on PC system. I thought that on pc all the method of gb.spi must be empty , I need only that the (sorry for the definition) intellisense work, while on ARM system the components is fully functional. When I press the debug button I need to copy the source directory on target system, and run the compiler on it. If I'm a good coder I have no error, but if I get an error, I have to redirect it on gambas IDE. Is it possible to compile on my PC system and only when the compilation is done, move the project directory on my target system ? When I compile on PC and move on ARM system which gb.spi the executable use ? In this manner I haven't to redirect the compiler output from target system to PC system . At this point ON PC system I call the gbx2 with 2 argument the first that tell to executor to use a tcp socket and the second which address it must connect. ON Target system the gbx2 will be launch with only an argument that tell to became a server and than use the tcp socket for exchange the debug data. Is this mechanism correct ? What do you think about it ? Il 30/01/2010 16.52, Beno?t Minisini ha scritto: > Hi, Matteo. > > This is for you, but I want that all the discussion stays on the mailing-list, > for other people interested in. > > The gb.debug component sources are located in the /main/lib/debug directory of > Gambas sources. > > main.c --> Component initialization and component classes declaration. > > debug.c --> The internal debugger, run by the interpreter when the "-g" option > is passed to it. > > print.c --> Debugger functions to print values of expressions, variables... > > CDebug.c --> The Debug class, used by the IDE for driving a debugged process. > Fifo that communicate with the debugged process are created there. > > gb.debug.h --> Declaration of the API provided by the interpreter to the > gb.debug component, and the API provided by the gb.debug component to the > interpreter. > > Please look into the source code first, and ask me questions. This way, I will > be able to understand what your C skills are, which will help me to guide you > more easily. > > Regards, > > > > > > Nessun virus nel messaggio in arrivo. > Controllato da AVG - www.avg.com > Versione: 9.0.733 / Database dei virus: 271.1.1/2654 - Data di rilascio: 01/28/10 20:36:00 > > -- ------------------------------------------------------------------------ http://www.engicam.com *ENGICAM s.r.l.* Progettazione di sistemi elettronici 50018 Scandicci - FIRENZE Via dei Pratoni, 16 int. 13 O-N P.I. 05389070482 http://www.freescale.com ? Matteo Lisi ( +39 055 7311387 6 +39 055 7318333 ------------------------------------------------------------------------ NOTICE: This message and attachments are intended only for the use of their addresses and may contain confidential information belonging to Engicam. If you are not the intended recipient, you are hereby notified that any reading, dissemination, distribution, or copying of this message, or any attachment, is strictly prohibited. If you have received this message in error, please notify the original sender immediately and delete this message, along with any attachments. From gambas at ...1... Mon Feb 1 12:09:32 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 1 Feb 2010 12:09:32 +0100 Subject: [Gambas-devel] Enhancing the gb.debug component In-Reply-To: <4B6695F1.3050808@...648...> References: <201001301652.32226.gambas@...1...> <4B6695F1.3050808@...648...> Message-ID: <201002011209.32131.gambas@...1...> > Hi, Beno?t. > > Before start , let's make a small remote debug session simulation. > > Suppose I wrote a program on PC and I want to debug it on my target > machine. I made also a gambas component for the SPI (ex. gb.spi), that > use a peripheral that exists only on target system and not on PC system. > I thought that on pc all the method of gb.spi must be empty , I need > only that the (sorry for the definition) intellisense work, while on ARM > system the components is fully functional. I would say yes, as I don't know what gb.spi will actually include. > > When I press the debug button I need to copy the source directory on > target system, and run the compiler on it. > > If I'm a good coder I have no error, but if I get an error, I have to > redirect it on gambas IDE. Not really. The compiled code is the same on all architecture. So all the compilation is done on the PC. Theoritically, The ARM just needs the executable generated with debugging information. > > Is it possible to compile on my PC system and only when the compilation > is done, move the project directory on my target system ? > When I compile on PC and move on ARM system which gb.spi the executable > use ? In this manner I haven't to redirect the compiler output from > target system to PC system . See above. > > At this point ON PC system I call the gbx2 with 2 argument the first > that tell to executor to use a tcp socket and the second which address > it must connect. ON Target system the gbx2 will be launch with only an > argument that tell to became a server and than use the tcp socket for > exchange the debug data. > > Is this mechanism correct ? Not really: you are debugging one project, so you run only one program. The ARM one. The PC process is already running, it is the IDE. By using ssh, the IDE will run "gbx3" (not gbx2, as only Gambas 3 is opened to new developments) directly on the ARM. Using a tcp socket, and its address can be put in the same argument. For example, starting with a double slash means "tcp". So, if: - The ARM gets a full executable. - The ARM ip is 10.90.0.2. - The PC ip is 10.90.0.1. - The PC uses the 8080 port. Then the IDE will run something like that: $ scp /path/to/executable/on/pc user at ...649...:/path/to/executable/on/arm $ ssh user at ...649...:/path gbx3 -g -x /path/to/executable/for/arm -f \ //10.90.0.1:8080 And if you want to debug just the gb.spi component, you must do that directly on ARM, by using a test Gambas project. If you have crashes, you must use gdb directly on the ARM. Regards, -- Beno?t Minisini From matteo.lisi at ...648... Mon Feb 1 14:02:12 2010 From: matteo.lisi at ...648... (Matteo Lisi) Date: Mon, 01 Feb 2010 14:02:12 +0100 Subject: [Gambas-devel] Gambas deploy with crosscompiler. In-Reply-To: <201002011209.32131.gambas@...1...> References: <201001301652.32226.gambas@...1...> <4B6695F1.3050808@...648...> <201002011209.32131.gambas@...1...> Message-ID: <4B66D0D4.80504@...648...> Hi to All. I'm writing to you to tell an issue that I had when I tried to port gambas on my embedded arm system: Usually On Embedded system linux based, I have not a compiler that run on target but It's used a crosscompiler that runs on PC and produce executable for the embedded system. For the gambas Installation I can run without problem the steps "./configure" and "make". When I run make install the procedure exit with error, because ( I think ) the installation script try to execute the gambas compiler that it's not for PC architecture. How we can "make install" for this case ? Thanks From gambas at ...1... Mon Feb 1 14:17:00 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 1 Feb 2010 14:17:00 +0100 Subject: [Gambas-devel] Gambas deploy with crosscompiler. In-Reply-To: <4B66D0D4.80504@...648...> References: <201001301652.32226.gambas@...1...> <201002011209.32131.gambas@...1...> <4B66D0D4.80504@...648...> Message-ID: <201002011417.00529.gambas@...1...> > Hi to All. > > I'm writing to you to tell an issue that I had when I tried to port > gambas on my embedded arm system: > > Usually On Embedded system linux based, I have not a compiler that run > on target but It's used a crosscompiler that runs on PC and produce > executable for the embedded system. > > For the gambas Installation I can run without problem the steps > "./configure" and "make". > When I run make install the procedure exit with error, because ( I think > ) the installation script try to execute the gambas compiler that it's > not for PC architecture. The compiler is compiled for ARM during the "make" step, and installed during "make install" before anything that needs it. So you should not have any problem. Please provide the full output of ./configure, make and make install, and please tell which distribution you run on the ARM. Regards, -- Beno?t Minisini From gambas at ...1... Mon Feb 1 14:21:08 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 1 Feb 2010 14:21:08 +0100 Subject: [Gambas-devel] Gambas deploy with crosscompiler. In-Reply-To: <201002011417.00529.gambas@...1...> References: <201001301652.32226.gambas@...1...> <4B66D0D4.80504@...648...> <201002011417.00529.gambas@...1...> Message-ID: <201002011421.08943.gambas@...1...> > > Hi to All. > > > > I'm writing to you to tell an issue that I had when I tried to port > > gambas on my embedded arm system: > > > > Usually On Embedded system linux based, I have not a compiler that run > > on target but It's used a crosscompiler that runs on PC and produce > > executable for the embedded system. > > > > For the gambas Installation I can run without problem the steps > > "./configure" and "make". > > When I run make install the procedure exit with error, because ( I think > > ) the installation script try to execute the gambas compiler that it's > > not for PC architecture. > > The compiler is compiled for ARM during the "make" step, and installed > during "make install" before anything that needs it. So you should not > have any problem. > > Please provide the full output of ./configure, make and make install, and > please tell which distribution you run on the ARM. > > Regards, > Ah, OK, I should have read your mail before answering it. :-) Yes, that won't work, as you described. The installation script wants to run the compiler compiled for ARM. So the question is: is there a way to detect that we are compiling on another architecture in the configuration files? Then we will tell the user that the local gambas compiler will be used, and so that it must be present! Regards, -- Beno?t Minisini From matteo.lisi at ...648... Mon Feb 1 15:25:34 2010 From: matteo.lisi at ...648... (Matteo Lisi) Date: Mon, 01 Feb 2010 15:25:34 +0100 Subject: [Gambas-devel] Gambas deploy with crosscompiler. In-Reply-To: <201002011421.08943.gambas@...1...> References: <201001301652.32226.gambas@...1...> <4B66D0D4.80504@...648...> <201002011417.00529.gambas@...1...> <201002011421.08943.gambas@...1...> Message-ID: <4B66E45E.4010703@...648...> Hi , Beno?t and thanks for your reply ... But what the make install do ? We can change this script for an ARM installation , and make install on the ARM system. Then: ./configure and make on PC side make install on ARM (I have the autoconf and make packet on ARM) what do you think ? Regards Il 01/02/2010 14.21, Beno?t Minisini ha scritto: >>> Hi to All. >>> >>> I'm writing to you to tell an issue that I had when I tried to port >>> gambas on my embedded arm system: >>> >>> Usually On Embedded system linux based, I have not a compiler that run >>> on target but It's used a crosscompiler that runs on PC and produce >>> executable for the embedded system. >>> >>> For the gambas Installation I can run without problem the steps >>> "./configure" and "make". >>> When I run make install the procedure exit with error, because ( I think >>> ) the installation script try to execute the gambas compiler that it's >>> not for PC architecture. >>> >> The compiler is compiled for ARM during the "make" step, and installed >> during "make install" before anything that needs it. So you should not >> have any problem. >> >> Please provide the full output of ./configure, make and make install, and >> please tell which distribution you run on the ARM. >> >> Regards, >> >> > Ah, OK, I should have read your mail before answering it. :-) > > Yes, that won't work, as you described. The installation script wants to run > the compiler compiled for ARM. > > So the question is: is there a way to detect that we are compiling on another > architecture in the configuration files? Then we will tell the user that the > local gambas compiler will be used, and so that it must be present! > > Regards, > > > > > > Nessun virus nel messaggio in arrivo. > Controllato da AVG - www.avg.com > Versione: 9.0.733 / Database dei virus: 271.1.1/2660 - Data di rilascio: 01/31/10 20:35:00 > > -- ------------------------------------------------------------------------ http://www.engicam.com *ENGICAM s.r.l.* Progettazione di sistemi elettronici 50018 Scandicci - FIRENZE Via dei Pratoni, 16 int. 13 O-N P.I. 05389070482 http://www.freescale.com ? Matteo Lisi ( +39 055 7311387 6 +39 055 7318333 ------------------------------------------------------------------------ NOTICE: This message and attachments are intended only for the use of their addresses and may contain confidential information belonging to Engicam. If you are not the intended recipient, you are hereby notified that any reading, dissemination, distribution, or copying of this message, or any attachment, is strictly prohibited. If you have received this message in error, please notify the original sender immediately and delete this message, along with any attachments. From gambas at ...1... Mon Feb 1 15:37:31 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 1 Feb 2010 15:37:31 +0100 Subject: [Gambas-devel] Gambas deploy with crosscompiler. In-Reply-To: <4B66E45E.4010703@...648...> References: <201001301652.32226.gambas@...1...> <201002011421.08943.gambas@...1...> <4B66E45E.4010703@...648...> Message-ID: <201002011537.31948.gambas@...1...> > Hi , Beno?t and thanks for your reply ... > > But what the make install do ? > > We can change this script for an ARM installation , and make install on > the ARM system. > > Then: > ./configure and make on PC side > make install on ARM > > (I have the autoconf and make packet on ARM) > > what do you think ? > > Regards > Yes. Actually it makes no sense to "make install" on the PC, as all the files must go on the ARM. But I have no idea how that could work: I think you should try to share the source folder between the PC and the ARM (with nfs for example), do ./configure and make on the PC, and run "make install" on the ARM on the same shared directory. But if some master of cross-compiling read these mails, it would be cool to help us! -- Beno?t Minisini From matteo.lisi at ...648... Mon Feb 1 16:01:21 2010 From: matteo.lisi at ...648... (Matteo Lisi) Date: Mon, 01 Feb 2010 16:01:21 +0100 Subject: [Gambas-devel] Gambas deploy with crosscompiler. In-Reply-To: <201002011537.31948.gambas@...1...> References: <201001301652.32226.gambas@...1...> <201002011421.08943.gambas@...1...> <4B66E45E.4010703@...648...> <201002011537.31948.gambas@...1...> Message-ID: <4B66ECC1.3070007@...648...> But what do you think if I move the source directory of Gambas from PC to ARM after the ./configure and make ? Il 01/02/2010 15.37, Beno?t Minisini ha scritto: >> Hi , Beno?t and thanks for your reply ... >> >> But what the make install do ? >> >> We can change this script for an ARM installation , and make install on >> the ARM system. >> >> Then: >> ./configure and make on PC side >> make install on ARM >> >> (I have the autoconf and make packet on ARM) >> >> what do you think ? >> >> Regards >> >> > Yes. Actually it makes no sense to "make install" on the PC, as all the files > must go on the ARM. > > But I have no idea how that could work: I think you should try to share the > source folder between the PC and the ARM (with nfs for example), do > ./configure and make on the PC, and run "make install" on the ARM on the same > shared directory. > > But if some master of cross-compiling read these mails, it would be cool to > help us! > > > > > > Nessun virus nel messaggio in arrivo. > Controllato da AVG - www.avg.com > Versione: 9.0.733 / Database dei virus: 271.1.1/2660 - Data di rilascio: 01/31/10 20:35:00 > > -- ------------------------------------------------------------------------ http://www.engicam.com *ENGICAM s.r.l.* Progettazione di sistemi elettronici 50018 Scandicci - FIRENZE Via dei Pratoni, 16 int. 13 O-N P.I. 05389070482 http://www.freescale.com ? Matteo Lisi ( +39 055 7311387 6 +39 055 7318333 ------------------------------------------------------------------------ NOTICE: This message and attachments are intended only for the use of their addresses and may contain confidential information belonging to Engicam. If you are not the intended recipient, you are hereby notified that any reading, dissemination, distribution, or copying of this message, or any attachment, is strictly prohibited. If you have received this message in error, please notify the original sender immediately and delete this message, along with any attachments. From gambas at ...1... Mon Feb 1 16:10:25 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 1 Feb 2010 16:10:25 +0100 Subject: [Gambas-devel] Gambas deploy with crosscompiler. In-Reply-To: <4B66ECC1.3070007@...648...> References: <201001301652.32226.gambas@...1...> <201002011537.31948.gambas@...1...> <4B66ECC1.3070007@...648...> Message-ID: <201002011610.25387.gambas@...1...> > But what do you think if I move the source directory of Gambas from PC > to ARM after the ./configure and make ? > Same result. Sharing was just to avoid copying the directory each time something has changed. -- Beno?t Minisini From matteo.lisi at ...648... Mon Feb 1 16:18:12 2010 From: matteo.lisi at ...648... (Matteo Lisi) Date: Mon, 01 Feb 2010 16:18:12 +0100 Subject: [Gambas-devel] Gambas deploy with crosscompiler. In-Reply-To: <201002011610.25387.gambas@...1...> References: <201001301652.32226.gambas@...1...> <201002011537.31948.gambas@...1...> <4B66ECC1.3070007@...648...> <201002011610.25387.gambas@...1...> Message-ID: <4B66F0B4.1010107@...648...> >Same result. Sharing was just to avoid copying the directory each time >something has changed. yes..... I'm little bit tired .... sorry.. I'll try soon this solution and I'll report you .... Regards and many thanks .. From rterry at ...627... Wed Feb 3 12:11:02 2010 From: rterry at ...627... (richard terry) Date: Wed, 3 Feb 2010 22:11:02 +1100 Subject: [Gambas-devel] 2658 won't run: too many executable files. Message-ID: <201002032211.02303.rterry@...627...> Odd error message ? meaning? gbr3: too many executable files. Regards Richard From gambas at ...1... Wed Feb 3 16:49:51 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 3 Feb 2010 16:49:51 +0100 Subject: [Gambas-devel] 2658 won't run: too many executable files. In-Reply-To: <201002032211.02303.rterry@...627...> References: <201002032211.02303.rterry@...627...> Message-ID: <201002031649.51746.gambas@...1...> > Odd error message ? meaning? > > gbr3: too many executable files. > > Regards > > Richard > It should be better now with revision #2660. Do not forget to do a './reconf' and './configure -C' again. Regards, -- Beno?t Minisini From david_villalobos_c at ...7... Mon Feb 8 16:15:45 2010 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Mon, 8 Feb 2010 07:15:45 -0800 (PST) Subject: [Gambas-devel] ToolBar Question Message-ID: <556634.61486.qm@...588...> Hi, with the last revision there were some changes in the tool bar, but I try to set some properties and can't get my toolbar correctly alinged. See the picture to see what I mean. Mandriva 2010.0 32 Bits KDE Regards -- David -------------- next part -------------- A non-text attachment was scrubbed... Name: Pic1.png Type: application/octet-stream Size: 5809 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ToolBarQuestion-0.0.1.tar.gz Type: application/x-gzip Size: 5430 bytes Desc: not available URL: From gambas at ...1... Mon Feb 8 17:01:29 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 8 Feb 2010 17:01:29 +0100 Subject: [Gambas-devel] ToolBar Question In-Reply-To: <556634.61486.qm@...588...> References: <556634.61486.qm@...588...> Message-ID: <201002081701.29105.gambas@...1...> > Hi, with the last revision there were some changes in the tool bar, but I > try to set some properties and can't get my toolbar correctly alinged. > > See the picture to see what I mean. > > Mandriva 2010.0 32 Bits KDE > > Regards > > > -- > David > Yep. That bug is fixed in revision #2673. Regards, -- Beno?t Minisini From rterry at ...627... Thu Feb 11 12:19:40 2010 From: rterry at ...627... (richard terry) Date: Thu, 11 Feb 2010 22:19:40 +1100 Subject: [Gambas-devel] a Dumb shell question - passing quoted text [solved] In-Reply-To: <201002112210.14811.rterry@...627...> References: <201002112210.14811.rterry@...627...> Message-ID: <201002112219.40716.rterry@...627...> On Thursday 11 February 2010 22:10:14 you wrote: > Hi List, > > I want to end up with this text to pass to the shell, and it contains > quotation marks, I wondered how to do that. > > wkhtmltopdf *.html /tmp/temp.pdf --toc --header-right "Page [page]" > --footer- center "- EasyGP Medical Records -" --footer-spacing 5 > --footer-font-name "comic sans ms" > > any help appreciated. > > Regards > > Richard > To answer my own question, a single quote seems to work: shell_text &= " --header-right 'Page [page]' --footer-center '- EasyGP Medical Records -' --footer-spacing 5 --footer-font-name 'comic sans ms'" Stupid me!!!!! From gambas.fr at ...176... Thu Feb 11 12:37:08 2010 From: gambas.fr at ...176... (Fabien Bodard) Date: Thu, 11 Feb 2010 12:37:08 +0100 Subject: [Gambas-devel] a Dumb shell question - passing quoted text [solved] In-Reply-To: <201002112219.40716.rterry@...627...> References: <201002112210.14811.rterry@...627...> <201002112219.40716.rterry@...627...> Message-ID: <6324a42a1002110337x1e61bd6bqb907148e34c0a1e5@...178...> Print "\"hello\" \"word\"" "hello" "word" 2010/2/11 richard terry : > On Thursday 11 February 2010 22:10:14 you wrote: >> Hi List, >> >> I want to end up with this text to pass to the shell, and it contains >> quotation marks, I wondered how to do that. >> >> wkhtmltopdf *.html /tmp/temp.pdf --toc --header-right "Page [page]" >> ?--footer- center "- EasyGP Medical Records -" --footer-spacing 5 >> ?--footer-font-name "comic sans ms" >> >> any help appreciated. >> >> Regards >> >> Richard >> > To answer my own question, a single quote seems to work: > > > ? ?shell_text &= " --header-right 'Page [page]' --footer-center '- EasyGP > Medical Records -' --footer-spacing 5 --footer-font-name 'comic sans ms'" > > Stupid me!!!!! > > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > From arosa at ...615... Thu Feb 11 13:18:40 2010 From: arosa at ...615... (Toni Rosa) Date: Thu, 11 Feb 2010 13:18:40 +0100 Subject: [Gambas-devel] Options in the Package generation Message-ID: <4B73F5A0.5000407@...615...> Hello, I did some modifications to my local copy of the gambas 2 code in order to allow some more options in the generation of deb packages. Specifically I coded the possibility of including arbitrary files inside the package, and the generation of more entries to the menu (which can point to arbitrary locations and have arguments). My code isn't clean but as it didn't take me long and I think it could be easly redone and it would be a good inclusion to future gambas versions. Regards, Toni From gambas at ...1... Thu Feb 11 14:17:57 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 11 Feb 2010 14:17:57 +0100 Subject: [Gambas-devel] Options in the Package generation In-Reply-To: <4B73F5A0.5000407@...615...> References: <4B73F5A0.5000407@...615...> Message-ID: <201002111417.57732.gambas@...1...> > Hello, > I did some modifications to my local copy of the gambas 2 code in order > to allow some more options in the generation of deb packages. > Specifically I coded the possibility of including arbitrary files inside > the package, and the generation of more entries to the menu (which can > point to arbitrary locations and have arguments). > My code isn't clean but as it didn't take me long and I think it could > be easly redone and it would be a good inclusion to future gambas versions. > Regards, > Toni > Hi, good idea, but: Development is done in the Gambas 3 branch, not Gambas 2. In Gambas 3, you can include arbitrary files and arbitrary dependencies. But no arbitrary menu entries. So how does it work? Can you clean up your code and include it in the Gambas 3 IDE packager ? -- Beno?t Minisini From arosa at ...615... Thu Feb 11 18:46:44 2010 From: arosa at ...615... (Toni Rosa) Date: Thu, 11 Feb 2010 18:46:44 +0100 Subject: [Gambas-devel] Options in the Package generation In-Reply-To: <201002111417.57732.gambas@...1...> References: <4B73F5A0.5000407@...615...> <201002111417.57732.gambas@...1...> Message-ID: <4B744284.8080102@...615...> Hello, What I did is creating the desired extra "xxxx.desktop" files after creating the default one. I did it so that in the UI wizard you can choose the "Name" and the "Exec" parameters for them. I guess it would interesting allowing to choose a different "Icon" and "Comment", and may be, different "Categories" too for each one of them. After that, in the "debian/install" part of the package creation, I set the package to do the same for the extra "desktop" launchers as what is done for the default one (Which is copying them over to the "usr/share/applications" folder). I'll give Gambas3 a try this weekend and I'll start "forwardporting" (or simply redoing) this part of my code changes to it. Regards, Toni >> Hello, >> I did some modifications to my local copy of the gambas 2 code in order >> to allow some more options in the generation of deb packages. >> Specifically I coded the possibility of including arbitrary files inside >> the package, and the generation of more entries to the menu (which can >> point to arbitrary locations and have arguments). >> My code isn't clean but as it didn't take me long and I think it could >> be easly redone and it would be a good inclusion to future gambas versions. >> Regards, >> Toni >> >> > > Hi, good idea, but: > > Development is done in the Gambas 3 branch, not Gambas 2. > > In Gambas 3, you can include arbitrary files and arbitrary dependencies. But > no arbitrary menu entries. So how does it work? Can you clean up your code and > include it in the Gambas 3 IDE packager ? > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Thu Feb 11 22:59:16 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 11 Feb 2010 22:59:16 +0100 Subject: [Gambas-devel] Options in the Package generation In-Reply-To: <4B744284.8080102@...615...> References: <4B73F5A0.5000407@...615...> <201002111417.57732.gambas@...1...> <4B744284.8080102@...615...> Message-ID: <201002112259.16580.gambas@...1...> > Hello, > What I did is creating the desired extra "xxxx.desktop" files after > creating the default one. I did it so that in the UI wizard you can > choose the "Name" and the "Exec" parameters for them. I guess it would > interesting allowing to choose a different "Icon" and "Comment", and may > be, different "Categories" too for each one of them. > After that, in the "debian/install" part of the package creation, I set > the package to do the same for the extra "desktop" launchers as what is > done for the default one (Which is copying them over to the > "usr/share/applications" folder). > I'll give Gambas3 a try this weekend and I'll start "forwardporting" (or > simply redoing) this part of my code changes to it. > Regards, > Toni > Note that if you do that for debian, you must do that for all other systems supported by the packager! There are four routines in the packager: one for *.deb packages, one for *.rpm packages, one for *.tgz packages (Arch Linux), and one for a tar.gz package installable by "make" and "make install". Regards, -- Beno?t Minisini From rterry at ...627... Fri Feb 12 22:05:45 2010 From: rterry at ...627... (richard terry) Date: Sat, 13 Feb 2010 08:05:45 +1100 Subject: [Gambas-devel] PDF example Message-ID: <201002130805.45637.rterry@...627...> Hi List, I wondered if anyone was using /maintaining the pdf code from the pdf example, as there are a number of problems with it and missing features. I've emailed the original author, but the info at top of the file is quite old (2007) and Daniel says he is not able to contribute anymore. Any info appreciated. I'd be happy to have a go at maintaining it but would need some help as I'm not that clever with anything but basic stuff. Richard From gambas at ...1... Fri Feb 12 23:55:21 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 12 Feb 2010 23:55:21 +0100 Subject: [Gambas-devel] PDF example In-Reply-To: <201002130805.45637.rterry@...627...> References: <201002130805.45637.rterry@...627...> Message-ID: <201002122355.21900.gambas@...1...> > Hi List, > > I wondered if anyone was using /maintaining the pdf code from the pdf > example, as there are a number of problems with it and missing features. > > I've emailed the original author, but the info at top of the file is quite > old (2007) and Daniel says he is not able to contribute anymore. > > Any info appreciated. I'd be happy to have a go at maintaining it but would > need some help as I'm not that clever with anything but basic stuff. > > Richard > Please give more details about what you want to do. I have recently fixed a few problems in the gb.pdf component, and modified the example accordingly. But if you want to play with it and add features, no problem! Just write clean and readable code, as it is an example. Regards, -- Beno?t Minisini From rterry at ...627... Sun Feb 14 11:15:09 2010 From: rterry at ...627... (richard terry) Date: Sun, 14 Feb 2010 21:15:09 +1100 Subject: [Gambas-devel] PDF example In-Reply-To: <201002141110.17945.gambas@...1...> References: <201002130805.45637.rterry@...627...> <201002141758.54088.rterry@...627...> <201002141110.17945.gambas@...1...> Message-ID: <201002142115.09238.rterry@...627...> On Sunday 14 February 2010 21:10:17 you wrote: > > On Sunday 14 February 2010 04:05:12 you wrote: > > > > On Saturday 13 February 2010 09:55:21 you wrote: > > > > > > Hi List, > > > > > > > > > > > > I wondered if anyone was using /maintaining the pdf code from the > > > > > > pdf example, as there are a number of problems with it and > > > > > > missing features. > > > > > > > > > > > > I've emailed the original author, but the info at top of the file > > > > > > is quite old (2007) and Daniel says he is not able to contribute > > > > > > anymore. > > > > > > > > > > > > Any info appreciated. I'd be happy to have a go at maintaining it > > > > > > but would need some help as I'm not that clever with anything but > > > > > > basic stuff. > > > > > > > > > > > > Richard > > > > > > > > > > Please give more details about what you want to do. I have recently > > > > > fixed a few problems in the gb.pdf component, and modified the > > > > > example accordingly. > > > > > > > > > > But if you want to play with it and add features, no problem! Just > > > > > write clean and readable code, as it is an example. > > > > > > > > > > Regards, > > > > > > > > I had a quick look at this with my limited abilities. > > > > > > > > the loading of an indexed file into the tree control dosn't seem to > > > > work if you step through it - I tried many pdf files eg postgresql > > > > documentation and compared what it should be in okular with what > > > > happend as you stepped through the routine that loads the tree > > > > control, and it never seems to get into that section with the > > > > hpdf.index.children. > > > > > > > > Not sure where to head with this > > > > > > > > Regards > > > > > > > > Richard > > > > > > I can read the PDF, but apparently the component gets the index, but > > > never returns the associated pages correctly. > > > > I'm keen to get this working, can you give me any hint how to progress. > > When I looked at the index didn't look correct, maybe just my > > interpretation. > > > > If you give me clues I'll try and work on it. > > > > regards > > > > Richard > > The problem lays apparently in the C++ code of the component: can you deal > with it? > Sorry, I know no c++ at all. What a pity. Maybe some kind soul on the list could help. Unfortunately I can't ask Ian as he is currently not programming, tied up with his psych training I'm afraid. I'll cc this to the lists in hope of help Let me know Richard From david_villalobos_c at ...7... Wed Feb 17 22:45:23 2010 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Wed, 17 Feb 2010 13:45:23 -0800 (PST) Subject: [Gambas-devel] Gambas 3 & BreakPoints Message-ID: <943447.34319.qm@...582...> Hi, is there a trick behind show/hide breakpoints in Gambas 3. See the atthaced example, I can't get it work. Any help please :) Regards -- David -------------- next part -------------- A non-text attachment was scrubbed... Name: BreakPoint-0.0.1.tar.gz Type: application/x-gzip Size: 4645 bytes Desc: not available URL: From gambas at ...1... Mon Feb 22 03:43:28 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 22 Feb 2010 03:43:28 +0100 Subject: [Gambas-devel] Gambas 3 & BreakPoints In-Reply-To: <943447.34319.qm@...582...> References: <943447.34319.qm@...582...> Message-ID: <201002220343.28851.gambas@...1...> > Hi, is there a trick behind show/hide breakpoints in Gambas 3. See the > atthaced example, I can't get it work. > > Any help please :) > > Regards > > -- > David You must define the Editor.BreakpointPicture static property before. -- Beno?t Minisini From gambas at ...1... Mon Feb 22 03:46:58 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 22 Feb 2010 03:46:58 +0100 Subject: [Gambas-devel] Changes in control hidden properties Message-ID: <201002220346.58160.gambas@...1...> Hi, I'm currently working on the ability to have a report editor (and other kind of editors) directly in the IDE. For that, I had to modify the way controls are declared to the IDE. Before, some information were located in hidden properties, other in the *.component files. Now all information related to controls are located in hidden properties. I have updated the documentation on the wiki: http://gambasdoc.org/dev/gambas Regards, -- Beno?t Minisini From rterry at ...627... Tue Feb 23 12:58:42 2010 From: rterry at ...627... (richard terry) Date: Tue, 23 Feb 2010 22:58:42 +1100 Subject: [Gambas-devel] Return after a dialog > end program prematurely Message-ID: <201002232258.42511.rterry@...627...> This seems really odd, perhaps it is my typing, but for a number of versions I've noticed this odd behaviour which I can't track down, but what is happening is that when a dialog box is presented during a function that returns something eg boolean, then when the program continues to execute back in the calling routine, when it gets to the 'end' of a subroutine, the 'end' terminates the program and drops the user back into the IDE. If no dialog in the subroutine, nothing happens. Almost like the 'end' is becoming a signal to quit the program. The following is a typical subroutine: Public Sub EditArea_Buttons_Click() Select Case Last.tag Case "clear" Editarea_Clear() Case "analyse" Analyse_Data() Case "import" Import() End Select End Notice, that it ends with end, not end sub ?am I typing it wrong? Now, prior to importing, I want to analyse the thousands of lines of patient demographic data, to make sure they all have appropriate sex, title, suburbs, postcodes, as legacy data is often falty, so I do this: Public Sub Analyse_Data() '------------------------------------------------------------- 'Analyse the file, point out any glaring errors but don't save 'Display progress as we go by counter, the patients details 'show error messages '------------------------------------------------------------- If Not Valid_Selection() Then Return ...etc Public Sub Valid_Selection() As Boolean If cmbDemographicSource.index = -1 Or cmbVersion.index = -1 Then Message.Info("Please select the source program and version before proceeding") Return False End If Now, if this subroutine returns false and I step through the subroutine, when it gets to the 'end' statement designated here by *****, then the program literally ends, and deposits me back in the IDE ( or quits if compiled) Public Sub EditArea_Buttons_Click() Select Case Last.tag Case "clear" Editarea_Clear() Case "analyse" Analyse_Data() Case "import" Import() End Select End ****** Any thoughts? Regards Richard From gambas.fr at ...176... Thu Feb 25 12:33:24 2010 From: gambas.fr at ...176... (Fabien Bodard) Date: Thu, 25 Feb 2010 12:33:24 +0100 Subject: [Gambas-devel] Return after a dialog > end program prematurely In-Reply-To: <201002232258.42511.rterry@...627...> References: <201002232258.42511.rterry@...627...> Message-ID: <6324a42a1002250333v401a7db5p137228ab117a78cc@...178...> If cmbDemographicSource.index = -1 Or cmbVersion.index = -1 Then Message.Info("Please select the source program and version before proceeding") Return False else Return True End If 2010/2/23 richard terry : > This seems really odd, perhaps it is my typing, but for a number of versions > I've noticed this odd behaviour which I can't track down, but what is > happening is that when ?a dialog box is presented during a function that > returns something eg boolean, then when the program continues to execute back > in the calling routine, when it gets to the 'end' of a subroutine, the 'end' > terminates the program and drops the user back into the IDE. If no dialog in > the subroutine, nothing happens. Almost like the 'end' is becoming a signal to > quit the program. > > The following is a typical subroutine: > > Public Sub EditArea_Buttons_Click() > > ?Select Case Last.tag > ?Case "clear" > ? ? ?Editarea_Clear() > ?Case "analyse" > ? ? ?Analyse_Data() > ?Case "import" > ? ? ?Import() > ?End Select > End > > Notice, that it ends with end, not end sub ?am I typing it wrong? > > Now, prior to importing, I want to analyse the thousands of lines of patient > demographic data, to make sure they all have appropriate sex, title, suburbs, > postcodes, as legacy data is often falty, so I do this: > > Public Sub Analyse_Data() > ? '------------------------------------------------------------- > ? 'Analyse the file, point out any glaring errors but don't save > ? 'Display progress as we go by counter, the patients details > ? 'show error messages > ? '------------------------------------------------------------- > ? ?If Not Valid_Selection() Then Return > ...etc > > Public Sub Valid_Selection() As Boolean > > ? If cmbDemographicSource.index = -1 Or cmbVersion.index = -1 Then > ? ? ?Message.Info("Please select the source program and version before > proceeding") > ? ? ?Return False > ? End If > > Now, if this subroutine returns false and I step through the subroutine, when > it gets to the 'end' statement ?designated here by *****, then the program > literally ends, and deposits me back in the IDE ( or quits if compiled) > > > Public Sub EditArea_Buttons_Click() > > ?Select Case Last.tag > ?Case "clear" > ? ? ?Editarea_Clear() > ?Case "analyse" > ? ? ?Analyse_Data() > ?Case "import" > ? ? ?Import() > ?End Select > End ****** > > > Any thoughts? > > Regards > > Richard > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > From rterry at ...627... Sat Feb 27 10:23:18 2010 From: rterry at ...627... (richard terry) Date: Sat, 27 Feb 2010 20:23:18 +1100 Subject: [Gambas-devel] Another attempt to sort out empty string being interpreted as null Message-ID: <201002272023.18997.rterry@...627...> Hi List, We debated this before and though some persons understood what I was saying, I don't think there was any resolution, so this time I've got a little screen shot to visually demonstrated the problem which is. When one sets a collection member to any empty sting "" gambas beleives this is the same as null and removes the item from the collection ie mycollection!my_key = "Fred" is valid mycollectioin!my_key = "" removes the key from the collection, instead of setting its value to an empty string (ie string with no characters. The implications of this in data saving as illustrated by the picture are as follows Here, the persons name/firstname/salutation were Smith/Stephanie/Steph, this record was saved to the database. however I decided to remove salutation. As gambas then sets this key to null - effectively removing it from the collection, the field in the collection is not updated, and the original value is left intact - ie 'steph' in the database field 'saluation', is not re-set to an empty string. I really wonder what can be done about this. REgards Richar From gambas.fr at ...176... Sat Feb 27 11:58:11 2010 From: gambas.fr at ...176... (Fabien Bodard) Date: Sat, 27 Feb 2010 11:58:11 +0100 Subject: [Gambas-devel] Another attempt to sort out empty string being interpreted as null In-Reply-To: <201002272023.18997.rterry@...627...> References: <201002272023.18997.rterry@...627...> Message-ID: <6324a42a1002270258s4facd59atfcf235f6f7602cff@...178...> an idea... hresult!field=if(mycollection.exist(field), mycollection!field, null) 2010/2/27 richard terry : > Hi List, > > We debated this before and though some persons understood what I was saying, I > don't think there was any resolution, so this time I've got a little screen > shot to visually demonstrated the problem which is. > > When one sets a collection member to any empty sting "" ?gambas beleives this > is the same as null and ?removes the item from the collection > > ie mycollection!my_key = "Fred" is valid > ? mycollectioin!my_key = "" removes the key from the collection, instead of > setting its value to an empty string (ie string with no characters. > > The implications of this in data saving as illustrated by the picture are as > follows > > Here, the persons name/firstname/salutation were Smith/Stephanie/Steph, this > record was saved to the database. however I decided to remove salutation. As > gambas then sets this key to null - effectively removing it from the > collection, the field in the collection is not updated, and the original value > is left intact - ie 'steph' in the database field 'saluation', is not re-set > to an empty string. > > I really wonder what can be done about this. > > REgards > > Richar > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > From gambas at ...1... Sat Feb 27 14:28:59 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 27 Feb 2010 14:28:59 +0100 Subject: [Gambas-devel] Another attempt to sort out empty string being interpreted as null In-Reply-To: <201002272023.18997.rterry@...627...> References: <201002272023.18997.rterry@...627...> Message-ID: <201002271428.59637.gambas@...1...> > Hi List, > > We debated this before and though some persons understood what I was > saying, I don't think there was any resolution, so this time I've got a > little screen shot to visually demonstrated the problem which is. > > When one sets a collection member to any empty sting "" gambas beleives > this is the same as null and removes the item from the collection > > ie mycollection!my_key = "Fred" is valid > mycollectioin!my_key = "" removes the key from the collection, instead > of setting its value to an empty string (ie string with no characters. > > The implications of this in data saving as illustrated by the picture are > as follows > > Here, the persons name/firstname/salutation were Smith/Stephanie/Steph, > this record was saved to the database. however I decided to remove > salutation. As gambas then sets this key to null - effectively removing it > from the collection, the field in the collection is not updated, and the > original value is left intact - ie 'steph' in the database field > 'saluation', is not re-set to an empty string. > > I really wonder what can be done about this. > > REgards > > Richar > Why don't you write the "salutation" field? For Each hField In MyResult.Fields MyResult[hField.Name] = MyCollection[hField.Name] Next MyResult.Update What's the problem with that? -- Beno?t Minisini