From gambas at ...1... Tue Feb 1 11:46:18 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Feb 2005 11:46:18 +0100 Subject: [Gambas-devel] Gambas & ODBC In-Reply-To: <20050126150439.49847.qmail@...221...> References: <20050126150439.49847.qmail@...221...> Message-ID: <200502011146.18608.gambas@...1...> On Wednesday 26 January 2005 16:04, Andrea Bortolan wrote: > Hi all, > you can find the new version of the ODBC module in the > attached files. > Please remember that its still in pre-alpha stage... > You can test it using the Database example,all the > buttons (Delete table, Create table and Fill table > buttons) will perform the correct action . > I tested it connected to a MySQL and an iSeries-DB2, > the example create the tables, delete the tables and > fill the table correctly. > > Have a nice day, Andrea > > Compilation fails... Can you send an archive of the entire odbc directory please ? -- Benoit Minisini mailto:gambas at ...1... From andrea_bortolan at ...112... Tue Feb 1 13:49:38 2005 From: andrea_bortolan at ...112... (Andrea Bortolan) Date: Tue, 1 Feb 2005 13:49:38 +0100 (CET) Subject: [Gambas-devel] Gambas & ODBC In-Reply-To: <200502011146.18608.gambas@...1...> Message-ID: <20050201124938.48794.qmail@...197...> --- Benoit Minisini > Compilation fails... Can you send an archive of the > entire odbc directory > please ? > > -- > Benoit Minisini > mailto:gambas at ...1... > Ok, you'll find it in the attached file. Ciao. ___________________________________ Nuovo Yahoo! Messenger: E' molto pi? divertente: Audibles, Avatar, Webcam, Giochi, Rubrica Scaricalo ora! http://it.messenger.yahoo.it -------------- next part -------------- A non-text attachment was scrubbed... Name: odbc.tar.gz Type: application/x-gzip Size: 76999 bytes Desc: odbc.tar.gz URL: From gambas at ...1... Tue Feb 1 14:12:41 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Feb 2005 14:12:41 +0100 Subject: [Gambas-devel] Gambas & ODBC In-Reply-To: <20050201124938.48794.qmail@...197...> References: <20050201124938.48794.qmail@...197...> Message-ID: <200502011412.41674.gambas@...1...> On Tuesday 01 February 2005 13:49, Andrea Bortolan wrote: > --- Benoit Minisini > > > Compilation fails... Can you send an archive of the > > entire odbc directory > > please ? > > > > -- > > Benoit Minisini > > mailto:gambas at ...1... > > Ok, you'll find it in the attached file. > Ciao. > Still have many compilation errors. Which version of gcc do you use ? -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 1 14:19:49 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Feb 2005 14:19:49 +0100 Subject: [Gambas-devel] Gambas & ODBC In-Reply-To: <20050201124938.48794.qmail@...197...> References: <20050201124938.48794.qmail@...197...> Message-ID: <200502011419.49905.gambas@...1...> On Tuesday 01 February 2005 13:49, Andrea Bortolan wrote: > --- Benoit Minisini > > > Compilation fails... Can you send an archive of the > > entire odbc directory > > please ? > > > > -- > > Benoit Minisini > > mailto:gambas at ...1... > > Ok, you'll find it in the attached file. > Ciao. > > I succeeded in compiling your files. I had to move two static functions because they were used before their declarations, and I had to rename a local variable that had the same name as a parameter, in field_index(). I join the modified 'main.c' file... -- Benoit Minisini mailto:gambas at ...1... -------------- next part -------------- A non-text attachment was scrubbed... Name: main.c Type: text/x-csrc Size: 57305 bytes Desc: not available URL: From daniel.campos at ...103... Thu Feb 3 12:52:09 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Thu, 03 Feb 2005 12:52:09 +0100 Subject: [Gambas-devel] gtk 050203 Message-ID: <42021069.2020601@...103...> Hi: Here's a new release of the GTK+ component. The ListBox widget has been added, the ComboBox is working too. Regards, D. Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: gtk-050203-gb1.9.tar.bz2 Type: application/x-bzip Size: 67276 bytes Desc: not available URL: From nigel at ...2... Thu Feb 3 15:57:26 2005 From: nigel at ...2... (nigel at ...2...) Date: Thu, 3 Feb 2005 15:57:26 +0100 (CET) Subject: [Gambas-devel] Update for Sqlite driver Message-ID: <22214771.1107442646028.JavaMail.www@...222...> Benoit, Attached are patch files for sqlite. They solve a problem where the default value for a field is not returned. This is evident in the datamanager. Nigel -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: qry_dat.cpp.diff Type: text/x-patch Size: 126 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: main.cpp.diff Type: text/x-patch Size: 234 bytes Desc: not available URL: From terveer at ...223... Thu Feb 3 23:53:31 2005 From: terveer at ...223... (H.R. ter Veer) Date: Thu, 3 Feb 2005 23:53:31 +0100 Subject: [Gambas-devel] Error while editing FEditor.form Message-ID: <20050203225335.9A28F9E@...224...> Hi, I'm new to the gambas list, so i don't know if i'm rude or anything, but.. One thing -ok some more, but that later- i missed in the editor of GamBAS was a statusline. OK, i know, the current line & col are showed in the title, but anyway. I altered the gambas interface i worked with (1.0.2) by adding a panel to the FEditor form, without any problems. So, thinking that if i want to upload the source, or CVS (is there any), i should be working wiht the latest (developer) release, to be sure things fit. Though, when adding a panel to the FEditor form, the edtEditor object is being removed. Not noticable, but when you try to compile it fails. If you then close & reopen the project, then the edtEditor object gone. I'm afraid it's a problem in the index when adding things to a form, but i couldn't reproduce it in another, more simple project. Greetings, Harm Richt P.S. Forgot to mention that GamBAS is a great development toolkit. Real cool! -- ------------------------------------------------------------------------------ The only thing you can rely on is that you ca'n rely on anyting --------------------------------------------------------------------Placebo--- From terveer at ...223... Fri Feb 4 00:21:49 2005 From: terveer at ...223... (H.R. ter Veer) Date: Fri, 4 Feb 2005 00:21:49 +0100 Subject: [Gambas-devel] Error while editing FEditor.form In-Reply-To: <20050203225335.9A28F9E@...224...> References: <20050203225335.9A28F9E@...224...> Message-ID: <20050203232153.C7A6D81@...225...> I found it's in the GambasEditor Object. To reproduce it: 1) start a simple (new) project 2) Add a form & a button (or anything) 3) run the project, everything is fine. 4) add the gb.qt.editor to the components of the project & create a gambaseditor on the form 5) run the program everything, the gambaseditor is nog visible 6) double-click on the gambaseditor control, the class is opened fine, add some code (gambaseditor1.---) the autocomplete opens fine. 7) try to compile or run: unknown identifier gambaseditor1 On Thu, 3 Feb 2005 23:53:31 +0100 "H.R. ter Veer" wrote: > > Hi, > > I'm new to the gambas list, so i don't know if i'm rude or anything, but.. > One thing -ok some more, but that later- i missed in the editor of GamBAS > was a statusline. OK, i know, the current line & col are showed in the title, but anyway. > > I altered the gambas interface i worked with (1.0.2) by adding a panel to the FEditor form, > without any problems. > > So, thinking that if i want to upload the source, or CVS (is there any), i should be working wiht the latest (developer) release, to be sure things fit. > > Though, when adding a panel to the FEditor form, the edtEditor object is being removed. > Not noticable, but when you try to compile it fails. If you then close & reopen the project, then the edtEditor object gone. > > I'm afraid it's a problem in the index when adding things to a form, but i couldn't reproduce it in another, more simple project. > > Greetings, > > Harm Richt > > > P.S. > > Forgot to mention that GamBAS is a great development toolkit. Real cool! > > -- > ------------------------------------------------------------------------------ > > The only thing you can rely on is that you ca'n rely on anyting > > --------------------------------------------------------------------Placebo--- > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > > -- ------------------------------------------------------------------------------ The only thing you can rely on is that you ca'n rely on anyting --------------------------------------------------------------------Placebo--- From sourceforge-raindog2 at ...19... Fri Feb 4 00:39:13 2005 From: sourceforge-raindog2 at ...19... (Rob) Date: Thu, 3 Feb 2005 18:39:13 -0500 Subject: [Gambas-devel] Error while editing FEditor.form In-Reply-To: <20050203225335.9A28F9E@...224...> References: <20050203225335.9A28F9E@...224...> Message-ID: <200502031839.13341.sourceforge-raindog2@...19...> On Thursday 03 February 2005 17:53, H.R. ter Veer wrote: > So, thinking that if i want to upload the source, or CVS (is > there any), i should be working wiht the latest (developer) > release, to be sure things fit. > > Though, when adding a panel to the FEditor form, the edtEditor > object is being removed. Not noticable, but when you try to > compile it fails. If you then close & reopen the project, then > the edtEditor object gone. > > I'm afraid it's a problem in the index when adding things to a > form, but i couldn't reproduce it in another, more simple > project. I have spent some time bashing my head against this same bug in 1.9.2. (That is the newest release; I don't think Benoit uses cvs at all, and if he does it's not public.) It's easy to reproduce: create a form, add a tabstrip to it, put something else in the tabstrip (maybe that's not even necessary), save the form, close Gambas, reopen Gambas, reopen the form, and the tabstrip is gone. Or, just save the form and then look at its .form file. This makes 1.9.2 unusable for anything but fairly simple forms (luckily, my Import VB Project form was quite simple.) From gambas at ...1... Fri Feb 4 12:27:40 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 4 Feb 2005 12:27:40 +0100 Subject: [Gambas-devel] Error while editing FEditor.form In-Reply-To: <200502031839.13341.sourceforge-raindog2@...19...> References: <20050203225335.9A28F9E@...224...> <200502031839.13341.sourceforge-raindog2@...19...> Message-ID: <200502041227.40818.gambas@...1...> On Friday 04 February 2005 00:39, Rob wrote: > On Thursday 03 February 2005 17:53, H.R. ter Veer wrote: > > So, thinking that if i want to upload the source, or CVS (is > > there any), i should be working wiht the latest (developer) > > release, to be sure things fit. > > > > Though, when adding a panel to the FEditor form, the edtEditor > > object is being removed. Not noticable, but when you try to > > compile it fails. If you then close & reopen the project, then > > the edtEditor object gone. > > > > I'm afraid it's a problem in the index when adding things to a > > form, but i couldn't reproduce it in another, more simple > > project. > > I have spent some time bashing my head against this same bug in > 1.9.2. (That is the newest release; I don't think Benoit uses > cvs at all, and if he does it's not public.) It's easy to > reproduce: create a form, add a tabstrip to it, put something > else in the tabstrip (maybe that's not even necessary), save the > form, close Gambas, reopen Gambas, reopen the form, and the > tabstrip is gone. Or, just save the form and then look at its > .form file. This makes 1.9.2 unusable for anything but fairly > simple forms (luckily, my Import VB Project form was quite > simple.) > > From my debugging I have come to the same conclusion as you... > the Control collection in FForm is getting populated with NULLs > instead of CControls for some control types. I assume that > there's an error somewhere that's being hidden by a TRY or CATCH > with no warning, but I haven't found it yet. (I tried globally > commenting out the CATCH command across the entire project.... > that didn't work so well.... :) ) Diffing 1.9.2 against 1.0.2 > (eliminating the .lang subdirectory) gives about 600 lines of > diff output, and none of it looks like it could be causing the > error to me. > > Rob > This bug is fixed in the 1.9.3. It was related to the implementation of virtual method dispatching. Sorry for the inconvenience, but I have warned that things will break! :-) Regards, -- Benoit Minisini mailto:gambas at ...1... From terveer at ...223... Fri Feb 4 13:50:42 2005 From: terveer at ...223... (H.R. ter Veer) Date: Fri, 4 Feb 2005 13:50:42 +0100 Subject: [Gambas-devel] Error while editing FEditor.form In-Reply-To: <200502041227.40818.gambas@...1...> References: <20050203225335.9A28F9E@...224...> <200502031839.13341.sourceforge-raindog2@...19...> <200502041227.40818.gambas@...1...> Message-ID: <20050204135042.7d7dc225@...226...> Hey , come on, no excuses, it's no problem! I'm just trying to help by calling what's wrong. Better help to find broken thing in these releases than in stable ones right? I'll try the 1.9.3 version. By the way, is there anything more we can do? I saw the dutch TIPS still missing for example, can we mail added sources or whatever? Greetings & thanks Harm On Fri, 4 Feb 2005 12:27:40 +0100 Benoit Minisini wrote: > On Friday 04 February 2005 00:39, Rob wrote: > > On Thursday 03 February 2005 17:53, H.R. ter Veer wrote: > > > So, thinking that if i want to upload the source, or CVS (is > > > there any), i should be working wiht the latest (developer) > > > release, to be sure things fit. > > > > > > Though, when adding a panel to the FEditor form, the edtEditor > > > object is being removed. Not noticable, but when you try to > > > compile it fails. If you then close & reopen the project, then > > > the edtEditor object gone. > > > > > > I'm afraid it's a problem in the index when adding things to a > > > form, but i couldn't reproduce it in another, more simple > > > project. > > > > I have spent some time bashing my head against this same bug in > > 1.9.2. (That is the newest release; I don't think Benoit uses > > cvs at all, and if he does it's not public.) It's easy to > > reproduce: create a form, add a tabstrip to it, put something > > else in the tabstrip (maybe that's not even necessary), save the > > form, close Gambas, reopen Gambas, reopen the form, and the > > tabstrip is gone. Or, just save the form and then look at its > > .form file. This makes 1.9.2 unusable for anything but fairly > > simple forms (luckily, my Import VB Project form was quite > > simple.) > > > > From my debugging I have come to the same conclusion as you... > > the Control collection in FForm is getting populated with NULLs > > instead of CControls for some control types. I assume that > > there's an error somewhere that's being hidden by a TRY or CATCH > > with no warning, but I haven't found it yet. (I tried globally > > commenting out the CATCH command across the entire project.... > > that didn't work so well.... :) ) Diffing 1.9.2 against 1.0.2 > > (eliminating the .lang subdirectory) gives about 600 lines of > > diff output, and none of it looks like it could be causing the > > error to me. > > > > Rob > > > > This bug is fixed in the 1.9.3. It was related to the implementation of > virtual method dispatching. > > Sorry for the inconvenience, but I have warned that things will break! :-) > > Regards, > > -- > Benoit Minisini > mailto:gambas at ...1... > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -- ------------------------------------------------------------------ Cast the calming apple Up and over satellites To draw out the timid wild one To convince you it's alright And I listen for the whisper Of your sweet insanity while I formulate Denials of your affect on me You're a stranger So what do I care You vanish today Not the first time I hear All the lies What am I to do with all this silence Shy away, shy away phantom Run away terrified child Won't you move away you fucking tornado I'm better off without you Tearing my will down -------------------------------------------- a Perfect Circle ---- From gambas at ...1... Fri Feb 4 13:53:06 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 4 Feb 2005 13:53:06 +0100 Subject: [Gambas-devel] Update for Sqlite driver In-Reply-To: <22214771.1107442646028.JavaMail.www@...222...> References: <22214771.1107442646028.JavaMail.www@...222...> Message-ID: <200502041353.06383.gambas@...1...> On Thursday 03 February 2005 15:57, nigel at ...2... wrote: > Benoit, > > Attached are patch files for sqlite. They solve a problem where the > default value for a field is not returned. This is evident in the > datamanager. > > Nigel OK. Thanks! -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Fri Feb 4 13:53:16 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 4 Feb 2005 13:53:16 +0100 Subject: [Gambas-devel] gtk 050203 In-Reply-To: <42021069.2020601@...103...> References: <42021069.2020601@...103...> Message-ID: <200502041353.16192.gambas@...1...> On Thursday 03 February 2005 12:52, Daniel Campos wrote: > Hi: > > Here's a new release of the GTK+ component. The ListBox widget has been > added, > the ComboBox is working too. > > Regards, > > D. Campos OK. Got it... -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Fri Feb 4 13:56:03 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 4 Feb 2005 13:56:03 +0100 Subject: [Gambas-devel] Error while editing FEditor.form In-Reply-To: <20050204135042.7d7dc225@...226...> References: <20050203225335.9A28F9E@...224...> <200502041227.40818.gambas@...1...> <20050204135042.7d7dc225@...226...> Message-ID: <200502041356.03703.gambas@...1...> On Friday 04 February 2005 13:50, H.R. ter Veer wrote: > Hey , come on, no excuses, it's no problem! > I'm just trying to help by calling what's wrong. > Better help to find broken thing in these releases than in stable ones > right? I'll try the 1.9.3 version. > > By the way, is there anything more we can do? > I saw the dutch TIPS still missing for example, can we mail added sources > or whatever? Of course. -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...19... Fri Feb 4 15:25:53 2005 From: sourceforge-raindog2 at ...19... (Rob) Date: Fri, 4 Feb 2005 09:25:53 -0500 Subject: [Gambas-devel] Error while editing FEditor.form In-Reply-To: <200502041227.40818.gambas@...1...> References: <20050203225335.9A28F9E@...224...> <200502031839.13341.sourceforge-raindog2@...19...> <200502041227.40818.gambas@...1...> Message-ID: <200502040925.53494.sourceforge-raindog2@...19...> On Friday 04 February 2005 06:27, Benoit Minisini wrote: > This bug is fixed in the 1.9.3. It was related to the > implementation of virtual method dispatching. Thanks, I look forward to 1.9.3 :) > Sorry for the inconvenience, but I have warned that things > will break! :-) My frustration wasn't with the instability (you have to tear things down sometimes to build things up) but with my own inability to find the problem. Doesn't matter now.... Rob From ronstk at ...124... Fri Feb 4 17:21:53 2005 From: ronstk at ...124... (Ron Onstenk) Date: Fri, 4 Feb 2005 17:21:53 +0100 Subject: [Gambas-devel] Error while editing FEditor.form In-Reply-To: <20050204135042.7d7dc225@...226...> References: <20050203225335.9A28F9E@...224...> <200502041227.40818.gambas@...1...> <20050204135042.7d7dc225@...226...> Message-ID: <200502041721.54059.ronstk@...124...> On Friday 04 February 2005 13:50, H.R. ter Veer wrote: | | Hey , come on, no excuses, it's no problem! | I'm just trying to help by calling what's wrong. | Better help to find broken thing in these releases than in stable ones right? | I'll try the 1.9.3 version. | | By the way, is there anything more we can do? | I saw the dutch TIPS still missing for example, can we mail added sources or whatever? | | Greetings & thanks | | Harm | I had just finished the update for 1.0.2 but readed 1.0.3 is comming. The tips in Dutch are left at my work location, I cant reach it ATM. I have to redo it or wait till March :( I rework the next days for 1.0.3 because it is downloaded now. :) Ron From sourceforge-raindog2 at ...19... Fri Feb 4 19:37:15 2005 From: sourceforge-raindog2 at ...19... (Rob) Date: Fri, 4 Feb 2005 13:37:15 -0500 Subject: [Gambas-devel] better integrated VB import Message-ID: <200502041337.15940.sourceforge-raindog2@...19...> Here's the VB import stuff, rewritten to be integrated into the New Project wizard (for .vbp files) and the Add Form dialog (for .frm files.) Extract these files over a vanilla gambas2 1.9.2 IDE source directory to apply the changes. Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas2-1.9.2-vb-import-20050204.tar.gz Type: application/x-tgz Size: 9817 bytes Desc: not available URL: From Karl.Reinl at ...16... Fri Feb 4 20:27:12 2005 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Fri, 4 Feb 2005 20:27:12 +0100 Subject: [Gambas-devel] gambas-IDE with a Sourcecode-Printer and a Sourcecode-PrettyPrinter for gambas-1.0.2 Message-ID: <200502042002.30372.Karl.Reinl@...16...> Salut , I released a patch and the whole IDE at . http://www.binara.com/gambas-wiki/bin/view/Gambas/ForGambas-102 I also released for gambas 1.0.3, but it is the same, while nothing on the IDE had changed it points to back to ForGambas-102. http://www.binara.com/gambas-wiki/bin/view/Gambas/ForGambas-103 You will find a description there. I hope to find other IDE projects soon. Amicalment Charlie From pduflot at ...227... Sat Feb 5 19:10:21 2005 From: pduflot at ...227... (Patrick Duflot) Date: Sat, 05 Feb 2005 19:10:21 +0100 Subject: [Gambas-devel] missing components in toolbox Message-ID: <1107627021.25220.7.camel@...228...> First, i'm sorry for my poor poor English ;-)) Is Anybody know if there is a reason because, even i check all libraries in my project's properties ( ie gb, gb.compress, gb.db, gb.debug and so on), why i've never seen them in the toolbox ( in fact, i can see only those for "form, network, qt and gtk"). Have'i made a mistake during installation ? Thank every body Patrick ps . Is it possible to make graphical components , ie components which are visible in this toolbox ? From sourceforge-raindog2 at ...19... Sat Feb 5 21:43:19 2005 From: sourceforge-raindog2 at ...19... (Rob) Date: Sat, 5 Feb 2005 15:43:19 -0500 Subject: [Gambas-devel] missing components in toolbox In-Reply-To: <1107627021.25220.7.camel@...228...> References: <1107627021.25220.7.camel@...228...> Message-ID: <200502051543.19548.sourceforge-raindog2@...19...> On Saturday 05 February 2005 13:10, Patrick Duflot wrote: > Is Anybody know if there is a reason because, even i check all > libraries in my project's properties ( ie gb, gb.compress, > gb.db, gb.debug and so on), why i've never seen them in the > toolbox ( in fact, i can see only those for "form, network, qt > and gtk"). > Have'i made a mistake during installation ? No, everything's fine. Components in Gambas fulfill the functions of both components and references in VB... a Gambas component can have both controls (which would go into the toolbox) and normal classes (which don't.) You can tell the difference by looking at the .component files associated with each component.... lib.gb.qt.component has "Group=" and "Controls=" lines, whereas lib.gb.db.component does not. You should also have a KDE group in your toolbox though, containing the URLLabel, ColorBox and DatePicker controls. > ps . Is it possible to make graphical components , ie > components which are visible in this toolbox ? Sure, if you want to write them in C or C++. :) Native graphical components will come eventually. Rob From mark at ...229... Mon Feb 7 05:04:38 2005 From: mark at ...229... (Mark Petryk) Date: Sun, 06 Feb 2005 22:04:38 -0600 Subject: [Gambas-devel] db controls for gambas Message-ID: <4206E8D6.3050908@...229...> Is anyone working on db controls for gambas? If so, do you need help? From gambas at ...1... Mon Feb 7 16:31:23 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Feb 2005 16:31:23 +0100 Subject: [Gambas-devel] better integrated VB import In-Reply-To: <200502041337.15940.sourceforge-raindog2@...19...> References: <200502041337.15940.sourceforge-raindog2@...19...> Message-ID: <200502071631.23837.gambas@...1...> On Friday 04 February 2005 19:37, Rob wrote: > Here's the VB import stuff, rewritten to be integrated into the > New Project wizard (for .vbp files) and the Add Form dialog (for > .frm files.) Extract these files over a vanilla gambas2 1.9.2 > IDE source directory to apply the changes. > > Rob I didn't succeed in compiling it: FImportProject.class:5: Unknown identifier: vbpbox I think you didn't send all files :-) -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...19... Mon Feb 7 17:01:21 2005 From: sourceforge-raindog2 at ...19... (Rob) Date: Mon, 7 Feb 2005 11:01:21 -0500 Subject: [Gambas-devel] better integrated VB import In-Reply-To: <200502071631.23837.gambas@...1...> References: <200502041337.15940.sourceforge-raindog2@...19...> <200502071631.23837.gambas@...1...> Message-ID: <200502071101.21655.sourceforge-raindog2@...19...> On Monday 07 February 2005 10:31, Benoit Minisini wrote: > On Friday 04 February 2005 19:37, Rob wrote: > > Here's the VB import stuff, rewritten to be integrated into > > the New Project wizard (for .vbp files) and the Add Form > > dialog (for .frm files.) Extract these files over a vanilla > > gambas2 1.9.2 IDE source directory to apply the changes. > I didn't succeed in compiling it: > FImportProject.class:5: Unknown identifier: vbpbox > I think you didn't send all files :-) Actually, I sent too many files.... FImportProject.class is left over from the standalone version of the importer. You should just be able to delete it.... Rob From sourceforge-raindog2 at ...19... Mon Feb 7 19:17:44 2005 From: sourceforge-raindog2 at ...19... (Rob) Date: Mon, 7 Feb 2005 13:17:44 -0500 Subject: [Gambas-devel] qt/win32 finally GPL'ed Message-ID: <200502071317.44394.sourceforge-raindog2@...19...> http://www.osnews.com/story.php?news_id=9635 (don't bother clicking on the trolltech link, they must have gotten slashdotted...) I know there'd be a lot more work before it'd be possible to get a full native Win32 Gambas and gb.qt component, but at least now it's legally possible. Rob From bdragon at ...185... Mon Feb 7 19:47:40 2005 From: bdragon at ...185... (Brandon Bergren) Date: Mon, 7 Feb 2005 12:47:40 -0600 (Central Standard Time) Subject: [Gambas-devel] qt/win32 finally GPL'ed In-Reply-To: <200502071317.44394.sourceforge-raindog2@...19...> References: <200502071317.44394.sourceforge-raindog2@...19...> Message-ID: On Mon, 7 Feb 2005, Rob wrote: > http://www.osnews.com/story.php?news_id=9635 > > (don't bother clicking on the trolltech link, they must have > gotten slashdotted...) NYUD Coral links: http://www.trolltech.com.nyud.net:8090/newsroom/announcements/00000192.html http://www.trolltech.com.nyud.net:8090/developer/faqs/duallicense.html > > I know there'd be a lot more work before it'd be possible to get > a full native Win32 Gambas and gb.qt component, but at least now > it's legally possible. > > Rob When QT4 is released, at least. The dual license faq says "Late Q2 in 2005." In any case, I am certainly watching the proceedings with interest. :) --Brandon Bergren > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel From frankberg at ...136... Mon Feb 7 21:12:15 2005 From: frankberg at ...136... (Frank Berg) Date: Mon, 7 Feb 2005 21:12:15 +0100 Subject: [Gambas-devel] compile gambas2 1.9.3 Message-ID: <002e01c50d51$53092ef0$c6f0fea9@...146...> hi, i'm using suse 9.2 i was try to compile gambas2 1.9.3 ./configure without errors make with many many warnings and without errors make install break with error: Compiling Sound/CDPlayer/... OK Compiling Sound/MusicPlayer/... /usr/local/share/gambas2/examples/Sound/MusicPlayer/FSoundPlayer.class:13: Unknown identifier: Music /bin/sh: line 1: 9141 Abgebrochen /usr/local/bin/gbc2 -ag second error is same error as in gambas 0.x.xxx if i call gbi -a or now gbi2 -a i receive an error packet:/home/gambas/gambas2-1.9.3 # gbi2 -a /usr/local/share/gambas2/info/gb.net.info /usr/local/share/gambas2/info/gb.xml.libxml.rpc.info /usr/local/share/gambas2/info/gb.qt.ext.info /usr/local/share/gambas2/info/gb.pcre.info /usr/local/share/gambas2/info/gb.qt.kde.html.info /usr/local/share/gambas2/info/gb.debug.info /usr/local/share/gambas2/info/gb.sdl.sound.info /usr/local/share/gambas2/info/gb.sdl.info gbi: /usr/local/lib/gambas2/lib.gb.so: not found packet:/home/gambas/gambas2-1.9.3 # the file lib.gb.so is still not found in /usr/local/lib/gambas2 if i create an own component i must copy this file to the destination /usr/local/lib/gambas2 frank From sourceforge-raindog2 at ...19... Mon Feb 7 21:25:36 2005 From: sourceforge-raindog2 at ...19... (Rob) Date: Mon, 7 Feb 2005 15:25:36 -0500 Subject: [Gambas-devel] compile gambas2 1.9.3 In-Reply-To: <002e01c50d51$53092ef0$c6f0fea9@...146...> References: <002e01c50d51$53092ef0$c6f0fea9@...146...> Message-ID: <200502071525.36721.sourceforge-raindog2@...19...> On Monday 07 February 2005 15:12, Frank Berg wrote: > gbi: /usr/local/lib/gambas2/lib.gb.so: not found In my RPM spec, I have been manually copying this file into the appropriate place prior to running gbi -a. This has been happening forever, as far as I know. Rob From terveer at ...223... Tue Feb 8 08:15:25 2005 From: terveer at ...223... (H.R. ter Veer) Date: Tue, 8 Feb 2005 08:15:25 +0100 Subject: [Gambas-devel] Error while editing FEditor.form In-Reply-To: <200502041721.54059.ronstk@...124...> References: <20050203225335.9A28F9E@...224...> <200502041227.40818.gambas@...1...> <20050204135042.7d7dc225@...226...> <200502041721.54059.ronstk@...124...> Message-ID: <20050208081525.4db7c3a5@...226...> On Fri, 4 Feb 2005 17:21:53 +0100 Ron Onstenk wrote: I just finished the TIPS translation, sorry .... If you want to i can send them, so you can check them for "spelfouten". Harm > On Friday 04 February 2005 13:50, H.R. ter Veer wrote: > | > | Hey , come on, no excuses, it's no problem! > | I'm just trying to help by calling what's wrong. > | Better help to find broken thing in these releases than in stable ones right? > | I'll try the 1.9.3 version. > | > | By the way, is there anything more we can do? > | I saw the dutch TIPS still missing for example, can we mail added sources or whatever? > | > | Greetings & thanks > | > | Harm > | > > I had just finished the update for 1.0.2 but readed 1.0.3 is comming. > The tips in Dutch are left at my work location, I cant reach it ATM. > I have to redo it or wait till March :( > > I rework the next days for 1.0.3 because it is downloaded now. :) > > Ron > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -- ------------------------------------------------------------------ Cast the calming apple Up and over satellites To draw out the timid wild one To convince you it's alright And I listen for the whisper Of your sweet insanity while I formulate Denials of your affect on me You're a stranger So what do I care You vanish today Not the first time I hear All the lies What am I to do with all this silence Shy away, shy away phantom Run away terrified child Won't you move away you fucking tornado I'm better off without you Tearing my will down -------------------------------------------- a Perfect Circle ---- From ronstk at ...124... Tue Feb 8 14:29:02 2005 From: ronstk at ...124... (Ron Onstenk) Date: Tue, 8 Feb 2005 14:29:02 +0100 Subject: [Gambas-devel] Error while editing FEditor.form In-Reply-To: <20050208081525.4db7c3a5@...226...> References: <20050203225335.9A28F9E@...224...> <200502041721.54059.ronstk@...124...> <20050208081525.4db7c3a5@...226...> Message-ID: <200502081429.02943.ronstk@...124...> On Tuesday 08 February 2005 08:15, H.R. ter Veer wrote: | On Fri, 4 Feb 2005 17:21:53 +0100 | Ron Onstenk wrote: | | I just finished the TIPS translation, sorry .... | If you want to i can send them, so you can check them for "spelfouten". | | Harm | | No problem my way :D A test for "spelfouten" is never wrong. I will do it if you send the file to my email address, but take in account English is also not my native speaking. These errors can be found with a spell checking program. The grammar is for me the same problem as you have. My education was LTS electro, if you have MULO, HBS or some more recent education like that you may be better then me :) I make also mistakes. Beside of that, translations are not in a controlled environment for gambas. Every one can do it and Benoit takes what he gets. I do not belive he has a list of masters for translating. Ron From terveer at ...223... Tue Feb 8 16:14:31 2005 From: terveer at ...223... (H.R. ter Veer) Date: Tue, 8 Feb 2005 16:14:31 +0100 Subject: [Gambas-devel] Error while editing FEditor.form In-Reply-To: <200502081429.02943.ronstk@...124...> References: <20050203225335.9A28F9E@...224...> <200502041721.54059.ronstk@...124...> <20050208081525.4db7c3a5@...226...> <200502081429.02943.ronstk@...124...> Message-ID: <20050208161431.04caf435@...226...> On Tue, 8 Feb 2005 14:29:02 +0100 Ron Onstenk wrote: > On Tuesday 08 February 2005 08:15, H.R. ter Veer wrote: > | On Fri, 4 Feb 2005 17:21:53 +0100 > | Ron Onstenk wrote: > | > | I just finished the TIPS translation, sorry .... > | If you want to i can send them, so you can check them for "spelfouten". > | > | Harm > | > | > > > My education was LTS electro, if you have MULO, HBS or some > more recent education like that you may be better then me :) > I make also mistakes. > LOL, education is seldom a reference for good grammar or spelling :) -- ------------------------------------------------------------------ Cast the calming apple Up and over satellites To draw out the timid wild one To convince you it's alright And I listen for the whisper Of your sweet insanity while I formulate Denials of your affect on me You're a stranger So what do I care You vanish today Not the first time I hear All the lies What am I to do with all this silence Shy away, shy away phantom Run away terrified child Won't you move away you fucking tornado I'm better off without you Tearing my will down -------------------------------------------- a Perfect Circle ---- From bdragon at ...185... Thu Feb 10 04:13:27 2005 From: bdragon at ...185... (Brandon Bergren) Date: Wed, 9 Feb 2005 21:13:27 -0600 (Central Standard Time) Subject: [Gambas-devel] gtk 050203 In-Reply-To: <200502041353.16192.gambas@...1...> References: <42021069.2020601@...103...> <200502041353.16192.gambas@...1...> Message-ID: On Fri, 4 Feb 2005, Benoit Minisini wrote: > On Thursday 03 February 2005 12:52, Daniel Campos wrote: >> Hi: >> >> Here's a new release of the GTK+ component. The ListBox widget has been >> added, >> the ComboBox is working too. >> >> Regards, >> >> D. Campos > > OK. Got it... > > -- > Benoit Minisini > mailto:gambas at ...1... > Ow, link error. Creating library file: .libs/lib.gb.gtk.dll.a .libs/CListBox.o(.text+0x26a): In function `_Z18CLISTBOX_item_textPvS_': /home/iggy/build/gambas2-1.9.3/src/lib/gtk/CListBox.cpp:171: undefined reference to `gListBox::setItemText(long, char*)' .libs/CListBox.o(.text+0x14c): In function `_Z14CLISTBOX_indexPvS_': /home/iggy/build/gambas2-1.9.3/src/lib/gtk/CListBox.cpp:118: undefined reference to `gListBox::setIndex(long)' collect2: ld returned 1 exit status make[4]: *** [lib.gb.gtk.la] Error 1 And then I see: widgets.h: void setIndex(long vl); //TODO void setItemSelected(long ind,bool vl); void setItemText(long ind,char *txt); //TODO Nice. Could you at least stub all your functions out? ;P Nice work, the only compile time errors on Cygwin are those missing functions. --Brandon P.S. I started a page to dump stuff pertaining to the Cygwin port. It's here: http://bdragon.freeshell.org/projects/gambas/ But it doesn't have anything useful yet. From bdragon at ...185... Thu Feb 10 08:02:19 2005 From: bdragon at ...185... (Brandon Bergren) Date: Thu, 10 Feb 2005 01:02:19 -0600 Subject: [Gambas-devel] Gambas on Windows: GTK Screenshots! :) Message-ID: <20050210010219.bfi6lck0lr6s4o44@...186...> Well, I had to use a dirty hack on gbx's library loader, but here we go! gb.gtk on Windows! Now I know that C++ shared objects on Windows is feasable! http://bdragon.freeshell.org/projects/gambas/gambas1.png http://bdragon.freeshell.org/projects/gambas/gambas2.png http://bdragon.freeshell.org/projects/gambas/gambas3.png http://bdragon.freeshell.org/projects/gambas/gambas4.png For some reason, libltdl really isn't working all that swell on Cygwin. There's a bug in it somewhere. I'll find it someday... Maybe if I apply the same tricks to QT that I learned while getting this up and running today, I can persuade THAT to work. :) But right now, I'm going to sleep. By the way, the screenshots are gb.gtk running gambas examples on a local X server (X/Deep32 from www.pexis.com, running in multiwindow mode.) Native Win32 is still a way off, but at least now I can see where I'm going ;) --Brandon From daniel.campos at ...103... Thu Feb 10 09:35:44 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Thu, 10 Feb 2005 09:35:44 +0100 Subject: [Gambas-devel] gtk 050203 In-Reply-To: References: <42021069.2020601@...103...> <200502041353.16192.gambas@...1...> Message-ID: <420B1CE0.2030707@...103...> > > > Could you at least stub all your functions out? ;P Yes, I will do it for the next version, this is another difference between Linux and Cygwin compilers! Regards, D. Campos From daniel.campos at ...103... Thu Feb 10 09:38:44 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Thu, 10 Feb 2005 09:38:44 +0100 Subject: [Gambas-devel] Gambas on Windows: GTK Screenshots! :) In-Reply-To: <20050210010219.bfi6lck0lr6s4o44@...186...> References: <20050210010219.bfi6lck0lr6s4o44@...186...> Message-ID: <420B1D94.1010206@...103...> Brandon Bergren escribi?: >Well, I had to use a dirty hack on gbx's library loader, but here we go! > >gb.gtk on Windows! > >Now I know that C++ shared objects on Windows is feasable! > > > > COOL!!!! REALLY COOL!!!! THIS IS GREAT!!!!! And it looks like a native win32 application!!!! Regards, D. Campos From gambas at ...1... Thu Feb 10 10:54:28 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 10 Feb 2005 10:54:28 +0100 Subject: [Gambas-devel] Gambas on Windows: GTK Screenshots! :) In-Reply-To: <20050210010219.bfi6lck0lr6s4o44@...186...> References: <20050210010219.bfi6lck0lr6s4o44@...186...> Message-ID: <200502101054.28131.gambas@...1...> On Thursday 10 February 2005 08:02, Brandon Bergren wrote: > Well, I had to use a dirty hack on gbx's library loader, but here we go! > > gb.gtk on Windows! > > Now I know that C++ shared objects on Windows is feasable! > > > http://bdragon.freeshell.org/projects/gambas/gambas1.png > http://bdragon.freeshell.org/projects/gambas/gambas2.png > http://bdragon.freeshell.org/projects/gambas/gambas3.png > http://bdragon.freeshell.org/projects/gambas/gambas4.png > > For some reason, libltdl really isn't working all that swell on Cygwin. > There's a bug in it somewhere. I'll find it someday... > > Maybe if I apply the same tricks to QT that I learned while getting this up > and running today, I can persuade THAT to work. :) > > But right now, I'm going to sleep. > > By the way, the screenshots are gb.gtk running gambas examples on a local X > server (X/Deep32 from www.pexis.com, running in multiwindow mode.) > > Native Win32 is still a way off, but at least now I can see where I'm going > ;) > > --Brandon > Cool :-) Do you know why the notepad about box label is truncated ? -- Benoit Minisini mailto:gambas at ...1... From daniel.campos at ...103... Thu Feb 10 11:46:48 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Thu, 10 Feb 2005 11:46:48 +0100 Subject: [Gambas-devel] Gambas on Windows: GTK Screenshots! :) In-Reply-To: <200502101054.28131.gambas@...1...> References: <20050210010219.bfi6lck0lr6s4o44@...186...> <200502101054.28131.gambas@...1...> Message-ID: <420B3B98.1060505@...103...> >> >> >> > >Cool :-) > >Do you know why the notepad about box label is truncated ? > > This is one of the GTK+ bugs that I have to fix in future releases... Regards, D. Campos From gambas at ...1... Thu Feb 10 11:55:52 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 10 Feb 2005 11:55:52 +0100 Subject: [Gambas-devel] Gambas on Windows: GTK Screenshots! :) In-Reply-To: <20050210010219.bfi6lck0lr6s4o44@...186...> References: <20050210010219.bfi6lck0lr6s4o44@...186...> Message-ID: <200502101155.53182.gambas@...1...> On Thursday 10 February 2005 08:02, Brandon Bergren wrote: > By the way, the screenshots are gb.gtk running gambas examples on a local X > server (X/Deep32 from www.pexis.com, running in multiwindow mode.) > From Karl.Reinl at ...16... Thu Feb 10 19:39:37 2005 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Thu, 10 Feb 2005 19:39:37 +0100 Subject: [Gambas-devel] Saw all that 'big' projects on the list Message-ID: <200502101939.37517.Karl.Reinl@...16...> Salut , since some days I saw/see all these 'big' projects on the list. Thats nice to see that gambas is in use, and not only for some hackers who like to play. So I had an idea, couldn't we start a page on the WiKi . Call it 'references', 'projects' or something like that. Where you guys place Screenshots and a short description of the project and if the project is free, a link to a download side. Or a place, where intersted can more get informations about. (if that is not against any convention) Amicalment Charlie From gambasfr at ...4... Thu Feb 10 21:20:49 2005 From: gambasfr at ...4... (Bodard Fabien) Date: Thu, 10 Feb 2005 21:20:49 +0100 Subject: [Gambas-devel] Gambas on Windows: GTK Screenshots! :) In-Reply-To: <200502101155.53182.gambas@...1...> References: <20050210010219.bfi6lck0lr6s4o44@...186...> <200502101155.53182.gambas@...1...> Message-ID: <200502102120.49486.gambasfr@...4...> Le jeudi 10 F?vrier 2005 11:55, Benoit Minisini a ?crit?: lol it's at http://www.pexus.com/ Just one letter difference and all change on internet Fabien > On Thursday 10 February 2005 08:02, Brandon Bergren wrote: > > By the way, the screenshots are gb.gtk running gambas examples on a local > > X server (X/Deep32 from www.pexis.com, running in multiwindow mode.) > > From the web-site: > > "PeXis offers Pre-employment Background Checks, Due Diligence, Fraud > Investigations, Surveillance, Marital Investigations, Asset Searches, Armed > and Unarmed Guard Services, Undercover and Executive Protection Agents and > Expert Witness testimony in all security related issues. " > > Are you sure I will find a X Server for Windows there ? :-) From daniel.campos at ...103... Fri Feb 11 15:45:50 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Fri, 11 Feb 2005 15:45:50 +0100 Subject: [Gambas-devel] Slider control Message-ID: <420CC51E.8060109@...103...> Hi Beno?t: The "Slider" control from gb.qt.ext, can be implemented also with GTK+ without problems. I think this control should be placed directly at gb.qt. Could you remove it from gb.qt.ext and place it on gb.qt in the developement version? I think it is more clear as it is not specific to the backend used... Regards, D. Campos From gambas at ...1... Mon Feb 14 15:30:25 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 14 Feb 2005 15:30:25 +0100 Subject: [Gambas-devel] Slider control In-Reply-To: <420CC51E.8060109@...103...> References: <420CC51E.8060109@...103...> Message-ID: <200502141530.25865.gambas@...1...> On Friday 11 February 2005 15:45, Daniel Campos wrote: > Hi Beno?t: > > The "Slider" control from gb.qt.ext, can be implemented also with > GTK+ without problems. I think this control should be placed directly > at gb.qt. Could you remove it from gb.qt.ext and place it on gb.qt in > the developement version? I think it is more clear as it is not specific > to the backend used... > > Regards, > > D. Campos > > OK, done. I think other gb.qt.ext controls will be able to be moved to gb.qt... -- Benoit Minisini mailto:gambas at ...1... From daniel.campos at ...103... Mon Feb 14 19:41:00 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Mon, 14 Feb 2005 19:41:00 +0100 Subject: [Gambas-devel] Slider control In-Reply-To: <200502141530.25865.gambas@...1...> References: <420CC51E.8060109@...103...> <200502141530.25865.gambas@...1...> Message-ID: <4210F0BC.5080207@...103...> > > > >OK, done. > >I think other gb.qt.ext controls will be able to be moved to gb.qt... > > > Yes, at this moment I'm sure I can implement the ScrollBar control, so I will include it in the next gb.gtk version. If you can do the same at gb.qt, all will be synchronized :-)) Regards, D. Campos From daniel.campos at ...103... Mon Feb 14 20:53:30 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Mon, 14 Feb 2005 20:53:30 +0100 Subject: [Gambas-devel] GTK 050214A Message-ID: <421101BA.8080202@...103...> Hi: Here's gb.gtk 050214. This version includes the Slider and ScrollBar controls that will be moved also from gb.qt.ext to gb.qt in the next developement version. This version also includes the first GTK+ extension: gb.gtk.stock, that provides access to the Stock (Predefined) and System icons when using GTK+. It would be nice if some similar class could be added to gb.qt or gb.qt.kde, as it allows to make the application look like a native GTK+ or KDE application GNOME just uses the Stock items from GTK+, but a pure GTK+(non GNOME related) application written in C, can also use these Stock items, so it is not gb.gtk.gnome.stock but gb.gtk.stock . These icons change when the user changes the theme, so, in a GNOME environment the Gambas application looks coherent with the rest of applications. (see attached screenshot) If you want to compile that new component, you need to modify at least configure.in at gambas sources folder,prior to "reconf" and "configure": .... src/lib/qt/kde/Makefile \ src/lib/qt/kde/html/Makefile \ src/lib/gtk/Makefile \ src/lib/gtk/stock/Makefile \ <--- Add this line src/lib/db/Makefile \ src/lib/db/mysql/Makefile \ ... Regards, D. Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: gtk-050214A-gb1.9.tar.bz2 Type: application/x-bzip Size: 55896 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: stock.png Type: image/png Size: 18302 bytes Desc: not available URL: From nigel at ...2... Tue Feb 15 10:07:32 2005 From: nigel at ...2... (nigel at ...2...) Date: Tue, 15 Feb 2005 10:07:32 +0100 (CET) Subject: [Gambas-devel] MySQL component (4.1 changes) Message-ID: <16930350.1108458452699.JavaMail.www@...231...> Benoit, Attached is a patch file for the mysql component; it adds the new system tables added by MySQL 4.1. No rocket science here :-) Here is a warning : Due to a bug in the 4.1.8 and 4.1.9 MySQL releases where the API mysql_character_set_name() gives back the collation sequence rather than the character set, the database-manager will crash where character conversion is attempted during the update of a field. The change at the the mysql end is simple in that the mysql file libmysql.c needs to be altered before being compiled, so that csname is returned instead of name. Hopefully, the guys that release MySQL will soon have this resolved (it was reported in 4.1.8 so should have been ok in 4.1.9 but my check shows that it is not). regards Nigel -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: main.c.diff Type: text/x-patch Size: 596 bytes Desc: not available URL: From josick.croyal at ...227... Tue Feb 15 12:52:44 2005 From: josick.croyal at ...227... (Josick Croyal) Date: Tue, 15 Feb 2005 11:52:44 +0000 Subject: [Gambas-devel] GTK 050214A In-Reply-To: <421101BA.8080202@...103...> References: <421101BA.8080202@...103...> Message-ID: <4211E28C.7000006@...227...> Daniel Campos wrote: > > If you want to compile that new component, you need to modify at least > configure.in at gambas sources > folder,prior to "reconf" and "configure": OK but [root at ...232... gambas2-1.9.3]# ./reconf configure.in:523: required file `scr/lib/gtk/stock/Makefile.in' not found Regard, Josick From jredrejo at ...101... Tue Feb 15 12:11:47 2005 From: jredrejo at ...101... (=?ISO-8859-1?Q?Jos=E9?= L. Redrejo =?ISO-8859-1?Q?Rodr=EDguez?=) Date: Tue, 15 Feb 2005 12:11:47 +0100 Subject: [Gambas-devel] GTK 050214A In-Reply-To: <4211E28C.7000006@...227...> References: <421101BA.8080202@...103...> <4211E28C.7000006@...227...> Message-ID: <1108465907.12047.5.camel@...102...> you have to modify configure.in before doing reconf, adding a line like this: src/lib/gtk/stock/Makefile \ in the dnl ---- Create makefiles AC_OUTPUT( \ ... section regards. With that , your Makefile.in file will be created later. El mar, 15-02-2005 a las 11:52 +0000, Josick Croyal escribi?: > Daniel Campos wrote: > > > > > If you want to compile that new component, you need to modify at least > > configure.in at gambas sources > > folder,prior to "reconf" and "configure": > > OK but > [root at ...232... gambas2-1.9.3]# ./reconf > configure.in:523: required file `scr/lib/gtk/stock/Makefile.in' not found > > Regard, > Josick > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel From josick.croyal at ...227... Tue Feb 15 13:45:11 2005 From: josick.croyal at ...227... (Josick Croyal) Date: Tue, 15 Feb 2005 12:45:11 +0000 Subject: [Gambas-devel] GTK 050214A In-Reply-To: <1108465907.12047.5.camel@...102...> References: <421101BA.8080202@...103...> <4211E28C.7000006@...227...> <1108465907.12047.5.camel@...102...> Message-ID: <4211EED7.1010304@...227...> I had do it ... and I had after this msg : [root at ...232... gambas2-1.9.3]# ./reconf configure.in:523: required file `scr/lib/gtk/stock/Makefile.in' not found Sorry Josick Jos? L. Redrejo Rodr?guez wrote: >you have to modify configure.in before doing reconf, adding a line like >this: >src/lib/gtk/stock/Makefile \ >in the > >dnl ---- Create makefiles > >AC_OUTPUT( \ >... >section >regards. > >With that , your Makefile.in file will be created later. > >El mar, 15-02-2005 a las 11:52 +0000, Josick Croyal escribi?: > > >>Daniel Campos wrote: >> >> >> >>>If you want to compile that new component, you need to modify at least >>>configure.in at gambas sources >>>folder,prior to "reconf" and "configure": >>> >>> >>OK but >>[root at ...232... gambas2-1.9.3]# ./reconf >>configure.in:523: required file `scr/lib/gtk/stock/Makefile.in' not found >> >>Regard, >>Josick >> >> >> From gambas at ...1... Tue Feb 15 12:45:20 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 15 Feb 2005 12:45:20 +0100 Subject: [Gambas-devel] GTK 050214A In-Reply-To: <421101BA.8080202@...103...> References: <421101BA.8080202@...103...> Message-ID: <200502151245.20915.gambas@...1...> On Monday 14 February 2005 20:53, Daniel Campos wrote: > Hi: > > Here's gb.gtk 050214. This version includes the Slider and ScrollBar > controls > that will be moved also from gb.qt.ext to gb.qt in the next developement > version. > > This version also includes the first GTK+ extension: gb.gtk.stock, that > provides access > to the Stock (Predefined) and System icons when using GTK+. It would be > nice if some similar class > could be added to gb.qt or gb.qt.kde, as it allows to make the > application look like a native > GTK+ or KDE application > > GNOME just uses the Stock items from GTK+, but a pure GTK+(non GNOME > related) application > written in C, can also use these Stock items, so it is not > gb.gtk.gnome.stock but gb.gtk.stock . > > These icons change when the user changes the theme, so, in a GNOME > environment the Gambas > application looks coherent with the rest of applications. (see attached > screenshot) > > If you want to compile that new component, you need to modify at least > configure.in at gambas sources > folder,prior to "reconf" and "configure": > > .... > src/lib/qt/kde/Makefile \ > src/lib/qt/kde/html/Makefile \ > src/lib/gtk/Makefile \ > src/lib/gtk/stock/Makefile \ <--- Add this line > src/lib/db/Makefile \ > src/lib/db/mysql/Makefile \ > ... > > > Regards, > > D. Campos Instead of a Stock class, I think a better solution would be extending the '_get' method of the Picture class with a syntax that means "stock icon". This way, the IDE will be able to use them. I suggest directly using Picture["icon_name"]. First search in the project like Picture._get do. Otherwise, use stock icons. In GTK, Picture["Apply"] => Stock[Stock.Apply, Stock.Button] The KDE component will just have to reimplement Picture._get, with help from the QT component I think. This way, no details about internal stock objects implementation is exposed :-) What do you think about that ? -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 15 12:47:59 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 15 Feb 2005 12:47:59 +0100 Subject: [Gambas-devel] MySQL component (4.1 changes) In-Reply-To: <16930350.1108458452699.JavaMail.www@...231...> References: <16930350.1108458452699.JavaMail.www@...231...> Message-ID: <200502151247.59625.gambas@...1...> On Tuesday 15 February 2005 10:07, nigel at ...2... wrote: > Benoit, > > Attached is a patch file for the mysql component; it adds the new system > tables added by MySQL 4.1. No rocket science here :-) > > Here is a warning : > Due to a bug in the 4.1.8 and 4.1.9 MySQL releases where the API > mysql_character_set_name() gives back the collation sequence rather than > the character set, the database-manager will crash where character > conversion is attempted during the update of a field. The change at the > the mysql end is simple in that the mysql file libmysql.c needs to be > altered before being compiled, so that csname is returned instead of name. > Hopefully, the guys that release MySQL will soon have this resolved (it was > reported in 4.1.8 so should have been ok in 4.1.9 but my check shows that > it is not). > > regards > > Nigel Isn't it possible to do the test only if mysql version is >= 4.1 ? It recalls me a talk about having many database drivers for each version, and loading only the good one at database connection. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 15 12:50:38 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 15 Feb 2005 12:50:38 +0100 Subject: [Gambas-devel] GTK 050214A In-Reply-To: <4211EED7.1010304@...227...> References: <421101BA.8080202@...103...> <1108465907.12047.5.camel@...102...> <4211EED7.1010304@...227...> Message-ID: <200502151250.38500.gambas@...1...> On Tuesday 15 February 2005 13:45, Josick Croyal wrote: > I had do it ... and I had after this msg : > > [root at ...232... gambas2-1.9.3]# ./reconf > configure.in:523: required file `scr/lib/gtk/stock/Makefile.in' not found /|\ | 'scr' != 'src' ---------------------+ :-) -- Benoit Minisini mailto:gambas at ...1... From nigel at ...2... Tue Feb 15 14:04:41 2005 From: nigel at ...2... (nigel at ...2...) Date: Tue, 15 Feb 2005 14:04:41 +0100 (CET) Subject: [Gambas-devel] MySQL component (4.1 changes) Message-ID: <10451526.1108472681656.JavaMail.www@...233...> Yes, as within postgresql we could test based on conditional database version, but I can't really see the benefit of doing so for this small change. As for the discussion about different drivers for different versions, currently that is only relevant for sqlite...only because the functions that changed in version 4.1 MySQL are not being used by the mysql driver. What we probably need is a way of abstracting the driver functions from the initial driver call...something like the way it's done for the database component :-), so that version specific functions could then be loaded. Looking at the ODBC driver, this will be even more important since functions that are specific to different databases will also need to be deployed. e.g. There is no user management through ODBC so this will have to be done indirectly through the database standard(?) SQL commands. Nigel > Message date : Feb 15 2005, 11:48 AM > From : "Benoit Minisini" > To : gambas-devel at lists.sourceforge.net > Copy to : > Subject : Re: [Gambas-devel] MySQL component (4.1 changes) > > On Tuesday 15 February 2005 10:07, nigel at ...2... wrote: > > Benoit, > > > > Attached is a patch file for the mysql component; it adds the new system > > tables added by MySQL 4.1. No rocket science here :-) > > > > Here is a warning : > > Due to a bug in the 4.1.8 and 4.1.9 MySQL releases where the API > > mysql_character_set_name() gives back the collation sequence rather than > > the character set, the database-manager will crash where character > > conversion is attempted during the update of a field. The change at the > > the mysql end is simple in that the mysql file libmysql.c needs to be > > altered before being compiled, so that csname is returned instead of name. > > Hopefully, the guys that release MySQL will soon have this resolved (it was > > reported in 4.1.8 so should have been ok in 4.1.9 but my check shows that > > it is not). > > > > regards > > > > Nigel > > Isn't it possible to do the test only if mysql version is >= 4.1 ? > > It recalls me a talk about having many database drivers for each version, and > loading only the good one at database connection. > > Regards, > > -- > Benoit Minisini > mailto:gambas at ...1... > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From josick.croyal at ...227... Tue Feb 15 15:10:00 2005 From: josick.croyal at ...227... (Josick Croyal) Date: Tue, 15 Feb 2005 14:10:00 +0000 Subject: [Gambas-devel] GTK 050214A In-Reply-To: <200502151250.38500.gambas@...1...> References: <421101BA.8080202@...103...> <1108465907.12047.5.camel@...102...> <4211EED7.1010304@...227...> <200502151250.38500.gambas@...1...> Message-ID: <421202B8.8070002@...227...> Hops !!!! Thanks Nevertheless, I had be careful... But not at all !!! Regards. Josick Benoit Minisini wrote: >On Tuesday 15 February 2005 13:45, Josick Croyal wrote: > > >>I had do it ... and I had after this msg : >> >>[root at ...232... gambas2-1.9.3]# ./reconf >>configure.in:523: required file `scr/lib/gtk/stock/Makefile.in' not found >> >> > /|\ > | >'scr' != 'src' ---------------------+ :-) > > > From lordheavy at ...141... Tue Feb 15 15:41:20 2005 From: lordheavy at ...141... (Laurent Carlier) Date: Tue, 15 Feb 2005 15:41:20 +0100 Subject: [Gambas-devel] FOSDEM interviews : =?iso-8859-1?q?Beno=EEt?= Minisini Message-ID: <200502151541.21577.lordheavy@...141...> Here is the links: http://it.slashdot.org/it/05/02/14/225201.shtml?tid=156&tid=8 http://www.fosdem.org/index/interviews/interviews_minisini Have fun, -- Laurent Carlier From daniel.campos at ...103... Tue Feb 15 15:51:40 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Tue, 15 Feb 2005 15:51:40 +0100 Subject: [Gambas-devel] GTK 050214A In-Reply-To: <200502151245.20915.gambas@...1...> References: <421101BA.8080202@...103...> <200502151245.20915.gambas@...1...> Message-ID: <42120C7C.1030208@...103...> > >Instead of a Stock class, I think a better solution would be extending the >'_get' method of the Picture class with a syntax that means "stock icon". > >This way, the IDE will be able to use them. > >I suggest directly using Picture["icon_name"]. First search in the project >like Picture._get do. Otherwise, use stock icons. > >In GTK, Picture["Apply"] => Stock[Stock.Apply, Stock.Button] > >The KDE component will just have to reimplement Picture._get, with help from >the QT component I think. > >This way, no details about internal stock objects implementation is >exposed :-) > >What do you think about that ? > > Yes, it's a good idea as seems more transparent for the programmer, however I think this could be: Picture[Path As String, [StockSize As Integer] ] Picture["Apply"] --> Searchs the icon embeed in the executable, and in the file system. Picture["Apply",StockSize.Button] --> Searchs the icon in the Stock items, and, if not found, in the "Named Icons" (this is the second class provided in gb.gtk.stock, and they are icons placed in some predefined paths, for example the icons that are shown when you want to add a new desktop icon in kde or gnome "/usr/share/pixmaps..."). It is important to keep the second parameter, as it defines the size of the icon you want to get, as there are low resolution icons (for little elements like menu items), high resolution icons (for large buttons, for example), and these symbolic sizes can change if the user uses special themes: for example high contrast and big icons for people with problems in the eyes (more than me 8-))), or children. Regards, D. Campos From gambas at ...1... Tue Feb 15 15:56:41 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 15 Feb 2005 15:56:41 +0100 Subject: [Gambas-devel] GTK 050214A In-Reply-To: <42120C7C.1030208@...103...> References: <421101BA.8080202@...103...> <200502151245.20915.gambas@...1...> <42120C7C.1030208@...103...> Message-ID: <200502151556.41317.gambas@...1...> On Tuesday 15 February 2005 15:51, Daniel Campos wrote: > >Instead of a Stock class, I think a better solution would be extending the > >'_get' method of the Picture class with a syntax that means "stock icon". > > > >This way, the IDE will be able to use them. > > > >I suggest directly using Picture["icon_name"]. First search in the project > >like Picture._get do. Otherwise, use stock icons. > > > >In GTK, Picture["Apply"] => Stock[Stock.Apply, Stock.Button] > > > >The KDE component will just have to reimplement Picture._get, with help > > from the QT component I think. > > > >This way, no details about internal stock objects implementation is > >exposed :-) > > > >What do you think about that ? > > Yes, it's a good idea as seems more transparent for the programmer, however > I think this could be: > > Picture[Path As String, [StockSize As Integer] ] > > Picture["Apply"] --> Searchs the icon embeed in the executable, and in > the file system. > > Picture["Apply",StockSize.Button] --> Searchs the icon in the Stock > items, and, > if not found, in the "Named Icons" (this is the second class provided in > gb.gtk.stock, > and they are icons placed in some predefined paths, for example the > icons that are > shown when you want to add a new desktop icon in kde or gnome > "/usr/share/pixmaps..."). > > It is important to keep the second parameter, as it defines the size of > the icon you want to get, > as there are low resolution icons (for little elements like menu items), > high resolution icons > (for large buttons, for example), and these symbolic sizes can change if > the user uses special > themes: for example high contrast and big icons for people with problems > in the eyes (more > than me 8-))), or children. > > Regards, > > D. Campos > > I'm thinking about the Picture property in the IDE... Isn't it possible to use a syntax like: Picture["Button/Apply"] instead of Picture["Apply", Stock.Button] ? This way, the IDE will be able to display a hierarchy of the stock icons easily. Regards, -- Benoit Minisini mailto:gambas at ...1... From daniel.campos at ...103... Tue Feb 15 16:15:37 2005 From: daniel.campos at ...103... (daniel.campos at ...103...) Date: Tue, 15 Feb 2005 16:15:37 +0100 Subject: [Gambas-devel] GTK 050214A In-Reply-To: <200502151556.41317.gambas@...1...> Message-ID: <420CA69E00001788@...234...> > >I'm thinking about the Picture property in the IDE... > >Isn't it possible to use a syntax like: Picture["Button/Apply"] instead of > May be we could use the following syntax: Picture["relative or absolute path"] --> Looks for an icon as usual (embeed or filesystem) Picture["stock://Button/accept"]--> Looks in the (gtk or kde) stock and named icons This way we are using the standard URI model. I think this is ellegant, and is compatible with you IDE idea Regards, D. Campos San Valent?n se acerca, encuentra pareja y disfruta del d?a de los enamorados. Juega ahora a la m?quina del amor en Tiscali Amor y Amistad y gana ?7 d?as gratis! http://match.tiscali.es/match/shared/Valentines2005/SPEURO/TISCALIES/TISCALIES.htm From daniel.campos at ...103... Tue Feb 15 16:26:40 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Tue, 15 Feb 2005 16:26:40 +0100 Subject: [Gambas-devel] GTK 050214A In-Reply-To: <420CA69E00001788@...234...> References: <420CA69E00001788@...234...> Message-ID: <421214B0.5040105@...103...> > >May be we could use the following syntax: > >Picture["relative or absolute path"] --> Looks for an icon as usual (embeed >or filesystem) >Picture["stock://Button/accept"]--> Looks in the (gtk or kde) stock and >named icons > >This way we are using the standard URI model. I think this is ellegant, >and is compatible >with you IDE idea > >Regards, > >D. Campos > > Mmmh... no, I thinking it twice, your idea is better: Just "Button/accept" and then look first in the embeed executable, second in the filesystem, third in the stock items, and at the end, in the "named icon" paths... It is simpler fro the programmer, yes... Regards, D. Campos > > > From gambas at ...1... Tue Feb 15 16:27:27 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 15 Feb 2005 16:27:27 +0100 Subject: [Gambas-devel] GTK 050214A In-Reply-To: <420CA69E00001788@...234...> References: <420CA69E00001788@...234...> Message-ID: <200502151627.27160.gambas@...1...> On Tuesday 15 February 2005 16:15, daniel.campos at ...103... wrote: > >I'm thinking about the Picture property in the IDE... > > > >Isn't it possible to use a syntax like: Picture["Button/Apply"] instead > > of > > > May be we could use the following syntax: > > Picture["relative or absolute path"] --> Looks for an icon as usual (embeed > or filesystem) > Picture["stock://Button/accept"]--> Looks in the (gtk or kde) stock and > named icons If you like, even if I'm suspicious with pseudo-URLs :-) But please look in the stock even with the first syntax. I mean if "Button/Accept" cannot be found, use "stock://Button/Accept" This way the stock can be overriden :-) Regards, -- Benoit Minisini mailto:gambas at ...1... From daniel.campos at ...103... Tue Feb 15 19:25:12 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Tue, 15 Feb 2005 19:25:12 +0100 Subject: [Gambas-devel] gtk-050215 Message-ID: <42123E88.4050405@...103...> OK: Now the stock icons are part of the standard Picture class, there will be gb.gtk.stock no more. Once you call Picture["Path"] the class tries to load an icon using the following order: 1?) If there's an icon embeed in the project it will load that icon 2?) It will try to load an icon from the file system 3?) If there's a stock item it will load it. 4?) If there's an icon in the predefinad paths (named icon) it will try to load it. 5?) Error : icon not found For stock and named icons, the syntax is the following: "icon size/icon name" for example "Button/Yes" The following sizes are valid (for both stock and named icons): "Menu","SmallToolbar","LargeToolbar","Button","Dnd","Dialog" (these names are not case sensitive) The following names are recognized for stock icons: "Add","Apply","Bold","Cancel", "CDRom","Clear","Close","ColorPicker", "Convert","Copy","Cut","Delete","DialogAuthentication""DialogError", "DialogInfo","DialogQuestion", "DialogWarning","Dnd","DndMultiple", "Execute", "Find","FindAndReplace","Floppy","GotoBottom", "GotoFirst", "GotoLast", "GotoTop","GoBack", "GoDown","GoForward","GoUp","HardDisk" "Help","Home","Indent","Index", "Italic","JumpTo","JustifyCenter", "JustifyFill", "JustifyLeft","JustifyRight","MissingImage","Network", "New","No","Ok","Open", "Paste","Preferences","Print","PrintPreview", "Properties","Quit","Redo","Refresh", "Remove","RevertToSaved","Save","SaveAs", "SelectColor","SelectFont", "SortAscending","SortDescending", "SpellCheck","Stop","StrikeThrough","Undelete", "Underline","Undo","Unindent","Yes", "Zoom100","ZoomFit","ZoomIn","ZoomOut" (these names are not case sensitive) If the name is not recognized, it will try to force the system to load it. If the system can't find them, then will be an error "Icon not found". There are not predefined names for "Named icons" as it depends on the system and the applications placed in it. The syntax also can be just "icon name". In that case the "Button" size will be the default. That's all by now :-) Regards, D. Campos For Jos? L. Redrejo: ?no uses todav?a esta versi?n! puede seguirte fallando en los dialogos. -------------- next part -------------- A non-text attachment was scrubbed... Name: gtk-050215-gb1.9.tar.bz2 Type: application/x-bzip Size: 54177 bytes Desc: not available URL: From bdragon at ...185... Tue Feb 15 19:33:47 2005 From: bdragon at ...185... (Brandon Bergren) Date: Tue, 15 Feb 2005 12:33:47 -0600 (Central Standard Time) Subject: [Gambas-devel] Gambas DNS resolution working in Windows, patch, new screenshot Message-ID: I got CDnsClient.c to work in Windows. Here's a (hacky, please don't apply) patch. Daniel: Why are you using reentrant functions inside a semaphore? Isn't it safe to use the non-reentrant ones there? I can't use gethostbyname_r or gethostbyaddr_r on Cygwin. They don't exist and are nonportable. I didn't have any crashes with this patch, but it's a lazy hack. Do you have a better idea how to handle this? (BTW, there's a PD implementation of gethostbyname_r at http://www.cygwin.com/ml/cygwin/2004-04/msg00532.html ) Shouldn't we be using getaddrinfo and getnameinfo instead? Or are those too new to be implemented everywhere? Sorry if these are stupid questions, I just had a crash course in libc resolver functions, and a lot of this is kinda new to me. --Brandon P.S. Here's DnsClient Example in Windows: http://bdragon.freeshell.org/projects/gambas/gambas_resolver.png -------------- next part -------------- A non-text attachment was scrubbed... Name: net_patch.diff Type: application/octet-stream Size: 2496 bytes Desc: URL: From lordheavy at ...141... Tue Feb 15 19:58:23 2005 From: lordheavy at ...141... (Laurent Carlier) Date: Tue, 15 Feb 2005 19:58:23 +0100 Subject: [Gambas-devel] Gambas DNS resolution working in Windows, patch, new screenshot In-Reply-To: References: Message-ID: <200502151958.23777.lordheavy@...141...> Le Mardi 15 F?vrier 2005 19:33, Brandon Bergren a ?crit?: The perhaps a better way to do #if..#endif : #ifdef __sun__ ... #elif defined(__CYGWIN__) ... #else ... #endif Regards, -- Laurent Carlier From lordheavy at ...141... Tue Feb 15 20:13:37 2005 From: lordheavy at ...141... (Laurent Carlier) Date: Tue, 15 Feb 2005 20:13:37 +0100 Subject: [Gambas-devel] SDL 050215 Message-ID: <200502152013.37495.lordheavy@...141...> An update of the SDL componant ! Changelog : xx/xx/05 - Laurent Carlier : Image component * Fix a memory issue in draw.text, forgot to release the tempory surface (draw.c) * Screen.Gamma is now Screen.SetGamma (screen.c) * Screen.Refresh and Screen.Update are aliases, Screen.Flip removed (name conflicts with Surface.Flip) (screen.c) * Add an optional boolean flag to surface.load disabling auto-convertion to Screen caracteristics (screen.c) * Internal change : now colorkey is managed with RGB values (surface.c surface.h) * Fix typos in key constants (key.c) * Screen.Framerate removed, framerate limitation is enable when Screen.SetFramerate>0 (screen.c) * Fix the Fps calculation (SIGFPE exception) (screen.c) * Now a Rectangle is really drawn of wanted width/height, not widht+1/height+1 (draw.c) * New method : Screen.Grab, allow to grab a part of or the whole Screen as a Surface object (screen.c) * New class : Palette allow managing colors of 8 bpp Surfaces/Screen (palette.c palette.h) * Hook loop doesn't wait anymore if there isn't opened Screen (main.c) * New class : Poke allow read/change bytes of Surfaces/Screen (game.c game.h) * Fix a bug avoiding wrawing on a new surface, removing endian stuff (surface.c) And too, an example from Fabien Bodard using 8 bpp surfaces, with palette and poke functions. Have fun, -- Laurent Carlier -------------- next part -------------- A non-text attachment was scrubbed... Name: sdl050215-gb19.tar.bz2 Type: application/x-tbz Size: 36685 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: effect-0.0.2.tar.gz Type: application/x-tgz Size: 1228 bytes Desc: not available URL: From bdragon at ...185... Tue Feb 15 20:24:39 2005 From: bdragon at ...185... (Brandon Bergren) Date: Tue, 15 Feb 2005 13:24:39 -0600 (Central Standard Time) Subject: [Gambas-devel] Gambas DNS resolution working in Windows, patch, new screenshot In-Reply-To: <200502151958.23777.lordheavy@...141...> References: <200502151958.23777.lordheavy@...141...> Message-ID: On Tue, 15 Feb 2005, Laurent Carlier wrote: > Le Mardi 15 F?vrier 2005 19:33, Brandon Bergren a ?crit?: > > The perhaps a better way to do #if..#endif : > > #ifdef __sun__ > ... > #elif defined(__CYGWIN__) > ... > #else > ... > #endif > > Regards, > > -- > > Laurent Carlier I thought I was clear enough about it being a dirty hack. ;P Actually, the RIGHT way is to include config.h and get defs off of THAT. Then you can have conditionals based on CAPABILITIES, not PLATFORMS. That's what config.h was designed to do, no? --Brandon From lordheavy at ...141... Tue Feb 15 20:41:05 2005 From: lordheavy at ...141... (Laurent Carlier) Date: Tue, 15 Feb 2005 20:41:05 +0100 Subject: [Gambas-devel] Gambas DNS resolution working in Windows, patch, new screenshot In-Reply-To: References: <200502151958.23777.lordheavy@...141...> Message-ID: <200502152041.06068.lordheavy@...141...> Le Mardi 15 F?vrier 2005 20:24, Brandon Bergren a ?crit?: > > Laurent Carlier > > I thought I was clear enough about it being a dirty hack. ;P Sure, you were ;-) > Actually, the RIGHT way is to include config.h and get defs off of THAT. > Then you can have conditionals based on CAPABILITIES, not PLATFORMS. > That's what config.h was designed to do, no? you're right, config.h include defs for platforms, capabilities, ... Regards, -- Laurent Carlier From karl.reinl at ...16... Tue Feb 15 22:10:27 2005 From: karl.reinl at ...16... (Charlie) Date: Tue, 15 Feb 2005 22:10:27 +0100 Subject: [Gambas-devel] gambas-1.9.3 and gtk Message-ID: <42126543.2080205@...16...> Salut, would be nice to reactivate the enable/disable switch in configure script (or where ever) Amicalment Charlie From daniel.campos at ...103... Wed Feb 16 00:08:58 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Wed, 16 Feb 2005 00:08:58 +0100 Subject: [Gambas-devel] Gambas DNS resolution working in Windows, patch, new screenshot In-Reply-To: References: Message-ID: <4212810A.7050209@...103...> > > Daniel: Why are you using reentrant functions inside a semaphore? > Isn't it safe to use the non-reentrant ones there? No, I tried that, but I was unable to use gethostbyname() because once the object try to kill the thread (for example if the user cancels the operation), the dns query never works again until the program is closed and restarted. that is the reason of the gethostbyname_r existence. > I can't use gethostbyname_r or gethostbyaddr_r on Cygwin. They don't > exist and are nonportable. I didn't have any crashes with this patch, > but it's a lazy hack. Do you have a better idea how to handle this? > > (BTW, there's a PD implementation of gethostbyname_r at > http://www.cygwin.com/ml/cygwin/2004-04/msg00532.html > ) Mmmhh... well I don't know very much about Cygwin... may be it is possible to use the Win$ native functions to implement it? I think these functions are asynchronous ( I had to use them, a lot of time ago, for a Windows program) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/wsaasyncgethostbyname_2.asp > > Shouldn't we be using getaddrinfo and getnameinfo instead? Or are > those too new to be implemented everywhere? Well, gethostbyname_r works OK for Linux systems, so I won't change that implementation, however if Cygwin can use getaddrinfo and getnameinfo, I can try to write a #ifdef CYGWIN... patch Regards, D. Campos From bdragon at ...185... Wed Feb 16 00:39:36 2005 From: bdragon at ...185... (Brandon Bergren) Date: Tue, 15 Feb 2005 17:39:36 -0600 (Central Standard Time) Subject: [Gambas-devel] Gambas DNS resolution working in Windows, patch, new screenshot In-Reply-To: <4212810A.7050209@...103...> References: <4212810A.7050209@...103...> Message-ID: On Wed, 16 Feb 2005, Daniel Campos wrote: > >> >> Daniel: Why are you using reentrant functions inside a semaphore? Isn't it >> safe to use the non-reentrant ones there? > > > No, I tried that, but I was unable to use gethostbyname() because once the > object try to kill the thread (for example if the user cancels the > operation), the dns query never works again until the program is closed and > restarted. that is the reason of the gethostbyname_r existence. > >> I can't use gethostbyname_r or gethostbyaddr_r on Cygwin. They don't exist >> and are nonportable. I didn't have any crashes with this patch, but it's a >> lazy hack. Do you have a better idea how to handle this? >> >> (BTW, there's a PD implementation of gethostbyname_r at >> http://www.cygwin.com/ml/cygwin/2004-04/msg00532.html >> ) > > Mmmhh... well I don't know very much about Cygwin... may be it is possible to > use the Win$ native functions to > implement it? I think these functions are asynchronous ( I had to use them, a > lot of time ago, for a > Windows program) > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/wsaasyncgethostbyname_2.asp > Yeah, winsock... Blech... Maybe when I get to the point a native port is feasable. >> >> Shouldn't we be using getaddrinfo and getnameinfo instead? Or are those too >> new to be implemented everywhere? > > > Well, gethostbyname_r works OK for Linux systems, so I won't change that > implementation, however if Cygwin > can use getaddrinfo and getnameinfo, I can try to write a #ifdef CYGWIN... > patch > > Regards, > > D. Campos > Of course, Linux is notoriously nonstandard. Also, even linux has deprecated this function. http://www.linuxbase.org/spec/book/LSB-generic/LSB-generic/baselib-gethostbyname-r-3.html I mean in general. gethostbyname and gethostbyaddr are obselete, and the reentrant versions weren't defined by POSIX. (Plus there's the whole debate on what the proper arguments are.) I just think getaddrinfo and getnameinfo would be cleaner and less error-prone. Really, getaddrinfo and getnameinfo should be preferred if available. They are cleaner and well defined by POSIX. http://www.ietf.org/rfc/rfc2553.txt But, you're the maintainer, so it's definately your call... I still say gethostby* should be the FALLBACK functions, not the PREFERRED functions, though. Grain of salt, though, as I've never written a real-world network program in C. --Brandon Bergren From daniel.campos at ...103... Wed Feb 16 01:15:10 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Wed, 16 Feb 2005 01:15:10 +0100 Subject: [Gambas-devel] Gambas DNS resolution working in Windows, patch, new screenshot In-Reply-To: References: <4212810A.7050209@...103...> Message-ID: <4212908E.2070304@...103...> > > Yeah, winsock... Blech... Maybe when I get to the point a native port > is feasable. May be you could also implement gb.gtk with the GDI library :-))))) >> >> > Of course, Linux is notoriously nonstandard. Also, even linux has > deprecated this function. > > http://www.linuxbase.org/spec/book/LSB-generic/LSB-generic/baselib-gethostbyname-r-3.html > > Oh, this is new for me! I didn't knew that these functions were deprecated by the LSB... > > > Really, getaddrinfo and getnameinfo should be preferred if available. > They are cleaner and well defined by POSIX. > > http://www.ietf.org/rfc/rfc2553.txt > > But, you're the maintainer, so it's definately your call... Well, after all it seems it's the time to change my code :-))). OK, you seem to be right, then I'll write again the DNS calls in the gb.net component, may be this week-end, but I'll keep also the old code safe as I don't know if there will be problems with that new one... Regards, D. Campos From gambas at ...1... Wed Feb 16 10:54:36 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 16 Feb 2005 10:54:36 +0100 Subject: [Gambas-devel] Gambas DNS resolution working in Windows, patch, new screenshot In-Reply-To: References: <200502151958.23777.lordheavy@...141...> Message-ID: <200502161054.36751.gambas@...1...> On Tuesday 15 February 2005 20:24, Brandon Bergren wrote: > On Tue, 15 Feb 2005, Laurent Carlier wrote: > > Le Mardi 15 F?vrier 2005 19:33, Brandon Bergren a ?crit?: > > > > The perhaps a better way to do #if..#endif : > > > > #ifdef __sun__ > > ... > > #elif defined(__CYGWIN__) > > ... > > #else > > ... > > #endif > > > > Regards, > > > > -- > > > > Laurent Carlier > > I thought I was clear enough about it being a dirty hack. ;P > > Actually, the RIGHT way is to include config.h and get defs off of THAT. > Then you can have conditionals based on CAPABILITIES, not PLATFORMS. > That's what config.h was designed to do, no? > > --Brandon Theoretically, but I found easier to maintain code with #ifdef on platforms instead of capabilities. So I added to config.h platform constants, defined in 'acinclude.m4'. They are: OS_LINUX, OS_FREEBSD, OS_CYGWIN, OS_SOLARIS, OS_MACOSX. Please use them! Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed Feb 16 10:56:16 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 16 Feb 2005 10:56:16 +0100 Subject: [Gambas-devel] gambas-1.9.3 and gtk In-Reply-To: <42126543.2080205@...16...> References: <42126543.2080205@...16...> Message-ID: <200502161056.16437.gambas@...1...> On Tuesday 15 February 2005 22:10, Charlie wrote: > Salut, > > would be nice to reactivate the enable/disable switch in configure > script (or where ever) > > Amicalment > Charlie > What are you talking about ? -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed Feb 16 12:01:00 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 16 Feb 2005 12:01:00 +0100 Subject: [Gambas-devel] SDL 050215 In-Reply-To: <200502152013.37495.lordheavy@...141...> References: <200502152013.37495.lordheavy@...141...> Message-ID: <200502161201.01465.gambas@...1...> On Tuesday 15 February 2005 20:13, Laurent Carlier wrote: > An update of the SDL componant ! > Changelog : > xx/xx/05 - Laurent Carlier : > Image component > * Fix a memory issue in draw.text, forgot to release the tempory surface > (draw.c) > * Screen.Gamma is now Screen.SetGamma (screen.c) > * Screen.Refresh and Screen.Update are aliases, Screen.Flip removed (name > conflicts with Surface.Flip) (screen.c) > * Add an optional boolean flag to surface.load disabling auto-convertion to > Screen caracteristics (screen.c) > * Internal change : now colorkey is managed with RGB values (surface.c > surface.h) > * Fix typos in key constants (key.c) > * Screen.Framerate removed, framerate limitation is enable when > Screen.SetFramerate>0 (screen.c) > * Fix the Fps calculation (SIGFPE exception) (screen.c) > * Now a Rectangle is really drawn of wanted width/height, not > widht+1/height+1 (draw.c) > * New method : Screen.Grab, allow to grab a part of or the whole Screen as > a Surface object (screen.c) > * New class : Palette allow managing colors of 8 bpp Surfaces/Screen > (palette.c palette.h) > * Hook loop doesn't wait anymore if there isn't opened Screen (main.c) > * New class : Poke allow read/change bytes of Surfaces/Screen (game.c > game.h) * Fix a bug avoiding wrawing on a new surface, removing endian > stuff (surface.c) > > And too, an example from Fabien Bodard using 8 bpp surfaces, with palette > and poke functions. > > Have fun, Cool :-) A Changelog! 'effect' example does not compile... -- Benoit Minisini mailto:gambas at ...1... From na2492 at ...16... Wed Feb 16 14:59:47 2005 From: na2492 at ...16... (Charlie Reinl) Date: Wed, 16 Feb 2005 14:59:47 00100 Subject: [Gambas-devel] gambas-1.9.3 and gtk Message-ID: <421351d3.4dc3.0@...16...> >On Tuesday 15 February 2005 22:10, Charlie wrote: >> Salut, >> >> would be nice to reactivate the enable/disable switch in configure >> script (or where ever) >> >> Amicalment >> Charlie >> > >What are you talking about ? ./configure --disable-gtk --disable-sdl --disable-pcre don't work for gtk in gambas-1.9.3 >-- >Benoit Minisini >mailto:gambas at ...1... > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Gambas-devel mailing list >Gambas-devel at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-devel > > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From gambasfr at ...4... Wed Feb 16 19:59:00 2005 From: gambasfr at ...4... (Bodard Fabien) Date: Wed, 16 Feb 2005 19:59:00 +0100 Subject: [Gambas-devel] SDL 050215 In-Reply-To: <200502161201.01465.gambas@...1...> References: <200502152013.37495.lordheavy@...141...> <200502161201.01465.gambas@...1...> Message-ID: <200502161959.00594.gambasfr@...4...> Le mercredi 16 F?vrier 2005 12:01, Benoit Minisini a ?crit?: > > Cool :-) A Changelog! > > 'effect' example does not compile... Yes you're the first to see that ! The corrected demo is on http://www.gambasforge.net Ragards, Fabien Bodard From daniel.campos at ...103... Thu Feb 17 00:34:43 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Thu, 17 Feb 2005 00:34:43 +0100 Subject: [Gambas-devel] DnsClient patch Message-ID: <4213D893.2000804@...103...> Hi: Well, It was easier than expected, at the end I remembered all that I did in the DnsClient class :-)) Here's the implementation of DnsClient using getaddrinfo and getnameinfo, that should replace the current one. According with SUN documents, this should also work for Solaris, however the old code for Solaris is still in the file (commented) as I can not test it. This version should compile also with Cygwin, I think... Brandon? Regards, D. Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: CDnsClient.c Type: text/x-csrc Size: 16577 bytes Desc: not available URL: From bdragon at ...185... Thu Feb 17 01:23:38 2005 From: bdragon at ...185... (Brandon Bergren) Date: Wed, 16 Feb 2005 18:23:38 -0600 (Central Standard Time) Subject: [Gambas-devel] DnsClient patch In-Reply-To: <4213D893.2000804@...103...> References: <4213D893.2000804@...103...> Message-ID: On Thu, 17 Feb 2005, Daniel Campos wrote: > Hi: > > Well, It was easier than expected, at the end I remembered all that I did in > the > DnsClient class :-)) > > Here's the implementation of DnsClient using getaddrinfo and getnameinfo, > that > should replace the current one. According with SUN documents, this should > also > work for Solaris, however the old code for Solaris is still in the file > (commented) > as I can not test it. > > This version should compile also with Cygwin, I think... Brandon? > > Regards, > > D. Campos > Aw hell. Is my face red... Cygwin doesn't actually HAVE getaddrinfo and gethostinfo by default. (Compatibility with Win9x, etc) IPV6 in Cygwin only works on WinXP and is alpha :( http://win6.jp/Cygwin/ I should have looked at my own netdb.h before saying how great get*info is.... I guess there's no way to get around not using #ifdefs in network code :( Cygwin's gethostbyname and getaddrbyname appears to be safe between threads if you put it in a mutex lock while running the function and copying data out of the returned struct. Is the point of Async vs Sync just whether to block or not? Or is it supposed to be able to run multiple resolves at once? I don't see any way to do the latter cleanly on Windows right now. :( BTW, on line 178, does that make a thread block if another thread got to the semaphore first? I don't know too much about multithreaded programming yet... Still a little confused about locking... --Brandon From daniel.campos at ...103... Thu Feb 17 09:45:09 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Thu, 17 Feb 2005 09:45:09 +0100 Subject: [Gambas-devel] DnsClient patch In-Reply-To: References: <4213D893.2000804@...103...> Message-ID: <42145995.7060603@...103...> > > I guess there's no way to get around not using #ifdefs in network code :( > > Cygwin's gethostbyname and getaddrbyname appears to be safe between > threads if you put it in a mutex lock while running the function and > copying data out of the returned struct. > > Is the point of Async vs Sync just whether to block or not? Or is it > supposed to be able to run multiple resolves at once? > > I don't see any way to do the latter cleanly on Windows right now. :( Well, at least with that implementation we are more POSIX compatible and the conditional compilation for Solaris seems to be removed. Async allows to not block and due to this, it allows to run multiple resolves at once... > > BTW, on line 178, does that make a thread block if another thread got > to the semaphore first? I don't know too much about multithreaded > programming yet... Still a little confused about locking... > I have a pipe in order to cummunicate the main thread with the rest of threads. This is a common resource in which only a thread can write at once, so I use semaphores to control the order in which various threads write in the pipe, and the order in which the main thread reads from the pipe. You have more details at {gambas sources}/src/lib/net/doc/threading.swx . If gethostbyname() and gethostbyaddr() are really thread safe with Cygwin, you can just patch the dns_get_ip and dns_get_name functions, following exactly the same structure but extracting data from these two functions, so you do not have to care very much about threading... Regards, D. Campos From ariafrancesco at ...237... Fri Feb 18 17:29:44 2005 From: ariafrancesco at ...237... (ariafrancesco@inwind.it) Date: Fri, 18 Feb 2005 17:29:44 +0100 Subject: [Gambas-devel] libnodave Message-ID: There is nothing that can implement in Gambas the LibNoDave ?? http://sourceforge.net/projects/libnodave/ I think that whit it gambas can will be the most important developed language in Industrial automation . ____________________________________________________________ Navighi a 2 MEGA e i primi 3 mesi sono GRATIS. Scegli Libero Adsl Flat senza limiti su http://www.libero.it From sourceforge-raindog2 at ...19... Fri Feb 18 18:19:23 2005 From: sourceforge-raindog2 at ...19... (Rob) Date: Fri, 18 Feb 2005 12:19:23 -0500 Subject: [Gambas-devel] libnodave In-Reply-To: References: Message-ID: <200502181219.23835.sourceforge-raindog2@...19...> On Friday 18 February 2005 11:29, ariafrancesco at ...237... wrote: > There is nothing that can implement in Gambas the LibNoDave ?? > http://sourceforge.net/projects/libnodave/ > I think that whit it gambas can will be the most important > developed language in Industrial automation . This is the first I've heard of libnodave. When I needed libpcre support in gambas, I brushed up on my C and implemented it myself.... maybe either you or someone else who works in industrial automation will have enough C skills and time to implement a gb.nodave component. Rob From daniel.campos at ...103... Sat Feb 19 16:32:15 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Sat, 19 Feb 2005 16:32:15 +0100 Subject: [Gambas-devel] TabStrip bug? Message-ID: <42175BFF.9030407@...103...> Hi Beno?t: I do not understand very well the "Current" property from TabStrip control. The code returns the object itself: BEGIN_PROPERTY(CTABSTRIP_current) THIS->index = WIDGET->currentPageIndex(); RETURN_SELF(); END_PROPERTY However the property is defined as: GB_PROPERTY_READ("Current", "i", CTABSTRIP_current), It returns a reference to the object as an integer ????? I think this is a bug, and should be replaced as: GB_PROPERTY_READ("Current", ".Tab", CTABSTRIP_current), Is this true? Regards, D. Campos From lordheavy at ...141... Sat Feb 19 22:04:45 2005 From: lordheavy at ...141... (Laurent Carlier) Date: Sat, 19 Feb 2005 22:04:45 +0100 Subject: [Gambas-devel] new sdl "demo" : shadow of the beast Message-ID: <200502192204.45516.lordheavy@...141...> A small piece of code ported from Clanlib to Gambas/SDL showing how to make a parallalax scroll under Gambas. The URL : http://www.gambasforge.net/code.php?id=22 -- Laurent Carlier -------------- next part -------------- A non-text attachment was scrubbed... Name: sotb_scr.jpg Type: image/jpeg Size: 67200 bytes Desc: shadow of the beast !!! URL: From gambasfr at ...4... Sat Feb 19 22:19:33 2005 From: gambasfr at ...4... (Bodard Fabien) Date: Sat, 19 Feb 2005 22:19:33 +0100 Subject: [Gambas-devel] new sdl "demo" : shadow of the beast In-Reply-To: <200502192204.45516.lordheavy@...141...> References: <200502192204.45516.lordheavy@...141...> Message-ID: <200502192219.34403.gambasfr@...4...> Le samedi 19 F?vrier 2005 22:04, Laurent Carlier a ?crit?: > A small piece of code ported from Clanlib to Gambas/SDL showing how to make > a parallalax scroll under Gambas. > > The URL : http://www.gambasforge.net/code.php?id=22 PARALLAX !!!! From lordheavy at ...141... Sat Feb 19 22:26:24 2005 From: lordheavy at ...141... (Laurent Carlier) Date: Sat, 19 Feb 2005 22:26:24 +0100 Subject: [Gambas-devel] new sdl "demo" : shadow of the beast In-Reply-To: <200502192219.34403.gambasfr@...4...> References: <200502192204.45516.lordheavy@...141...> <200502192219.34403.gambasfr@...4...> Message-ID: <200502192226.24275.lordheavy@...141...> Le Samedi 19 F?vrier 2005 22:19, Bodard Fabien a ?crit?: > Le samedi 19 F?vrier 2005 22:04, Laurent Carlier a ?crit?: > > A small piece of code ported from Clanlib to Gambas/SDL showing how to > > make a parallalax scroll under Gambas. > > > > The URL : http://www.gambasforge.net/code.php?id=22 > > PARALLAX !!!! > damned ! -- Laurent Carlier From daniel.campos at ...103... Sat Feb 19 22:36:08 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Sat, 19 Feb 2005 22:36:08 +0100 Subject: [Gambas-devel] new sdl "demo" : shadow of the beast In-Reply-To: <200502192226.24275.lordheavy@...141...> References: <200502192204.45516.lordheavy@...141...> <200502192219.34403.gambasfr@...4...> <200502192226.24275.lordheavy@...141...> Message-ID: <4217B148.1060402@...103...> Hi Laurent: I don't know if it is possible, but I think you should add an "Id" property to the SDL window(s). This way, another program could embeed the SDL window into a GTK or QT window. The movieplayer does something similar: the program passes the ID of a widget to mplayer and mplayer uses it to draw the frames. The reverse process is also possible: you pass the ID of your window, and I could embeed it for example using GtkSocket class from GTK+. Regards, D. Campos From lordheavy at ...141... Sat Feb 19 22:50:41 2005 From: lordheavy at ...141... (Laurent Carlier) Date: Sat, 19 Feb 2005 22:50:41 +0100 Subject: [Gambas-devel] new sdl "demo" : shadow of the beast In-Reply-To: <4217B148.1060402@...103...> References: <200502192204.45516.lordheavy@...141...> <200502192226.24275.lordheavy@...141...> <4217B148.1060402@...103...> Message-ID: <200502192250.42389.lordheavy@...141...> Le Samedi 19 F?vrier 2005 22:36, Daniel Campos a ?crit?: > Hi Laurent: > > I don't know if it is possible, but I think you should add an "Id" > property to > the SDL window(s). This way, another program could embeed the SDL window > into a GTK or QT window. The movieplayer does something similar: the > program passes the > ID of a widget to mplayer and mplayer uses it to draw the frames. The > reverse > process is also possible: you pass the ID of your window, and I could > embeed it > for example using GtkSocket class from GTK+. > > Regards, > > D. Campos > yes perhaps it should be possible but there is some issue with hook loop, event managing that should be incompatible ! In sdl the is an environment variable : SDL_WINDOWID << For X11 or Win32, contains the ID number of the window to be used by SDL instead of creating its own window. Either in decimal or in hex (prefixed by 0x). >> So if you can launch an sdl app after your prog, sdl can use the passed id to draw :) I don't know if it can work, ive never tried ! Currently i don't know the way to have the id of the screen created by sdl ! any tips ? Regards, -- Laurent Carlier From daniel.campos at ...103... Sun Feb 20 00:08:22 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Sun, 20 Feb 2005 00:08:22 +0100 Subject: [Gambas-devel] new sdl "demo" : shadow of the beast In-Reply-To: <200502192250.42389.lordheavy@...141...> References: <200502192204.45516.lordheavy@...141...> <200502192226.24275.lordheavy@...141...> <4217B148.1060402@...103...> <200502192250.42389.lordheavy@...141...> Message-ID: <4217C6E6.7010807@...103...> > >Currently i don't know the way to have the id of the screen created by sdl ! > >any tips ? > > > Yes. I send you a version of gb.sdl.image (from gambas-1.9.3) patched so it has a new property ("Id" or "Handle") that returns that value. I've added two new files: info.c and info.h, to prevent problems with the symbol names, and the screen.c file is patched. I've tested it creating a SDL window with gambas, and telling mplayer to play on it a video ( mplayer -wid [handle] xxx.mpg ), and it works OK. Could you add it to the official version? Regards, D. Campos >Regards, > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: sdl.image.patched.tar.gz Type: application/x-gzip Size: 27026 bytes Desc: not available URL: From lordheavy at ...141... Sun Feb 20 00:58:48 2005 From: lordheavy at ...141... (Laurent Carlier) Date: Sun, 20 Feb 2005 00:58:48 +0100 Subject: [Gambas-devel] new sdl "demo" : shadow of the beast In-Reply-To: <4217C6E6.7010807@...103...> References: <200502192204.45516.lordheavy@...141...> <200502192250.42389.lordheavy@...141...> <4217C6E6.7010807@...103...> Message-ID: <200502200058.48752.lordheavy@...141...> Le Dimanche 20 F?vrier 2005 00:08, Daniel Campos a ?crit?: > >Currently i don't know the way to have the id of the screen created by sdl > > ! > > > >any tips ? > > Yes. I send you a version of gb.sdl.image (from gambas-1.9.3) patched so > it has > a new property ("Id" or "Handle") that returns that value. I've added two > new files: info.c and info.h, to prevent problems with the symbol names, > and the screen.c file is patched. > > I've tested it creating a SDL window with gambas, and telling mplayer to > play > on it a video ( mplayer -wid [handle] xxx.mpg ), and it works OK. > > Could you add it to the official version? > > > Regards, > > D. Campos > > >Regards, Ok, merged, ive changed it to return 0 if the window isn't opened. I've test with mplayer and .... mplayer segfault :) Here the patched sdl componant Regards, -- Laurent Carlier -------------- next part -------------- A non-text attachment was scrubbed... Name: sdl050220-gb19.tar.bz2 Type: application/x-tbz Size: 37286 bytes Desc: not available URL: From lordheavy at ...141... Sun Feb 20 02:03:09 2005 From: lordheavy at ...141... (Laurent Carlier) Date: Sun, 20 Feb 2005 02:03:09 +0100 Subject: [Gambas-devel] new sdl "demo" : shadow of the beast In-Reply-To: <200502200058.48752.lordheavy@...141...> References: <200502192204.45516.lordheavy@...141...> <4217C6E6.7010807@...103...> <200502200058.48752.lordheavy@...141...> Message-ID: <200502200203.10132.lordheavy@...141...> Le Dimanche 20 F?vrier 2005 00:58, Laurent Carlier a ?crit?: > > Ok, merged, ive changed it to return 0 if the window isn't opened. I've > test with mplayer and .... mplayer segfault :) > > Here the patched sdl componant > > Regards, Yes it works fine ! it was because i'm just going to switch to kernel26/glibc+nptl and my install needed to be updated :) Regards, -- Laurent Carlier From daniel.campos at ...103... Sun Feb 20 12:06:18 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Sun, 20 Feb 2005 12:06:18 +0100 Subject: [Gambas-devel] new sdl "demo" : shadow of the beast In-Reply-To: <200502200203.10132.lordheavy@...141...> References: <200502192204.45516.lordheavy@...141...> <4217C6E6.7010807@...103...> <200502200058.48752.lordheavy@...141...> <200502200203.10132.lordheavy@...141...> Message-ID: <42186F2A.40507@...103...> > >Yes it works fine ! it was because i'm just going to switch to >kernel26/glibc+nptl and my install needed to be updated :) > >Regards, > > > And the SDL_WINDOWID variable works ok too! Here's your application working into a GTK+ window! Regards, D. Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: sdl_embeed.jpg Type: image/jpeg Size: 45140 bytes Desc: not available URL: From lordheavy at ...141... Sun Feb 20 18:52:25 2005 From: lordheavy at ...141... (Laurent Carlier) Date: Sun, 20 Feb 2005 18:52:25 +0100 Subject: [Gambas-devel] new sdl "demo" : shadow of the beast In-Reply-To: <42186F2A.40507@...103...> References: <200502192204.45516.lordheavy@...141...> <200502200203.10132.lordheavy@...141...> <42186F2A.40507@...103...> Message-ID: <200502201852.25982.lordheavy@...141...> Le Dimanche 20 F?vrier 2005 12:06, Daniel Campos a ?crit?: > >Yes it works fine ! it was because i'm just going to switch to > >kernel26/glibc+nptl and my install needed to be updated :) > > > >Regards, > > And the SDL_WINDOWID variable works ok too! Here's your application > working into a GTK+ window! > > Regards, > > D. Campos really nice ! -- Laurent Carlier From csorda at ...69... Mon Feb 21 14:55:02 2005 From: csorda at ...69... (Carlo Sorda) Date: Mon, 21 Feb 2005 14:55:02 +0100 Subject: [Gambas-devel] DCOP and Complex Type Message-ID: <6.0.0.22.2.20050221144607.02bbb008@...239...> Hi, I am developing a demo on GAMBAS a DCOP. My application control KNotes. What can I do for call this KNotes's function??: QMap notes() The QString type is mapped to String but QMap??? Thanks in advance! Bye Carlo Sorda. From gambas at ...1... Tue Feb 22 11:01:24 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Feb 2005 11:01:24 +0100 Subject: [Gambas-devel] TabStrip bug? In-Reply-To: <42175BFF.9030407@...103...> References: <42175BFF.9030407@...103...> Message-ID: <200502221101.24603.gambas@...1...> On Saturday 19 February 2005 16:32, Daniel Campos wrote: > Hi Beno?t: > > I do not understand very well the "Current" property from TabStrip control. > The code returns the object itself: > > BEGIN_PROPERTY(CTABSTRIP_current) > > THIS->index = WIDGET->currentPageIndex(); > RETURN_SELF(); > > END_PROPERTY > > However the property is defined as: > > GB_PROPERTY_READ("Current", "i", CTABSTRIP_current), > > It returns a reference to the object as an integer ????? > > I think this is a bug, and should be replaced as: > > GB_PROPERTY_READ("Current", ".Tab", CTABSTRIP_current), > > > Is this true? > > > Regards, > > D. Campos > > A thoughtless blunder yet... Thanks for the fix. -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 22 11:04:50 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Feb 2005 11:04:50 +0100 Subject: [Gambas-devel] DCOP and Complex Type In-Reply-To: <6.0.0.22.2.20050221144607.02bbb008@...239...> References: <6.0.0.22.2.20050221144607.02bbb008@...239...> Message-ID: <200502221104.50268.gambas@...1...> On Monday 21 February 2005 14:55, Carlo Sorda wrote: > Hi, > I am developing a demo on GAMBAS a DCOP. > My application control KNotes. > What can I do for call this KNotes's function??: > > QMap notes() > > The QString type is mapped to String but QMap??? > Thanks in advance! > Bye Carlo Sorda. > > There is no support for the QMap type in the KDE component at the moment. A volunteer for developing it ? :-) The equivalent of QMap will be a collection of TYPE. I note it in the TODO list anyway. Regards, -- Benoit Minisini mailto:gambas at ...1... From daniel.campos at ...103... Tue Feb 22 11:40:55 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Tue, 22 Feb 2005 11:40:55 +0100 Subject: [Gambas-devel] gb.gtk 050222 Message-ID: <421B0C37.1000909@...103...> Hi: Here's a new version of the gb.gtk component. It adds the ListView and the TabStrip classes. They're not complete, but they are useable. Regards, D. Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: gtk-050222-gb1.9.tar.bz2 Type: application/x-bzip Size: 58167 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gtk_lv_tab.png Type: image/png Size: 16359 bytes Desc: not available URL: From gambas at ...1... Tue Feb 22 11:51:31 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Feb 2005 11:51:31 +0100 Subject: [Gambas-devel] libnodave In-Reply-To: <200502181219.23835.sourceforge-raindog2@...19...> References: <200502181219.23835.sourceforge-raindog2@...19...> Message-ID: <200502221151.31129.gambas@...1...> On Friday 18 February 2005 18:19, Rob wrote: > On Friday 18 February 2005 11:29, ariafrancesco at ...237... wrote: > > There is nothing that can implement in Gambas the LibNoDave ?? > > http://sourceforge.net/projects/libnodave/ > > I think that whit it gambas can will be the most important > > developed language in Industrial automation . > > This is the first I've heard of libnodave. When I needed libpcre > support in gambas, I brushed up on my C and implemented it > myself.... maybe either you or someone else who works in > industrial automation will have enough C skills and time to > implement a gb.nodave component. > > Rob > This is not related to libnodave... Rob, I see that code in the vb import add-on you did in the IDE: STATIC PUBLIC FUNCTION match(subject AS String, pattern AS String) AS Boolean DIM r AS Regexp IF Not subject THEN RETURN FALSE IF Not pattern THEN RETURN FALSE r = NEW Regexp(subject, pattern) IF (r.Offset >= 0) THEN RETURN TRUE ELSE RETURN FALSE ENDIF END Can you add a class named "Matches" with a static "_call" method that implements the same behaviour ? This way, for simple uses of RegExp, user will only have to call: IF Matches("MyString", "MyPattern") THEN ... What do you think about that ? -- Benoit Minisini mailto:gambas at ...1... From gambasfr at ...4... Tue Feb 22 12:57:32 2005 From: gambasfr at ...4... (Bodard Fabien) Date: Tue, 22 Feb 2005 12:57:32 +0100 Subject: [Gambas-devel] gb.gtk 050222 In-Reply-To: <421B0C37.1000909@...103...> References: <421B0C37.1000909@...103...> Message-ID: <200502221257.32135.gambasfr@...4...> Le mardi 22 F?vrier 2005 11:40, Daniel Campos a ?crit?: > Hi: > > Here's a new version of the gb.gtk component. It adds the ListView and > the TabStrip > classes. They're not complete, but they are useable. > > Regards, > > D. Campos cool ! for when the ide in gtk ? From gambas at ...1... Tue Feb 22 15:03:00 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Feb 2005 15:03:00 +0100 Subject: [Gambas-devel] DnsClient patch In-Reply-To: <4213D893.2000804@...103...> References: <4213D893.2000804@...103...> Message-ID: <200502221503.00940.gambas@...1...> On Thursday 17 February 2005 00:34, Daniel Campos wrote: > Hi: > > Well, It was easier than expected, at the end I remembered all that I > did in the > DnsClient class :-)) > > Here's the implementation of DnsClient using getaddrinfo and > getnameinfo, that > should replace the current one. According with SUN documents, this > should also > work for Solaris, however the old code for Solaris is still in the file > (commented) > as I can not test it. > > This version should compile also with Cygwin, I think... Brandon? > > Regards, > > D. Campos Patch merged! -- Benoit Minisini mailto:gambas at ...1... From csorda at ...69... Tue Feb 22 15:27:55 2005 From: csorda at ...69... (Carlo Sorda) Date: Tue, 22 Feb 2005 15:27:55 +0100 Subject: [Gambas-devel] Re: DCOP and Complex Type Message-ID: <6.0.0.22.2.20050222152222.02b72008@...239...> >There is no support for the QMap type in the KDE component >at the moment. > >A volunteer for developing it ? :-) Can you give me some info for develope it? What can I do for add new type or extend predefined type? Other type is necessary: QCString, QValueList. Tanks in advance. Carlo From gambas at ...1... Tue Feb 22 15:32:27 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Feb 2005 15:32:27 +0100 Subject: [Gambas-devel] Re: DCOP and Complex Type In-Reply-To: <6.0.0.22.2.20050222152222.02b72008@...239...> References: <6.0.0.22.2.20050222152222.02b72008@...239...> Message-ID: <200502221532.27945.gambas@...1...> On Tuesday 22 February 2005 15:27, Carlo Sorda wrote: > >There is no support for the QMap type in the KDE > > component at the moment. > > > >A volunteer for developing it ? :-) > > Can you give me some info for develope it? > What can I do for add new type or extend predefined type? > > Other type is necessary: QCString, QValueList. > Tanks in advance. Carlo > All is implemented in ./src/lib/qt/kde/CApplication.cpp QCString is already managed. QCStringList is managed, I think QValueList is the same thing. Look at the code a bit first, and tell me if really you don't understand how QT datatypes are converted to Gambas datatypes, and the contrary. Regards, -- Benoit Minisini mailto:gambas at ...1... From christian.faurebouvard at ...156... Tue Feb 22 11:53:29 2005 From: christian.faurebouvard at ...156... (Christian Faure) Date: Tue, 22 Feb 2005 07:53:29 -0300 Subject: [Gambas-devel] port from Gambas1 to Gambas2, Inherits from collection In-Reply-To: <200502221151.31129.gambas@...1...> References: <200502181219.23835.sourceforge-raindog2@...19...> <200502221151.31129.gambas@...1...> Message-ID: <200502220753.29634.christian.faurebouvard@...156...> Hi, i'am trying to port code from Gambas1 to Gambas2 (Gambas2-1.9.3) i have a class inherited from a collection object i can create items, but foreach not work as expected :-( Any idea? see attached project to see the problem Thanks. Christian -------------- next part -------------- A non-text attachment was scrubbed... Name: test-gambas2-0.0.2.tar.gz Type: application/x-tgz Size: 932 bytes Desc: not available URL: From sourceforge-raindog2 at ...19... Tue Feb 22 15:54:08 2005 From: sourceforge-raindog2 at ...19... (Rob) Date: Tue, 22 Feb 2005 09:54:08 -0500 Subject: [Gambas-devel] libnodave In-Reply-To: <200502221151.31129.gambas@...1...> References: <200502181219.23835.sourceforge-raindog2@...19...> <200502221151.31129.gambas@...1...> Message-ID: <200502220954.08293.sourceforge-raindog2@...19...> On Tuesday 22 February 2005 05:51, Benoit Minisini wrote: > STATIC PUBLIC FUNCTION match(subject AS String, pattern AS > String) AS Boolean > Can you add a class named "Matches" with a static "_call" > method that implements the same behaviour ? > This way, for simple uses of RegExp, user will only have to > call: > IF Matches("MyString", "MyPattern") THEN ... > What do you think about that ? Sure, I had that in an earlier unreleased revision of the component.... I'll dig out my code and clean it up. Did you mean Regexp.Matches("MyString", "MyPattern") or is there some way I can use interpreter hooks to export the Matches symbol so it can be used without specifying the Regexp class? Rob From gambas at ...1... Tue Feb 22 16:04:43 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Feb 2005 16:04:43 +0100 Subject: [Gambas-devel] libnodave In-Reply-To: <200502220954.08293.sourceforge-raindog2@...19...> References: <200502221151.31129.gambas@...1...> <200502220954.08293.sourceforge-raindog2@...19...> Message-ID: <200502221604.43798.gambas@...1...> On Tuesday 22 February 2005 15:54, Rob wrote: > On Tuesday 22 February 2005 05:51, Benoit Minisini wrote: > > STATIC PUBLIC FUNCTION match(subject AS String, pattern AS > > String) AS Boolean > > Can you add a class named "Matches" with a static "_call" > > method that implements the same behaviour ? > > This way, for simple uses of RegExp, user will only have to > > call: > > IF Matches("MyString", "MyPattern") THEN ... > > What do you think about that ? > > Sure, I had that in an earlier unreleased revision of the > component.... I'll dig out my code and clean it up. > > Did you mean Regexp.Matches("MyString", "MyPattern") or is there > some way I can use interpreter hooks to export the Matches > symbol so it can be used without specifying the Regexp class? > > Rob > No, but if a class has a "_call" method, then this class can be used like a function. Matches("s", "p") <=> Matches._call("s", "p"). For a simple search, I think we need a function-like class, otherwise, the user has to create an instance of RegExp and uses one of its method everytime. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 22 16:27:05 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Feb 2005 16:27:05 +0100 Subject: [Gambas-devel] port from Gambas1 to Gambas2, Inherits from collection In-Reply-To: <200502220753.29634.christian.faurebouvard@...156...> References: <200502221151.31129.gambas@...1...> <200502220753.29634.christian.faurebouvard@...156...> Message-ID: <200502221627.05333.gambas@...1...> On Tuesday 22 February 2005 11:53, Christian Faure wrote: > Hi, > > i'am trying to port code from Gambas1 to Gambas2 > (Gambas2-1.9.3) > i have a class inherited from a collection object > i can create items, > but foreach not work as expected :-( > Any idea? > > see attached project to see the problem > > Thanks. > Christian There was a bug in special method inheritance. I fix it... -- Benoit Minisini mailto:gambas at ...1... From daniel.campos at ...103... Wed Feb 23 10:15:53 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Wed, 23 Feb 2005 10:15:53 +0100 Subject: [Gambas-devel] gb.gtk 050222 In-Reply-To: <200502221257.32135.gambasfr@...4...> References: <421B0C37.1000909@...103...> <200502221257.32135.gambasfr@...4...> Message-ID: <421C49C9.5050308@...103...> > >cool ! for when the ide in gtk ? > > I'll take a while, bacause I'll have to implement a clone of gb.qt.editor first! Regards, D. Campos > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_ide95&alloc_id396&op=click >_______________________________________________ >Gambas-devel mailing list >Gambas-devel at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-devel > > > > From csorda at ...69... Wed Feb 23 10:40:44 2005 From: csorda at ...69... (Carlo Sorda) Date: Wed, 23 Feb 2005 10:40:44 +0100 Subject: [Gambas-devel] Re: DCOP and Complex Type Message-ID: <6.0.0.22.2.20050223101656.02b58230@...239...> >All is implemented in ./src/lib/qt/kde/CApplication.cpp > > QCString is already managed. > QCStringList is managed, I think QValueList is the same thing. > > Look at the code a bit first, and tell me if really you don"t understand how > QT datatypes are converted to Gambas datatypes, and the contrary. Tanks.I have read ./src/lib/qt/kde/CApplication.cpp file. The code aren't commented and it's difficult to understand it. Where can I find info on QT_T_QMAP enum value and type for insert code like: if (type == QT_T_QMAP) { //Create a collection of string } I see this is a numeric type but, which value is returned for QMap type? In my free time I coded an axample for pilot KOffice by DCOP. Best regards. From sourceforge-raindog2 at ...19... Wed Feb 23 15:38:33 2005 From: sourceforge-raindog2 at ...19... (Rob) Date: Wed, 23 Feb 2005 09:38:33 -0500 Subject: [Gambas-devel] gb.gtk 050222 In-Reply-To: <421C49C9.5050308@...103...> References: <421B0C37.1000909@...103...> <200502221257.32135.gambasfr@...4...> <421C49C9.5050308@...103...> Message-ID: <200502230938.34071.sourceforge-raindog2@...19...> On Wednesday 23 February 2005 04:15, Daniel Campos wrote: > >cool ! for when the ide in gtk ? > I'll take a while, bacause I'll have to implement a clone of > gb.qt.editor first! Ehh, just subclass GtkTextView and throw fprintf(stderr, "Not implemented yet!\n"); stubs in there for all the GambasEditor specific functions, it'll be great ;) Rob From henrique.andreassy at ...241... Wed Feb 23 17:34:31 2005 From: henrique.andreassy at ...241... (Edison Henrique Andreassy (Cetil - Desenvolvimento e Tecnologia)) Date: Wed, 23 Feb 2005 13:34:31 -0300 Subject: [Gambas-devel] How can I help? References: <421B0C37.1000909@...103...> <200502221257.32135.gambasfr@...4...> <421C49C9.5050308@...103...> <200502230938.34071.sourceforge-raindog2@...19...> Message-ID: <004801c519c5$8d1b8590$ec00a8c0@...241...> Hi all, My name is Edison Henrique Andreassy, I'm brazilian (sorry my english). Well, how can I help in development of gambas? I'm a user and like so much this wonderfull programing language and enviroment! I'm a C++ programmer. What areas need assistance? regards, Edison Henrique Andreasy - LordVader From bdragon at ...185... Wed Feb 23 20:15:49 2005 From: bdragon at ...185... (Bdragon) Date: Wed, 23 Feb 2005 13:15:49 -0600 (CST) Subject: [Gambas-devel] gb.gtk 050222 In-Reply-To: <421C49C9.5050308@...103...> References: <421B0C37.1000909@...103...> <200502221257.32135.gambasfr@...4...> <421C49C9.5050308@...103...> Message-ID: On Wed, 23 Feb 2005, Daniel Campos wrote: > Date: Wed, 23 Feb 2005 10:15:53 +0100 > From: Daniel Campos > Reply-To: gambas-devel at lists.sourceforge.net > To: gambas-devel at lists.sourceforge.net > Subject: Re: [Gambas-devel] gb.gtk 050222 > > >> >> cool ! for when the ide in gtk ? >> > > I'll take a while, bacause I'll have to implement a clone of gb.qt.editor > first! > > Regards, > > D. Campos > Scintilla anyone? bdragon at ...215... SDF Public Access UNIX System - http://sdf.lonestar.org From csorda at ...69... Thu Feb 24 09:58:54 2005 From: csorda at ...69... (Carlo Sorda) Date: Thu, 24 Feb 2005 09:58:54 +0100 Subject: [Gambas-devel] QMap my implementation in DCOP class file. Message-ID: <6.0.0.22.2.20050224094725.02bdb3a0@...239...> Hi, I have try to manage QMap type in CApplication.cpp. I have implemented it like this: ... #include ... enum { QT_T_VOID, ... QT_T_QMAP_QSTRING, }; ... { "QMap",(GB_TYPE)"Collection" }, { NULL } }; ... //My implementation. else if (type == QT_T_QMAP_QSTRING) { GB_COLLECTION aCollection; GB_STRING aKey; GB_STRING aValue; //Redefine a type for QMap of QString typedef QMap Map; Map r; reply >> r; //Create a new Collection GB.Collection.New(&aCollection,GB_COMP_BINARY); //Create an Map Iterator for navigate a Map Map::Iterator it; for (it =r.begin() ;it != r.end();it++) { #ifdef DEBUG_ME //This is correct qDebug("QMAP %s->%s", it.key().latin1(),it.data().latin1()); #endif //Create e new GB_STRING that contain a Key (QString) GB.NewString((char **)&aKey,it.key().latin1(),0); //Generate a new GB_STRING theat cantain a Value (QString) GB.NewString((char **)&aValue,it.data().latin1(),0); //aValue is NULL??? WHY qDebug("aValue: %s-%s",aKey,aValue); //Here is the crash //GB.Collection.Set(&aCollection,&aKey,GB.StringLength((char *)&aKey),(GB_VARIANT *)&aValue); //GB.Collection.Set(&aCollection,it.key().latin1(),it.key().length(),(GB_VARIANT*)it.data().latin1()); } //return a Collection GB.ReturnObject(aCollection); } Can you help me? From gambas at ...1... Thu Feb 24 10:37:25 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 24 Feb 2005 10:37:25 +0100 Subject: [Gambas-devel] QMap my implementation in DCOP class file. In-Reply-To: <6.0.0.22.2.20050224094725.02bdb3a0@...239...> References: <6.0.0.22.2.20050224094725.02bdb3a0@...239...> Message-ID: <200502241037.25827.gambas@...1...> On Thursday 24 February 2005 09:58, Carlo Sorda wrote: > Hi, > I have try to manage QMap type in CApplication.cpp. > I have implemented it like this: > > ... > #include > ... > enum { > QT_T_VOID, > ... > QT_T_QMAP_QSTRING, > }; > ... > { "QMap",(GB_TYPE)"Collection" }, > { NULL } > }; > ... > //My implementation. > else if (type == QT_T_QMAP_QSTRING) > { > GB_COLLECTION aCollection; > GB_STRING aKey; > GB_STRING aValue; > //Redefine a type for QMap of QString > typedef QMap Map; > Map r; > reply >> r; > > //Create a new Collection > GB.Collection.New(&aCollection,GB_COMP_BINARY); > > //Create an Map Iterator for navigate a Map > Map::Iterator it; > for (it =r.begin() ;it != r.end();it++) > { > #ifdef DEBUG_ME > //This is correct > qDebug("QMAP %s->%s", it.key().latin1(),it.data().latin1()); > #endif > > //Create e new GB_STRING that contain a Key (QString) > GB.NewString((char **)&aKey,it.key().latin1(),0); > //Generate a new GB_STRING theat cantain a Value (QString) > GB.NewString((char **)&aValue,it.data().latin1(),0); > > //aValue is NULL??? WHY > qDebug("aValue: %s-%s",aKey,aValue); > //Here is the crash > //GB.Collection.Set(&aCollection,&aKey,GB.StringLength((char > *)&aKey),(GB_VARIANT *)&aValue); > > //GB.Collection.Set(&aCollection,it.key().latin1(),it.key().length(),(GB_VA >RIANT*)it.data().latin1()); } > //return a Collection > GB.ReturnObject(aCollection); > } > > Can you help me? > > Yes :-) The third parameter of GB.Collection.Set is a GB_VARIANT, which is not a GB_STRING: you cannot cast the second to the first wihtout a crash. The key is a normal string, not a GB_STRING. The GB_* structures depict the way value are stored in the interpreter stack. I suggest the following (I didn't try the code): ? else if (type == QT_T_QMAP_QSTRING) ? ?{ ? ? ?GB_COLLECTION aCollection; ? ? ?char *key; ? ? ?GB_VARIANT value; ? ? ?//Redefine a type for QMap of QString // Why did you redefine it ? ? ? ?typedef QMap Map; ? ? ?Map r; ? ? ?reply >> r; ? ? ?//Create a new Collection ? ? ?GB.Collection.New(&aCollection, GB_COMP_BINARY); // initialize value value.type = GB_T_VARIANT; ? ? ?//Create an Map Iterator for navigate a Map ? ? ?Map::Iterator it; ? ? ?for (it =r.begin() ;it != r.end();it++) ? ? ?{ ? ? ? ?#ifdef DEBUG_ME ? ? ? ??//This is correct ? ? ? ??qDebug("QMAP %s->%s", it.key().latin1(),it.data().latin1()); ? ? ? ?#endif // This is unneeded ? ? ? ?// GB.NewString((char **)&aKey,it.key().latin1(),0); ? ? ? ? //Generate a new GB_VARIANT that contains the string value // Gambas uses UTF-8 ? ? ? ?GB.NewString(&value.value._string.value, it.utf8().data(), 0); ? ? ? ?GB.Collection.Set(&aCollection, it.key().utf8().data(), 0, &value); ? ? ?} ? ? ?//return a Collection ? ? ?GB.ReturnObject(aCollection); ? ?} Tell me the result - I'm not sure of *.utf8().data() to get the (char *) representation of the utf8 string. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Thu Feb 24 11:00:06 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 24 Feb 2005 11:00:06 +0100 Subject: [Gambas-devel] How can I help? In-Reply-To: <004801c519c5$8d1b8590$ec00a8c0@...241...> References: <421B0C37.1000909@...103...> <200502230938.34071.sourceforge-raindog2@...19...> <004801c519c5$8d1b8590$ec00a8c0@...241...> Message-ID: <200502241100.06996.gambas@...1...> On Wednesday 23 February 2005 17:34, Edison Henrique Andreassy (Cetil - Desenvolvimento e Tecnologia) wrote: > Hi all, > > My name is Edison Henrique Andreassy, I'm brazilian (sorry my english). > Well, how can I help in development of gambas? I'm a user and like so much > this wonderfull programing language and enviroment! I'm a C++ programmer. Cool :-) > > What areas need assistance? The simpler way for collaborate is making a component on its own and support it. What would you like to do ? I think the better result comes from a thing you want to do. Otherwise, I know that Daniel Campos needs a port of the Gambas editor component to GTK+ - If you know GTK+. Or the KDE libraries could be intelligently "componentized" - If you know KDE well. Regards, -- Benoit Minisini mailto:gambas at ...1... From daniel.campos at ...103... Thu Feb 24 13:57:14 2005 From: daniel.campos at ...103... (Daniel Campos) Date: Thu, 24 Feb 2005 13:57:14 +0100 Subject: [Gambas-devel] GTK 050224A Message-ID: <421DCF2A.9060804@...103...> Hi: New pre-version of the gb.gtk component. It includes: - The major part of the "Mouse" class properties now work in the "MouseUp" and "MouseDown" events. -"ColumnView" class partially implemented. A lot of things working. I send this version today as may be anybody wants to show something at FOSDEM :-)) Regards, D. Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: gtk-050224A-gb1.9.tar.bz2 Type: application/x-bzip Size: 59807 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ColumnTest.tar.gz Type: application/x-gzip Size: 15634 bytes Desc: not available URL: From sourceforge-raindog2 at ...19... Thu Feb 24 18:24:02 2005 From: sourceforge-raindog2 at ...19... (Rob) Date: Thu, 24 Feb 2005 12:24:02 -0500 Subject: [Gambas-devel] How can I help? In-Reply-To: <200502241100.06996.gambas@...1...> References: <421B0C37.1000909@...103...> <004801c519c5$8d1b8590$ec00a8c0@...241...> <200502241100.06996.gambas@...1...> Message-ID: <200502241224.02729.sourceforge-raindog2@...19...> On Thursday 24 February 2005 05:00, Benoit Minisini wrote: > Otherwise, I know that Daniel Campos needs a port of the > Gambas editor component to GTK+ - If you know GTK+. > Or the KDE libraries could be intelligently "componentized" - > If you know KDE well. OpenGL would probably be a pretty popular component (maybe as a subcomponent of gb.sdl.) At the other end of the spectrum (albeit no less difficult, probably moreso) would be... gb.curses :) But those are C ideas. I had a great idea for a C++ based component last night but now I've forgotten it. For a first Gambas component, though, a component to manage Zip files might be a better starting point, maybe gb.compress.zip. If no one does that within a few months I'll probably take a stab at it after my current big work project cools down. More ambitiously, the interpreter and archiver seriously need to be changed to produce ELF executables (e.g. a version of gbx that can have archives appended to it, or as someone else suggested, a .so version of gbx and a stub program to launch the attached project) because I have run into 3 instances now where I wanted to be able to put #!/usr/bin/mygambasprogram at the beginning of a script and have my gambas program automatically open it from the shell, and you can't do that while mygambasprogram is itself a script. (that, and the practice of having a #! line at the beginning of a binary file is bad, IMO.) But I'm not up to that level of understanding Gambas internals yet, and it's possible no one is except Benoit. Speaking of KDE, I looked into adding a Kicker applet class to gb.qt.kde last week... it seems that kicker applets must be shared objects, not regular executables. There is a wrapper applet allowing you to embed your own programs in Kicker, but it is disabled by default and apparently unmaintained as I was unable to get it to build. :P I did get Daniel's systray code working against gambas 1.9x though, I'll have to send a patch. Rob From csorda at ...69... Thu Feb 24 19:07:11 2005 From: csorda at ...69... (Carlo Sorda) Date: Thu, 24 Feb 2005 19:07:11 +0100 Subject: [Gambas-devel] Re: QMap my implementation in DCOP class file. Message-ID: <6.0.0.22.2.20050224184018.02bcc750@...239...> Thanks a lot!!! I have compiled this: else if (type == QT_T_QMAP_QSTRING) { GB_COLLECTION aCollection; GB_VARIANT aValue; QMap r; reply >> r; GB.Collection.New(&aCollection,GB_COMP_BINARY); QMap::Iterator it; aValue.type = GB_T_VARIANT; for (it =r.begin() ;it != r.end();it++) { GB.NewString(&aValue.value._string.value,it.data().utf8().data(),0); GB.Collection.Set(aCollection,it.key().utf8().data(),0,&aValue); } and I haved an error like this: Type mismatch: wanted Void, got Variant instead!!! What can I do?? Tank you , see you soon. From na2492 at ...16... Thu Feb 24 22:36:52 2005 From: na2492 at ...16... (Charlie Reinl) Date: Thu, 24 Feb 2005 22:36:52 00100 Subject: [Gambas-devel] How can I help? Message-ID: <421e48f4.423f.0@...16...> >On Wednesday 23 February 2005 17:34, Edison Henrique Andreassy (Cetil - >Desenvolvimento e Tecnologia) wrote: >> Hi all, >> >> My name is Edison Henrique Andreassy, I'm brazilian (sorry my english). >> Well, how can I help in development of gambas? I'm a user and like so much >> this wonderfull programing language and enviroment! I'm a C++ programmer. > >Cool :-) > >> >> What areas need assistance? > >The simpler way for collaborate is making a component on its own and support >it. > >What would you like to do ? I think the better result comes from a thing you >want to do. > >Otherwise, I know that Daniel Campos needs a port of the Gambas editor >component to GTK+ - If you know GTK+. > >Or the KDE libraries could be intelligently "componentized" - If you know KDE >well. > >Regards, > >-- >Benoit Minisini >mailto:gambas at ...1... > Salut, Frank Berg trys to make an ax25 component for gambas, and needs help write to frankberg at ...136... Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From gambasfr at ...4... Sat Feb 26 20:06:35 2005 From: gambasfr at ...4... (Bodard Fabien) Date: Sat, 26 Feb 2005 20:06:35 +0100 Subject: [Gambas-devel] 2 new gambas qt feature but only one work ... need help Message-ID: <200502262006.35971.gambasfr@...4...> Hi to all i've tested 2 new feature. but it's really alpha . The first work well it's in the Cwidget.cpp i've added the possibility to change the container without unload the child by using reparent qt function. I've seen the same function in gtk. The use it container = mycontainer (panel for exemple) you can do button.container = button2.container too or button.container.children.count My property allow to set the container and return a container Second work don't work and it's forthat i need help. I've tested the possibility to implement the tabstrip.remove(integer) method. I use the qtbawidget->remove(int) function and then remove the page by delete. Then i do a move in the internal class stack where are stored the containers ptr. and the same at the icon stack. finally i reduce the stack of one. but the problem is when i try to delete an item 2 time... tabstrip.count = 5 Public sub Button_Click() tabstrip.Remove(2) end i cant redo a Remove(2) .. or highter. it say me Contain children ... but my tab strip is empty. but i can do it on 0 or 1. so the problem can come from to way - a problem during the stack move. - Mabe i need to move the tabwidget tabs(item) like the stack.. but i don't see how. Last point i've changed the QVector to QPtrVector . Because QVector is obsolete ! So play with the widget feature and report me rhe bugs. and if you have a soluce for the tabstrip... call me :) Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: CTabStrip.cpp Type: text/x-c++src Size: 12082 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: CTabStrip.h Type: text/x-chdr Size: 2032 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: CWidget.cpp Type: text/x-c++src Size: 33375 bytes Desc: not available URL: From gambasfr at ...4... Sat Feb 26 20:22:14 2005 From: gambasfr at ...4... (Bodard Fabien) Date: Sat, 26 Feb 2005 20:22:14 +0100 Subject: [Gambas-devel] 2 new gambas qt feature but only one work ... need help In-Reply-To: <200502262006.35971.gambasfr@...4...> References: <200502262006.35971.gambasfr@...4...> Message-ID: <200502262022.14561.gambasfr@...4...> Le samedi 26 F?vrier 2005 20:06, Bodard Fabien a ?crit?: oups bad files ... there too buggy sorry this new one ! I think the Container property can be merged with the parent one ! -------------- next part -------------- A non-text attachment was scrubbed... Name: CTabStrip.h Type: text/x-chdr Size: 2032 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: CTabStrip.cpp Type: text/x-c++src Size: 12074 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: CWidget.cpp Type: text/x-c++src Size: 33364 bytes Desc: not available URL: From frankberg at ...136... Sat Feb 26 21:24:06 2005 From: frankberg at ...136... (Frank Berg) Date: Sat, 26 Feb 2005 21:24:06 +0100 Subject: [Gambas-devel] Re: Test component compilation problem... References: <7f8e4a5a0501220510fd710d3@...178...> <7f8e4a5a050125022533320d5e@...178...> <7f8e4a5a05012505597ccc409e@...178...> Message-ID: <001801c51c41$20dc2f00$c6f0fea9@...146...> hi Srikanta how long are your with the xyz project? frank