From gambas at ...1... Wed Sep 1 00:11:23 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 1 Sep 2004 00:11:23 +0200 Subject: [Gambas-devel] Problem with Dialog.filter In-Reply-To: <1093778660.4051.12.camel@...152...> References: <1093778660.4051.12.camel@...152...> Message-ID: <200409010011.23825.gambas@...1...> On Sunday 29 August 2004 13:24, Carsten Olsen wrote: > Hi > > There is a problem with Dialog.filter. If you write this: > > Dialog.Filter = [ "Picture files (*.png; *.jpg; *.jpeg; *.bmp; > *.gif)", "All files (*.*)" ] > > It change the last * in line one to ( > > *.gif -> (.gif > > > Kind regards > Carsten Olsen Hi, This is a bug in the KDE component. I will fix it in the next version. Regards, -- Benoit Minisini mailto:gambas at ...1... From ronstk at ...124... Wed Sep 1 09:30:37 2004 From: ronstk at ...124... (ron) Date: Wed, 1 Sep 2004 09:30:37 +0200 Subject: [Gambas-devel] MP3 with SDL In-Reply-To: <200408311940.46090.gambas@...1...> References: <1093941701.3986.152.camel@...152...> <200408311940.46090.gambas@...1...> Message-ID: <200409010930.40010.ronstk@...124...> On Tuesday 31 August 2004 19:40, Benoit Minisini wrote: > On Tuesday 31 August 2004 10:41, Carsten Olsen wrote: > > Hi > > > > What else do I need to install ? > > > > I try the example MusicPlayer with a mp3 file and I got the message > > "Module format not recognized" at the line "Music.Load(Dialog.Path)" in > > class FSoundPlayer (12:1) > > > > SDL-devel 1.2.7-3 is installed. I use Fedora Core 2. > > > > Kind regards > > Carsten Olsen > > Does the Fedora Core 2 SDL-mixer library have mp3 support ? > It was one of the first I did. Hmm SDL-mixer?, well on my suse box the config can find them regarding the result in the config.log and config.h say OK Any way I have in the /usr/include/SDL the SDL-mixer.h Looks to me a SDL-player is need for MUSIC.Load ? second hmmm. I didn found help, must look in SDL? Go checking by opening the player project Yes true so I just try to open a music file. This time a recent .ogg, the first one I see. This plays now 100% :-) When I try a .mp3 I get the error message "Module format not recognized" It does the .ogg but not the .mp3 here. :-( Other mp3 players works, xmms, mp321 etc. xmms over SDL driver or kmplayer(mplayer) works with mp3. Problem looks to me gb, sdl with mp3 as combination related. PS. In the background a new compile without error, SDL OK greets Ron From eng_ak at ...43... Wed Sep 1 10:40:23 2004 From: eng_ak at ...43... (Ahmed Kamal) Date: Wed, 1 Sep 2004 11:40:23 +0300 Subject: [Gambas-devel] MP3 with SDL Message-ID: <41358AF7.6090609@...43...> Try to compile your own SDL. May be redhat stripped out mp3 support. ron wrote: On Tuesday 31 August 2004 19:40, Benoit Minisini wrote: On Tuesday 31 August 2004 10:41, Carsten Olsen wrote: Hi What else do I need to install ? I try the example MusicPlayer with a mp3 file and I got the message "Module format not recognized" at the line "Music.Load(Dialog.Path)" in class FSoundPlayer (12:1) SDL-devel 1.2.7-3 is installed. I use Fedora Core 2. Kind regards Carsten Olsen Does the Fedora Core 2 SDL-mixer library have mp3 support ? It was one of the first I did. Hmm SDL-mixer?, well on my suse box the config can find them regarding the result in the config.log and config.h say OK Any way I have in the /usr/include/SDL the SDL-mixer.h Looks to me a SDL-player is need for MUSIC.Load ? second hmmm. I didn found help, must look in SDL? Go checking by opening the player project Yes true so I just try to open a music file. This time a recent .ogg, the first one I see. This plays now 100% :-) When I try a .mp3 I get the error message "Module format not recognized" It does the .ogg but not the .mp3 here. :-( Other mp3 players works, xmms, mp321 etc. xmms over SDL driver or kmplayer(mplayer) works with mp3. Problem looks to me gb, sdl with mp3 as combination related. PS. In the background a new compile without error, SDL OK greets Ron ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047 &alloc_id=10808&op=click _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From ronstk at ...124... Wed Sep 1 13:47:38 2004 From: ronstk at ...124... (ron) Date: Wed, 1 Sep 2004 13:47:38 +0200 Subject: [Gambas-devel] MP3 with SDL In-Reply-To: <41358AF7.6090609@...43...> References: <41358AF7.6090609@...43...> Message-ID: <200409011347.39996.ronstk@...124...> On Wednesday 01 September 2004 10:40, Ahmed Kamal wrote: > Try to compile your own SDL. May be redhat stripped out mp3 support. > It is SuSE 8.2 here for me I refresh the SDL install to from 1.2.3 to 1.2.7-1 from the www.libsdl.org site. None from SuSE ;-( SDL-1.2.7-1.i386.rpm SDL-devel-1.2.7-1.i386.rpm reconfig gambas configure --disable-curl make and make install No reported and aborting error. > Go checking by opening the player project > > Yes true so I just try to open a music file. > > This time a recent .ogg, the first one I see. > > This plays now 100% :-) > plays OK Only the file of 80MByte with talking Linus Torvals play at double speed. Music goes OK, i.e. 70MByte Trance music I try the example MusicPlayer with a mp3 file and I got the message "Module format not recognized" at the line "Music.Load(Dialog.Path)" in .ogg is OK .mp3 is still crash. So no really changes are in affect. Another idea to look for? BTW If I unpack the sources do the configure and make I get cd . && aclocal-1.8 /bin/sh: line 1: aclocal-1.8: command not found and it stops. With gamabs I see aclocal-1.4 not found error bur it works SuSE does not have it and I can't follow it how too get it working. Stupid may be. In the maillist at suse found i'm not the only one. :-( To difficult ATM for me to dive in the deep to get that working. greets Ron From nigel at ...2... Wed Sep 1 14:20:39 2004 From: nigel at ...2... (Nigel Gerrard) Date: Wed, 1 Sep 2004 13:20:39 +0100 Subject: [Gambas-devel] SQLite patch Message-ID: <002b01c4901e$1b7d6d80$030a0a0a@...97...> Benoit, Could you apply this patch to the sqlite main.cpp. This adds the check for the database existing on an when trying to find using the full path. Nigel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: main.cpp.diff Type: application/octet-stream Size: 219 bytes Desc: not available URL: From eng_ak at ...43... Wed Sep 1 15:10:16 2004 From: eng_ak at ...43... (Ahmed Kamal) Date: Wed, 1 Sep 2004 16:10:16 +0300 Subject: [Gambas-devel] MP3 with SDL Message-ID: <4135CA38.8050502@...43...> Install automake rpm to get aclocal ron wrote: On Wednesday 01 September 2004 10:40, Ahmed Kamal wrote: Try to compile your own SDL. May be redhat stripped out mp3 support. It is SuSE 8.2 here for me I refresh the SDL install to from 1.2.3 to 1.2.7-1 from the www.libsdl.org site. None from SuSE ;-( SDL-1.2.7-1.i386.rpm SDL-devel-1.2.7-1.i386.rpm reconfig gambas configure --disable-curl make and make install No reported and aborting error. Go checking by opening the player project Yes true so I just try to open a music file. This time a recent .ogg, the first one I see. This plays now 100% :-) plays OK Only the file of 80MByte with talking Linus Torvals play at double speed. Music goes OK, i.e. 70MByte Trance music I try the example MusicPlayer with a mp3 file and I got the message "Module format not recognized" at the line "Music.Load(Dialog.Path)" in .ogg is OK .mp3 is still crash. So no really changes are in affect. Another idea to look for? BTW If I unpack the sources do the configure and make I get cd . && aclocal-1.8 /bin/sh: line 1: aclocal-1.8: command not found and it stops. With gamabs I see aclocal-1.4 not found error bur it works SuSE does not have it and I can't follow it how too get it working. Stupid may be. In the maillist at suse found i'm not the only one. :-( To difficult ATM for me to dive in the deep to get that working. greets Ron ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047 &alloc_id=10808&op=click _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From gambas at ...1... Wed Sep 1 21:16:02 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 1 Sep 2004 21:16:02 +0200 Subject: [Gambas-devel] SQLite patch In-Reply-To: <002b01c4901e$1b7d6d80$030a0a0a@...97...> References: <002b01c4901e$1b7d6d80$030a0a0a@...97...> Message-ID: <200409012116.02410.gambas@...1...> On Wednesday 01 September 2004 14:20, Nigel Gerrard wrote: > Benoit, > > Could you apply this patch to the sqlite main.cpp. This adds the check > for the database existing on an when trying to find using the full path. > > > > Nigel OK, applied ! Here is the main.cpp sqlite driver file that I modified, so that you can get it if you want to make other modifications before I release the 0.99 Regards, -- Benoit Minisini mailto:gambas at ...1... -------------- next part -------------- A non-text attachment was scrubbed... Name: main.cpp Type: text/x-c++src Size: 60475 bytes Desc: not available URL: -------------- next part -------------- 02/03/04 - Added sqlite system tables sqlite_master and sqlite_temp_master to the table list etc. 02/03/04 - Changed default string size to 0, which is unlimited. 22/03/04 - Cleared up some deallocations. 22/03/04 - Allowed for accessing same field name within multiple table query. e.g. select fred.id, sid.id from fred, sid 01/04/04 - Enabled Field aliasing for exec. 03/04/04 - The host variable within the database class can be used as the database home, that is, set it to the path where the database files are located. 03/04/04 - The location of the database files is order by: a) If fullpath given then use this. b) If Host variable set, then look at the path set in the variable. c) If environment variable GAMBAS_SQLITE_DBHOME is set then use. d) Current working directory. 04/06/04 - Allow memory only database. e.g. :memory: as the database name. * 17 Jul 2004 - BM - By default, an in-memory database is opened if no database name is specified. - An in_memory database returns as user-list only the current user, with admin rights. - The databases are not searched by default in the current working directory anymore. Instead, they are searched in the /tmp/gambas.%pid%/sqlite/ directory. * 29 Aug 2004 - BM - Many clean-ups in database_create(). The function FullPath() is not necessary anymore, and has been removed. - Fix table_index() so that it returns error if no true primary key is found in the table. * 01 Sep 2004 - NG - Checks that a full path points at a real SQLite database in FindDatabase(). From ronstk at ...124... Thu Sep 2 08:55:29 2004 From: ronstk at ...124... (ron) Date: Thu, 2 Sep 2004 08:55:29 +0200 Subject: [Gambas-devel] MP3 with SDL In-Reply-To: <4135CA38.8050502@...43...> References: <4135CA38.8050502@...43...> Message-ID: <200409020855.30864.ronstk@...124...> On Wednesday 01 September 2004 15:10, Ahmed Kamal wrote: > Install automake rpm to get aclocal > I have the same version as SuSU installed automake-1.7.2-32 autoconf-2.27-30 files are (not symlink/dir but real files) in /usr/bin autoconf aclocal aclocal-1.7 autoheader autom4te automake automake-1.7 autoreconf autoscan autoupdate For the 2 with version I'm not sure I made them or the ones without the version append to it. I had a problem before withe them and it was a solution. For one of the 2 packages there was or maybe still now a problem to due the configure ask a higher version to work to create do his work and that one is higher then I have. i.e. SuSE 1.7.2, asked for 1.7.5 or higher to make 1.7.9 with the configure. Same as not being able to install linux without having it already. I found in the SuSE maillist some more problems about it. But there was in the source dir of SDL a script 'autogen.sh' Exactly why I did run it is unknown but after that it compiled without errors and1 or 2 warnings well known for the suse compiler. make test and try those programs was working perfect. For gambas reconf configure --disable-curl (sorry daniel) make make install Still no mp3 play-ing Somewhere the info.music structure in sound.c does not work for mp3 files. BEGIN_METHOD(CMUSIC_load, GB_STRING file) free_music(); /* Note that the music cannot be stored inside the project ! */ info.music = Mix_LoadMUS(GB.FileName(STRING(file), LENGTH(file))); if (!info.music) GB.Error(Mix_GetError()); music_ref_pos = 0; music_ref_time = 0; END_METHOD By leak of what is need for it and how it works I'm lost. Only thing is that it must be a problem with SDL :-( and not gambas :-) Did try to find a SDL demo for playing mp3 but not found yet. I start to cry. no curl and SDL partial in gambas. From ronstk at ...124... Thu Sep 2 12:39:16 2004 From: ronstk at ...124... (ron) Date: Thu, 2 Sep 2004 12:39:16 +0200 Subject: [Gambas-devel] New Components Message-ID: <200409021239.16786.ronstk@...124...> Once I made a component to access the alsa mixer from gambas. After much trial and error, lurking the net component etc I found points to add it to the build tree. When I simple take a copy of the net component and rename 'net' to 'ten' and replace also in the files 'net' to 'ten' I have a new component. (not working i'm afraid) Where do I have to add it, in a correct way, in configure and/or make files to get it in the compile phase and the libraries are in gambas available. Including the Help system when possible. In fact it should be nice to be able to copy my component from version to version. The current configure script, make or whatever iterates the src/lib directory and takes the added component as a include like --enable-ten is done Removing the 'ten' component acting as --disable-ten. I'm thinking a kind of include file in the components directory that is automatic included during the configure phase. It will be this way to add components more easy if they are user made and not for distribution ready. Can something like that be made? greetz Ron From gambas at ...1... Thu Sep 2 20:38:16 2004 From: gambas at ...1... (Benoit Minisini) Date: Thu, 2 Sep 2004 20:38:16 +0200 Subject: [Gambas-devel] New Components In-Reply-To: <200409021239.16786.ronstk@...124...> References: <200409021239.16786.ronstk@...124...> Message-ID: <200409022038.16361.gambas@...1...> On Thursday 02 September 2004 12:39, ron wrote: > Once I made a component to access the alsa mixer from gambas. Why ? You can use the 'amixer' command ? :-) > > After much trial and error, lurking the net component etc > I found points to add it to the build tree. > Did you read the wiki documentation ? The only missing point on it is that you must add a call to GB_COMPONENT() macro in the configure.in file, and the component makefile in the makefile list of the AC_OUTPUT() macro. > When I simple take a copy of the net component and rename 'net' to 'ten' > and replace also in the files 'net' to 'ten' I have a new component. > (not working i'm afraid) > > Where do I have to add it, in a correct way, in configure and/or make files > to get it in the compile phase and the libraries are in gambas available. > Including the Help system when possible. > > In fact it should be nice to be able to copy my component from version to > version. The current configure script, make or whatever iterates the > src/lib directory and takes the added component as a include like > --enable-ten is done Removing the 'ten' component acting as --disable-ten. > > I'm thinking a kind of include file in the components directory > that is automatic included during the configure phase. > > It will be this way to add components more easy if they are user made > and not for distribution ready. > > Can something like that be made? I don't think so. Think as if you develop a driver for the Linux kernel :-) But it is not a huge pain to add a macro and a makefile path in configure.in each time you want to work with a specific gambas version. > > greetz Ron > Regards, -- Benoit Minisini mailto:gambas at ...1... From ronstk at ...124... Thu Sep 2 20:57:14 2004 From: ronstk at ...124... (ron) Date: Thu, 2 Sep 2004 20:57:14 +0200 Subject: [Gambas-devel] New Components In-Reply-To: <200409022038.16361.gambas@...1...> References: <200409021239.16786.ronstk@...124...> <200409022038.16361.gambas@...1...> Message-ID: <200409022057.14397.ronstk@...124...> On Thursday 02 September 2004 20:38, Benoit Minisini wrote: > On Thursday 02 September 2004 12:39, ron wrote: > > Once I made a component to access the alsa mixer from gambas. > > Why ? You can use the 'amixer' command ? :-) It does not the right level controls The Main volume is on the Surround volume. Second in a gambas player it is nicer to have it build in. Or you can make a more professional mixer. Kmix sucks simple with the layout for input and output channels It should be play and recording levels. Now I must use the surround on the output and pcm on the input. kamix is much better to use. > > > > > After much trial and error, lurking the net component etc > > I found points to add it to the build tree. > > > > Did you read the wiki documentation ? > Maybe not good enough. mainly used the explain in the example and the way the net component was added snip > > > > Can something like that be made? > > I don't think so. > Bad luck for me, I'm crying now :-) > Think as if you develop a driver for the Linux kernel :-) > > But it is not a huge pain to add a macro and a makefile path in configure.in > each time you want to work with a specific gambas version. I will try next time. Stupid me lost the whole made source for gb.mixer Creating the mixer and a level slider to start with was working with hard coded ID for the channel. Only by deleting the old gambas-0.91 directory I forgot to save the added component and text files how I did the add into gambas. very sad now :=( greetz Ron From marcio.roger at ...153... Thu Sep 2 22:02:21 2004 From: marcio.roger at ...153... (marcio.roger) Date: Thu, 2 Sep 2004 17:02:21 -0300 Subject: [Gambas-devel] A simplest component example Message-ID: Greeting for everybody I'm interested ... no ..., I must, develop a comedilib (www.comedi.org) component to Gambas. For those who doesn't know what is comedilib, it's a library used to access measurement devices interfaces mainly used device for industry automation. Yes ... I know that this component could be useless for 99% of users, but for me it's very (and maybe other people) important and it's the way which I found to insert Linux at the company which I work. However I have a lot of doubts about develop Gambas Components even looking the Wiki. I tried to look the example, located in src/lib/ but it doens't compile. So, I would ask if anyone has a ridiculous,very,very simple, source of a component, that works, which I can started. In the Wiki I found the topic "HowToProgramComponentsWrapping", but it's incomplete (I know that it's the worst way to develop a component, but I could help me to start and step by step I could adquire more knowledge about it and develop better and easy-to-use components). Thanks and sorry for my English mistakes. ps: Beno?t Minisini, is there a reason for Gambas does not allow to use a a Boolean array or it's was not implemented yet? It's sees boolean[] as byte[] ... Is There something like thread in Gambas (or plans to create it) ? I would like, in the future (after get more experience), to also create a QThread component. From linus at ...2... Thu Sep 2 22:14:51 2004 From: linus at ...2... (Nigel Gerrard) Date: Thu, 02 Sep 2004 21:14:51 +0100 Subject: [Gambas-devel] Re: [Gambas-user] Database Edit error with SQlite In-Reply-To: <200409022145.58540.gambas@...1...> References: <200408271809.52729.JeffJohnson@...154...> <200409022020.56902.gambas@...1...> <200409022116.19504.ronstk@...124...> <200409022145.58540.gambas@...1...> Message-ID: <1094156090.10211.14.camel@...128...> Benoit, Forgetting about primary key, could you check this out in response to the problem with Connection.Edit("table","field = &1", "\"fred\"") : #6: Type mismatch: wanted Void, got String instead I believe this is happening where optional void parameters are used. If I change code in gbx_exec.c so that from line 708 (Well in 97a anyway as that is the only copy so far installed on my laptop) - if (desc->npmin < desc->npmax) { for (; i < nparam; i++, value++, sign++) { if (value->type != T_VOID){ VALUE_conv(value, *sign); } } becomes if (desc->npmin < desc->npmax) { for (; i < nparam; i++, value++, sign++) { if (*sign != T_VOID){ VALUE_conv(value, *sign); } } Then I have no problems. Could you confirm that this is what should have been entered. Kind regards Nigel From gambas at ...1... Thu Sep 2 22:30:34 2004 From: gambas at ...1... (Benoit Minisini) Date: Thu, 2 Sep 2004 22:30:34 +0200 Subject: [Gambas-devel] Re: [Gambas-user] Database Edit error with SQlite In-Reply-To: <1094156090.10211.14.camel@...128...> References: <200408271809.52729.JeffJohnson@...154...> <200409022145.58540.gambas@...1...> <1094156090.10211.14.camel@...128...> Message-ID: <200409022230.34599.gambas@...1...> On Thursday 02 September 2004 22:14, Nigel Gerrard wrote: > Benoit, > > Forgetting about primary key, could you check this out in response to > the problem with Connection.Edit("table","field = &1", "\"fred\"") : > > #6: Type mismatch: wanted Void, got String instead > > I believe this is happening where optional void parameters are used. > > If I change code in gbx_exec.c so that from line 708 (Well in 97a anyway > as that is the only copy so far installed on my laptop) - > > if (desc->npmin < desc->npmax) > { > for (; i < nparam; i++, value++, sign++) > { > if (value->type != T_VOID){ > VALUE_conv(value, *sign); > } > } > > becomes > > if (desc->npmin < desc->npmax) > { > for (; i < nparam; i++, value++, sign++) > { > if (*sign != T_VOID){ > VALUE_conv(value, *sign); > } > } > > Then I have no problems. > > Could you confirm that this is what should have been entered. > > Kind regards > > Nigel > Oops, sorry that I didn't tell you that I fixed the bug. Here is the good gbx_exec.c file. -- Benoit Minisini mailto:gambas at ...1... -------------- next part -------------- A non-text attachment was scrubbed... Name: gbx_exec.c Type: text/x-csrc Size: 24775 bytes Desc: not available URL: From gambas at ...1... Thu Sep 2 22:35:31 2004 From: gambas at ...1... (Benoit Minisini) Date: Thu, 2 Sep 2004 22:35:31 +0200 Subject: [Gambas-devel] A simplest component example In-Reply-To: References: Message-ID: <200409022235.31547.gambas@...1...> On Thursday 02 September 2004 22:02, marcio.roger wrote: > Greeting for everybody > > I'm interested ... no ..., I must, develop a comedilib > (www.comedi.org) component to Gambas. For those who doesn't know > what is comedilib, it's a library used to access measurement devices > interfaces mainly used device for industry automation. > Yes ... I know that this component could be useless for 99% of > users, but for me it's very (and maybe other people) important and > it's the way which I found to insert Linux at the company which I > work. > However I have a lot of doubts about develop Gambas Components even > looking the Wiki. I tried to look the example, located in src/lib/ > but it doens't compile. > > So, I would ask if anyone has a ridiculous,very,very simple, source > of a component, that works, which I can started. In the Wiki I found > the topic "HowToProgramComponentsWrapping", but it's incomplete (I > know that it's the worst way to develop a component, but I could > help me to start and step by step I could adquire more knowledge > about it and develop better and easy-to-use components). > > Thanks and sorry for my English mistakes. Try with the gb.sdl component, it is very simple: only four source files. > > ps: Beno?t Minisini, is there a reason for Gambas does not allow to > use a a Boolean array or it's was not implemented yet? It's sees > boolean[] as byte[] ... Just lazyness. True Boolean[] needs special implementation of the array methods. > Is There something like thread in Gambas (or plans to create it) ? No, and there is no plan to do it. > I would like, in the future (after get more experience), to also > create a QThread component. Mmm... I'm afraid you don't see the difficulties :-) The interpreter was never designed to be manage threads. Maybe it needs a complete rewrite to do that! Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Fri Sep 3 12:40:05 2004 From: gambas at ...1... (Benoit Minisini) Date: Fri, 3 Sep 2004 12:40:05 +0200 Subject: [Gambas-devel] Starting writing a component quickly :-) (Was: Re: [Gambas-user] Gambas and AX25) In-Reply-To: <001701c4919e$569ebb40$7084060a@...155...> References: <002601c48527$13f700f0$0200a8c0@...146...> <4136CE03.5080706@...16...> <001701c4919e$569ebb40$7084060a@...155...> Message-ID: <200409031240.05902.gambas@...1...> On Friday 03 September 2004 12:11, Berg Frank wrote: > ... > so my first question is: how do i write the beginning of the component.. > > frank > I think the better way is starting from the sdl component, which is very small. So, let's suppose you want to write gb.xyz component, that depends on no other component. This component needs the libxyz.so library and the xyz.h include file. It needs multi-threading too. 1) Make a copy of the './src/lib/sdl' directory (with its contents) and name it 'gb.xyz'. 2) Remove the sources files, but keep main.c and main.h. You will write your own main.c and main.h by modifying them. 3) Edit the ./src/lib/xyz/Makefile.am file, and fills it as needed, as explained in the wiki documentation. You will get something like that: INCLUDES = -I$(top_srcdir)/src/share @XYZ_INC@ EXTRA_DIST = *.component pkglib_LTLIBRARIES = lib.gb.xyz.la lib_gb_xyz_la_LIBADD = @XYZ_LIB@ lib_gb_xyz_la_LDFLAGS = @LD_FLAGS@ lib_gb_xyz_la_SOURCES = \ main.h main.c \ myFirstClass.h myFirstClass.c \ mySecondClass.h mySecondClass.c \ ... install-exec-local: @cp -f *.component $(pkglibdir) 4) Rename the './src/lib/xyz/lib.gb.sdl.component' file to 'lib.gb.xyz.component' and edit it. Be careful, this must be UTF-8 encoded. [Component] Key=gb.xyz Name=The xyz component Author=You Alpha=1 5) Edit the ./src/lib/Makefile.am file (one directory up) and change the first line to add '@XYZ_DIR@' SUBDIRS = debug eval db compress @QT_DIR@ @NET_DIR@ @SDL_DIR@ @VB_DIR@ @XYZ_DIR@ 5) Edit the configure.in file in the package root, and add the following stuff: GB_COMPONENT( xyz, XYZ, [XYZ component], [GB_FIND(xyz.h, /usr/local /usr, include xyz*/include include/xyz*)], [GB_FIND(libxyz.$SHLIBEXT, /usr/local /usr, lib xyz*/lib lib/xyz*)], [$C_LIB $THREAD_LIB -lxyz], [$THREAD_INC]) 6) At the end of the configure.in file, change the AC_OUTPUT macro: dnl ---- Create makefiles AC_OUTPUT( \ Makefile \ src/Makefile \ src/share/Makefile \ src/comp/Makefile \ src/exec/Makefile \ src/lib/Makefile \ ... src/lib/compress/Makefile \ src/lib/compress/zlib/Makefile \ src/lib/compress/bzlib2/Makefile \ src/lib/xyz/Makefile \ ) 7) Open a terminal, go to the package root directory, and type: $ ./reconf; ./configure ... $ make Everything should compile... if you didn't make a mistake of course :-) 8) To test the component, you must make three symbolic links from the ./src/lib/xyz directory to the gambas installation directory. As root, of course: /usr/lib/gambas/lib.gb.xyz.component ----> ./src/lib/xyz/lib.gb.xyz.component /usr/lib/gambas/lib.gb.xyz.so ----> ./src/lib/xyz/.libs/lib.gb.xyz.so /usr/lib/gambas/lib.gb.xyz.la ----> ./src/lib/xyz/lib.gb.xyz.la That's all. Tell me if something goes wrong. If this how-to is useful, I will add it to the wiki. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Fri Sep 3 12:46:04 2004 From: gambas at ...1... (Benoit Minisini) Date: Fri, 3 Sep 2004 12:46:04 +0200 Subject: [Gambas-devel] Starting writing a component quickly :-) (Was: Re: [Gambas-user] Gambas and AX25) In-Reply-To: <200409031240.05902.gambas@...1...> References: <002601c48527$13f700f0$0200a8c0@...146...> <001701c4919e$569ebb40$7084060a@...155...> <200409031240.05902.gambas@...1...> Message-ID: <200409031246.04815.gambas@...1...> On Friday 03 September 2004 12:40, Benoit Minisini wrote: > On Friday 03 September 2004 12:11, Berg Frank wrote: > > ... > > so my first question is: how do i write the beginning of the component.. > > > > frank > > I think the better way is starting from the sdl component, which is very > small. > Oops. There are two paragraphs numbered #5... -- Benoit Minisini mailto:gambas at ...1... From ronstk at ...124... Fri Sep 3 14:09:17 2004 From: ronstk at ...124... (ron) Date: Fri, 3 Sep 2004 14:09:17 +0200 Subject: [Gambas-devel] Starting writing a component quickly :-) (Was: Re: [Gambas-user] Gambas and AX25) In-Reply-To: <200409031246.04815.gambas@...1...> References: <002601c48527$13f700f0$0200a8c0@...146...> <200409031240.05902.gambas@...1...> <200409031246.04815.gambas@...1...> Message-ID: <200409031409.17717.ronstk@...124...> On Friday 03 September 2004 12:46, Benoit Minisini wrote: > On Friday 03 September 2004 12:40, Benoit Minisini wrote: > > On Friday 03 September 2004 12:11, Berg Frank wrote: > > > ... > > > so my first question is: how do i write the beginning of the component.. > > > > > > frank > > > > I think the better way is starting from the sdl component, which is very > > small. > > > > Oops. There are two paragraphs numbered #5... > :=) I did see. Thanks it is more or less i wished to have in first case. I will try as described in the weekend. Cant wait but have to. The nurse is a bit angry ATM. Ron From na2492 at ...16... Fri Sep 3 16:08:42 2004 From: na2492 at ...16... (Charlie Reinl) Date: Fri, 3 Sep 2004 16:08:42 00200 Subject: [Gambas-devel] Starting writing a component quickly :-) (Was: Re: [Gambas-user] Gambas and AX25) Message-ID: <41387aea.4100.0@...16...> >On Friday 03 September 2004 12:46, Benoit Minisini wrote: >> On Friday 03 September 2004 12:40, Benoit Minisini wrote: >> > On Friday 03 September 2004 12:11, Berg Frank wrote: >> > > ... >> > > so my first question is: how do i write the beginning of the component.. >> > > >> > > frank >> > >> > I think the better way is starting from the sdl component, which is very >> > small. >> > >> >> Oops. There are two paragraphs numbered #5... >> > >:=) >I did see. > >Thanks it is more or less i wished to have in first case. >I will try as described in the weekend. Cant wait but have to. >The nurse is a bit angry ATM. > >Ron Salut Ron, first thanks to help. And greet your nurse form all us charming gambas useres from all over the world. But alos listen to her. OK Amicalement Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From marcio.roger at ...153... Sat Sep 4 00:24:05 2004 From: marcio.roger at ...153... (Marcio Roger Ferrari) Date: Fri, 3 Sep 2004 19:24:05 -0300 Subject: [Gambas-devel] A simplest component example In-Reply-To: <200409022235.31547.gambas@...1...> References: <200409022235.31547.gambas@...1...> Message-ID: <200409031924.05370.marcio.roger@...153...> Thanks for the tips about components Minisini :-) Now, I have a job to do, but before this I would to talk a little bit more abou threads. As you said, there is no plans no Gambas suport threads and the interpreter was not design for this. However, when I talk about threads (and my desire to implement it - you were right: I didn't know that could be so difficult), I was think in one thing: Games and the SDL Gambas Component! I don't have many experience doing linux apps, but as I know (I can be wrong), timers does not offer the best performance. Some years ago (before discover Linux) I develop a small game using Directx and MFC (with VC++). And in MFC there is function named OnAppIdle, that can is called when the aplication is idle, or in other words, just waiting for events. So I could use this function to make all the game loop (read keys, joystick, move caracters of game, colision detection, etc) using lowlevel hardware access functions provided by DirectX ( as SDL probably works) with a good performance. Is there is a chance to implement it in Gambas 2.0 (of course if you doesn't have already a better plan) :-) Regards and thanks for provide for us a excellent IDE . Marcio Ferrari On Thursday 02 September 2004 17:35, Benoit Minisini wrote: > On Thursday 02 September 2004 22:02, marcio.roger wrote: > > Greeting for everybody > > > > I'm interested ... no ..., I must, develop a comedilib > > (www.comedi.org) component to Gambas. For those who doesn't know > > what is comedilib, it's a library used to access measurement devices > > interfaces mainly used device for industry automation. > > Yes ... I know that this component could be useless for 99% of > > users, but for me it's very (and maybe other people) important and > > it's the way which I found to insert Linux at the company which I > > work. > > However I have a lot of doubts about develop Gambas Components even > > looking the Wiki. I tried to look the example, located in src/lib/ > > but it doens't compile. > > > > So, I would ask if anyone has a ridiculous,very,very simple, source > > of a component, that works, which I can started. In the Wiki I found > > the topic "HowToProgramComponentsWrapping", but it's incomplete (I > > know that it's the worst way to develop a component, but I could > > help me to start and step by step I could adquire more knowledge > > about it and develop better and easy-to-use components). > > > > Thanks and sorry for my English mistakes. > > Try with the gb.sdl component, it is very simple: only four source files. > > > ps: Beno?t Minisini, is there a reason for Gambas does not allow to > > use a a Boolean array or it's was not implemented yet? It's sees > > boolean[] as byte[] ... > > Just lazyness. True Boolean[] needs special implementation of the array > methods. > > > Is There something like thread in Gambas (or plans to create it) ? > > No, and there is no plan to do it. > > > I would like, in the future (after get more experience), to also > > create a QThread component. > > Mmm... I'm afraid you don't see the difficulties :-) The interpreter was > never designed to be manage threads. Maybe it needs a complete rewrite to > do that! > > Regards, From christian.faurebouvard at ...156... Sat Sep 4 01:42:51 2004 From: christian.faurebouvard at ...156... (Christian Faure) Date: Fri, 3 Sep 2004 19:42:51 -0400 Subject: [Gambas-devel] Component using Collection object In-Reply-To: <200409030843.03653.gambas@...1...> References: <200409022321.23308.christian.faurebouvard@...156...> <200409030843.03653.gambas@...1...> Message-ID: <200409031942.51109.christian.faurebouvard@...156...> Hi, Ok, i have do corrections (thanks again), Now i can pass an empty collection as event argument. Ok > I could create such an API, unless this is only for a test. Tell me what you > want to do exactly. Not is a test, is a component for parsing XML files using expat library (C source at bottom). The expat library need somes handlers (functions) for processing XML tags, then i want implement's as gambas-events, The problem: StartElement handler: sub xml_StartElement(Name as String, Attributes as Collection) I need populate this collection, then i apreciate very much :) an api like (for the next version) GB.NewVariant(GB_T_CSTRING, const char *str) or any other way that you suggest. As workaround, i have implemented two extra events: BeforeStartElement(name) fired once Attribute(name,value) fired for each attribute, bad way :( In gbx_c_settings.c, at read_line function you do like this: ... VALUE result; ... result.type = T_CSTRING; result._string.addr = val; result._string.start = 0; result._string.len = val_len; VALUE_conv(&result, T_VARIANT); GB_CollectionSet(THIS->table, key, key_len, (GB_VARIANT *)&result); ... this require somes extra includes, not usual for a independent component, but if correct for my component, then i use them. Thanks again... Regards, Christian // begin expatc.c ------------------------------------------ #define __Expatc_C #include "expatc.h" #include #include #include //#define DEBUG DECLARE_EVENT(BeforeStartElement); DECLARE_EVENT(Attribute); DECLARE_EVENT(StartElement); DECLARE_EVENT(EndElement); DECLARE_EVENT(ParserError); DECLARE_EVENT(CharacterData); DECLARE_EVENT(Comment); DECLARE_EVENT(ProcessingInstruction); DECLARE_EVENT(StartCData); DECLARE_EVENT(EndCData); DECLARE_EVENT(Default); static void XMLCALL startElement(void *_object, const char *name, const char **atts) { int i; GB_COLLECTION col; //GB_VALUE v; #ifdef DEBUG printf("expatc::startElement [%s]\n",name); for( i=0;atts[i];i+=2){ printf("\t%s=[%s]\n",atts[i],atts[i+1]); } #endif GB.Raise(THIS,BeforeStartElement,1,GB_T_STRING, name, strlen(name)); GB.Collection.New ( &col , GB_COMP_TEXT ); GB.Ref(col); for( i=0;atts[i];i+=2){ GB.Raise(THIS,Attribute,2, GB_T_STRING, atts[i], strlen(atts[i]), GB_T_STRING, atts[i+1], strlen(atts[i+1])); //GB.Collection.Set ( col, atts[i], strlen(atts[i]) , (GB_VARIANT *)&v); } GB.Raise(THIS,StartElement,2,GB_T_STRING, name, strlen(name), GB_T_OBJECT,col); GB.Unref((void **)&col); } static void XMLCALL endElement(void *_object, const char *name) { #ifdef DEBUG printf("expatc::endElement [%s]\n",name); #endif GB.Raise(THIS,EndElement,1,GB_T_STRING, name, strlen(name)); } static void XMLCALL characterData(void *_object, const XML_Char *s, int len) { char *copia; copia=strndup(s,len); #ifdef DEBUG printf("expatc::characterData %d [%s]\n",len,copia); #endif GB.Raise(THIS,CharacterData,1,GB_T_STRING, copia, len); free(copia); } static void XMLCALL comment(void *_object, const XML_Char *s) { #ifdef DEBUG printf("expatc::comment %d [%s]\n",strlen(s),s); #endif GB.Raise(THIS,Comment,1,GB_T_STRING, s, strlen(s)); } static void XMLCALL processingInstruction(void *_object, const XML_Char *target, const XML_Char *data) { #ifdef DEBUG printf("expatc::processingInstruction %s [%s]\n",target,data); #endif GB.Raise(THIS,ProcessingInstruction,2, GB_T_STRING, target, strlen(target), GB_T_STRING, data, strlen(data)); } static void XMLCALL startCData(void *_object) { #ifdef DEBUG printf("expatc::startCData\n"); #endif GB.Raise(THIS,StartCData,0); } static void XMLCALL endCData(void *_object) { #ifdef DEBUG printf("expatc::endCData\n"); #endif GB.Raise(THIS,EndCData,0); } static void XMLCALL defaultHandler(void *_object, const XML_Char *s, int len) { char *copia; copia=strndup(s,len); #ifdef DEBUG printf("expatc::defaultHandler %d [%s]\n",len,copia); #endif GB.Raise(THIS,Default,1,GB_T_STRING, copia, len); free(copia); } #define MSGSIZE 300 BEGIN_METHOD( CExpatc_Parse, GB_STRING Path; ) char buf[BUFSIZ]; char *path; char msg[MSGSIZE+1]; XML_Parser parser; int done; FILE *in; path=GB.ToZeroString(ARG(Path)); //strcpy(THIS->path,GB.ToZeroString(ARG(Path))); #ifdef DEBUG printf("expatc::Parse [%s]\n",path); #endif in=fopen(path,"rt"); if(!in){ snprintf(msg,MSGSIZE,"Can't open file [%s]",path); msg[MSGSIZE]=0; printf("expatc.c: Error: %s\n",msg); GB.Raise(THIS,ParserError,1,GB_T_STRING, msg, strlen(msg)); }else{ parser = XML_ParserCreate(NULL); XML_SetUserData(parser, THIS); XML_SetElementHandler(parser, startElement, endElement); XML_SetCharacterDataHandler(parser, characterData); XML_SetCommentHandler(parser, comment); XML_SetProcessingInstructionHandler(parser, processingInstruction); XML_SetStartCdataSectionHandler(parser, startCData); XML_SetEndCdataSectionHandler(parser, endCData); XML_SetDefaultHandler(parser, defaultHandler); do { size_t len = fread(buf, 1, sizeof(buf), in); done = len < sizeof(buf); if (XML_Parse(parser, buf, len, done) == XML_STATUS_ERROR) { snprintf(msg,MSGSIZE, "%s at line %d\n", XML_ErrorString(XML_GetErrorCode(parser)), XML_GetCurrentLineNumber(parser)); msg[MSGSIZE]=0; done=!0;//true printf("expatc.c: Error: %s\n",msg); GB.Raise(THIS,ParserError,1,GB_T_STRING, msg, strlen(msg)); } } while (!done && !feof(in)); XML_ParserFree(parser); fclose(in); } END_METHOD BEGIN_METHOD_VOID(CExpatc_new) #ifdef DEBUG printf("expatc::new\n"); #endif END_METHOD BEGIN_METHOD_VOID(CExpatc_free) #ifdef DEBUG printf("expatc::free\n"); #endif END_METHOD GB_DESC CExpatcDesc[] = { GB_DECLARE("Expatc", sizeof(CExpatc)), GB_METHOD("Parse",NULL,CExpatc_Parse,"(Path)s"), GB_METHOD("_new",NULL,CExpatc_new,NULL), GB_METHOD("_free",NULL,CExpatc_free,NULL), GB_EVENT("BeforeStartElement", NULL, "(Name)s", &BeforeStartElement), GB_EVENT("Attribute", NULL, "(Name)s(Value)s", &Attribute), GB_EVENT("StartElement", NULL, "(Name)s(Attributes)o", &StartElement), GB_EVENT("EndElement", NULL, "(Name)s", &EndElement), GB_EVENT("ParserError", NULL, "(Msg)s", &ParserError), GB_EVENT("CharacterData", NULL, "(Txt)s", &CharacterData), GB_EVENT("Comment", NULL, "(Txt)s", &Comment), GB_EVENT("ProcessingInstruction", NULL, "(Target)s(Data)s", &ProcessingInstruction), GB_EVENT("StartCData", NULL, NULL, &StartCData), GB_EVENT("EndCData", NULL, NULL, &EndCData), GB_EVENT("Default", NULL, "(Txt)s", &Default), GB_END_DECLARE }; From gambas at ...1... Sat Sep 4 10:52:52 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 4 Sep 2004 10:52:52 +0200 Subject: [Gambas-devel] Component using Collection object In-Reply-To: <200409031942.51109.christian.faurebouvard@...156...> References: <200409022321.23308.christian.faurebouvard@...156...> <200409030843.03653.gambas@...1...> <200409031942.51109.christian.faurebouvard@...156...> Message-ID: <200409041052.52675.gambas@...1...> On Saturday 04 September 2004 01:42, Christian Faure wrote: > Hi, > Ok, i have do corrections (thanks again), > Now i can pass an empty collection as event argument. Ok > > > I could create such an API, unless this is only for a test. Tell me what > > you want to do exactly. > > Not is a test, is a component for parsing XML files using expat library > (C source at bottom). > The expat library need somes handlers (functions) for processing XML tags, > then i want implement's as gambas-events, > The problem: StartElement handler: > > sub xml_StartElement(Name as String, Attributes as Collection) > > I need populate this collection, > then i apreciate very much :) an api like (for the next version) > GB.NewVariant(GB_T_CSTRING, const char *str) > or any other way that you suggest. OK. > > As workaround, i have implemented two extra events: > BeforeStartElement(name) fired once > Attribute(name,value) fired for each attribute, bad way :( > > In gbx_c_settings.c, at read_line function you do like this: > ... > VALUE result; > ... > result.type = T_CSTRING; > result._string.addr = val; > result._string.start = 0; > result._string.len = val_len; > VALUE_conv(&result, T_VARIANT); > GB_CollectionSet(THIS->table, key, key_len, (GB_VARIANT *)&result); > ... > this require somes extra includes, not usual for a independent component, > but if correct for my component, then i use them. When I develop components inside the interpreter, I can use the interpreter structures, constants and methods directly. These structures and constants exist in gambas.h, they just have different names. To put a string in the collection, you can do the same way, by just changing some constants and types. This should work :-) GB_STRING result; result.type = GB_T_CSTRING; result._string.addr = attr_name; result._string.start = 0; result._string.len = strlen(attr_name); GB.Conv((GB_VALUE *)&result, GB_T_VARIANT); GB.Collection.Set(THIS->table, key, key_len, (GB_VARIANT *)&result); > > Thanks again... > > Regards, > Christian > > Just a few remarks :-) 1) What is the difference betweens expat and libxml2 ? Why using expat and not libxml2 ? 2) When you are finish the component, I will ask you to change your interface, i.e. the names you use, which are not very good. For example, the name of the class is "Expatc", which is bad, as it is the name of the library. You must use something like "XMLParser", which is generic. This way, if there is another XML component based on a different library, they will be able to share the same interface so that the user don't have to change its code. There are other problems, but finish your work without thinking about that. I will tell you later. Regards, > > // begin expatc.c ------------------------------------------ > > #define __Expatc_C > #include "expatc.h" > > #include > #include > #include > > > //#define DEBUG > DECLARE_EVENT(BeforeStartElement); > DECLARE_EVENT(Attribute); > DECLARE_EVENT(StartElement); > DECLARE_EVENT(EndElement); > DECLARE_EVENT(ParserError); > DECLARE_EVENT(CharacterData); > DECLARE_EVENT(Comment); > DECLARE_EVENT(ProcessingInstruction); > DECLARE_EVENT(StartCData); > DECLARE_EVENT(EndCData); > DECLARE_EVENT(Default); > > > static void XMLCALL > startElement(void *_object, const char *name, const char **atts) > { > int i; > GB_COLLECTION col; > //GB_VALUE v; > #ifdef DEBUG > printf("expatc::startElement [%s]\n",name); > for( i=0;atts[i];i+=2){ > printf("\t%s=[%s]\n",atts[i],atts[i+1]); > } > #endif > GB.Raise(THIS,BeforeStartElement,1,GB_T_STRING, name, strlen(name)); > GB.Collection.New ( &col , GB_COMP_TEXT ); > GB.Ref(col); > for( i=0;atts[i];i+=2){ > GB.Raise(THIS,Attribute,2, > GB_T_STRING, atts[i], strlen(atts[i]), > GB_T_STRING, atts[i+1], strlen(atts[i+1])); > > //GB.Collection.Set ( col, atts[i], strlen(atts[i]) , (GB_VARIANT > *)&v); > } > GB.Raise(THIS,StartElement,2,GB_T_STRING, name, strlen(name), > GB_T_OBJECT,col); > GB.Unref((void **)&col); > } > > static void XMLCALL > endElement(void *_object, const char *name) > { > #ifdef DEBUG > printf("expatc::endElement [%s]\n",name); > #endif > GB.Raise(THIS,EndElement,1,GB_T_STRING, name, strlen(name)); > } > > static void XMLCALL > characterData(void *_object, const XML_Char *s, int len) > { > char *copia; > copia=strndup(s,len); > #ifdef DEBUG > printf("expatc::characterData %d [%s]\n",len,copia); > #endif > GB.Raise(THIS,CharacterData,1,GB_T_STRING, copia, len); > free(copia); > } > > static void XMLCALL > comment(void *_object, const XML_Char *s) > { > #ifdef DEBUG > printf("expatc::comment %d [%s]\n",strlen(s),s); > #endif > GB.Raise(THIS,Comment,1,GB_T_STRING, s, strlen(s)); > } > > > static void XMLCALL > processingInstruction(void *_object, const XML_Char *target, const XML_Char > *data) > { > #ifdef DEBUG > printf("expatc::processingInstruction %s [%s]\n",target,data); > #endif > GB.Raise(THIS,ProcessingInstruction,2, > GB_T_STRING, target, strlen(target), > GB_T_STRING, data, strlen(data)); > } > > static void XMLCALL > startCData(void *_object) > { > #ifdef DEBUG > printf("expatc::startCData\n"); > #endif > GB.Raise(THIS,StartCData,0); > } > > static void XMLCALL > endCData(void *_object) > { > #ifdef DEBUG > printf("expatc::endCData\n"); > #endif > GB.Raise(THIS,EndCData,0); > } > > static void XMLCALL > defaultHandler(void *_object, const XML_Char *s, int len) > { > char *copia; > copia=strndup(s,len); > #ifdef DEBUG > printf("expatc::defaultHandler %d [%s]\n",len,copia); > #endif > GB.Raise(THIS,Default,1,GB_T_STRING, copia, len); > free(copia); > } > > #define MSGSIZE 300 > BEGIN_METHOD( CExpatc_Parse, GB_STRING Path; ) > char buf[BUFSIZ]; > char *path; > char msg[MSGSIZE+1]; > XML_Parser parser; > int done; > FILE *in; > path=GB.ToZeroString(ARG(Path)); > //strcpy(THIS->path,GB.ToZeroString(ARG(Path))); > #ifdef DEBUG > printf("expatc::Parse [%s]\n",path); > #endif > in=fopen(path,"rt"); > if(!in){ > snprintf(msg,MSGSIZE,"Can't open file [%s]",path); > msg[MSGSIZE]=0; > printf("expatc.c: Error: %s\n",msg); > GB.Raise(THIS,ParserError,1,GB_T_STRING, msg, strlen(msg)); > }else{ > parser = XML_ParserCreate(NULL); > XML_SetUserData(parser, THIS); > XML_SetElementHandler(parser, startElement, endElement); > XML_SetCharacterDataHandler(parser, characterData); > XML_SetCommentHandler(parser, comment); > XML_SetProcessingInstructionHandler(parser, processingInstruction); > XML_SetStartCdataSectionHandler(parser, startCData); > XML_SetEndCdataSectionHandler(parser, endCData); > XML_SetDefaultHandler(parser, defaultHandler); > do { > size_t len = fread(buf, 1, sizeof(buf), in); > done = len < sizeof(buf); > if (XML_Parse(parser, buf, len, done) == XML_STATUS_ERROR) { > snprintf(msg,MSGSIZE, > "%s at line %d\n", > XML_ErrorString(XML_GetErrorCode(parser)), > XML_GetCurrentLineNumber(parser)); > msg[MSGSIZE]=0; > done=!0;//true > printf("expatc.c: Error: %s\n",msg); > GB.Raise(THIS,ParserError,1,GB_T_STRING, msg, strlen(msg)); > } > } while (!done && !feof(in)); > XML_ParserFree(parser); > fclose(in); > } > END_METHOD > > > BEGIN_METHOD_VOID(CExpatc_new) > #ifdef DEBUG > printf("expatc::new\n"); > #endif > END_METHOD > > BEGIN_METHOD_VOID(CExpatc_free) > #ifdef DEBUG > printf("expatc::free\n"); > #endif > END_METHOD > > > GB_DESC CExpatcDesc[] = > { > GB_DECLARE("Expatc", sizeof(CExpatc)), > GB_METHOD("Parse",NULL,CExpatc_Parse,"(Path)s"), > GB_METHOD("_new",NULL,CExpatc_new,NULL), > GB_METHOD("_free",NULL,CExpatc_free,NULL), > GB_EVENT("BeforeStartElement", NULL, "(Name)s", &BeforeStartElement), > GB_EVENT("Attribute", NULL, "(Name)s(Value)s", &Attribute), > GB_EVENT("StartElement", NULL, "(Name)s(Attributes)o", &StartElement), > GB_EVENT("EndElement", NULL, "(Name)s", &EndElement), > GB_EVENT("ParserError", NULL, "(Msg)s", &ParserError), > GB_EVENT("CharacterData", NULL, "(Txt)s", &CharacterData), > GB_EVENT("Comment", NULL, "(Txt)s", &Comment), > GB_EVENT("ProcessingInstruction", NULL, "(Target)s(Data)s", > &ProcessingInstruction), > GB_EVENT("StartCData", NULL, NULL, &StartCData), > GB_EVENT("EndCData", NULL, NULL, &EndCData), > GB_EVENT("Default", NULL, "(Txt)s", &Default), > GB_END_DECLARE > }; > -- Benoit Minisini mailto:gambas at ...1... From christian.faurebouvard at ...156... Sun Sep 5 15:23:03 2004 From: christian.faurebouvard at ...156... (Christian Faure) Date: Sun, 5 Sep 2004 10:23:03 -0300 Subject: [Gambas-devel] Component using Collection object In-Reply-To: <200409041052.52675.gambas@...1...> References: <200409022321.23308.christian.faurebouvard@...156...> <200409031942.51109.christian.faurebouvard@...156...> <200409041052.52675.gambas@...1...> Message-ID: <200409051023.03293.christian.faurebouvard@...156...> > To put a string in the collection, you can do the same way, by just > changing some constants and types. This should work :-) > > GB_STRING result; > > result.type = GB_T_CSTRING; > result._string.addr = attr_name; > result._string.start = 0; > result._string.len = strlen(attr_name); > GB.Conv((GB_VALUE *)&result, GB_T_VARIANT); > GB.Collection.Set(THIS->table, key, key_len, (GB_VARIANT *)&result); > Ok, using: GB_STRING v; v.type = GB_T_CSTRING; v.value.addr = atts[i+1]; v.value.start = 0; v.value.len = strlen(atts[i+1]); GB.Conv((GB_VALUE *)&v, GB_T_VARIANT); GB.Collection.Set(col, atts[i], strlen(atts[i]), (GB_VARIANT *)&v); work ok. Thanks! No extra api needed. > Just a few remarks :-) > > 1) What is the difference betweens expat and libxml2 ? Why using expat and > not libxml2 ? libxml2 is a complete xml toolkit expat is only a very simple parser. At this moment, only need a very simple parser, and already know it from PHP extension. > > 2) When you are finish the component, I will ask you to change your > interface, i.e. the names you use, which are not very good. > > For example, the name of the class is "Expatc", which is bad, as it is the > name of the library. You must use something like "XMLParser", which is > generic. This way, if there is another XML component based on a different > library, they will be able to share the same interface so that the user > don't have to change its code. Ok, > > There are other problems, but finish your work without thinking about that. > I will tell you later. Ok Thanks again. From thierry at ...157... Mon Sep 6 07:58:27 2004 From: thierry at ...157... (Thierry Thomas) Date: Mon, 6 Sep 2004 07:58:27 +0200 Subject: [Gambas-devel] Happy birthday! Message-ID: <20040906055827.GA51253@...158...> Bon anniversaire Beno?t?! -- Th. Thomas. From eng_ak at ...43... Mon Sep 6 08:40:39 2004 From: eng_ak at ...43... (Ahmed Kamal) Date: Mon, 6 Sep 2004 09:40:39 +0300 Subject: [Gambas-devel] Happy birthday! Message-ID: <413C0667.3000001@...43...> Yaaaaay. Happy Birthday Benoit :) Thierry Thomas wrote: >Bon anniversaire Beno?t ! > > From ronstk at ...124... Mon Sep 6 09:07:35 2004 From: ronstk at ...124... (ron) Date: Mon, 6 Sep 2004 09:07:35 +0200 Subject: [Gambas-devel] Happy birthday! In-Reply-To: <20040906055827.GA51253@...158...> References: <20040906055827.GA51253@...158...> Message-ID: <200409060907.35027.ronstk@...124...> Hartelijk gefeliciteerd met je verjaardag Beno?t. From gambasfr at ...4... Mon Sep 6 13:09:28 2004 From: gambasfr at ...4... (Bodard Fabien) Date: Mon, 6 Sep 2004 13:09:28 +0200 Subject: [Gambas-devel] Happy birthday! In-Reply-To: <200409060907.35027.ronstk@...124...> References: <20040906055827.GA51253@...158...> <200409060907.35027.ronstk@...124...> Message-ID: <200409061309.28994.gambasfr@...4...> Tout simplement, bon anniversaire, Benoit ! Amicalement, Fabien Bodard From jredrejo at ...133... Mon Sep 6 13:59:19 2004 From: jredrejo at ...133... (=?ISO-8859-1?Q?Jos=E9?= L. Redrejo =?ISO-8859-1?Q?Rodr=EDguez?=) Date: Mon, 06 Sep 2004 13:59:19 +0200 Subject: [Gambas-devel] Debian stuff Message-ID: <1094471959.7501.14.camel@...134...> I am generating the Debian Packages for gambas and before the 1.0 release I would like to change the different generated packages. I would like to know if you have any policy about it. A reasonable one could be to make a gambas-runtime, gambas-ide, and one gambas-component for each component. A metapackage called gambas that installs all of them could also be useful. I would like to hear your opinion about this. On the other hand, I have a GREAT interest in making work the Debian Package generation for the 1.0 release. If I can help in any way (I have a deep knowledge of debian structures, but no so deep about the gambas IDE), please contact with me off-list. I would need to know where in the code is that part of the IDE. Regards. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Esta parte del mensaje est? firmada digitalmente URL: From dithi at ...161... Mon Sep 6 16:52:34 2004 From: dithi at ...161... (Alberto Torres) Date: Mon, 06 Sep 2004 16:52:34 +0200 Subject: [Gambas-devel] Debian stuff In-Reply-To: <1094471959.7501.14.camel@...134...> References: <1094471959.7501.14.camel@...134...> Message-ID: <413C79B2.9060407@...161...> En la p?gina de descarga de gambas: "Since Gambas 0.95, I started to make Gambas binary packages for MandrakeLinux. The .spec file needed to rebuild the packages is located at the same place. I made them because all other Linux distributions must follow the same package naming and organization. Otherwise, the IDE wizard for making packages will not work, and distributing Gambas applications won't be as easy as making them! " Los nombres son gambas-runtime, gambas-ide y gambas-gb- gambas-gb-compress gambas-gb-db gambas-gb-db-mysql gambas-gb-db-postgresql gambas-gb-db-sqlite gambas-gb-debug gambas-gb-eval gambas-gb-net gambas-gb-net-curl gambas-gb-qt gambas-gb-qt-editor gambas-gb-qt-ext gambas-gb-qt-kde gambas-gb-qt-kde-html gambas-gb-sdl gambas-gb-vb gambas-ide gambas-runtime Podr?a ser interesante hacer varios paquetes virtuales tales como gambas (que instala todos) y gambas-components (que instala los gambas-gb*) Gracias por tu esfuerzo en debianizar gambas, yo uso debian ;) DiThi Jos? L. Redrejo Rodr?guez escribi?: >I am generating the Debian Packages for gambas and before the 1.0 >release I would like to change the different generated packages. I would >like to know if you have any policy about it. A reasonable one could be >to make a gambas-runtime, gambas-ide, and one gambas-component for each >component. A metapackage called gambas that installs all of them could >also be useful. I would like to hear your opinion about this. > >On the other hand, I have a GREAT interest in making work the Debian >Package generation for the 1.0 release. If I can help in any way (I have >a deep knowledge of debian structures, but no so deep about the gambas >IDE), please contact with me off-list. I would need to know where in the >code is that part of the IDE. > >Regards. > > > From danielcampos at ...45... Mon Sep 6 16:53:39 2004 From: danielcampos at ...45... (Daniel Campos) Date: Mon, 06 Sep 2004 16:53:39 +0200 Subject: [Gambas-devel] Spanish translation 0.99 Message-ID: <1094482419.31108.1.camel@...102...> Gambas spanish translation for 0.99. No changes found at database manager. Regards, Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-es-0.99.po Type: text/x-gettext-translation Size: 62471 bytes Desc: not available URL: From gambas at ...1... Mon Sep 6 20:56:50 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 6 Sep 2004 20:56:50 +0200 Subject: [Gambas-devel] Debian stuff In-Reply-To: <1094471959.7501.14.camel@...134...> References: <1094471959.7501.14.camel@...134...> Message-ID: <200409062056.50744.gambas@...1...> On Monday 06 September 2004 13:59, Jos? L. Redrejo Rodr?guez wrote: > I am generating the Debian Packages for gambas and before the 1.0 > release I would like to change the different generated packages. I would > like to know if you have any policy about it. A reasonable one could be > to make a gambas-runtime, gambas-ide, and one gambas-component for each > component. A metapackage called gambas that installs all of them could > also be useful. I would like to hear your opinion about this. > > On the other hand, I have a GREAT interest in making work the Debian > Package generation for the 1.0 release. If I can help in any way (I have > a deep knowledge of debian structures, but no so deep about the gambas > IDE), please contact with me off-list. I would need to know where in the > code is that part of the IDE. > > Regards. I think the spanish answer of Alberto has explained everything. There is already a debian packager, as you can see on the download page of the web site, but I think they are not up to date. Contact him so that you can share the packaging task. By reading the Mandrake .spec file, I think you can understand what packages you must do, and what you must put inside. Ask me every question you need! But I think we should stay on the mailing-list, because what we say can interest other people. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon Sep 6 20:59:44 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 6 Sep 2004 20:59:44 +0200 Subject: [Gambas-devel] Spanish translation 0.99 In-Reply-To: <1094482419.31108.1.camel@...102...> References: <1094482419.31108.1.camel@...102...> Message-ID: <200409062059.44093.gambas@...1...> On Monday 06 September 2004 16:53, Daniel Campos wrote: > Gambas spanish translation for 0.99. No changes found at database > manager. > > Regards, > > Daniel Campos Thanks, Daniel. I saw on google that you asked some questions about the gtk component on gtk development mailing-lists. I see one of them where you ask for a function that converts RGB to HSV. If you see something that can be factorized between Qt and GTK, because one of them don't have the function, tell me. I will make a "gb.form" component where we can put all needed common functions, so that you don't have to rewrite everything in the GTK component. Regards, -- Benoit Minisini mailto:gambas at ...1... From daniel.campos at ...103... Wed Sep 8 18:35:50 2004 From: daniel.campos at ...103... (Daniel Campos) Date: Wed, 08 Sep 2004 16:35:50 +0000 Subject: [Gambas-devel] About variat type Message-ID: <1094661350.3135.2.camel@...102...> Hi: As a part of the code of a component, I have to return a Variant value, however I have to fill first the value of that variant. I have some possibilities: a C "int" value, a C "char*" value or a C "float" value. How can I copy these values to the variant value? Regards, Daniel Campos From leo.barnhoorn at ...53... Thu Sep 9 05:36:18 2004 From: leo.barnhoorn at ...53... (Leo Barnhoorn) Date: Thu, 9 Sep 2004 05:36:18 +0200 Subject: [Gambas-devel] Changes in gbx_c_settings.c Message-ID: <200409090536.18511.leo.barnhoorn@...53...> Hello Benoit, I hope it is no problem that i have make some changes in the gbx_c_settings.c file. I make this changes because i want to use the settings normal, all the .conf en project file get the first 2 lines like this: # Gambas configuration file 1.0 # for phpeditor But when i make .conf and project file for my own program i want to see somthing like this: # PHPEdit Project File 1.0 # for project Test With the changes i have make this is now possible. It is working very well both the text are now available. Example: PUBLIC CONST PROJECT_MAGIC AS String = "PHPEdit Project File 1.0" PUBLIC SUB btnOK_Click() DIM hProject AS Settings hProject = NEW Settings (sDir &/ ".project") hProject["/ProjectName"] = Trim(txtProjectName.Text) hProject["/ProjectTitle"] = txtProjectTitle.Text hProject["/ProjectDescription"] = txaProjectDescription.Text hProject["/ProjectVersion"] = "0.0.0" hProject["/ProjectDir"] = sDir 'hProject.PName(Trim(txtProjectName.Text)) 'hProject.PString(PROJECT_MAGIC) hProject.Save ME.Close(TRUE) END This example make a project or .conf file like this: # Gambas configuration file 1.0 # for phpeditor /ProjectName="Test" /ProjectTitle="This is a test project." /ProjectDescription="This is a test project.\n\nBy Leo Barnhoorn.\n" /ProjectVersion="0.0.0" /ProjectDir="/srv/www/htdocs/Project/Test" ============================================================== PUBLIC CONST PROJECT_MAGIC AS String = "PHPEdit Project File 1.0" PUBLIC SUB btnOK_Click() DIM hProject AS Settings hProject = NEW Settings (sDir &/ ".project") hProject["/ProjectName"] = Trim(txtProjectName.Text) hProject["/ProjectTitle"] = txtProjectTitle.Text hProject["/ProjectDescription"] = txaProjectDescription.Text hProject["/ProjectVersion"] = "0.0.0" hProject["/ProjectDir"] = sDir hProject.PName(Trim(txtProjectName.Text)) hProject.PString(PROJECT_MAGIC) hProject.Save ME.Close(TRUE) END This example make a project or .conf file like this: # PHPEdit Project File 1.0 # for project Test /ProjectName="Test" /ProjectTitle="This is a test project." /ProjectDescription="This is a test project.\n\nBy Leo Barnhoorn.\n" /ProjectVersion="0.0.0" /ProjectDir="/srv/www/htdocs/Project/Test" Is it possible to make this part of Gambas Benoit. I believe this is not proper way how to do it but i 'm happy that it is working on the way i have done it. Regards, Leo Barnhoorn. -------------- next part -------------- A non-text attachment was scrubbed... Name: gbx_c_settings.c Type: text/x-csrc Size: 9055 bytes Desc: not available URL: From gambas at ...1... Thu Sep 9 13:08:13 2004 From: gambas at ...1... (Benoit Minisini) Date: Thu, 9 Sep 2004 13:08:13 +0200 Subject: [Gambas-devel] About variat type In-Reply-To: <1094661350.3135.2.camel@...102...> References: <1094661350.3135.2.camel@...102...> Message-ID: <200409091308.13716.gambas@...1...> On Wednesday 08 September 2004 18:35, Daniel Campos wrote: > Hi: > > As a part of the code of a component, I have to return a Variant value, > however I have to fill first the value of that variant. I have some > possibilities: a C "int" value, a C "char*" value or a C "float" value. > > How can I copy these values to the variant value? > > Regards, > > Daniel Campos > > If return value of your method is a variant, just returns whatever you want. The interpreter will do the conversion for you. Regards, -- Benoit Minisini mailto:gambas at ...1... From dithi at ...161... Thu Sep 9 21:03:30 2004 From: dithi at ...161... (Alberto Torres) Date: Thu, 09 Sep 2004 21:03:30 +0200 Subject: [Gambas-devel] XML component Message-ID: <4140A902.2020005@...161...> Hi, I wonder if anyone is working on a xml component for gambas. I read the wiki and it seems that Daniel Campos is working on it. I think XML component should be small and stand-alone, a good choice could be use tinyxml because it's small (146kb source without docs) and has no external depencies. http://sourceforge.net/projects/tinyxml If no one is developing a xml component, I'll start one. Regards DiThi From daniel.campos at ...103... Thu Sep 9 22:33:06 2004 From: daniel.campos at ...103... (Daniel Campos) Date: Thu, 09 Sep 2004 22:33:06 +0200 Subject: [Gambas-devel] XML component In-Reply-To: <4140A902.2020005@...161...> References: <4140A902.2020005@...161...> Message-ID: <1094761986.3008.7.camel@...102...> Hi: Well, XML (using libxml) is one of my ideas for the future, however currently i'm not working on it, I just made some experiments a time ago... However somebody is working now in a XML component using expath, but now I can confirm my fears: I've lost messages in the transition from Evolution 1.4 to Evolution 1.5, and I can not find that messages! grrrr..##@%&!!! Regards, Daniel Campos El jue, 09-09-2004 a las 21:03 +0200, Alberto Torres escribi?: > Hi, I wonder if anyone is working on a xml component for gambas. I read > the wiki and it seems that Daniel Campos is working on it. > > I think XML component should be small and stand-alone, a good choice > could be use tinyxml because it's small (146kb source without docs) and > has no external depencies. > http://sourceforge.net/projects/tinyxml > > If no one is developing a xml component, I'll start one. > > Regards > DiThi > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > From gambas at ...1... Fri Sep 10 10:00:19 2004 From: gambas at ...1... (Benoit Minisini) Date: Fri, 10 Sep 2004 10:00:19 +0200 Subject: [Gambas-devel] XML component In-Reply-To: <4140A902.2020005@...161...> References: <4140A902.2020005@...161...> Message-ID: <200409101000.19802.gambas@...1...> On Thursday 09 September 2004 21:03, Alberto Torres wrote: > Hi, I wonder if anyone is working on a xml component for gambas. I read > the wiki and it seems that Daniel Campos is working on it. > > I think XML component should be small and stand-alone, a good choice > could be use tinyxml because it's small (146kb source without docs) and > has no external depencies. > http://sourceforge.net/projects/tinyxml > > If no one is developing a xml component, I'll start one. > > Regards > DiThi > Look at the previous posts of Christian Faure. It works on a xml component, but based on the expat library. I suggest you contact you so that you share your works. You can work on the same library, on make twice the same component with two differents libraries (gb.xml.expat and gb.xml.tinyxml). When Christian and/or you have finished the components, I will come to ensure that their interface is nice, and, if you do two different components, that they are exactly the same :-) Regards, -- Benoit Minisini mailto:gambas at ...1... From daniel.campos at ...103... Fri Sep 10 16:36:32 2004 From: daniel.campos at ...103... (Daniel Campos) Date: Fri, 10 Sep 2004 16:36:32 +0200 Subject: [Gambas-devel] XML component In-Reply-To: <200409101000.19802.gambas@...1...> References: <4140A902.2020005@...161...> <200409101000.19802.gambas@...1...> Message-ID: <1094826992.3010.4.camel@...102...> El vie, 10-09-2004 a las 10:00 +0200, Benoit Minisini escribi?: > ame component with two differents libraries > (gb.xml.expat and gb.xml.tinyxml). > > When Christian and/or you have finished the components, I will come to ensure > that their interface is nice, and, if you do two different components, that > they are exactly the same :-) However Gnome and KDE are different, so the user has a choice :-)) > > Regards, > From christian.faurebouvard at ...156... Fri Sep 10 17:37:17 2004 From: christian.faurebouvard at ...156... (Christian Faure) Date: Fri, 10 Sep 2004 12:37:17 -0300 Subject: [Gambas-devel] XML component In-Reply-To: <1094761986.3008.7.camel@...102...> References: <4140A902.2020005@...161...> <1094761986.3008.7.camel@...102...> Message-ID: <200409101237.17027.christian.faurebouvard@...156...> El Jueves, 9 de Septiembre de 2004 17:33, Daniel Campos escribi?: > Hi: > > Well, XML (using libxml) is one of my ideas for the future, however > currently i'm not working on it, I just made some experiments a time > ago... > > However somebody is working now in a XML component using expath, but now > I can confirm my fears: I've lost messages in the transition from > Evolution 1.4 to Evolution 1.5, and I can not find that messages! > grrrr..##@%&!!! Hi, If you need some messages, i can re-send this to your e-mail :) I have a XMLComponent based on expat, for testing (Thanks to Daniel C. for Component Model based on libxml2), Now, i sent this component to Benoit, to tell me what iterface i have to implement, and others corrections Regards. From christian.faurebouvard at ...156... Fri Sep 10 17:35:48 2004 From: christian.faurebouvard at ...156... (Christian Faure) Date: Fri, 10 Sep 2004 12:35:48 -0300 Subject: [Gambas-devel] XML component, expat In-Reply-To: <200409101000.19802.gambas@...1...> References: <4140A902.2020005@...161...> <200409101000.19802.gambas@...1...> Message-ID: <200409101235.48920.christian.faurebouvard@...156...> Hi Benoit Happy birthay! (after somes days... Sorry) > Look at the previous posts of Christian Faure. It works on a xml component, > but based on the expat library. > > I suggest you contact you so that you share your works. You can work on the > same library, on make twice the same component with two differents > libraries (gb.xml.expat and gb.xml.tinyxml). > > When Christian and/or you have finished the components, I will come to > ensure that their interface is nice, and, if you do two different > components, that they are exactly the same :-) Ok, Finished! (for now) Attached files contain a snapshot of the directory of my "expatc" component, and a very simple example ( only print to console) in gambas. 1. Makefiles I'm not a Guru of autoconf nor automake, so the Makefile, Makefile.in, Makefile.am need to be generic, it reffers to absolute path on my machine! This makefile also generate the .info and install them I'v seen in a previous post a How-to to implement a new component, but for te next version.... 2. Requirements: expat library installed (i don't know the size of this) 3. The code: When method Parse(filename) is called the parser open file, parse and fire the correspondig gambas-events. Principals events are: StartElement, ChararcterData, EndElement 4. Others In gambas (small bug?), the text editor replace "?" by "PRINT" so you can't edit XML files The Attribute parameter of StartElement is declared as "o" Object in the signature, How can declare it as Collection? > Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: expatc_source_and_binary.tar.gz Type: application/x-tgz Size: 38096 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_expatc.tar.gz Type: application/x-tgz Size: 3326 bytes Desc: not available URL: From sourceforge-raindog2 at ...19... Fri Sep 10 19:30:26 2004 From: sourceforge-raindog2 at ...19... (Rob) Date: Fri, 10 Sep 2004 13:30:26 -0400 Subject: [Gambas-devel] XML component In-Reply-To: <200409101000.19802.gambas@...1...> References: <4140A902.2020005@...161...> <200409101000.19802.gambas@...1...> Message-ID: <200409101330.26525.sourceforge-raindog2@...19...> On Friday 10 September 2004 04:00, Benoit Minisini wrote: > When Christian and/or you have finished the components, I will > come to ensure that their interface is nice, and, if you do > two different components, that they are exactly the same :-) That may not be possible with XML components. Some XML libraries are designed around parsing streams of XML on the fly, and generate a callback for each entity (tag, whatever...) they encounter. Christian's looks like one of these. Others load the whole file in and give you a big data structure containing the whole thing, but they also usually require a DTD prior to loading. I don't think you could really have the same interface to both kinds of libraries... Rob From gambas at ...1... Fri Sep 10 19:40:25 2004 From: gambas at ...1... (Benoit Minisini) Date: Fri, 10 Sep 2004 19:40:25 +0200 Subject: [Gambas-devel] XML component, expat In-Reply-To: <200409101235.48920.christian.faurebouvard@...156...> References: <4140A902.2020005@...161...> <200409101000.19802.gambas@...1...> <200409101235.48920.christian.faurebouvard@...156...> Message-ID: <200409101940.25970.gambas@...1...> On Friday 10 September 2004 17:35, Christian Faure wrote: > Hi Benoit > Happy birthay! > (after somes days... Sorry) > > > Look at the previous posts of Christian Faure. It works on a xml > > component, but based on the expat library. > > > > I suggest you contact you so that you share your works. You can work on > > the same library, on make twice the same component with two differents > > libraries (gb.xml.expat and gb.xml.tinyxml). > > > > When Christian and/or you have finished the components, I will come to > > ensure that their interface is nice, and, if you do two different > > components, that they are exactly the same :-) > > Ok, Finished! (for now) > Attached files contain a snapshot of the directory of my "expatc" > component, and a very simple example ( only print to console) in gambas. > > 1. Makefiles > I'm not a Guru of autoconf nor automake, > so the Makefile, Makefile.in, Makefile.am need to be generic, > it reffers to absolute path on my machine! > This makefile also generate the .info and install them I can make the Makefile if needed. > > I'v seen in a previous post a How-to to implement a new component, > but for te next version.... I put this Howto on the wiki. You can read it if you want. > > 2. Requirements: expat library installed > (i don't know the size of this) > > 3. The code: > When method Parse(filename) is called the parser > open file, parse and fire the correspondig gambas-events. > Principals events are: > StartElement, ChararcterData, EndElement If possible, you should allow to parse from a string directly. > > 4. Others > In gambas (small bug?), the text editor replace "?" by "PRINT" > so you can't edit XML files LOL! Funny bug, I fix it... > The Attribute parameter of StartElement is declared as "o" Object > in the signature, How can declare it as Collection? Replace 'o' by 'Collection;'. Note the semicolon at the end of the class name. > > > Regards, I will check your component as soon as possible. I don't have the time I had last month, because the acting studies started again! Regards, -- Benoit Minisini mailto:gambas at ...1... From dithi at ...161... Fri Sep 10 22:44:00 2004 From: dithi at ...161... (Alberto Torres) Date: Fri, 10 Sep 2004 22:44:00 +0200 Subject: [Gambas-devel] XML component, expat In-Reply-To: <200409101235.48920.christian.faurebouvard@...156...> References: <4140A902.2020005@...161...> <200409101000.19802.gambas@...1...> <200409101235.48920.christian.faurebouvard@...156...> Message-ID: <41421210.9070309@...161...> Christian Faure escribi?: >In gambas (small bug?), the text editor replace "?" by "PRINT" >so you can't edit XML files > > Also, when undoing the '?' that became 'PRINT', remains 'INT' or 'NT' From daniel.campos at ...103... Fri Sep 10 16:41:20 2004 From: daniel.campos at ...103... (Daniel Campos) Date: Fri, 10 Sep 2004 16:41:20 +0200 Subject: [Gambas-devel] XML component In-Reply-To: <200409101000.19802.gambas@...1...> References: <4140A902.2020005@...161...> <200409101000.19802.gambas@...1...> Message-ID: <1094827280.3010.10.camel@...102...> El vie, 10-09-2004 a las 10:00 +0200, Benoit Minisini escribi?: > On Thursday 09 September 2004 21:03, Alberto Torres wrote: > > Hi, I wonder if anyone is working on a xml component for gambas. I read > > the wiki and it seems that Daniel Campos is working on it. > > > > I think XML component should be small and stand-alone, a good choice > > could be use tinyxml because it's small (146kb source without docs) and > > has no external depencies. > > http://sourceforge.net/projects/tinyxml Mmmh... Tinyxml is a good choice for tiny systems, but... "It doesnt parse or use DTDs (Document Type Definitions) or XSLs (eXtensible Stylesheet Language.) It is only tested on Latin-1 characters (which is the Western European character set). Although people have reported success in passing through Latin-1 and UTF-8 data. There are other parsers out there (check out www.sourceforge.org, search for XML) that are much more fully featured. But they are also much bigger, take longer to set up in your project, have a higher learning curve, and often have a more restrictive license. If you are working with browsers or have more complete XML needs, TinyXml is not the parser for you." The lack of DTD and multiencoding support is specially severe for a lot of web/database applications... Regards, Daniel Campos From daniel.campos at ...103... Sat Sep 11 10:52:43 2004 From: daniel.campos at ...103... (Daniel Campos) Date: Sat, 11 Sep 2004 10:52:43 +0200 Subject: [Gambas-devel] XML component, expat In-Reply-To: <41421210.9070309@...161...> References: <4140A902.2020005@...161...> <200409101000.19802.gambas@...1...> <200409101235.48920.christian.faurebouvard@...156...> <41421210.9070309@...161...> Message-ID: <1094892763.9402.0.camel@...102...> El vie, 10-09-2004 a las 22:44 +0200, Alberto Torres escribi?: > Christian Faure escribi?: > > >In gambas (small bug?), the text editor replace "?" by "PRINT" > >so you can't edit XML files > > > > > Also, when undoing the '?' that became 'PRINT', remains 'INT' or 'NT' Bill Wastes puts its hands here! horror! > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > From gambas at ...1... Sat Sep 11 12:05:23 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 11 Sep 2004 12:05:23 +0200 Subject: [Gambas-devel] XML component In-Reply-To: <1094827280.3010.10.camel@...102...> References: <4140A902.2020005@...161...> <200409101000.19802.gambas@...1...> <1094827280.3010.10.camel@...102...> Message-ID: <200409111205.23783.gambas@...1...> On Friday 10 September 2004 16:41, Daniel Campos wrote: > El vie, 10-09-2004 a las 10:00 +0200, Benoit Minisini escribi?: > > On Thursday 09 September 2004 21:03, Alberto Torres wrote: > > > Hi, I wonder if anyone is working on a xml component for gambas. I read > > > the wiki and it seems that Daniel Campos is working on it. > > > > > > I think XML component should be small and stand-alone, a good choice > > > could be use tinyxml because it's small (146kb source without docs) and > > > has no external depencies. > > > http://sourceforge.net/projects/tinyxml > > Mmmh... Tinyxml is a good choice for tiny systems, but... > > "It doesnt parse or use DTDs (Document Type Definitions) or XSLs > (eXtensible Stylesheet Language.) It is only tested on Latin-1 > characters (which is the Western European character set). Although > people have reported success in passing through Latin-1 and UTF-8 data. > There are other parsers out there (check out www.sourceforge.org, search > for XML) that are much more fully featured. But they are also much > bigger, take longer to set up in your project, have a higher learning > curve, and often have a more restrictive license. If you are working > with browsers or have more complete XML needs, TinyXml is not the parser > for you." > > The lack of DTD and multiencoding support is specially severe for a lot > of web/database applications... > > Regards, > > Daniel Campos > Yes. Gambas uses UTF-8 (or tries to use it as much as possible), and so a parser that can't deal with it is a problem. -- Benoit Minisini mailto:gambas at ...1... From christian.faurebouvard at ...156... Sat Sep 11 17:19:48 2004 From: christian.faurebouvard at ...156... (Christian Faure) Date: Sat, 11 Sep 2004 12:19:48 -0300 Subject: [Gambas-devel] XML component, expat In-Reply-To: <200409101940.25970.gambas@...1...> References: <4140A902.2020005@...161...> <200409101235.48920.christian.faurebouvard@...156...> <200409101940.25970.gambas@...1...> Message-ID: <200409111219.48778.christian.faurebouvard@...156...> El Viernes, 10 de Septiembre de 2004 14:40, Benoit Minisini escribi?: > I can make the Makefile if needed. > > > I'v seen in a previous post a How-to to implement a new component, > > but for te next version.... > > I put this Howto on the wiki. You can read it if you want. Thanks, i read the howto and try to write a makefile. The component name must be gb.xml.expat ? and the Class Name? XMLParser? or XMLParserExpat ? or another? > If possible, you should allow to parse from a string directly. Ok, I add ParseFile() ParseString() and remove the Parse() >> The Attribute parameter of StartElement is declared as "o" Object >> in the signature, How can declare it as Collection? > > Replace 'o' by 'Collection;'. Note the semicolon at the end of the class > name. Very Simple! :) > I will check your component as soon as possible. I don't have the time I > had last month, because the acting studies started again! Ok, Thanks, From gambas at ...1... Sat Sep 11 18:25:16 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 11 Sep 2004 18:25:16 +0200 Subject: [Gambas-devel] A simplest component example In-Reply-To: <200409031924.05370.marcio.roger@...153...> References: <200409022235.31547.gambas@...1...> <200409031924.05370.marcio.roger@...153...> Message-ID: <200409111825.16936.gambas@...1...> On Saturday 04 September 2004 00:24, Marcio Roger Ferrari wrote: > Thanks for the tips about components Minisini :-) > > Now, I have a job to do, but before this I would to talk a little bit more > abou threads. As you said, there is no plans no Gambas suport threads and > the interpreter was not design for this. However, when I talk about threads > (and my desire to implement it - you were right: I didn't know that could > be so difficult), I was think in one thing: Games and the SDL Gambas > Component! I don't have many experience doing linux apps, but as I know (I > can be wrong), timers does not offer the best performance. Some years ago > (before discover Linux) I develop a small game using Directx and MFC (with > VC++). And in MFC there is function named OnAppIdle, that can is called > when the aplication is idle, or in other words, just waiting for events. So > I could use this function to make all the game loop (read keys, joystick, > move caracters of game, colision detection, etc) using lowlevel hardware > access functions provided by DirectX ( as SDL probably works) with a good > performance. > > Is there is a chance to implement it in Gambas 2.0 (of course if you > doesn't have already a better plan) :-) > > Regards and thanks for provide for us a excellent IDE . > > Marcio Ferrari > SDL has its own event loop that is not yet managed by the SDL component. But everything is ready for that in the interpreter. I mean, any component can have an event loop - But you can't use two components, each of one having an event loop. Just a bit of developer time is missing. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Sat Sep 11 23:26:09 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 11 Sep 2004 23:26:09 +0200 Subject: [Gambas-devel] XML component, expat In-Reply-To: <41421210.9070309@...161...> References: <4140A902.2020005@...161...> <200409101235.48920.christian.faurebouvard@...156...> <41421210.9070309@...161...> Message-ID: <200409112326.09166.gambas@...1...> On Friday 10 September 2004 22:44, Alberto Torres wrote: > Christian Faure escribi?: > >In gambas (small bug?), the text editor replace "?" by "PRINT" > >so you can't edit XML files > > Also, when undoing the '?' that became 'PRINT', remains 'INT' or 'NT' > > Yep! I succeed in fixing the bug. -- Benoit Minisini mailto:gambas at ...1... From Karl.Reinl at ...16... Sun Sep 12 04:20:50 2004 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Sun, 12 Sep 2004 02:20:50 +0000 Subject: [Gambas-devel] PrettyPrinter-0.2.3 for gambas-0.99 Message-ID: <200409120220.50829.Karl.Reinl@...16...> Salut, here is the new version of Gambas PrettyPrinter, written in Gambas. NOT to use with gambas version befor 0.99. Changes: You can Indent a Proc only, by setting the cursor to a proc and pushing the 'Indent Proc' button. Dim etc. lines can be aligned, visible when using NON proprtional font. This is a testing Version, changings on a *.class or *.module will only be made on a copy of this file. If you find an error, pleas reprot him. If you have a Problem Message in the Console-Window please send me the proc where it apeares. Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: PrettyPrinter-0.2.3.tar.gz Type: application/x-tgz Size: 10054 bytes Desc: not available URL: From ronstk at ...124... Sun Sep 12 23:18:25 2004 From: ronstk at ...124... (ron) Date: Sun, 12 Sep 2004 23:18:25 +0200 Subject: [Gambas-devel] XML component, expat In-Reply-To: <200409101235.48920.christian.faurebouvard@...156...> References: <4140A902.2020005@...161...> <200409101000.19802.gambas@...1...> <200409101235.48920.christian.faurebouvard@...156...> Message-ID: <200409122318.25903.ronstk@...124...> On Friday 10 September 2004 17:35, Christian Faure wrote: > Hi Benoit > Happy birthay! > (after somes days... Sorry) > > > Look at the previous posts of Christian Faure. It works on a xml component, > > but based on the expat library. > > > > I suggest you contact you so that you share your works. You can work on the > > same library, on make twice the same component with two differents > > libraries (gb.xml.expat and gb.xml.tinyxml). > > > > When Christian and/or you have finished the components, I will come to > > ensure that their interface is nice, and, if you do two different > > components, that they are exactly the same :-) > > Ok, Finished! (for now) > Attached files contain a snapshot of the directory of my "expatc" component, > and a very simple example ( only print to console) in gambas. > > 1. Makefiles > I'm not a Guru of autoconf nor automake, > so the Makefile, Makefile.in, Makefile.am need to be generic, > it reffers to absolute path on my machine! > This makefile also generate the .info and install them > > I'v seen in a previous post a How-to to implement a new component, > but for te next version.... > > 2. Requirements: expat library installed > (i don't know the size of this) > > 3. The code: > When method Parse(filename) is called the parser > open file, parse and fire the correspondig gambas-events. > Principals events are: > StartElement, ChararcterData, EndElement > > 4. Others > In gambas (small bug?), the text editor replace "?" by "PRINT" > so you can't edit XML files > The Attribute parameter of StartElement is declared as "o" Object > in the signature, How can declare it as Collection? > > > > > Regards, > I did a try of it. The example instructions from the wiki or yours did not work very well. I add the GB_COMPONENT and expand the AC_??? part as told. The .info was not made, so I dropped the symlinks as in the wiki and did a reconf, configure, make and make install to be sure all was done. It worked but gives a error on the line with the comment in test.xml Nice to play with but I hope the libxml will deliver a DOM tree object. As a simple component example, i can learn from it :) Ron From christian.faurebouvard at ...156... Mon Sep 13 00:46:16 2004 From: christian.faurebouvard at ...156... (Christian Faure) Date: Sun, 12 Sep 2004 19:46:16 -0300 Subject: [Gambas-devel] XML component, expat In-Reply-To: <200409122318.25903.ronstk@...124...> References: <4140A902.2020005@...161...> <200409101235.48920.christian.faurebouvard@...156...> <200409122318.25903.ronstk@...124...> Message-ID: <200409121946.17022.christian.faurebouvard@...156...> El Domingo, 12 de Septiembre de 2004 18:18, ron escribi?: > On Friday 10 September 2004 17:35, Christian Faure wrote: > > Hi Benoit > > Happy birthay! > > (after somes days... Sorry) > > > > > Look at the previous posts of Christian Faure. It works on a xml > > > component, but based on the expat library. > > > > > > I suggest you contact you so that you share your works. You can work on > > > the same library, on make twice the same component with two differents > > > libraries (gb.xml.expat and gb.xml.tinyxml). > > > > > > When Christian and/or you have finished the components, I will come to > > > ensure that their interface is nice, and, if you do two different > > > components, that they are exactly the same :-) > > > > Ok, Finished! (for now) > > Attached files contain a snapshot of the directory of my "expatc" > > component, and a very simple example ( only print to console) in gambas. > > > > 1. Makefiles > > I'm not a Guru of autoconf nor automake, > > so the Makefile, Makefile.in, Makefile.am need to be generic, > > it reffers to absolute path on my machine! > > This makefile also generate the .info and install them > > > > I'v seen in a previous post a How-to to implement a new component, > > but for te next version.... > > > > 2. Requirements: expat library installed > > (i don't know the size of this) > > > > 3. The code: > > When method Parse(filename) is called the parser > > open file, parse and fire the correspondig gambas-events. > > Principals events are: > > StartElement, ChararcterData, EndElement > > > > 4. Others > > In gambas (small bug?), the text editor replace "?" by "PRINT" > > so you can't edit XML files > > The Attribute parameter of StartElement is declared as "o" Object > > in the signature, How can declare it as Collection? > > > > > Regards, > > I did a try of it. > The example instructions from the wiki or yours did not work very well. > I add the GB_COMPONENT and expand the AC_??? part as told. > The .info was not made, so I dropped the symlinks as in the wiki > and did a reconf, configure, make and make install to be sure all was > done. Sorry, the attached file is only a snapshot of my directory, must be placed at same tree (gambas-0.96) in: /usr/local/src/gambas-0.96/src/lib/expatc The makefile possibly fail on other machine. > > It worked but gives a error on the line with the comment in test.xml Can't parse? > Nice to play with but I hope the libxml will deliver a DOM tree object. Daniel Campos has built one called "gbxml", it uses libxml2, and load the tree structure see post "example comonent" of "Daniel" date 08-08-2004 > > As a simple component example, i can learn from it :) Regards, Christian Christian From ronstk at ...124... Mon Sep 13 01:14:36 2004 From: ronstk at ...124... (ron) Date: Mon, 13 Sep 2004 01:14:36 +0200 Subject: [Gambas-devel] XML component, expat In-Reply-To: <200409121946.17022.christian.faurebouvard@...156...> References: <4140A902.2020005@...161...> <200409122318.25903.ronstk@...124...> <200409121946.17022.christian.faurebouvard@...156...> Message-ID: <200409130114.37690.ronstk@...124...> On Monday 13 September 2004 00:46, Christian Faure wrote: > > > > I did a try of it. > > The example instructions from the wiki or yours did not work very well. > > I add the GB_COMPONENT and expand the AC_??? part as told. > > The .info was not made, so I dropped the symlinks as in the wiki > > and did a reconf, configure, make and make install to be sure all was > > done. > Sorry, the attached file is only a snapshot of my directory, must be placed at > same tree (gambas-0.96) in: /usr/local/src/gambas-0.96/src/lib/expatc > The makefile possibly fail on other machine. I managed to get it right. > > > > It worked but gives a error on the line with the comment in test.xml > Can't parse? It did but at the end I got the error message. > > > Nice to play with but I hope the libxml will deliver a DOM tree object. > > Daniel Campos has built one called "gbxml", it uses libxml2, and load the tree > structure > see post "example comonent" of "Daniel" date 08-08-2004 > I can't find that message, do you have a copy for me? And is it as source released by daniel? There are some newbies replying on a message to ask a new question instead creating a new message to ask. many of the topics last month are a mess to follow :( > > > > As a simple component example, i can learn from it :) > > Regards, > Christian > > Christian > thanks Ron. From daniel.campos at ...103... Mon Sep 13 06:35:54 2004 From: daniel.campos at ...103... (Daniel Campos) Date: Mon, 13 Sep 2004 06:35:54 +0200 Subject: [Gambas-devel] XML component, expat In-Reply-To: <200409130114.37690.ronstk@...124...> References: <4140A902.2020005@...161...> <200409122318.25903.ronstk@...124...> <200409121946.17022.christian.faurebouvard@...156...> <200409130114.37690.ronstk@...124...> Message-ID: <1095050154.3921.2.camel@...102...> > I can't find that message, do you have a copy for me? > And is it as source released by daniel? It was just an skeleton for an libxml component, It can do nothing except loading an xml file and may be parsing it... Regards, Daniel Campos > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > From ronstk at ...124... Mon Sep 13 11:43:58 2004 From: ronstk at ...124... (ron) Date: Mon, 13 Sep 2004 11:43:58 +0200 Subject: [Gambas-devel] XML component, expat In-Reply-To: <1095050154.3921.2.camel@...102...> References: <4140A902.2020005@...161...> <200409130114.37690.ronstk@...124...> <1095050154.3921.2.camel@...102...> Message-ID: <200409131143.58643.ronstk@...124...> On Monday 13 September 2004 06:35, Daniel Campos wrote: > > > I can't find that message, do you have a copy for me? > > And is it as source released by daniel? > > > It was just an skeleton for an libxml component, It can do nothing > except loading an xml file and may be parsing it... > > > Regards, > > Daniel Campos > :( I want something that read a xml file. in the file there are a elements file with a path My application must fill a treeview and when I click on a 'file' it should check the file exist and when true then present me part of it in a textview. Of course in real a bit more. The expatc is possible but then I must build the DOM object (tree) myself. I think a hell of a job. Is libxml giving me a collection 'file' back with size 2 and each file entry have a item 'path' with the value and a item atrib collection containing the size and date key/values. I think that is more easy to handle for me. The old VB app works that way very well. Your partial done work can help me to start. From ronstk at ...124... Tue Sep 14 15:17:21 2004 From: ronstk at ...124... (ron) Date: Tue, 14 Sep 2004 15:17:21 +0200 Subject: [Gambas-devel] expat and XML trial report of R.O. Message-ID: <200409141517.21307.ronstk@...124...> Thanks Christian, Daniel, I managed to get Daniels work in the build tree of gambas. The expatc was compiling and working, last week. In the weekend I updated KDE from 3.2 to 3.3 But still some questions. I'm standing alone, only Win... users arround me. :( --------------- My system: SuSE 8.2 cc --version:cc (GCC) 3.3 20030226 (prerelease) (SuSE Linux) automake --version:automake (GNU automake) 1.7.6 autoconf --version:autoconf (GNU Autoconf) 2.57 gambas 0.99 :=) The lib for expat is /usr/lib/libexpat.* The include is /usr/include/expat.h Version ?.?.? (not in file) The lib for xml is /usr/lib/libxml2.* The include is in /usr/include/libxml2/libxml/* version 2.5.11 ---------------- First what I did to paste it in. Despite expat and lib xml now discused as one I did the expat only and it worked before. I did follow the basic instruction Benoit posted here before. Then the fresh compile instructions. reconf/configure/make and make install After adding the gbxml part as xml I did make clean/reconf/configure/make and make install At this time the binaries of expat is gone? expat does not compile now. ------------------ ('** lines' are not in file but my comment now) ** configure.in: Add after dnl ---- Check for threading GB_THREAD() ** this section dnl ---- Check for expath library GB_COMPONENT( expatc, EXPATC, [expatc component], [GB_FIND(expat.h, /usr/local /usr, include )], [GB_FIND(libexpat.$SHLIBEXT, /usr/local /usr, lib)], [$C_LIB -lexpatc]) ** <-- not sure this is right dnl ---- Check for libxml library GB_COMPONENT( xml, XML, [XML component], dnl [GB_FIND(xmlversion.h, /usr/local /usr, include )], dnl [GB_FIND(libxml2.$SHLIBEXT, /usr/local /usr, lib)], [$C_LIB -lxml]) ** <-- not sure this is right ** I had to add the 2 dnl to get gbxml get in (gbxml is changed to xml) ** In the AC_OUTPUT I add at the end before ')' src/lib/expatc/Makefile \ src/lib/xml/Makefile \ ** in Makefile.am in the src/lib directory SUBDIRS = debug eval db compress @QT_DIR@ @NET_DIR@ @SDL_DIR@ @VB_DIR@ ** to SUBDIRS = debug eval db compress @QT_DIR@ @NET_DIR@ @SDL_DIR@ @VB_DIR@ @EXPATC_DIR@ @XML_DIR@ ** for expat no other changes. ** The expat problems just started after the make clean was done. static void XMLCALL startElement(void *_object, const char *name, const char **atts) { int i; GB_COLLECTION col; GB_STRING v; //GB_VALUE v; ** gives me a error for line 24 now DPIC -o expatc.lo expatc.c:24: error: parse error before "startElement" expatc.c:25: warning: return type defaults to `int' expatc.c: In function `startElement': ** and is gone when i change to static void XMLCALL startElement(void *_object, const char *name, const char **atts) { ** All procedure lines made in 2 lines give this error so and ** is gone after merge together them as above. ** The warning on line 25 is found on more lines and can be true ** or is due the cc(3.3) from suse8.2 ------------------------ The major diff between the orginal and fresh make for Makefile is many lines. I add then as Makefile.org and Mafefile.ron just in case. Same for the Makefile.in, and I understand they should/could be but I belive here to much. For the gbxml of Daniel the changes are as above and the rename of 'gbxml' to 'xml' in files and for filenames. I used the gbxml-1.tar.bz2 (70kb) ** in the src/lib/xml/Makefile.am INCLUDES = -I$(top_srcdir)/src/share -I/usr/include/libxml2 EXTRA_DIST = *.component pkglib_LTLIBRARIES = lib.gb.gbxml.la lib_gb_gbxml_la_LIBADD = lib_gb_gbxml_la_LDFLAGS = -lxml2 -lz -lpthread -lm lib_gb_gbxml_la_SOURCES = main.h main.c XMLTree.h XMLTree.c ** changed to INCLUDES = -I$(top_srcdir)/src/share -I/usr/include/libxml2 @XML_INC@ EXTRA_DIST = *.component pkglib_LTLIBRARIES = lib.gb.xml.la lib_gb_xml_la_LIBADD = @XML_INC@ ** <-- example instuction say this lib_gb_xml_la_LDFLAGS = -lxml2 -lz -lpthread -lm lib_gb_xml_la_SOURCES = main.h main.c XMLTree.h XMLTree.c ** sofar gbxml as xml I belive the problem with xml is mainly in the GB_COMPONENT and the src/lib/makefile.in. Because I wish to go on I did now the following. I know it is may be the wrong way but works. add dnl to the lines of the expat component. add dnl to the line src/lib/expatc/Makefile \ in AC_OUTPUT In the makefile.am in src/lib made a copy of the SUBDIRS line Put a # in front for the first line and removed the @EXPATH_DIR@ in the second one the reconf/configure and make expath is gone Ready to go for xml. Without fatal errors now, only warnings. XMLTree.c: In function `CXMLDOC_Save': XMLTree.c:76: warning: unused variable `_p' XMLTree.c: In function `XML_Unparent_Children': XMLTree.c:317: warning: int format, pointer arg (arg 2) XMLTree.c:318: warning: int format, long int arg (arg 2) XMLTree.c:324: warning: int format, pointer arg (arg 2) XMLTree.c:325: warning: passing arg 1 of pointer to function from incompatible pointer type do the 'make install' Start gambas and found xml. :) The expath still there, leftover i asume. My main question is de declaration for the GB_COMPONENT. How should it be really? special the [$C_LIB -lexpatc]) line For the makefile.am the line with lib_gb_xml_la_LIBADD = @XML_INC@ ** <-- example instuction say this because the line for expat is still empty. lib_gb_expat_la_LIBADD = and works(ed) The simple test for the xml made by Daniel: ' Gambas class file 'STATIC PUBLIC xmld AS XMLDoc PUBLIC xmln AS XMLNode PUBLIC SUB btnOK_Click() textbox1.Text="./channels.xml" 'textbox1.Text="./test.xml" 'xmld = NEW XMLDoc '(textbox1.Text) 'static error :) 'xmln = NEW XMLNode xmln=xmldoc.Load(textbox1.text) PRINT "name="; xmln.Name 'ok is kwintv PRINT "children="; xmln.HasChildren 'ok 'PRINT "count="; childcount(xmln) PRINT "parent="; xmln.HasParent '? says true but at start I should at root and can't have parents ?? ' ME.Close(TRUE) END channels.xml I feel good with it, the basic start is there. -------------- next part -------------- A non-text attachment was scrubbed... Name: Makefile.org Type: text/x-makefile Size: 10500 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Makefile.ron Type: text/x-makefile Size: 14533 bytes Desc: not available URL: From roger125 at ...162... Tue Sep 14 20:01:32 2004 From: roger125 at ...162... (Roger Hallgren) Date: Tue, 14 Sep 2004 11:01:32 -0700 Subject: [Gambas-devel] New Timer Function Message-ID: <414731FC.8020002@...162...> I'd like to see a new Timer fuction added to Gambas that works like VB's Timer, maybe name it Timer2 ... In VB the Timer returns the time since midnight in milliseconds then resets to zero at midnight and starts over. Thanks for reading this. Roger Hallgren From Karl.Reinl at ...16... Wed Sep 15 00:38:22 2004 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Tue, 14 Sep 2004 22:38:22 +0000 Subject: [Gambas-devel] PrettyPrinter-0.2.4 (for gambas-0.99) Message-ID: <200409142238.22363.Karl.Reinl@...16...> Salut, here is the new version of Gambas PrettyPrinter, written in Gambas. NOT to use with gambas version befor 0.99. Changes: see included ChangeLog Aamicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: PrettyPrinter-0.2.4.tar.gz Type: application/x-tgz Size: 19445 bytes Desc: not available URL: From gambas at ...1... Wed Sep 15 14:19:06 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 15 Sep 2004 14:19:06 +0200 Subject: [Gambas-devel] expat and XML trial report of R.O. In-Reply-To: <200409141517.21307.ronstk@...124...> References: <200409141517.21307.ronstk@...124...> Message-ID: <200409151419.06165.gambas@...1...> On Tuesday 14 September 2004 15:17, ron wrote: > Thanks Christian, Daniel, > > I managed to get Daniels work in the build tree of gambas. > The expatc was compiling and working, last week. > In the weekend I updated KDE from 3.2 to 3.3 > > But still some questions. > I'm standing alone, only Win... users arround me. :( > --------------- > My system: > SuSE 8.2 > cc --version:cc (GCC) 3.3 20030226 (prerelease) (SuSE Linux) > automake --version:automake (GNU automake) 1.7.6 > autoconf --version:autoconf (GNU Autoconf) 2.57 > > gambas 0.99 :=) > > The lib for expat is /usr/lib/libexpat.* > The include is /usr/include/expat.h > Version ?.?.? (not in file) > > The lib for xml is /usr/lib/libxml2.* > The include is in /usr/include/libxml2/libxml/* > version 2.5.11 > ---------------- > First what I did to paste it in. > Despite expat and lib xml now discused as one I did the expat only > and it worked before. > I did follow the basic instruction Benoit posted here before. > Then the fresh compile instructions. > reconf/configure/make and make install > After adding the gbxml part as xml I did > make clean/reconf/configure/make and make install > At this time the binaries of expat is gone? > expat does not compile now. > ------------------ > ('** lines' are not in file but my comment now) > > ** configure.in: Add after > dnl ---- Check for threading > > GB_THREAD() > ** this section > dnl ---- Check for expath library > > GB_COMPONENT( > expatc, > EXPATC, > [expatc component], > [GB_FIND(expat.h, /usr/local /usr, include )], > [GB_FIND(libexpat.$SHLIBEXT, /usr/local /usr, lib)], > [$C_LIB -lexpatc]) ** <-- not sure this is right > > dnl ---- Check for libxml library > > GB_COMPONENT( > xml, > XML, > [XML component], > dnl [GB_FIND(xmlversion.h, /usr/local /usr, include )], > dnl [GB_FIND(libxml2.$SHLIBEXT, /usr/local /usr, lib)], > [$C_LIB -lxml]) ** <-- not sure this is right > > ** I had to add the 2 dnl to get gbxml get in (gbxml is changed to xml) GB_COMPONENT must be able to find the includes and the libraries. Just change the search path so that it works. [GB_FIND(xmlversion.h, /usr/local /usr, include include/libxml* include/libxml*/* )], [GB_FIND(libxml2.$SHLIBEXT, /usr/local /usr, lib)], Otherwise, compilation will fails because of missing include paths, linking will fail unless libraries are in /lib and /usr/lib, and surely other problems... > > ** In the AC_OUTPUT I add at the end before ')' > src/lib/expatc/Makefile \ > src/lib/xml/Makefile \ > > ** in Makefile.am in the src/lib directory > SUBDIRS = debug eval db compress @QT_DIR@ @NET_DIR@ @SDL_DIR@ @VB_DIR@ > ** to > SUBDIRS = debug eval db compress @QT_DIR@ @NET_DIR@ @SDL_DIR@ @VB_DIR@ > @EXPATC_DIR@ @XML_DIR@ > > ** for expat no other changes. > > ** The expat problems just started after the make clean was done. > > static void XMLCALL > startElement(void *_object, const char *name, const char **atts) > { > int i; > GB_COLLECTION col; > GB_STRING v; > //GB_VALUE v; > > ** gives me a error for line 24 now > DPIC -o expatc.lo > expatc.c:24: error: parse error before "startElement" > expatc.c:25: warning: return type defaults to `int' > expatc.c: In function `startElement': > ** and is gone when i change to > > static void XMLCALL startElement(void *_object, const char *name, const > char **atts) { > > ** All procedure lines made in 2 lines give this error so and > ** is gone after merge together them as above. > ** The warning on line 25 is found on more lines and can be true > ** or is due the cc(3.3) from suse8.2 > ------------------------ > The major diff between the orginal and fresh make for Makefile is many > lines. I add then as Makefile.org and Mafefile.ron just in case. > Same for the Makefile.in, and I understand they should/could be but I > belive here to much. > > For the gbxml of Daniel the changes are as above and the rename of 'gbxml' > to 'xml' in files and for filenames. I used the gbxml-1.tar.bz2 (70kb) > > > ** in the src/lib/xml/Makefile.am > INCLUDES = -I$(top_srcdir)/src/share -I/usr/include/libxml2 > EXTRA_DIST = *.component > > pkglib_LTLIBRARIES = lib.gb.gbxml.la > > lib_gb_gbxml_la_LIBADD = > lib_gb_gbxml_la_LDFLAGS = -lxml2 -lz -lpthread -lm > > lib_gb_gbxml_la_SOURCES = main.h main.c XMLTree.h XMLTree.c > > ** changed to > INCLUDES = -I$(top_srcdir)/src/share -I/usr/include/libxml2 @XML_INC@ > EXTRA_DIST = *.component > > pkglib_LTLIBRARIES = lib.gb.xml.la > > lib_gb_xml_la_LIBADD = @XML_INC@ ** <-- example instuction say this > lib_gb_xml_la_LDFLAGS = -lxml2 -lz -lpthread -lm > > lib_gb_xml_la_SOURCES = main.h main.c XMLTree.h XMLTree.c > > ** sofar gbxml as xml > I belive the problem with xml is mainly in the GB_COMPONENT and > the src/lib/makefile.in. > > Because I wish to go on I did now the following. > I know it is may be the wrong way but works. > add dnl to the lines of the expat component. > add dnl to the line src/lib/expatc/Makefile \ in AC_OUTPUT > In the makefile.am in src/lib made a copy of the SUBDIRS line > Put a # in front for the first line and removed the @EXPATH_DIR@ in the > second one the reconf/configure and make > expath is gone Ready to go for xml. > Without fatal errors now, only warnings. > > XMLTree.c: In function `CXMLDOC_Save': > XMLTree.c:76: warning: unused variable `_p' > XMLTree.c: In function `XML_Unparent_Children': > XMLTree.c:317: warning: int format, pointer arg (arg 2) > XMLTree.c:318: warning: int format, long int arg (arg 2) > XMLTree.c:324: warning: int format, pointer arg (arg 2) > XMLTree.c:325: warning: passing arg 1 of pointer to function from > incompatible pointer type > > do the 'make install' > Start gambas and found xml. :) The expath still there, leftover i asume. > > My main question is de declaration for the GB_COMPONENT. > How should it be really? > special the [$C_LIB -lexpatc]) line > > For the makefile.am the line with > lib_gb_xml_la_LIBADD = @XML_INC@ ** <-- example instuction say this > because the line for expat is still empty. > lib_gb_expat_la_LIBADD = > and works(ed) > > The simple test for the xml made by Daniel: > > ' Gambas class file > 'STATIC PUBLIC xmld AS XMLDoc > PUBLIC xmln AS XMLNode > > PUBLIC SUB btnOK_Click() > textbox1.Text="./channels.xml" > 'textbox1.Text="./test.xml" > 'xmld = NEW XMLDoc '(textbox1.Text) 'static error :) > 'xmln = NEW XMLNode > xmln=xmldoc.Load(textbox1.text) > PRINT "name="; xmln.Name 'ok is kwintv > PRINT "children="; xmln.HasChildren 'ok > 'PRINT "count="; childcount(xmln) > PRINT "parent="; xmln.HasParent > '? says true but at start I should at root and can't have parents ?? > > ' ME.Close(TRUE) > END > > > channels.xml > > > > > > I feel good with it, the basic start is there. -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed Sep 15 14:20:29 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 15 Sep 2004 14:20:29 +0200 Subject: [Gambas-devel] New Timer Function In-Reply-To: <414731FC.8020002@...162...> References: <414731FC.8020002@...162...> Message-ID: <200409151420.29206.gambas@...1...> On Tuesday 14 September 2004 20:01, Roger Hallgren wrote: > I'd like to see a new Timer fuction added to Gambas that works like VB's > Timer, maybe name it Timer2 ... In VB the Timer returns the time since > midnight in milliseconds then resets to zero at midnight and starts over. > > Thanks for reading this. > Roger Hallgren > > Another lazy man :-) FUNCTION Timer2() AS Float RETURN CFloat(Frac(Now)) * 1000 END -- Benoit Minisini mailto:gambas at ...1... From roger125 at ...162... Wed Sep 15 17:55:43 2004 From: roger125 at ...162... (Roger Hallgren) Date: Wed, 15 Sep 2004 08:55:43 -0700 Subject: [Gambas-devel] New Timer Function again Message-ID: <414865FF.8030207@...162...> On Tuesday 14 September 2004 20:01, Roger Hallgren wrote: > I"d like to see a new Timer fuction added to Gambas that works like VB"s > Timer, maybe name it Timer2 ... In VB the Timer returns the time since > midnight in milliseconds then resets to zero at midnight and starts over. > > Thanks for reading this. > Roger Hallgren > > >Another lazy man :-) > >FUNCTION Timer2() AS Float > > RETURN CFloat(Frac(Now)) * 1000 > >END > >-- >Benoit Minisini You called me lazy :-( .. I thought you wanted ideas for new functions in Gambas. I'm old so be nice .. :-) The above code you replied with seems to just give a error .. (Type mismatch: wanted Number, got Date instead) Thanks again! Roger Hallgren From ronstk at ...124... Wed Sep 15 23:11:37 2004 From: ronstk at ...124... (ron) Date: Wed, 15 Sep 2004 23:11:37 +0200 Subject: [Gambas-devel] expat and XML trial report of R.O. In-Reply-To: <200409151419.06165.gambas@...1...> References: <200409141517.21307.ronstk@...124...> <200409151419.06165.gambas@...1...> Message-ID: <200409152311.38532.ronstk@...124...> On Wednesday 15 September 2004 14:19, Benoit Minisini wrote: > On Tuesday 14 September 2004 15:17, ron wrote: > > > > GB_COMPONENT( > > expatc, > > EXPATC, > > [expatc component], > > [GB_FIND(expat.h, /usr/local /usr, include )], > > [GB_FIND(libexpat.$SHLIBEXT, /usr/local /usr, lib)], > > [$C_LIB -lexpatc]) ** <-- not sure this is right > > > > dnl ---- Check for libxml library > > > > GB_COMPONENT( > > xml, > > XML, > > [XML component], > > dnl [GB_FIND(xmlversion.h, /usr/local /usr, include )], > > dnl [GB_FIND(libxml2.$SHLIBEXT, /usr/local /usr, lib)], > > [$C_LIB -lxml]) ** <-- not sure this is right > > > > ** I had to add the 2 dnl to get gbxml get in (gbxml is changed to xml) > > GB_COMPONENT must be able to find the includes and the libraries. Just change > the search path so that it works. > > [GB_FIND(xmlversion.h, /usr/local /usr, include include/libxml* include/libxml*/* )], > [GB_FIND(libxml2.$SHLIBEXT, /usr/local /usr, lib)], > > Otherwise, compilation will fails because of missing include paths, linking > will fail unless libraries are in /lib and /usr/lib, and surely other > problems... > Yessss. Your my man ;) Well the problem with the two line I found was right. Most suspected was the first one. Thats solved and works now as should do. In fact when I'm right in this case it is looking for a *.h file to know the xyz-devel is installed. Witch one is not important. Open the line with > > [$C_LIB -lxml]) ** <-- not sure this is right I have found other construction but I copied the 'int' as template. I assume it is -l[name_of_something] I did guess on xml is OK, it works, but not sure it is correct. Any quick reference to what it must be is welcome. From gambas at ...1... Thu Sep 16 10:51:57 2004 From: gambas at ...1... (Benoit Minisini) Date: Thu, 16 Sep 2004 10:51:57 +0200 Subject: [Gambas-devel] New Timer Function again In-Reply-To: <414865FF.8030207@...162...> References: <414865FF.8030207@...162...> Message-ID: <200409161051.57654.gambas@...1...> On Wednesday 15 September 2004 17:55, Roger Hallgren wrote: > On Tuesday 14 September 2004 20:01, Roger Hallgren wrote: > > I"d like to see a new Timer fuction added to Gambas that works like VB"s > > Timer, maybe name it Timer2 ... In VB the Timer returns the time since > > midnight in milliseconds then resets to zero at midnight and starts > > over. > > > > Thanks for reading this. > > Roger Hallgren > > > > > > > >Another lazy man :-) > > > >FUNCTION Timer2() AS Float > > > > RETURN CFloat(Frac(Now)) * 1000 > > > >END > > > >-- > >Benoit Minisini > > You called me lazy :-( .. I thought you wanted ideas for new functions in > Gambas. I'm old so be nice .. :-) > > The above code you replied with seems to just give a error .. (Type > mismatch: wanted Number, got Date instead) > > Thanks again! > Roger Hallgren > Ha! I didn't put the conversion at the right place. So... RETURN Frac(CFloat(Now)) * 1000 Regards, -- Benoit Minisini mailto:gambas at ...1... From jredrejo at ...101... Sun Sep 19 11:23:59 2004 From: jredrejo at ...101... (=?ISO-8859-1?Q?Jos=E9?= L. Redrejo =?ISO-8859-1?Q?Rodr=EDguez?=) Date: Sun, 19 Sep 2004 11:23:59 +0200 Subject: [Gambas-devel] Re: Debian stuff In-Reply-To: References: Message-ID: <1095585839.6960.42.camel@...134...> El mar, 07-09-2004 a las 05:29, gambas-devel-request at lists.sourceforge.net escribi?: > From: Benoit Minisini > To: gambas-devel at lists.sourceforge.net > Subject: Re: [Gambas-devel] Debian stuff > Date: Mon, 6 Sep 2004 20:56:50 +0200 > Reply-To: gambas-devel at lists.sourceforge.net > > On Monday 06 September 2004 13:59, Jos=E9 L. Redrejo Rodr=EDguez wrote: > > I am generating the Debian Packages for gambas and before the 1.0 > > release I would like to change the different generated packages. I would > > like to know if you have any policy about it. A reasonable one could be > > to make a gambas-runtime, gambas-ide, and one gambas-component for each > > component. A metapackage called gambas that installs all of them could > > also be useful. I would like to hear your opinion about this. > > > > On the other hand, I have a GREAT interest in making work the Debian > > Package generation for the 1.0 release. If I can help in any way (I have > > a deep knowledge of debian structures, but no so deep about the gambas > > IDE), please contact with me off-list. I would need to know where in the > > code is that part of the IDE. > > > > Regards. > > I think the spanish answer of Alberto has explained everything. > > There is already a debian packager, as you can see on the download page of = > the=20 > web site, but I think they are not up to date. > > Contact him so that you can share the packaging task. I am that debian packager ;-) > > By reading the Mandrake .spec file, I think you can understand what package= > s=20 > you must do, and what you must put inside. > I will send you the new debian tree of the gambas sources in the next two days, if anyone wants to suggest something it is time to do it right now. > Ask me every question you need! But I think we should stay on the=20 > mailing-list, because what we say can interest other people. > I also want to fix the debian packages creation from gambas ide (Project ->Make installation Package) that doesn't work at all. Tell me if somebody has already begun to do that work, and if you think I will have time enough to do it before the 1.0 release. Regards. From gambas at ...1... Sun Sep 19 16:06:49 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 19 Sep 2004 16:06:49 +0200 Subject: [Gambas-devel] Re: Debian stuff In-Reply-To: <1095585839.6960.42.camel@...134...> References: <1095585839.6960.42.camel@...134...> Message-ID: <200409191606.49644.gambas@...1...> On Sunday 19 September 2004 11:23, Jos? L. Redrejo Rodr?guez wrote: > El mar, 07-09-2004 a las 05:29, > > gambas-devel-request at lists.sourceforge.net escribi?: > > From: Benoit Minisini > > To: gambas-devel at lists.sourceforge.net > > Subject: Re: [Gambas-devel] Debian stuff > > Date: Mon, 6 Sep 2004 20:56:50 +0200 > > Reply-To: gambas-devel at lists.sourceforge.net > > > > On Monday 06 September 2004 13:59, Jos=E9 L. Redrejo Rodr=EDguez wrote: > > > I am generating the Debian Packages for gambas and before the 1.0 > > > release I would like to change the different generated packages. I > > > would like to know if you have any policy about it. A reasonable one > > > could be to make a gambas-runtime, gambas-ide, and one gambas-component > > > for each component. A metapackage called gambas that installs all of > > > them could also be useful. I would like to hear your opinion about > > > this. > > > > > > On the other hand, I have a GREAT interest in making work the Debian > > > Package generation for the 1.0 release. If I can help in any way (I > > > have a deep knowledge of debian structures, but no so deep about the > > > gambas IDE), please contact with me off-list. I would need to know > > > where in the code is that part of the IDE. > > > > > > Regards. > > > > I think the spanish answer of Alberto has explained everything. > > > > There is already a debian packager, as you can see on the download page > > of = the=20 > > web site, but I think they are not up to date. > > > > Contact him so that you can share the packaging task. > > I am that debian packager ;-) > > > By reading the Mandrake .spec file, I think you can understand what > > package= s=20 > > you must do, and what you must put inside. > > I will send you the new debian tree of the gambas sources in the next > two days, if anyone wants to suggest something it is time to do it right > now. > > > Ask me every question you need! But I think we should stay on the=20 > > mailing-list, because what we say can interest other people. > > I also want to fix the debian packages creation from gambas ide (Project > ->Make installation Package) that doesn't work at all. Tell me if > somebody has already begun to do that work, and if you think I will have > time enough to do it before the 1.0 release. What are the problems exactly ? -- Benoit Minisini mailto:gambas at ...1... From jredrejo at ...101... Sun Sep 19 19:04:22 2004 From: jredrejo at ...101... (=?ISO-8859-1?Q?Jos=E9?= L. Redrejo =?ISO-8859-1?Q?Rodr=EDguez?=) Date: Sun, 19 Sep 2004 19:04:22 +0200 Subject: [Gambas-devel] Re: Debian stuff In-Reply-To: <200409191606.49644.gambas@...1...> References: <1095585839.6960.42.camel@...134...> <200409191606.49644.gambas@...1...> Message-ID: <1095613462.6960.71.camel@...134...> El dom, 19-09-2004 a las 16:06, Benoit Minisini escribi?: > > > Ask me every question you need! But I think we should stay on the=20 > > > mailing-list, because what we say can interest other people. > > > > I also want to fix the debian packages creation from gambas ide (Project > > ->Make installation Package) that doesn't work at all. Tell me if > > somebody has already begun to do that work, and if you think I will have > > time enough to do it before the 1.0 release. > > What are the problems exactly ? Well, it tries to make Mandrake packages when you select to make Debian packages. As an example, I have tried to package the DataReportExample included in gambas. This is the log that appears in the packaging window: ############################# Creating package for Debian. Initializing ~/RPM directory. Creating source package. Creating .spec file. Creating RPM packages. The package build has failed. Executing(%prep): /bin/sh -e /home/jose/RPM/tmp/rpm-tmp.58208 + umask 022 + cd /home/jose/RPM/BUILD + rm -rf /home/jose/RPM/tmp/datareportexample-buildroot + cd /home/jose/RPM/BUILD + rm -rf DataReportExample + /usr/bin/bzip2 -dc /home/jose/RPM/SOURCES/datareportexample-0.0.tar.bz2 + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd DataReportExample + exit 0 Executing(%build): /bin/sh -e /home/jose/RPM/tmp/rpm-tmp.58208 + umask 022 + cd /home/jose/RPM/BUILD + cd DataReportExample + /usr/bin/gbc -a -p OK + gba + ############################ And after that a message saying that "The package build has failed" In the terminal where I open gambas from, I can see many more messages: ########################################## Executing(%prep): /bin/sh -e /home/jose/RPM/tmp/rpm-tmp.58208 + umask 022 + cd /home/jose/RPM/BUILD + rm -rf /home/jose/RPM/tmp/datareportexample-buildroot + cd /home/jose/RPM/BUILD + rm -rf DataReportExample + /usr/bin/bzip2 -dc /home/jose/RPM/SOURCES/datareportexample-0.0.tar.bz2 + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd DataReportExample + exit 0 Executing(%build): /bin/sh -e /home/jose/RPM/tmp/rpm-tmp.58208 + umask 022 + cd /home/jose/RPM/BUILD + cd DataReportExample + /usr/bin/gbc -a -p OK + gba + exit 0 Executing(%install): /bin/sh -e /home/jose/RPM/tmp/rpm-tmp.58208 + umask 022 + cd /home/jose/RPM/BUILD + cd DataReportExample + install -d /home/jose/RPM/tmp/datareportexample-buildroot/usr/bin + install -p DataReportExample /home/jose/RPM/tmp/datareportexample-buildroot/us r/bin/datareportexample + install -d /home/jose/RPM/tmp/datareportexample-buildroot//usr/share/pixmaps + install -p .icon/32.png /home/jose/RPM/tmp/datareportexample-buildroot//usr/sh are/pixmaps/datareportexample.png + install -d /home/jose/RPM/tmp/datareportexample-buildroot//usr/lib/menu + cat + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip + /usr/lib/rpm/brp-strip-comment-note Processing files: datareportexample-0.0-1 error: File not found: /home/jose/RPM/tmp/datareportexample-buildroot/usr/share/ menu/datareportexample Requires: gambas-runtime >= 0.95 gambas-runtime <= 1.0 gambas-gb-db >= 0.95 gamb as-gb-db <= 1.0 gambas-gb-qt >= 0.95 gambas-gb-qt <= 1.0 gambas-gb-qt-ext >= 0.9 5 gambas-gb-qt-ext <= 1.0 gambas-gb-qt-kde >= 0.95 gambas-gb-qt-kde <= 1.0 gamba s-gb-qt-kde-html >= 0.95 gambas-gb-qt-kde-html <= 1.0 RPM build errors: File not found: /home/jose/RPM/tmp/datareportexample-buildroot/usr/share/men u/datareportexample ########################################### More information: I asked gambas to build the packages in a directory called /home/jose/instal, but it uses /home/jose/RPM. On the other hand, this is not the structure for Debian packages. I haven't tested this feature in previous versions of gambas, so I don't know if this is a new bug or Debian packages have never been done. I don't know too much about RPM packaging, but looking at Package.module in gambas sources it looks quite different of what deb packages need to be built. I have seen that you try to build debian packages using alien after generating rpm packages, but this uses to fail because all the tools to build a rpm package are needed. Those tools are not installed in a debian system by default (debian rpm package exists and it has most of them as brp-compress, brp-..., but they are not enough as I see) , so maybe it would be easy to build debian packages in a Mandrake box, but not in a Debian box, what makes not too much sense. Reading the above logs I can also check two things more: the name of the standard debian packages has to be those you put in Mandrake (no problem with that, I have also finished them) and the /home/jose/RPM/tmp/datareportexample-buildroot/usr/share/menu directory hasn't been created, I haven't been able to find how or where it should have been created. I hope this will help to find out the problem. Regards. From Karl.Reinl at ...16... Sun Sep 19 21:57:33 2004 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Sun, 19 Sep 2004 19:57:33 +0000 Subject: [Gambas-devel] PrettyPrinter for use in IDE Message-ID: <200409191957.33249.Karl.Reinl@...16...> Salut, I send you the PrettyPrinter, included into the IDE, for that I had to change FEditor.form and *.class. These files comme with the code. If you like to have a go, please, don't do it in your ../gambas-0.99/app/gambas make a copy from that directory Then merge the changes by copiing PPinstall/app/gambas/* to your test-IDE You find the PrettyPrinter in the Contextmenu of the IDE-Editor. You should NOT work on real projects, try it with copys of your projects first. OR on your copy of the IDE. Attention: the PrettyPrinter in the Editor menu is not managed, so you can change you sourcecode during debugging !!!! Aamicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: PPinstall.tar.bz2 Type: application/x-tbz Size: 19902 bytes Desc: not available URL: From danielcampos at ...45... Sun Sep 19 23:43:14 2004 From: danielcampos at ...45... (Daniel Campos) Date: Sun, 19 Sep 2004 23:43:14 +0200 Subject: [Gambas-devel] Another approach to XML Message-ID: <1095630194.14937.12.camel@...102...> Hi! Here's my first libxml "release". This just uses the "xmlreader" and "xmlwriter" API from LibXML (nothing about DOM or SAX here, by now) Note that i'm using LibXML 2.6.13, and I know that older versions, that come with Mandrake 9.2, for example, does not contain the xmlwriter API, so It will not compile using that old versions :-((. This component has been written using gambas 0.99, I don't know if it can work with older versions. I also send the HttpPost example modified so it uses XmlRead and XmlWrite objects to read and write data, as an example. I also send the .component, .info and .list files for that component. Note that expatc approach is very different (parsing using events - SAX), and expatc library is much lighter than libxml, so consideer what of both components is the right one for your project... Regards, Daniel Campos For Jos? L. Redrejo: ?Tal vez te sirva para el show? Me he pegado la paliza para terminarlo hoy :-))) -------------- next part -------------- A non-text attachment was scrubbed... Name: libxml-0.0.1.tar.bz2 Type: application/x-bzip-compressed-tar Size: 5194 bytes Desc: not available URL: -------------- next part -------------- [Component] Key=gb.xml.libxml Name=XML tools based on libxml Name[es]=Herramientas XML basadas en libxml Author=Daniel Campos Fern??ndez -------------- next part -------------- #.XmlAttributes _next m .XmlReaderNode Count r i #.XmlReaderNode Attributes r b Type r i Name r s Value r s #XmlReader C None C i 0 Element C i 1 Attribute C i 2 Text C i 3 CDATA C i 4 EntityReference C i 5 Entity C i 6 ProcessingInstruction C i 7 Comment C i 8 Document C i 9 DocumentType C i 10 DocumentFragment C i 11 Notation C i 12 Whitespace C i 13 SignificantWhitespace C i 14 EndElement C i 15 EndEntity C i 16 XmlDeclaration C i 17 Attributes r .XmlAttributes _free m Open m (FileName)s Close m FromString m (Buffer)s[(URL)s] Read m Eof r b Node r .XmlReaderNode #XmlWriter C ToString m s _free m Open m (FileName)s[(Encoding)s] Close m StartElement m (Name)s EndElement m Attribute m (Name)s(Value)s Element m (Name)s(Value)s Comment m (Comment)s EndDocument m -------------- next part -------------- XmlAttributes XmlReaderNode XmlReader XmlWriter -------------- next part -------------- A non-text attachment was scrubbed... Name: HTTPPost-XML.tar.gz Type: application/x-compressed-tar Size: 3082 bytes Desc: not available URL: From ronstk at ...124... Tue Sep 21 00:38:59 2004 From: ronstk at ...124... (ron) Date: Tue, 21 Sep 2004 00:38:59 +0200 Subject: [Gambas-devel] PrettyPrinter for use in IDE In-Reply-To: <200409191957.33249.Karl.Reinl@...16...> References: <200409191957.33249.Karl.Reinl@...16...> Message-ID: <200409210039.01632.ronstk@...124...> On Sunday 19 September 2004 21:57, Charlie Reinl wrote: > Salut, > > I send you the PrettyPrinter, included into the IDE, for that I had to change > FEditor.form and *.class. > > These files comme with the code. > > If you like to have a go, please, don't do it in your > ../gambas-0.99/app/gambas make a copy from that directory > > Then merge the changes by copiing PPinstall/app/gambas/* to your test-IDE > > You find the PrettyPrinter in the Contextmenu of the IDE-Editor. > > You should NOT work on real projects, try it with copys of your projects > first. OR on your copy of the IDE. > > Attention: the PrettyPrinter in the Editor menu is not managed, so you can > change you sourcecode during debugging !!!! > > Aamicalement > Charlie > I did and I'm happy :) Good work Charlie, how survive your keyboard and fingers? I'll keep it in the editor for further usage/testing. Some notes: 1) The DIM in a procedure code blocks. If I check only 'Indent every..' the DIM's are aligned indented. If I check 'Align in Dim (...)' it is not done anymore. 'Align in Dim' must checked for the global part to get it table like, but then the DIM is not indent anymore in the proc's. 2) Delete empty lines is nice but keep at least 1 line on top of the procedure. In the editor you can see it easy by the small line but not on paper. 3) After 'Indent All' the are blank lines add to the end of the file. Maybe strip all blank lines at the end, but leave 1 line. As room for the paste code during cut/past operations. 4) May be try to separate the options for the global section end the procedure blocks. 5) I belive 'Adjust All' and 'Adjust Proc' are better, it's a taste. label 'Indenting Options' may be better 'Adjusting options. The Adjust instead Indent is because not everything is indented but more reformat in position in/out-denting :) 6) One tip for 'Deleting empty lines', I like to keep after a 'END??' a blank line. Rule: if instr(line,"end") and instr(nextline,"end")=false then add/keep blank line. The third IF statement block. This solves also the the separation between procedures. Example for the point 6. PRIVATE SUB DoIt(sFile AS String) DIM sLine AS String DIM bWriteLine AS Boolean IF today = 12 THEN today = 13 IF chkEmpty.value AND Trim(sLine) <> "" THEN ' comment sLine = RTrim$(sLine) bWriteLine = TRUE ENDIF ' SUB / Function END IF Upper$(Trim(sLine)) = Upper$("END") THEN IF chkLineSep THEN sLine = sLine & CONST_LINE bWriteLine = TRUE ENDIF END IF ' Select Case SELECT CASE i CASE 1 MsgBox "1" ' can you solve here to a blank line. ? CASE 2 IF x = 3 THEN Message.Info("2") Message.Info("3") Message.Info("4") DEFAULT Message.Info("Arg...") END SELECT WITH i i = i END WITH END From karl.reinl at ...16... Tue Sep 21 19:56:00 2004 From: karl.reinl at ...16... (Charlie) Date: Tue, 21 Sep 2004 19:56:00 +0200 Subject: [Gambas-devel] PrettyPrinter for use in IDE References: <200409191957.33249.Karl.Reinl@...16...> <200409210039.01632.ronstk@...124...> Message-ID: <41506B30.7020809@...16...> ron schrieb: >On Sunday 19 September 2004 21:57, Charlie Reinl wrote: > > >>Salut, >> >>I send you the PrettyPrinter, included into the IDE, for that I had to change >>FEditor.form and *.class. >> >>These files comme with the code. >> >>If you like to have a go, please, don't do it in your >> ../gambas-0.99/app/gambas make a copy from that directory >> >>Then merge the changes by copiing PPinstall/app/gambas/* to your test-IDE >> >>You find the PrettyPrinter in the Contextmenu of the IDE-Editor. >> >>You should NOT work on real projects, try it with copys of your projects >>first. OR on your copy of the IDE. >> >>Attention: the PrettyPrinter in the Editor menu is not managed, so you can >> change you sourcecode during debugging !!!! >> >>Aamicalement >>Charlie >> >> >> > >I did and I'm happy :) >Good work Charlie, how survive your keyboard and fingers? >I'll keep it in the editor for further usage/testing. > >Some notes: > >1) >The DIM in a procedure code blocks. >If I check only 'Indent every..' the DIM's are aligned indented. >If I check 'Align in Dim (...)' it is not done anymore. >'Align in Dim' must checked for the global part to get it table like, >but then the DIM is not indent anymore in the proc's. > OK I see,have to fix it. > >2) >Delete empty lines is nice but keep at least 1 line on top of the procedure. >In the editor you can see it easy by the small line but not on paper. > Yeah, Beno?t talked also about, but I thought the blue line is good. ( working on white Background) And I'v never printed gambas-sourcecode OK > >3) >After 'Indent All' the are blank lines add to the end of the file. >Maybe strip all blank lines at the end, but leave 1 line. >As room for the paste code during cut/past operations. > > Yes i know, I had the problem in the C-variant. They are not added, I just shift the lines up ( 2 counters , 1 for the line to read , 1 for the line to write to) But I think that will be the lst job I do , just before finish it. > >4) >May be try to separate the options for the global section end the procedure blocks. > I think that should be an Option, no. (Sorry do you have a name for this?) > >5) >I belive 'Adjust All' and 'Adjust Proc' are better, it's a taste. >label 'Indenting Options' may be better 'Adjusting options. >The Adjust instead Indent is because not everything is indented >but more reformat in position in/out-denting :) > You talk about PrettyPrinter Settings. The Buttons etc ? > >6) >One tip for 'Deleting empty lines', I like to keep after a 'END??' a blank line. >Rule: if instr(line,"end") and instr(nextline,"end")=false then add/keep blank line. >The third IF statement block. >This solves also the the separation between procedures. > > You mean , in case if there is not, add one ? >Example for the point 6. > >PRIVATE SUB DoIt(sFile AS String) >DIM sLine AS String >DIM bWriteLine AS Boolean > > IF today = 12 THEN today = 13 > > IF chkEmpty.value AND Trim(sLine) <> "" THEN ' comment > sLine = RTrim$(sLine) > bWriteLine = TRUE > ENDIF > >' SUB / Function END > IF Upper$(Trim(sLine)) = Upper$("END") THEN > IF chkLineSep THEN > sLine = sLine & CONST_LINE > bWriteLine = TRUE > ENDIF > END IF > >' Select Case > SELECT CASE i > CASE 1 > MsgBox "1" > ' can you solve here to a blank line. ? > CASE 2 > IF x = 3 THEN Message.Info("2") > Message.Info("3") > Message.Info("4") > > DEFAULT > Message.Info("Arg...") > > END SELECT > > WITH i > i = i > END WITH > >END > > > Amicalement Charlie From ronstk at ...124... Wed Sep 22 04:33:59 2004 From: ronstk at ...124... (ron) Date: Wed, 22 Sep 2004 04:33:59 +0200 Subject: [Gambas-devel] PrettyPrinter for use in IDE In-Reply-To: <41506B30.7020809@...16...> References: <200409191957.33249.Karl.Reinl@...16...> <200409210039.01632.ronstk@...124...> <41506B30.7020809@...16...> Message-ID: <200409220434.01326.ronstk@...124...> On Tuesday 21 September 2004 19:56, Charlie wrote: > ron schrieb: > >but then the DIM is not indent anymore in the proc's. > > > OK I see,have to fix it. thank you on behalf the rest of the word. :) > > > > >2) > >Delete empty lines is nice but keep at least 1 line on top of the procedure. > >In the editor you can see it easy by the small line but not on paper. > > > Yeah, Beno?t talked also about, but I thought the blue line is good. ( > working on white Background) > And I'v never printed gambas-sourcecode > Blue line? I do not have a color printer at all :( > OK > > > > >3) > >After 'Indent All' the are blank lines add to the end of the file. > >Maybe strip all blank lines at the end, but leave 1 line. > >As room for the paste code during cut/past operations. > > > > > Yes i know, I had the problem in the C-variant. > They are not added, I just shift the lines up ( 2 counters , 1 for the > line to read , 1 for the line to write to) > But I think that will be the lst job I do , just before finish it. > blink > > > >4) > >May be try to separate the options for the global section end the procedure blocks. > > > I think that should be an Option, no. (Sorry do you have a name for this?) > A frame with label 'Global Settings' and a smaller frame with label 'Procedure Settings' in the lower part of the 'Global Adjust' this represent also the hierarchy of the 2 settings. > > > >5) > >I belive 'Adjust All' and 'Adjust Proc' are better, it's a taste. > >label 'Indenting Options' may be better 'Adjusting options. Uhhh yes 'Global Settings' and 'Procedure Settings > >The Adjust instead Indent is because not everything is indented > >but more reformat in position in/out-denting :) > > > You talk about PrettyPrinter Settings. The Buttons etc ? > Yes the 2 buttons with 'Indent xxx' to 'Adjust xxx' > > > >6) > >One tip for 'Deleting empty lines', I like to keep after a 'END??' a blank line. > >Rule: if instr(line,"end") and instr(nextline,"end")=false then add/keep blank line. > >The third IF statement block. > >This solves also the the separation between procedures. > > > > > You mean , in case if there is not, add one ? Exactly Your my man :) This way you get a nice IF/WHILE/DO statement block and see the different parts easy. as shown in the example below > > >Example for the point 6. > > > >PRIVATE SUB DoIt(sFile AS String) > >DIM sLine AS String > >DIM bWriteLine AS Boolean > > > > IF today = 12 THEN today = 13 > > > > IF chkEmpty.value AND Trim(sLine) <> "" THEN ' comment > > sLine = RTrim$(sLine) > > bWriteLine = TRUE > > ENDIF > > > >' SUB / Function END > > IF Upper$(Trim(sLine)) = Upper$("END") THEN > > IF chkLineSep THEN > > sLine = sLine & CONST_LINE > > bWriteLine = TRUE > > ELSE > > 'let it be, let it be Song from the beatles > > ENDIF > > END IF > > > >' Select Case > > SELECT CASE i > > CASE 1 > > MsgBox "1" > > ' can you solve here to a blank line. ? > > CASE 2 > > IF x = 3 THEN Message.Info("2") > > Message.Info("3") > > Message.Info("4") > > > > DEFAULT > > Message.Info("Arg...") > > > > END SELECT > > > > WITH i > > i = i > > END WITH > > > >END > > > > > > > Amicalement > Charlie > From gambas at ...1... Wed Sep 22 10:40:58 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 22 Sep 2004 10:40:58 +0200 Subject: [Gambas-devel] Another approach to XML In-Reply-To: <1095630194.14937.12.camel@...102...> References: <1095630194.14937.12.camel@...102...> Message-ID: <200409221040.58308.gambas@...1...> On Sunday 19 September 2004 23:43, Daniel Campos wrote: > Hi! > > Here's my first libxml "release". This just uses the "xmlreader" and > "xmlwriter" API from LibXML (nothing about DOM or SAX here, by now) > > Note that i'm using LibXML 2.6.13, and I know that older versions, that > come with Mandrake 9.2, for example, does not contain the xmlwriter API, > so It will not compile using that old versions :-((. > > This component has been written using gambas 0.99, I don't know if it > can work with older versions. > > I also send the HttpPost example modified so it uses XmlRead and > XmlWrite objects to read and write data, as an example. > > I also send the .component, .info and .list files for that component. > > Note that expatc approach is very different (parsing using events - > SAX), and expatc library is much lighter than libxml, so consideer what > of both components is the right one for your project... > > Regards, > > Daniel Campos > > > For Jos? L. Redrejo: > > ?Tal vez te sirva para el show? Me he pegado la paliza para terminarlo > hoy :-))) Just a note: The info and list files are not necessary, as they are automatically generated by the 'gbi -a' command. Regards, -- Benoit Minisini mailto:gambas at ...1... From jredrejo at ...101... Wed Sep 22 13:42:13 2004 From: jredrejo at ...101... (=?ISO-8859-1?Q?Jos=E9?= L. Redrejo =?ISO-8859-1?Q?Rodr=EDguez?=) Date: Wed, 22 Sep 2004 13:42:13 +0200 Subject: [Gambas-devel] debian packages for gambas In-Reply-To: <1095630194.14937.12.camel@...102...> References: <1095630194.14937.12.camel@...102...> Message-ID: <1095853333.6981.74.camel@...134...> I have modified the debian packages structure for Gambas according to the structure Beno?t has designed for Mandrake. There is only a couple of differences: - I have kept a "gambas" package for compatibility with previous versions. It is an empty transitional package with gambas-ide as a dependency and will disappear in the future. - I have created a gambas-doc package split from the gambas-ide package thinking in the future. If we get different translations of the documentation it would be useful to have gambas-doc-es (it is already being prepared), gambas-doc-fr, etc. The gambas-ide has now a gambas-doc dependency, but in the future that dependency could be something like gambas-doc|gambas-doc-es|gambas-doc-fr and spanish or french users will not need to install all the english docs. The rest of the packages are exactly the same Beno?t has prepared for Mandarake with identical files inside. Attached is the debian directory that has to replace the one that we have in Gambas sources. The README.DEBIAN file included in the sources contains wrong information and it should be deleted or replaced with the updated data. Something like: ########begin the text############ To use gambas packages you will need Debian Sarge or Sid at least. Woody Debian version doesn't work at all. If you want to create Gambas Debian packages from scratch just type "dpkg-buildpackage" inside the root Gambas sources. If you need to install some development packages in your system this command will tell you the names. If you want to install binary packages using apt, just add the following line to the "/etc/apt/sources.list" file: deb http://www.linex.org/sources/linex/debian/ cl gambas Then execute: apt-get update apt-get install gambas-ide ############################ The above sources.list line could be changed replacing "cl" by "sarge", that will be made all the Linex distro packages to the system, but it is not too useful if you are not using that distro. This information should also be updated in the gambas web page. At least the sources.list line. On the other hand, I haven't received any answer related to my question in the message http://sourceforge.net/mailarchive/forum.php?thread_id=5598316&forum_id=23560 I would like to know if Beno?t prefer that I modify the code to build original debian packages, or solve the problems building rpm packages in a Debian box. In the last case I will need help. Right now I don't know why the RPM/tmp/any_gambas_application-buildroot/usr/share/menu directory is not created in Debian. I think this is an important bug that should be solved before the 1.0 release. Suggestions and comments are welcome. Regards. -------------- next part -------------- A non-text attachment was scrubbed... Name: debian.tar.gz Type: application/x-compressed-tar Size: 11072 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Esta parte del mensaje est? firmada digitalmente URL: From gambas at ...1... Wed Sep 22 17:18:42 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 22 Sep 2004 17:18:42 +0200 Subject: [Gambas-devel] debian packages for gambas In-Reply-To: <1095853333.6981.74.camel@...134...> References: <1095630194.14937.12.camel@...102...> <1095853333.6981.74.camel@...134...> Message-ID: <200409221718.42742.gambas@...1...> On Wednesday 22 September 2004 13:42, Jos? L. Redrejo Rodr?guez wrote: > I have modified the debian packages structure for Gambas according to > the structure Beno?t has designed for Mandrake. There is only a couple > of differences: > - I have kept a "gambas" package for compatibility with previous > versions. It is an empty transitional package with gambas-ide as a > dependency and will disappear in the future. > - I have created a gambas-doc package split from the gambas-ide package > thinking in the future. If we get different translations of the > documentation it would be useful to have gambas-doc-es (it is already > being prepared), gambas-doc-fr, etc. The gambas-ide has now a gambas-doc > dependency, but in the future that dependency could be something like > gambas-doc|gambas-doc-es|gambas-doc-fr and spanish or french users will > not need to install all the english docs. The rest of the packages are > exactly the same Beno?t has prepared for Mandarake with identical files > inside. > > Attached is the debian directory that has to replace the one that we > have in Gambas sources. > The README.DEBIAN file included in the sources contains wrong > information and it should be deleted or replaced with the updated data. > Something like: > > ########begin the text############ > To use gambas packages you will need Debian Sarge or Sid at least. Woody > Debian version doesn't work at all. > If you want to create Gambas Debian packages from scratch just type > "dpkg-buildpackage" inside the root Gambas sources. If you need to > install some development packages in your system this command will tell > you the names. > > If you want to install binary packages using apt, just add the following > line to the "/etc/apt/sources.list" file: > > deb http://www.linex.org/sources/linex/debian/ cl gambas > > Then execute: > apt-get update > apt-get install gambas-ide > ############################ > > The above sources.list line could be changed replacing "cl" by "sarge", > that will be made all the Linex distro packages to the system, but it is > not too useful if you are not using that distro. > > This information should also be updated in the gambas web page. At least > the sources.list line. > > > On the other hand, I haven't received any answer related to my question > in the message > http://sourceforge.net/mailarchive/forum.php?thread_id=5598316&forum_id=235 Sorry, but I have few time! >60 I would like to know if Beno?t prefer that I modify the code to build > original debian packages, or solve the problems building rpm packages in a > Debian box. In the last case I will need help. Right now I don't know why > the RPM/tmp/any_gambas_application-buildroot/usr/share/menu directory is > not created in Debian. I think this is an important bug that should be > solved before the 1.0 release. So am I! The debian case is difficult, as we shpould be able: 1) to create debian packages from a rpm based system with alien. 2) to create debian packages from a debian-based system without alien. Send me some code to create debian packages from a debian system. I will add a test in the IDE to decide using it or using alien, by checking the existence of executables. > > Suggestions and comments are welcome. Regards. Regards, -- Benoit Minisini mailto:gambas at ...1... From jredrejo at ...101... Wed Sep 22 18:03:28 2004 From: jredrejo at ...101... (=?ISO-8859-1?Q?Jos=E9?= L. Redrejo =?ISO-8859-1?Q?Rodr=EDguez?=) Date: Wed, 22 Sep 2004 18:03:28 +0200 Subject: [Gambas-devel] debian packages for gambas In-Reply-To: <200409221718.42742.gambas@...1...> References: <1095630194.14937.12.camel@...102...> <1095853333.6981.74.camel@...134...> <200409221718.42742.gambas@...1...> Message-ID: <1095869008.7056.9.camel@...134...> El mi?, 22-09-2004 a las 17:18, Benoit Minisini escribi?: > > >60 I would like to know if Beno?t prefer that I modify the code to build > > original debian packages, or solve the problems building rpm packages in a > > Debian box. In the last case I will need help. Right now I don't know why > > the RPM/tmp/any_gambas_application-buildroot/usr/share/menu directory is > > not created in Debian. I think this is an important bug that should be > > solved before the 1.0 release. > > So am I! > > The debian case is difficult, as we shpould be able: > 1) to create debian packages from a rpm based system with alien. > 2) to create debian packages from a debian-based system without alien. > > Send me some code to create debian packages from a debian system. I will add a > test in the IDE to decide using it or using alien, by checking the existence > of executables. > After creating the directory called debian with the right files (in fact the only strictly necessaries are changelog, control and rules ) you just need to execute "fakeroot debian/rules" from the source directory (it doesn't matter where it is located) if you are a non-root user. The better way to do a complete debian package is executing "dpkg-buildpackage" instead, but it is only necessary if you are preparing oficial debian packages. I think in our case, for most users, I think fakeroot is the best way. If somebody wants to make an official debian package with a gambas program doesn't need this tool. Tell me if you need more data. > > > > Suggestions and comments are welcome. Regards. > > Regards, From Karl.Reinl at ...16... Fri Sep 24 19:44:28 2004 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Fri, 24 Sep 2004 17:44:28 +0000 Subject: [Gambas-devel] PrettyPrinter-0.3.1 for use in IDE Message-ID: <200409241744.28848.Karl.Reinl@...16...> Salut, I send you a new version of PrettyPrinter, included into the IDE, for that I had to change FEditor.form and *.class. These files comme with the code. If you like to have a go, please, don't do it in your ../gambas-0.99/app/gambas make a copy from that directory Then merge the changes by copiing PPinstall-0.3.1/app/gambas/* to your test-IDE You find the PrettyPrinter in the Contextmenu of the IDE-Editor. You should NOT work on real projects, try it with copys of your projects first. OR on your copy of the IDE. Attention: the PrettyPrinter in the Editor menu is not managed, so you can change you sourcecode during debugging !!!! The changes you find in ChangeLog.PrettyPrinter If you have still a test-gambas with the last version, you can continue to use it by merging the newer version. Thank you for your help Aamicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: PPinstall-0.3.1.tar.bz2 Type: application/x-tbz Size: 20488 bytes Desc: not available URL: From jredrejo at ...101... Fri Sep 24 21:33:56 2004 From: jredrejo at ...101... (=?ISO-8859-1?Q?Jos=E9?= L. Redrejo =?ISO-8859-1?Q?Rodr=EDguez?=) Date: Fri, 24 Sep 2004 21:33:56 +0200 Subject: [Gambas-devel] debian packages for gambas In-Reply-To: <200409221718.42742.gambas@...1...> References: <1095630194.14937.12.camel@...102...> <1095853333.6981.74.camel@...134...> <200409221718.42742.gambas@...1...> Message-ID: <1096054436.6331.4.camel@...163...> The attached file applied to the Package.Module in the gambas ide correct the Debian package generation bug. To make it work correctly in a Debian box, the fakeroot and alien packages are needed. If you (Beno?t) decide to apply this patch tell it to me to put those two packages as dependencies of the gambas-ide package and send you again the debian directory to be added to gambas sources. Regards. El mi?, 22-09-2004 a las 17:18, Benoit Minisini escribi?: > On Wednesday 22 September 2004 13:42, Jos? L. Redrejo Rodr?guez wrote: > > I have modified the debian packages structure for Gambas according to > > the structure Beno?t has designed for Mandrake. There is only a couple > > of differences: > > - I have kept a "gambas" package for compatibility with previous > > versions. It is an empty transitional package with gambas-ide as a > > dependency and will disappear in the future. > > - I have created a gambas-doc package split from the gambas-ide package > > thinking in the future. If we get different translations of the > > documentation it would be useful to have gambas-doc-es (it is already > > being prepared), gambas-doc-fr, etc. The gambas-ide has now a gambas-doc > > dependency, but in the future that dependency could be something like > > gambas-doc|gambas-doc-es|gambas-doc-fr and spanish or french users will > > not need to install all the english docs. The rest of the packages are > > exactly the same Beno?t has prepared for Mandarake with identical files > > inside. > > > > Attached is the debian directory that has to replace the one that we > > have in Gambas sources. > > The README.DEBIAN file included in the sources contains wrong > > information and it should be deleted or replaced with the updated data. > > Something like: > > > > ########begin the text############ > > To use gambas packages you will need Debian Sarge or Sid at least. Woody > > Debian version doesn't work at all. > > If you want to create Gambas Debian packages from scratch just type > > "dpkg-buildpackage" inside the root Gambas sources. If you need to > > install some development packages in your system this command will tell > > you the names. > > > > If you want to install binary packages using apt, just add the following > > line to the "/etc/apt/sources.list" file: > > > > deb http://www.linex.org/sources/linex/debian/ cl gambas > > > > Then execute: > > apt-get update > > apt-get install gambas-ide > > ############################ > > > > The above sources.list line could be changed replacing "cl" by "sarge", > > that will be made all the Linex distro packages to the system, but it is > > not too useful if you are not using that distro. > > > > This information should also be updated in the gambas web page. At least > > the sources.list line. > > > > > > On the other hand, I haven't received any answer related to my question > > in the message > > http://sourceforge.net/mailarchive/forum.php?thread_id=5598316&forum_id=235 > > Sorry, but I have few time! > > >60 I would like to know if Beno?t prefer that I modify the code to build > > original debian packages, or solve the problems building rpm packages in a > > Debian box. In the last case I will need help. Right now I don't know why > > the RPM/tmp/any_gambas_application-buildroot/usr/share/menu directory is > > not created in Debian. I think this is an important bug that should be > > solved before the 1.0 release. > > So am I! > > The debian case is difficult, as we shpould be able: > 1) to create debian packages from a rpm based system with alien. > 2) to create debian packages from a debian-based system without alien. > > Send me some code to create debian packages from a debian system. I will add a > test in the IDE to decide using it or using alien, by checking the existence > of executables. > > > > > Suggestions and comments are welcome. Regards. > > Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: debian.diff Type: text/x-patch Size: 1561 bytes Desc: not available URL: From christian.faurebouvard at ...156... Sat Sep 25 00:38:54 2004 From: christian.faurebouvard at ...156... (Christian Faure) Date: Fri, 24 Sep 2004 19:38:54 -0300 Subject: [Gambas-devel] Report Designer In-Reply-To: <41506B30.7020809@...16...> References: <200409191957.33249.Karl.Reinl@...16...> <200409210039.01632.ronstk@...124...> <41506B30.7020809@...16...> Message-ID: <200409241938.54422.christian.faurebouvard@...156...> Hi, Thanks to Ron for XML tests, Now i'am working on a DBReportDesigner (see screenshot) I want to save the report definition as XML file like this ... select * from table1 select * from table2 where table2.id={table1.id} ...
...
...
...
...
It allow multiple db connection, multiple recordsources, nested recordsources, multiple sections. But i need to know the future XML components included with gambas (gb.xml, expatc,or both, or another), to build the DBReportViewer. Thanks, Christian -------------- next part -------------- A non-text attachment was scrubbed... Name: DBReportDesigner-0.0.jpg Type: image/jpeg Size: 63846 bytes Desc: not available URL: From daniel.campos at ...103... Sat Sep 25 10:22:21 2004 From: daniel.campos at ...103... (Daniel Campos) Date: Sat, 25 Sep 2004 10:22:21 +0200 Subject: [Gambas-devel] libxml-0.0.2 Message-ID: <1096100541.3525.2.camel@...102...> Hi! Here's the second release of the libxml component: http://gambas.gnulinex.org/libxml/libxml-0.0.2.tar.bz2 * Two new classes: XmlDocument and XmlNode for the tree model * Cleaning the XmlReader interface. Regards, Daniel Campos From jredrejo at ...101... Sat Sep 25 11:00:41 2004 From: jredrejo at ...101... (=?ISO-8859-1?Q?Jos=E9?= L. Redrejo =?ISO-8859-1?Q?Rodr=EDguez?=) Date: Sat, 25 Sep 2004 11:00:41 +0200 Subject: [Gambas-devel] Report Designer In-Reply-To: <200409241938.54422.christian.faurebouvard@...156...> References: <200409191957.33249.Karl.Reinl@...16...> <200409210039.01632.ronstk@...124...> <41506B30.7020809@...16...> <200409241938.54422.christian.faurebouvard@...156...> Message-ID: <1096102841.7622.3.camel@...134...> Why don't you have a look at http://rlib.sicompos.com/ ? . It would be wonderful to have a gambas component using this library, and your graphical interface to create the xml files. This library works quite well and has a good part of your work finished. Regards. El s?b, 25-09-2004 a las 00:38, Christian Faure escribi?: > Hi, > Thanks to Ron for XML tests, > > Now i'am working on a DBReportDesigner (see screenshot) > I want to save the report definition as XML file like this > > > > > > > ... > > select * > from table1 > > > select * > from table2 > where table2.id={table1.id} > > ... > > >
> ... >
>
> ... >
>
> ... >
> ... >
>
> > It allow multiple db connection, multiple recordsources, nested recordsources, > multiple sections. > > But i need to know the future XML components included with gambas > (gb.xml, expatc,or both, or another), to build the DBReportViewer. > > Thanks, > > Christian From ronstk at ...124... Sat Sep 25 11:10:39 2004 From: ronstk at ...124... (ron) Date: Sat, 25 Sep 2004 11:10:39 +0200 Subject: [Gambas-devel] PrettyPrinter-0.3.1 for use in IDE In-Reply-To: <200409241744.28848.Karl.Reinl@...16...> References: <200409241744.28848.Karl.Reinl@...16...> Message-ID: <200409251110.41358.ronstk@...124...> Hi charlie, You did just the oposite as I proposed. in the PPsettings: ' bool bEmptylineStartsIndenting=TRUE ; // => adding a empty line after a logical Structure function name(a as i,b as b) as r dim z as int for i = 1 to 7___ bla bla \____ logical block next_____________/ 'this line is add as blank if not exist if a=b then ______ e=6- \ x=1 \___ block \ y=2_/ \ else \_____ logical structure block p=9- / q=3 \___ block / w=5 / / end if ___________/ 'this line is add as blank if not exist if a=b then if t=u then x=1 y=2 endif ' no add blank line,, a ELSE folows else if y=p then q=3 w=5 endif ' no add blank line,, a END folows end if 'this line is add as blank if not exist end 'this line is add as blank if not exist My intention is not start a new indent cycle (i.e. e=6) with a empty line as the label tells, my wish was _after_ a END keyword, because it ends the logical Structure, as you have in the comment. After delete all empty lines the rules could be in text: bAddLine=false ' was previous line a NEXT closing the FOR..NEXT structure? if left(trim(sline_prev),4)="NEXT" then bAddLine=true ' Is it a CASE begin and previous not the start SELECT structure ? if left(trim(sline),4)="CASE" AND left(trim(sline_prev),4)<>"SELECT" then bAddLine=true ' is it a END after IF/WHILE/WITH/SELECT structures but next not END or ELSE ? if left(trim(sLine),3)="END" then ' end of log. struct. bAddLine=true if left(trim(sLine_next),4)"ELSE" then bAddLine=false ' prevent the add if left(trim(sLine_next),3)"END" then bAddLine=false ' prevent the add ' this also adds a blank line before the next procedure starts endif if bAddLine then add_blank_line 'if not already exist I had a look in your code and despite the variable names are telling much I could not see exactly where and how you did it now. ' for IF .... Then with args behind THEN IF sParts[0] ="IF" AND sParts[iLastPart] <> "THEN" THEN bIfThenRule = TRUE IF bEmptylineStartsIndenting THEN bSetAEmptyLine = TRUE ELSE IF iKeyWords > 0 THEN IF isEndStruc(sParts,iParts,iKeyWords) THEN iIndentFactor = iIndentFactor - 1 IF iIndentFactor < 0 THEN iBadIndentFactor = iBadIndentFactor +iIndentFactor iIndentFactor = 0 ENDIF IF bEmptylineStartsIndenting THEN bSetAEmptyLine = TRUE ENDIF ENDIF ....... it looks to me here it is OK but the lines are add before the inner statement block instead after the END ???? The add blank line after a IF q=3 THEN bAlfa=true line was not my intention. q=5 ' here follows because next is a IF...THEN IF q=3 THEN bAlfa=true ' not here IF q=4 THEN bBeta=true 'or here IF q=5 THEN bCharlie=true 'but maybe here IF e=6 THEN 'because a no after THEN bla bla ELSE blo blo ENDIF I hoop you can follow the explanation of my idea Ron From ronstk at ...124... Sat Sep 25 12:03:36 2004 From: ronstk at ...124... (ron) Date: Sat, 25 Sep 2004 12:03:36 +0200 Subject: [Gambas-devel] libxml-0.0.2 In-Reply-To: <1096100541.3525.2.camel@...102...> References: <1096100541.3525.2.camel@...102...> Message-ID: <200409251203.36975.ronstk@...124...> On Saturday 25 September 2004 10:22, Daniel Campos wrote: > Hi! > > Here's the second release of the libxml component: > > http://gambas.gnulinex.org/libxml/libxml-0.0.2.tar.bz2 > > > * Two new classes: XmlDocument and XmlNode for the tree model > * Cleaning the XmlReader interface. > > Regards, > > Daniel Campos > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > > ???? where :) Daniel, can you also add the parts to add in the configure.in and the src/lib/MakeFile.am ? The add/changes I have to make. And exactly the place where to put the libxml directory. I had problems to get it right. It was not clear to me i had to use the separate files or the files in the bz2 archive. lib.gb.libxml.component or lib.gb.xml.libxml.component And after it start the make without errors for the add of the component I got the xmlwriter.c error. my version was to old. :( And SuSE does not have it. Installing my self from source? Bad luck with previous libxml and curl. Unknown options suse is using when they do it. And I do not know how to figure it out witch and what. So i'm a bit afraid to finalize the libxml-2.6.13 now. It is now in /usr/incluse/libxml2/libxml Is it safe if I use --prefix=/usr/local with the intention the component uses that location? Of course I understand I have to tell configure to look there. If this is safe I maybe can do it with curl to for gambas and does not break the current xml and curl. I do not like experimenting in the wild and breaking my suse. grtz Ron From daniel.campos at ...103... Sat Sep 25 14:07:33 2004 From: daniel.campos at ...103... (Daniel Campos) Date: Sat, 25 Sep 2004 14:07:33 +0200 Subject: [Gambas-devel] libxml-0.0.2 In-Reply-To: <200409251203.36975.ronstk@...124...> References: <1096100541.3525.2.camel@...102...> <200409251203.36975.ronstk@...124...> Message-ID: <1096114053.3304.7.camel@...102...> > > ???? where :) here :-)) http://gambas.gnulinex.org/libxml/libxml-0.0.2.tar.bz2 > > Daniel, can you also add the parts to add in the configure.in > and the src/lib/MakeFile.am ? The add/changes I have to make. > And exactly the place where to put the libxml directory. > I had problems to get it right. ...mmmmh may be Benoit could help us to write the right configure.in so it can automatically detect the "includes" and "ldflags" needed? My Makefile.am just points to the paths that work for my Mandrake distribution. > It was not clear to me i had to use the separate files or the > files in the bz2 archive. > lib.gb.libxml.component or lib.gb.xml.libxml.component I will write a little README about compilation and installation in the next release... > > And after it start the make without errors for the add of > the component I got the xmlwriter.c error. > my version was to old. :( > > And SuSE does not have it. Installing my self from source? > Bad luck with previous libxml and curl. > Unknown options suse is using when they do it. > And I do not know how to figure it out witch and what. > So i'm a bit afraid to finalize the libxml-2.6.13 now. > It is now in /usr/incluse/libxml2/libxml > Is it safe if I use --prefix=/usr/local with the intention the > component uses that location? > Of course I understand I have to tell configure to look there. > If this is safe I maybe can do it with curl to for gambas and > does not break the current xml and curl. > I do not like experimenting in the wild and breaking my suse. Even if you're using the evil SUSE distro :-))), you'll be able to install libxml from sources, in /usr/local, to not conflict with the "old native" version. However I have to modify the configure.in, I'll try to do it myself, but I think I'll need the help of Benoit...Where are you???!!! :-))) Regards, Daniel Campos > > > grtz Ron > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > From ronstk at ...124... Sat Sep 25 18:53:29 2004 From: ronstk at ...124... (ron) Date: Sat, 25 Sep 2004 18:53:29 +0200 Subject: [Gambas-devel] libxml-0.0.2 In-Reply-To: <1096114053.3304.7.camel@...102...> References: <1096100541.3525.2.camel@...102...> <200409251203.36975.ronstk@...124...> <1096114053.3304.7.camel@...102...> Message-ID: <200409251853.30852.ronstk@...124...> On Saturday 25 September 2004 14:07, Daniel Campos wrote: > > > > > ???? where :) > > here :-)) > > http://gambas.gnulinex.org/libxml/libxml-0.0.2.tar.bz2 :( found it after seding the letter > > > > Daniel, can you also add the parts to add in the configure.in > > and the src/lib/MakeFile.am ? The add/changes I have to make. > > And exactly the place where to put the libxml directory. > > I had problems to get it right. > > ...mmmmh may be Benoit could help us to write the right configure.in > so it can automatically detect the "includes" and "ldflags" needed? it is the last line with ($C_LIB -l??? -l??? -l???) I do not know what. You must have it already. > > My Makefile.am just points to the paths that work for my Mandrake > distribution. This was easy as instructed by benoit but somehow I got a error I had 2 spaces after subdir in ' SUBDIR = bla @LIBXML_DIR@' How can comments be add in the .am file? > > It was not clear to me i had to use the separate files or the > > files in the bz2 archive. > > lib.gb.libxml.component or lib.gb.xml.libxml.component > > > I will write a little README about compilation and installation in > the next release... This will always be helpfull > > > > And after it start the make without errors for the add of > > the component I got the xmlwriter.c error. > > my version was to old. :( > > --8<---- > > I do not like experimenting in the wild and breaking my suse. SuSE is broken it self :-))) > > Even if you're using the evil SUSE distro :-))), you'll be able to > install libxml from sources, in /usr/local, to not conflict with the > "old native" version. However I have to modify the configure.in, I'll > try to do it myself, but I think I'll need the help of Benoit...Where > are you???!!! :-))) > OK, I go for xml the /usr/local option and use --with for gambas to point there, I let know how it is gone. He is very busy ATM. Less time now. And he need some rest after the intensive release of 0.99 :) We survive. > Regards, > > Daniel Campos > grtz Ron From christian.faurebouvard at ...156... Sat Sep 25 17:53:31 2004 From: christian.faurebouvard at ...156... (Christian Faure) Date: Sat, 25 Sep 2004 12:53:31 -0300 Subject: [Gambas-devel] Report Designer In-Reply-To: <1096102841.7622.3.camel@...134...> References: <200409191957.33249.Karl.Reinl@...16...> <200409241938.54422.christian.faurebouvard@...156...> <1096102841.7622.3.camel@...134...> Message-ID: <200409251253.31729.christian.faurebouvard@...156...> El S?bado, 25 de Septiembre de 2004 06:00, Jos? L. Redrejo Rodr?guez escribi?: > Why don't you have a look at http://rlib.sicompos.com/ ? . It would be > wonderful to have a gambas component using this library, and your > graphical interface to create the xml files. This library works quite > well and has a good part of your work finished. > Regards. > Yes! Is a good tool Thanks, But, x and y coordinate can be specified? the examples use "col" with value 1 or 2 or n and y coordinate are in lines. From gambasfr at ...4... Sat Sep 25 19:45:27 2004 From: gambasfr at ...4... (Bodard Fabien) Date: Sat, 25 Sep 2004 19:45:27 +0200 Subject: [Gambas-devel] Report Designer In-Reply-To: <200409251253.31729.christian.faurebouvard@...156...> References: <200409191957.33249.Karl.Reinl@...16...> <1096102841.7622.3.camel@...134...> <200409251253.31729.christian.faurebouvard@...156...> Message-ID: <200409251945.27961.gambasfr@...4...> Le samedi 25 Septembre 2004 17:53, Christian Faure a ?crit?: > El S?bado, 25 de Septiembre de 2004 06:00, Jos? L. Redrejo Rodr?guez escribi?: > > Why don't you have a look at http://rlib.sicompos.com/ ? . It would be > > wonderful to have a gambas component using this library, and your > > graphical interface to create the xml files. This library works quite > > well and has a good part of your work finished. > > Regards. > > Yes! > Is a good tool > Thanks, > But, x and y coordinate can be specified? > the examples use "col" with value 1 or 2 or n > and y coordinate are in lines. > > hey ... what is that ? 'Commercial license available for non GPL code ' in Rlib... we have already the same problem with qt , is it not too many ? Can't we do the report tool ourself ? Benoit told about a component directly in gambas... It seem to be a good beginning , Chistian. Fabien bodard From christian.faurebouvard at ...156... Sat Sep 25 20:59:03 2004 From: christian.faurebouvard at ...156... (Christian Faure) Date: Sat, 25 Sep 2004 15:59:03 -0300 Subject: [Gambas-devel] Report Designer In-Reply-To: <200409251945.27961.gambasfr@...4...> References: <200409191957.33249.Karl.Reinl@...16...> <200409251253.31729.christian.faurebouvard@...156...> <200409251945.27961.gambasfr@...4...> Message-ID: <200409251559.03778.christian.faurebouvard@...156...> El S?bado, 25 de Septiembre de 2004 14:45, Bodard Fabien escribi?: > Le samedi 25 Septembre 2004 17:53, Christian Faure a ?crit?: > > El S?bado, 25 de Septiembre de 2004 06:00, Jos? L. Redrejo Rodr?guez > > escribi?: > > > Why don't you have a look at http://rlib.sicompos.com/ ? . It would be > > > wonderful to have a gambas component using this library, and your > > > graphical interface to create the xml files. This library works quite > > > well and has a good part of your work finished. > > > Regards. > > > > Yes! > > Is a good tool > > Thanks, > > But, x and y coordinate can be specified? > > the examples use "col" with value 1 or 2 or n > > and y coordinate are in lines. > > hey ... what is that ? > > 'Commercial license available for non GPL code ' > > > in Rlib... we have already the same problem with qt , is it not too many ? Ok, > > Can't we do the report tool ourself ? Yes, using the Printer class, work well ... qt :( an alternative is generate Postscript... hard! for future version... > > Benoit told about a component directly in gambas... Yes, i want a component with no dependences outside gambas, but need some XML library > > > It seem to be a good beginning , Chistian. Ok, thanks. :-)) > > > Fabien bodard > Regards, Christian Faure From gambas at ...1... Tue Sep 28 11:15:30 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 28 Sep 2004 11:15:30 +0200 Subject: [Gambas-devel] libxml-0.0.2 In-Reply-To: <1096114053.3304.7.camel@...102...> References: <1096100541.3525.2.camel@...102...> <200409251203.36975.ronstk@...124...> <1096114053.3304.7.camel@...102...> Message-ID: <200409281115.30602.gambas@...1...> On Saturday 25 September 2004 14:07, Daniel Campos wrote: > > ???? where :) > > here :-)) > > http://gambas.gnulinex.org/libxml/libxml-0.0.2.tar.bz2 > > > Daniel, can you also add the parts to add in the configure.in > > and the src/lib/MakeFile.am ? The add/changes I have to make. > > And exactly the place where to put the libxml directory. > > I had problems to get it right. > > ...mmmmh may be Benoit could help us to write the right configure.in > so it can automatically detect the "includes" and "ldflags" needed? > > My Makefile.am just points to the paths that work for my Mandrake > distribution. > > > It was not clear to me i had to use the separate files or the > > files in the bz2 archive. > > lib.gb.libxml.component or lib.gb.xml.libxml.component > > I will write a little README about compilation and installation in > the next release... > > > And after it start the make without errors for the add of > > the component I got the xmlwriter.c error. > > my version was to old. :( > > > > And SuSE does not have it. Installing my self from source? > > Bad luck with previous libxml and curl. > > Unknown options suse is using when they do it. > > And I do not know how to figure it out witch and what. > > So i'm a bit afraid to finalize the libxml-2.6.13 now. > > It is now in /usr/incluse/libxml2/libxml > > Is it safe if I use --prefix=/usr/local with the intention the > > component uses that location? > > Of course I understand I have to tell configure to look there. > > If this is safe I maybe can do it with curl to for gambas and > > does not break the current xml and curl. > > I do not like experimenting in the wild and breaking my suse. > > Even if you're using the evil SUSE distro :-))), you'll be able to > install libxml from sources, in /usr/local, to not conflict with the > "old native" version. However I have to modify the configure.in, I'll > try to do it myself, but I think I'll need the help of Benoit...Where > are you???!!! :-))) > I'm here :-) I had to bring my computer at job, and I'm at job only on Tuesday, Wednesday, and Thursday the first week, on Tuesday and Wednesday the second week, and so on... Maybe some Sunday too... I have to find a new flat for November, and after I will be able to read my mail every day. I added recently an explanation on what to put in Makefile.am and configure.in in the wiki. Regards, -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...19... Thu Sep 30 00:33:06 2004 From: sourceforge-raindog2 at ...19... (Rob) Date: Wed, 29 Sep 2004 18:33:06 -0400 Subject: [Gambas-devel] pcre component does something now :) Message-ID: <200409291833.06173.sourceforge-raindog2@...19...> I added two properties to my pcre component's one class, Regex: Offset and Match. Offset works.... after you NEW the class (thereby executing the regex) it will either hold the offset of your match, or -1 if it failed. So you can already use it as a sort of PCRE-enhanced "Instr", if you feel like living dangerously. Match, however, which is supposed to return that part of the string that matched the expression, will cause gbx to segfault. :P Nonetheless I figured I should post about it. Oh yeah, and whenever I open a project in gambas after installing this component, I get this error dialog: CClassInfo._new:25 Not an object [OK] Things continue normally after that. Has anyone else with component writing experience run into this? I can't find anything I'm doing wrong. Anyway, here's a link to the tarball: http://www.kudla.org/rpm/pcre-200409291821.tar.gz Build from src/lib in the gambas 0.99 tree. Rob From sourceforge-raindog2 at ...19... Thu Sep 30 22:44:50 2004 From: sourceforge-raindog2 at ...19... (Rob) Date: Thu, 30 Sep 2004 16:44:50 -0400 Subject: [Gambas-devel] pcre component 0.0.3 - working Message-ID: <200409301644.50126.sourceforge-raindog2@...19...> Here is gb.pcre 0.0.3. It seems to work fully now, though I would appreciate suggestions on more methods/properties. The class is called Regex. You initialize it like this: dim re as Regex re = new Regex("string to match", "regular expression") It has these members: integer property Offset - offset of the match if successful. string property Match - that part of the string that matched the whole expression. integer property SubMatchCount - number of submatches available. string method SubMatch - takes index of the desired submatch and returns the matching substring. A submatch is part of a match you put in parenthesis, like this: re = new Regex("quick brown fox", "(b.+?)\s(\S+)") Submatch 1 is "brown", submatch 2 is "fox". It's still available from http://www.kudla.org/rpm/ but here is the tarball. also included is an example gambas project. That error dialog I was getting earlier went away... I don't know why, but I did reinstall gambas between then and now. Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: pcre-0.0.3.tar.gz Type: application/x-tgz Size: 7299 bytes Desc: not available URL: