From ron at ...572... Wed Nov 5 21:23:39 2014 From: ron at ...572... (Ron) Date: Wed, 5 Nov 2014 21:23:39 +0100 Subject: [Gambas-devel] Change into SliderBox Message-ID: I miss this menu option in form editor (3.6.1) Regards, Ron. From gambas at ...1... Wed Nov 5 23:22:57 2014 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Wed, 05 Nov 2014 23:22:57 +0100 Subject: [Gambas-devel] Change into SliderBox In-Reply-To: References: Message-ID: <545AA341.4040401@...1...> Le 05/11/2014 21:23, Ron a ?crit : > I miss this menu option in form editor (3.6.1) > > Regards, > Ron. > What are you talking about? -- Beno?t Minisini From ron at ...572... Wed Nov 5 23:34:19 2014 From: ron at ...572... (Ron) Date: Wed, 5 Nov 2014 23:34:19 +0100 Subject: [Gambas-devel] Change into SliderBox In-Reply-To: <545AA341.4040401@...1...> References: <545AA341.4040401@...1...> Message-ID: If you right click on a form control Lets say a spinbox you can change the control type into another one with "change into", but sliderbox is not one of them/missing. Ron Op 5 nov. 2014 23:23 schreef "Beno?t Minisini" : > Le 05/11/2014 21:23, Ron a ?crit : > > I miss this menu option in form editor (3.6.1) > > > > Regards, > > Ron. > > > > What are you talking about? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ron at ...572... Sat Nov 8 22:32:21 2014 From: ron at ...572... (Ron) Date: Sat, 8 Nov 2014 22:32:21 +0100 Subject: [Gambas-devel] Cannot seem to enter a table name for datasource Message-ID: Running gambas 3.6.1 When I add a datasource to my form and want to enter the table name to use, I can fill it in. But cannot enter it, and when I click in another field the contents of table field is erased... Any has this too? I don't need to create a mysql db connection in my ide, do I? It was never needed. [System] Gambas=3.6.1 OperatingSystem=Linux Kernel=3.13.0-39-generic Architecture=x86_64 Distribution=Ubuntu 14.04.1 LTS Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=7953M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 Regards, Ron. From gambas at ...1... Mon Nov 10 14:23:36 2014 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Mon, 10 Nov 2014 14:23:36 +0100 Subject: [Gambas-devel] Cannot seem to enter a table name for datasource In-Reply-To: References: Message-ID: <5460BC58.7070205@...1...> Le 08/11/2014 22:32, Ron a ?crit : > Running gambas 3.6.1 > > When I add a datasource to my form and want to enter the table name to > use, I can fill it in. > But cannot enter it, and when I click in another field the contents of > table field is erased... > > Any has this too? > I don't need to create a mysql db connection in my ide, do I? > It was never needed. > > > [System] > Gambas=3.6.1 > OperatingSystem=Linux > Kernel=3.13.0-39-generic > Architecture=x86_64 > Distribution=Ubuntu 14.04.1 LTS > Desktop=GNOME > Theme=QGtk > Language=en_US.UTF-8 > Memory=7953M > [Libraries] > Cairo=libcairo.so.2.11301.0 > Curl=libcurl.so.4.3.0 > DBus=libdbus-1.so.3.7.6 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.204.0 > GTK+3=libgtk-3.so.0.1000.8 > GTK+=libgtk-x11-2.0.so.0.2400.23 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.44.0.0 > Qt4=libQtCore.so.4.8.6 > SDL=libSDL-1.2.so.0.11.4 > > Regards, > Ron. > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > Fixed in revison #6616. Regards, -- Beno?t Minisini From gambas at ...1... Tue Nov 11 23:03:48 2014 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Tue, 11 Nov 2014 23:03:48 +0100 Subject: [Gambas-devel] Change into SliderBox In-Reply-To: References: <545AA341.4040401@...1...> Message-ID: <546287C4.7050104@...1...> Le 05/11/2014 23:34, Ron a ?crit : > If you right click on a form control Lets say a spinbox you can change > the control type into another one with "change into", but sliderbox is > not one of them/missing. > > Ron > Done and backported to Gambas 3.6.2. Regards, -- Beno?t Minisini From ron at ...572... Sat Nov 15 16:43:18 2014 From: ron at ...572... (Ron) Date: Sat, 15 Nov 2014 16:43:18 +0100 Subject: [Gambas-devel] Cannot seem to enter a table name for datasource In-Reply-To: <5460BC58.7070205@...1...> References: <5460BC58.7070205@...1...> Message-ID: I now have the same issue with a ValueBox in a Gambas 3.6.2 project. [System] Gambas=3.6.2 OperatingSystem=Linux Kernel=3.13.0-39-generic Architecture=x86_64 Distribution=Ubuntu 14.04.1 LTS Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=7953M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 Regards, Ron. 2014-11-10 14:23 GMT+01:00 Beno?t Minisini : > Le 08/11/2014 22:32, Ron a ?crit : > > Running gambas 3.6.1 > > > > When I add a datasource to my form and want to enter the table name to > > use, I can fill it in. > > But cannot enter it, and when I click in another field the contents of > > table field is erased... > > > > Any has this too? > > I don't need to create a mysql db connection in my ide, do I? > > It was never needed. > > > > > > [System] > > Gambas=3.6.1 > > OperatingSystem=Linux > > Kernel=3.13.0-39-generic > > Architecture=x86_64 > > Distribution=Ubuntu 14.04.1 LTS > > Desktop=GNOME > > Theme=QGtk > > Language=en_US.UTF-8 > > Memory=7953M > > [Libraries] > > Cairo=libcairo.so.2.11301.0 > > Curl=libcurl.so.4.3.0 > > DBus=libdbus-1.so.3.7.6 > > GStreamer=libgstreamer-0.10.so.0.30.0 > > GStreamer=libgstreamer-1.0.so.0.204.0 > > GTK+3=libgtk-3.so.0.1000.8 > > GTK+=libgtk-x11-2.0.so.0.2400.23 > > OpenGL=libGL.so.1.2.0 > > Poppler=libpoppler.so.44.0.0 > > Qt4=libQtCore.so.4.8.6 > > SDL=libSDL-1.2.so.0.11.4 > > > > Regards, > > Ron. > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > Gambas-devel mailing list > > Gambas-devel at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-devel > > > > Fixed in revison #6616. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at ...176... Sat Nov 15 19:13:51 2014 From: taboege at ...176... (Tobias Boege) Date: Sat, 15 Nov 2014 19:13:51 +0100 Subject: [Gambas-devel] Sorting a String GB_ARRAY Message-ID: <20141115181351.GO792@...693...> Hi, in a C component, how would I sort a GB_ARRAY of which I know it contains Strings? Is there some interface to get Array.Data so that I can qsort() with GB.CompVariant()? Would that work? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From sebikul at ...176... Sun Nov 16 02:35:05 2014 From: sebikul at ...176... (Sebastian Kulesz) Date: Sat, 15 Nov 2014 22:35:05 -0300 Subject: [Gambas-devel] Compiling on Mac OSX Message-ID: Hey there! So, I've tried compiling Gambas 3.6.2 on Mac OSX. The interpreter compiles and build just fine, along with the built in components. My problem for now is compiling gb.qt4. I know it relies heavily in having X11 installed with the required libraries. I have done everything i could think of to get it to compile, but it fails every time. I noticed there is a special build path when there is no X11 server available on Mac OSX, but it seems that it is always disabled. Attached is the log of my first test. As you will see, there seems to be a missing include for X11/Xlib.h on the main.h file. Once i add it and the XEvent symbol is resolved, it continues for bit more. The second log file (*.1.log) has the error stopping me. It seems like it is coming from qt itself, but i have no idea why. I compiled QT4 myself for the record. I have every library QT requires installed, as far as i know, but if you need any more info please let me know. I'm not sure what is relevant and what is not in this case. As a side note. Last week i tried removing all the code on gb.qt4 for when there is no x11 available. It compiled a lot more of the object files, but ended up failing with a very similar error anyway. If necessary, i think i could provide ssh access to my computer. I don't know exactly how to set that up, but if it is needed i can look it up. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.qt4.log Type: application/octet-stream Size: 11986 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.qt4.1.log Type: application/octet-stream Size: 10993 bytes Desc: not available URL: From gambas.fr at ...176... Sun Nov 16 09:24:40 2014 From: gambas.fr at ...176... (Fabien Bodard) Date: Sun, 16 Nov 2014 09:24:40 +0100 Subject: [Gambas-devel] Compiling on Mac OSX In-Reply-To: References: Message-ID: You need to contact Fran?ois for that ... Fran?ois Gallo He have done many job on that and i think he can help you. Give us result of your tries please. Regards, Fabien Bodard 2014-11-16 2:35 GMT+01:00 Sebastian Kulesz : > Hey there! > > So, I've tried compiling Gambas 3.6.2 on Mac OSX. The interpreter compiles > and build just fine, along with the built in components. My problem for now > is compiling gb.qt4. I know it relies heavily in having X11 installed with > the required libraries. I have done everything i could think of to get it to > compile, but it fails every time. > > I noticed there is a special build path when there is no X11 server > available on Mac OSX, but it seems that it is always disabled. Attached is > the log of my first test. As you will see, there seems to be a missing > include for X11/Xlib.h on the main.h file. Once i add it and the XEvent > symbol is resolved, it continues for bit more. The second log file > (*.1.log) has the error stopping me. It seems like it is coming from qt > itself, but i have no idea why. I compiled QT4 myself for the record. > > I have every library QT requires installed, as far as i know, but if you > need any more info please let me know. I'm not sure what is relevant and > what is not in this case. > > As a side note. Last week i tried removing all the code on gb.qt4 for when > there is no x11 available. It compiled a lot more of the object files, but > ended up failing with a very similar error anyway. > > If necessary, i think i could provide ssh access to my computer. I don't > know exactly how to set that up, but if it is needed i can look it up. > > Thanks! > > > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -- Fabien Bodard From gambas at ...1... Sun Nov 16 17:05:24 2014 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sun, 16 Nov 2014 17:05:24 +0100 Subject: [Gambas-devel] Cannot seem to enter a table name for datasource In-Reply-To: References: <5460BC58.7070205@...1...> Message-ID: <5468CB44.6080008@...1...> Le 15/11/2014 16:43, Ron a ?crit : > I now have the same issue with a ValueBox in a Gambas 3.6.2 project. > What do you mean? You can't enter a table name in a ValueBox... -- Beno?t Minisini From gambas at ...1... Sun Nov 16 17:06:37 2014 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sun, 16 Nov 2014 17:06:37 +0100 Subject: [Gambas-devel] Sorting a String GB_ARRAY In-Reply-To: <20141115181351.GO792@...693...> References: <20141115181351.GO792@...693...> Message-ID: <5468CB8D.6030409@...1...> Le 15/11/2014 19:13, Tobias Boege a ?crit : > Hi, > > in a C component, how would I sort a GB_ARRAY of which I know it contains > Strings? Is there some interface to get Array.Data so that I can qsort() > with GB.CompVariant()? Would that work? > > Regards, > Tobi > Strings can be sorted in a lot of ways. Anyway, you can move the elements of a Gambas array freely, as long as you do not change reference counts. -- Beno?t Minisini From ron at ...572... Sun Nov 16 17:14:57 2014 From: ron at ...572... (Ron) Date: Sun, 16 Nov 2014 17:14:57 +0100 Subject: [Gambas-devel] Cannot seem to enter a table name for datasource In-Reply-To: <5468CB44.6080008@...1...> References: <5460BC58.7070205@...1...> <5468CB44.6080008@...1...> Message-ID: You display the Value field of a Valuebox in ide form editor But you are not allowed to enter something in it because you need to use Text field for that. Confusing, make the field not editable or allow to enter something in it. Watch out it doesn't grow into the monster called Visual Basic... ;) Ron. 2014-11-16 17:05 GMT+01:00 Beno?t Minisini : > Le 15/11/2014 16:43, Ron a ?crit : > > I now have the same issue with a ValueBox in a Gambas 3.6.2 project. > > > > What do you mean? You can't enter a table name in a ValueBox... > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > > http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Sun Nov 16 17:18:50 2014 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sun, 16 Nov 2014 17:18:50 +0100 Subject: [Gambas-devel] Cannot seem to enter a table name for datasource In-Reply-To: References: <5460BC58.7070205@...1...> <5468CB44.6080008@...1...> Message-ID: <5468CE6A.4010306@...1...> Le 16/11/2014 17:14, Ron a ?crit : > You display the Value field of a Valuebox in ide form editor > But you are not allowed to enter something in it because you need to use > Text field for that. > Confusing, make the field not editable or allow to enter something in it. > > Watch out it doesn't grow into the monster called Visual Basic... ;) > Ron. > Sorry, I don't get what you are talking about. Please explain differently! -- Beno?t Minisini From ron at ...572... Mon Nov 17 08:16:58 2014 From: ron at ...572... (Ron) Date: Mon, 17 Nov 2014 08:16:58 +0100 Subject: [Gambas-devel] Cannot seem to enter a table name for datasource In-Reply-To: <5468CE6A.4010306@...1...> References: <5460BC58.7070205@...1...> <5468CB44.6080008@...1...> <5468CE6A.4010306@...1...> Message-ID: See attachment. You present the field Value of a ValueBox as editable, but it isn't. Either let it store input it gets, or doesn't display as editable. Ron. 2014-11-16 17:18 GMT+01:00 Beno?t Minisini : > Le 16/11/2014 17:14, Ron a ?crit : > > You display the Value field of a Valuebox in ide form editor > > But you are not allowed to enter something in it because you need to use > > Text field for that. > > Confusing, make the field not editable or allow to enter something in it. > > > > Watch out it doesn't grow into the monster called Visual Basic... ;) > > Ron. > > > > Sorry, I don't get what you are talking about. Please explain differently! > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > > http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: valuebox.png Type: image/png Size: 75353 bytes Desc: not available URL: From sebikul at ...176... Sun Nov 23 05:41:18 2014 From: sebikul at ...176... (Sebastian Kulesz) Date: Sun, 23 Nov 2014 01:41:18 -0300 Subject: [Gambas-devel] /trunk does not build Message-ID: Last commit triggers a build error. Here is the log [0] The change that broke it is the addition of the gb.desktop dependency to gb.form, thus creating a circular dependency. [1] [0] https://launchpadlibrarian.net/191009133/buildlog_ubuntu-utopic-i386.gambas3_3.6.99%2Bsvn6666%2Bbuild4~ubuntu14.10.1_FAILEDTOBUILD.txt.gz [1] https://sourceforge.net/p/gambas/code/6665#diff-11 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Sun Nov 23 10:51:59 2014 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sun, 23 Nov 2014 10:51:59 +0100 Subject: [Gambas-devel] /trunk does not build In-Reply-To: References: Message-ID: <5471AE3F.2080700@...1...> Le 23/11/2014 05:41, Sebastian Kulesz a ?crit : > Last commit triggers a build error. Here is the log [0] > > The change that broke it is the addition of the gb.desktop dependency to > gb.form, thus creating a circular dependency. [1] > > [0] > https://launchpadlibrarian.net/191009133/buildlog_ubuntu-utopic-i386.gambas3_3.6.99%2Bsvn6666%2Bbuild4~ubuntu14.10.1_FAILEDTOBUILD.txt.gz > > [1] https://sourceforge.net/p/gambas/code/6665#diff-11 > > Fixed in the last revision. It's not the first time I make that mistake, and I guess it will not be the last time. :-) -- Beno?t Minisini From gambas at ...1... Sun Nov 23 11:16:01 2014 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sun, 23 Nov 2014 11:16:01 +0100 Subject: [Gambas-devel] Cannot seem to enter a table name for datasource In-Reply-To: References: <5460BC58.7070205@...1...> <5468CB44.6080008@...1...> <5468CE6A.4010306@...1...> Message-ID: <5471B3E1.7080103@...1...> Le 17/11/2014 08:16, Ron a ?crit : > See attachment. > You present the field Value of a ValueBox as editable, but it isn't. > Either let it store input it gets, or doesn't display as editable. > > Ron. > OK, I see. It is confusing, so in revision #6668, I removed "Value" from the list of properties visible to the IDE. Moreover, I fixed ValueBox so that it can correctly understand a void Text property for all different ValueBox types. Regards, -- Beno?t Minisini From mcc.mcc at ...743... Sun Nov 23 18:20:44 2014 From: mcc.mcc at ...743... (mcc.mcc at ...743...) Date: Sun, 23 Nov 2014 18:20:44 +0100 Subject: [Gambas-devel] packaging question Message-ID: <20141123172044.5471020B58@...744...> I resend a summary of my previous messages in the hope that spamassassin don't drop it I have submitted a patch to the Debian maintainers of the Gambas packages, in order to reduce the dependencies needed, decreasing the installed size actually the gb.gui component depends on both gb.gtk AND gb.gt4, but reading the source I realized that package should depends only on gb.gtk OR gb.qt4 (or both if the user wants) also the gb.db component depends on gb.qt4.ext, but I cannot find where it is used in the code may be I missed it, otherwise it should be removed as dependency please, can you confirm? ciao! From gambas at ...1... Thu Nov 27 20:13:01 2014 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Thu, 27 Nov 2014 20:13:01 +0100 Subject: [Gambas-devel] packaging question In-Reply-To: <20141123172044.5471020B58@...744...> References: <20141123172044.5471020B58@...744...> Message-ID: <547777BD.7050905@...1...> Le 23/11/2014 18:20, mcc.mcc at ...743... a ?crit : > > I resend a summary of my previous messages in the hope that > spamassassin don't drop it > > I have submitted a patch to the Debian maintainers of the Gambas > packages, in order to reduce the dependencies needed, decreasing the > installed size > > actually the gb.gui component depends on both gb.gtk AND gb.gt4, but > reading the source I realized that package should depends only on > gb.gtk OR gb.qt4 (or both if the user wants) > also the gb.db component depends on gb.qt4.ext, but I cannot find > where it is used in the code > > may be I missed it, otherwise it should be removed as dependency > > please, can you confirm? > > ciao! > What to be done is written at: http://gambaswiki.org/wiki/howto/package Unless I made a mistake in that page, I don't know where these wrong dependencies come from. So I confirm you that: - gb.gui technically depends on no components, as it searches for GUI components (gb.gtk, gb.gtk3 and gb.qt4) at runtime. Concretely, it should depends on gb.gtk OR gb.gtk3 OR gb.qt4. Same logic with gb.gui.opengl. - gb.db depends on nothing. It may depends on gb.db.mysql OR gb.db.postgresql... But there is no need for that normally. It's up to the developer to make its project depends on the database driver it needs. Regards, -- Beno?t Minisini From mcc.mcc at ...743... Thu Nov 27 23:38:01 2014 From: mcc.mcc at ...743... (mcc.mcc at ...743...) Date: Thu, 27 Nov 2014 23:38:01 +0100 Subject: [Gambas-devel] packaging question In-Reply-To: <547777BD.7050905@...1...> References: <20141123172044.5471020B58@...744...> <547777BD.7050905@...1...> Message-ID: <20141127223801.A6335C0111@...744...> many many thanks! also I want to say a big thank you for the very beautiful program that gambas is and how it is well structured trek On 27/11/2014 at 8:13 PM, "Beno?t Minisini" wrote: > >What to be done is written at: > > http://gambaswiki.org/wiki/howto/package > >Unless I made a mistake in that page, I don't know where these >wrong >dependencies come from. > >So I confirm you that: > >- gb.gui technically depends on no components, as it searches for >GUI >components (gb.gtk, gb.gtk3 and gb.qt4) at runtime. Concretely, it >should depends on gb.gtk OR gb.gtk3 OR gb.qt4. Same logic with >gb.gui.opengl. > >- gb.db depends on nothing. It may depends on gb.db.mysql OR >gb.db.postgresql... But there is no need for that normally. It's >up to >the developer to make its project depends on the database driver >it needs. > >Regards, > >-- >Beno?t Minisini From gambas at ...1... Fri Nov 28 21:05:44 2014 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 28 Nov 2014 21:05:44 +0100 Subject: [Gambas-devel] [Gambas-user] gb.gsl: Polynomial arithmetic / gb.flint In-Reply-To: <20141128110543.GA1008@...693...> References: <20141128110543.GA1008@...693...> Message-ID: <5478D598.3090707@...1...> Le 28/11/2014 12:05, Tobias Boege a ?crit : > Hi Benoit, > > the Polynomial class in gb.gsl does not support all the arithmetic > operations I'm going to need. I'd like to multiply two polynomials and > to divide a polynomial by a (non-zero) scalar. I just saw that GSL > doesn't implement polynomial arithmetic at all and you wrote the addition > and subtraction functions by hand... > > What do you think about the FLINT library? I just glanced at its > documentation and it looks like a treasure chest, and already pretty > object-oriented. I'll add gb.flint somewhere near the top of my TODO > list... > > And out of curiosity: for the polynomials with real or complex > coefficients, there is an euclidean division operation defined. The > GB_OPERATOR_DESC structure has no entry for the MOD operator, or does it? > If not, there is no chance of doing euclidean division via operators? > > Regards, > Tobi > I was not aware of the FLINT library. If you want to make a component from it, start from a copy of gb.gsl to mimic its structure. MOD cannot be overloaded, as well as the DIV operator. They are both integer-only operators at the moment, and I don't want to change them now. Regards, -- Beno?t Minisini From gambas at ...1... Fri Nov 28 21:12:43 2014 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 28 Nov 2014 21:12:43 +0100 Subject: [Gambas-devel] Please Benoit i want this !! In-Reply-To: References: Message-ID: <5478D73B.8010202@...1...> Le 26/10/2014 11:53, Fabien Bodard a ?crit : > Private Function GetDiffArray(Array1 As Integer[], Array2 As > Integer[]) As Integer[] > > Dim aRet As New Integer[] > Dim i As Integer > > For Each i In Array2 > If Array1.Exist(i) Then Continue > aRet.Add(i) > Next > Return aRet > > End > > > > Is it possible to add this in a native way : > > MyArray1.Diff(MyArray2) as array ? > > > > For example in a string it will give > > Destination to do : > [Dest1, Dest2, Dest3, Dest4] > > Destination Done > [Dest1, Dest3] > > Dest remain : > [Dest2, Dest4] > > > I use this to manage a doc cache. In the view i have for example Doc10 > to Doc 16 showed. If i scroll then the doclist change ... so i have > to remove a part of the doc from the cache and then charge another > one. > > > Regards, > Fabien > This is not simple. You want set operators on arrays, and arrays are not set. They can have the same elements more than once. For example, if one set operator need to remove an element from an array, what should it do if the element is included twice? Remove the first one? Remove both? Maybe a Set class? I don't know if Tobias put a Set class in its gb.data component... A Set is not as simple as an array. It can be implemented as an array of bits (if your elements are integers not too big), an array of elements (if you don't have too many elements), or as a hash table that only store keys (only the absence or presence of the element is important). -- Beno?t Minisini From taboege at ...176... Fri Nov 28 21:20:22 2014 From: taboege at ...176... (Tobias Boege) Date: Fri, 28 Nov 2014 21:20:22 +0100 Subject: [Gambas-devel] Please Benoit i want this !! In-Reply-To: <5478D73B.8010202@...1...> References: <5478D73B.8010202@...1...> Message-ID: <20141128202022.GB1008@...693...> On Fri, 28 Nov 2014, Beno?t Minisini wrote: > Le 26/10/2014 11:53, Fabien Bodard a ?crit : > > Private Function GetDiffArray(Array1 As Integer[], Array2 As > > Integer[]) As Integer[] > > > > Dim aRet As New Integer[] > > Dim i As Integer > > > > For Each i In Array2 > > If Array1.Exist(i) Then Continue > > aRet.Add(i) > > Next > > Return aRet > > > > End > > > > > > > > Is it possible to add this in a native way : > > > > MyArray1.Diff(MyArray2) as array ? > > > > > > > > For example in a string it will give > > > > Destination to do : > > [Dest1, Dest2, Dest3, Dest4] > > > > Destination Done > > [Dest1, Dest3] > > > > Dest remain : > > [Dest2, Dest4] > > > > > > I use this to manage a doc cache. In the view i have for example Doc10 > > to Doc 16 showed. If i scroll then the doclist change ... so i have > > to remove a part of the doc from the cache and then charge another > > one. > > > > > > Regards, > > Fabien > > > > This is not simple. You want set operators on arrays, and arrays are not > set. They can have the same elements more than once. > > For example, if one set operator need to remove an element from an > array, what should it do if the element is included twice? Remove the > first one? Remove both? > > Maybe a Set class? I don't know if Tobias put a Set class in its gb.data > component... > I haven't. I do want to add one though. I didn't come across implementation techniques other than a hashtable yet and don't know if there are better ones. Especially because a set needs to identify arbitrary objects... Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Fri Nov 28 21:27:09 2014 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 28 Nov 2014 21:27:09 +0100 Subject: [Gambas-devel] Please Benoit i want this !! In-Reply-To: <20141128202022.GB1008@...693...> References: <5478D73B.8010202@...1...> <20141128202022.GB1008@...693...> Message-ID: <5478DA9D.5030301@...1...> Le 28/11/2014 21:20, Tobias Boege a ?crit : > On Fri, 28 Nov 2014, Beno?t Minisini wrote: >> Le 26/10/2014 11:53, Fabien Bodard a ?crit : >>> Private Function GetDiffArray(Array1 As Integer[], Array2 As >>> Integer[]) As Integer[] >>> >>> Dim aRet As New Integer[] >>> Dim i As Integer >>> >>> For Each i In Array2 >>> If Array1.Exist(i) Then Continue >>> aRet.Add(i) >>> Next >>> Return aRet >>> >>> End >>> >>> >>> >>> Is it possible to add this in a native way : >>> >>> MyArray1.Diff(MyArray2) as array ? >>> >>> >>> >>> For example in a string it will give >>> >>> Destination to do : >>> [Dest1, Dest2, Dest3, Dest4] >>> >>> Destination Done >>> [Dest1, Dest3] >>> >>> Dest remain : >>> [Dest2, Dest4] >>> >>> >>> I use this to manage a doc cache. In the view i have for example Doc10 >>> to Doc 16 showed. If i scroll then the doclist change ... so i have >>> to remove a part of the doc from the cache and then charge another >>> one. >>> >>> >>> Regards, >>> Fabien >>> >> >> This is not simple. You want set operators on arrays, and arrays are not >> set. They can have the same elements more than once. >> >> For example, if one set operator need to remove an element from an >> array, what should it do if the element is included twice? Remove the >> first one? Remove both? >> >> Maybe a Set class? I don't know if Tobias put a Set class in its gb.data >> component... >> > > I haven't. I do want to add one though. I didn't come across implementation > techniques other than a hashtable yet and don't know if there are better > ones. Especially because a set needs to identify arbitrary objects... > > Regards, > Tobi > You need access to the equality operator from the component (especially for objects). As for the implementation, hash table is the better except for very small sets (when comparing with each element is faster than the hash table management), or sets of small integer, where an array of bits allows direct access. Regards, -- Beno?t Minisini From taboege at ...176... Sat Nov 29 12:21:43 2014 From: taboege at ...176... (Tobias Boege) Date: Sat, 29 Nov 2014 12:21:43 +0100 Subject: [Gambas-devel] Missing GB.Array.Remove() Message-ID: <20141129112143.GC1008@...693...> Hi Benoit, in gbx_c_array.c there is GB_ArrayRemove() in the section "Gambas API". But it is not among the GB.Array.* functions. A mistake? I need it. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...176... Sat Nov 29 13:38:50 2014 From: taboege at ...176... (Tobias Boege) Date: Sat, 29 Nov 2014 13:38:50 +0100 Subject: [Gambas-devel] [Gambas-user] gb.gsl: Polynomial arithmetic / gb.flint In-Reply-To: <5478D598.3090707@...1...> References: <20141128110543.GA1008@...693...> <5478D598.3090707@...1...> Message-ID: <20141129123850.GE1008@...693...> On Fri, 28 Nov 2014, Beno?t Minisini wrote: > Le 28/11/2014 12:05, Tobias Boege a ?crit : > > Hi Benoit, > > > > the Polynomial class in gb.gsl does not support all the arithmetic > > operations I'm going to need. I'd like to multiply two polynomials and > > to divide a polynomial by a (non-zero) scalar. I just saw that GSL > > doesn't implement polynomial arithmetic at all and you wrote the addition > > and subtraction functions by hand... > > > > What do you think about the FLINT library? I just glanced at its > > documentation and it looks like a treasure chest, and already pretty > > object-oriented. I'll add gb.flint somewhere near the top of my TODO > > list... > > > > And out of curiosity: for the polynomials with real or complex > > coefficients, there is an euclidean division operation defined. The > > GB_OPERATOR_DESC structure has no entry for the MOD operator, or does it? > > If not, there is no chance of doing euclidean division via operators? > > > > Regards, > > Tobi > > > > I was not aware of the FLINT library. If you want to make a component > from it, start from a copy of gb.gsl to mimic its structure. > AFAICS, FLINT has different types of polynomials, depending on what ring they're defined over, none of which are the real or complex numbers nor anything compatible. For real polynomials we could use polynomials over Q because there are no non-rational numbers on a computer, but I see no such trick for complex numbers. Also, I think it'd be more straight forward to stick to FLINT's scheme, i.e. have QPolynomial, FqPolynomial, ZPolynomial, etc. classes. There seems to be an extension library, "Arb", which has real or complex polynomials... So, I could mimic gb.gsl's Polynomial using a complex polynomial from Arb which I could name just Polynomial. What do you think? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk