From yizhou_he at ...143... Sun Aug 1 19:20:28 2004 From: yizhou_he at ...143... (Yizhou He) Date: Mon, 02 Aug 2004 01:20:28 +0800 Subject: [Gambas-devel] find your sub easier Message-ID: <38eb05638eb1a3.38eb1a338eb056@...143...> * Wed Jul 31 2004 yizhou 0.95-104 All the modification below is to make developer can browe function or sub of a class and by click on the function or sub, the current focus will goto the start of the function or class. even if Gambas can fold cold in edit window, this function will still be useful. ----------------------------------------------------------------------------------- - add sub RefreshchildList in class FEditor PRIVATE SUB RefreshchildList(sText AS String) DIM Linearray AS NEW String[] DIM isStatic AS Integer DIM isPublic AS Integer DIM isSub AS Integer DIM lines AS String DIM ChildName AS String DIM NamePos AS Integer DIM lineses AS String DIM LineNumber AS Integer DIM iLine AS Integer Linearray=Split(sText,"\n") FOR EACH lineses IN Linearray LineNumber=LineNumber+1 isStatic=0 isPublic=0 isSub=0 lines=lineses IF lines="END" THEN 'MESSAGE(ChildName) fmain.AddMethod(ChildName,Path,iLine) END IF IF Left(lines,7)="STATIC " THEN isStatic=1 lines=Right(lines,Len(lines)-7) ENDIF IF Left(lines,7)="PUBLIC " THEN isPublic=1 lines=Right(lines,Len(lines)-7) ENDIF IF Left(lines,8)="PRIVATE " THEN isPublic=0 lines=Right(lines,Len(lines)-8) ENDIF IF Left(lines,4)="SUB " THEN isSub=1 lines=Right(lines,Len(lines)-4) ENDIF IF Left(lines,9)="FUNCTION " THEN isSub=2 lines=Right(lines,Len(lines)-9) ENDIF IF isSub>0 THEN NamePos=Instr(lines,"(") IF NamePos=0 THEN NamePos=Instr(lines," ") ChildName=Left(lines,NamePos-1) 'To show the detail of function then use next line 'ChildName=lines iLine=LineNumber ENDIF 'message( isstatic+ispublic+issub) NEXT END -------------------------------------------------------------------------------------- - add function AddMethod in class FMain PUBLIC FUNCTION AddMethod(ChildName AS String,Name AS String,iLine AS Integer) AS String IF NOT tvwproject.Exist(CStr(iLine) & "@" & Name) THEN tvwproject.Add(CStr(iLine) & "@" & Name,ChildName,Picture["img/16/method.png"],Name) tvwproject.Current.Expanded=TRUE END -------------------------------------------------------------------------------------- - Change sub tvwProject_Activate in class FMain PUBLIC SUB tvwProject_Activate() DIM pos AS Integer DIM iLine AS Integer DIM iLineString AS String IF tvwProject.Key THEN IF CanEdit(tvwProject.Key) THEN pos=Instr(tvwProject.Key,"@") IF pos=0 THEN iLine=0 iLineString=tvwProject.Key ELSE iLineString=Left(tvwProject.Key,pos-1) iLine=CInt(iLineString) iLineString=Right(tvwProject.Key,Len(tvwProject.Key)-pos) ENDIF Project.OpenFile(iLineString,iLine) ENDIF ENDIF END ---------------------------------------------------------------------------------------------- - Change sub Modify in class FEditor PUBLIC SUB Modify(OPTIONAL bReset AS Boolean) IF Project.ReadOnly THEN RETURN IF $bModify <> bReset THEN RETURN $bModify = NOT bReset DrawTitle RefreshChildList(edtEditor.Text) END ---------------------------------------------------------------------------------------------- - Change sub Goto in class FEditor PUBLIC SUB Goto(iLine AS Integer, OPTIONAL iColumn AS Integer = -1) DIM PosEndOfTheLine AS Integer DIM PosStartOfTheLine AS Integer edtEditor.Line = iLine edtEditor.Column=0 PosEndOfTheLine=edtEditor.Pos edtEditor.Line = iLine-1 PosStartOfTheLine=edtEditor.Pos IF iColumn >= 0 THEN edtEditor.Column = iColumn ELSE edtEditor.Column=0 edtEditor.Select(PosStartOfTheLine,PosEndOfTheLine-PosStartOfTheLine-1) ENDIF END -------------------------------------------------------------------------------------------------- - Change property of tvwProject.sort to Ture Yizhou He Research Technician (Xiong Lab) Lineberger Comprehensive Cancer Center University of North Carolina at Chapel Hill Chapel Hill, NC 27599-7295 Tel: (919)-962-2143 ----- Original Message ----- From: gambas-devel-request at lists.sourceforge.net Date: Friday, July 30, 2004 10:45 pm Subject: Welcome to the "Gambas-devel" mailing list (Digest mode) > Welcome to the Gambas-devel at lists.sourceforge.net mailing list! > > To post to this list, send your email to: > > gambas-devel at lists.sourceforge.net > > General information about the mailing list is at: > > https://lists.sourceforge.net/lists/listinfo/gambas-devel > > If you ever want to unsubscribe or change your options (eg, switch to > or from digest mode, change your password, etc.), visit your > subscription page at: > > https://lists.sourceforge.net/lists/options/gambas- > devel/yizhou%40med.unc.edu > > You can also make such adjustments via email by sending a message to: > > Gambas-devel-request at lists.sourceforge.net > > with the word `help' in the subject or body (don't include the > quotes), and you will get back a message with instructions. > > You must know your password to change your options (including changing > the password, itself) or to unsubscribe. It is: > > wskwntei > > If you forget your password, don't worry, you will receive a monthly > reminder telling you what all your lists.sourceforge.net mailing list > passwords are, and how to unsubscribe or change your options. There > is also a button on your options page that will email your current > password to you. > > You may also have your password mailed to you automatically off of the > Web page noted above. > From gambas at ...1... Sun Aug 1 20:23:15 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 1 Aug 2004 20:23:15 +0200 Subject: [Gambas-devel] find your sub easier In-Reply-To: <38eb05638eb1a3.38eb1a338eb056@...143...> References: <38eb05638eb1a3.38eb1a338eb056@...143...> Message-ID: <200408012023.15572.gambas@...1...> On Sunday 01 August 2004 19:30, you wrote: > Dear Mr.Minisini: Hi, > > I found it is difficult to find a sub or function while writing > Gambas program. I make some change to list the sub or function > under the class in tvwproject. by select the sub or function, > edtEditor automatically goto the function. I don't know what you > think about this idea. it is not nearly pefect because I don't > want to work to much on it untill you told me that'a good idea. But you can already list the subs and functions directly in the editor. Do you want to do that also in the project window ? The problem is that files displayed in the project window are loaded only when the user want to edit them. So they will be seen only when the file is opened. > > I try to post it on maillist, somehow it is not working.(or it may > take a while), so I send a email to you. Yes, sometimes the mailing-list is slow. But don't worry, I will get it :-) > here is the changelog. > > > > * Wed Jul 31 2004 yizhou 0.95-104 > > All the modification below is to make developer can browe > function or sub of a class > and by click on the function or sub, the current focus will goto > the start of the function > or class. even if Gambas can fold cold in edit window, this > function will still be useful. > --------------------------------------------------------------------------- >-------- - add sub RefreshchildList in class FEditor > > PRIVATE SUB RefreshchildList(sText AS String) > DIM Linearray AS NEW String[] > DIM isStatic AS Integer > DIM isPublic AS Integer > DIM isSub AS Integer > DIM lines AS String > DIM ChildName AS String > DIM NamePos AS Integer > DIM lineses AS String > DIM LineNumber AS Integer > DIM iLine AS Integer > Linearray=Split(sText,"\n") > > FOR EACH lineses IN Linearray > LineNumber=LineNumber+1 > isStatic=0 > isPublic=0 > isSub=0 > lines=lineses > IF lines="END" THEN > 'MESSAGE(ChildName) > fmain.AddMethod(ChildName,Path,iLine) > END IF > IF Left(lines,7)="STATIC " THEN > isStatic=1 > lines=Right(lines,Len(lines)-7) > ENDIF > IF Left(lines,7)="PUBLIC " THEN > isPublic=1 > lines=Right(lines,Len(lines)-7) > ENDIF > IF Left(lines,8)="PRIVATE " THEN > isPublic=0 > lines=Right(lines,Len(lines)-8) > ENDIF > IF Left(lines,4)="SUB " THEN > isSub=1 > lines=Right(lines,Len(lines)-4) > ENDIF > IF Left(lines,9)="FUNCTION " THEN > isSub=2 > lines=Right(lines,Len(lines)-9) > ENDIF > IF isSub>0 THEN > NamePos=Instr(lines,"(") > IF NamePos=0 THEN NamePos=Instr(lines," ") > ChildName=Left(lines,NamePos-1) > 'To show the detail of function then use next line > 'ChildName=lines > iLine=LineNumber > ENDIF > 'message( isstatic+ispublic+issub) > > > NEXT > END > The CreateMenu() function in FEditor does almost the same thing. So I think they must be factorized. > --------------------------------------------------------------------------- >----------- - add function AddMethod in class FMain > > PUBLIC FUNCTION AddMethod(ChildName AS String,Name AS String,iLine > AS Integer) AS String > > IF NOT tvwproject.Exist(CStr(iLine) & "@" & Name) THEN > tvwproject.Add(CStr(iLine) & "@" & > Name,ChildName,Picture["img/16/method.png"],Name) > tvwproject.Current.Expanded=TRUE > END > > --------------------------------------------------------------------------- >----------- > > - Change sub tvwProject_Activate in class FMain > > PUBLIC SUB tvwProject_Activate() > DIM pos AS Integer > DIM iLine AS Integer > DIM iLineString AS String > IF tvwProject.Key THEN > IF CanEdit(tvwProject.Key) THEN > pos=Instr(tvwProject.Key,"@") > IF pos=0 THEN > iLine=0 > iLineString=tvwProject.Key > ELSE > iLineString=Left(tvwProject.Key,pos-1) > iLine=CInt(iLineString) > iLineString=Right(tvwProject.Key,Len(tvwProject.Key)-pos) > > ENDIF > Project.OpenFile(iLineString,iLine) > ENDIF > ENDIF > > END > > --------------------------------------------------------------------------- >------------------- > > - Change sub Modify in class FEditor > > PUBLIC SUB Modify(OPTIONAL bReset AS Boolean) > > IF Project.ReadOnly THEN RETURN > IF $bModify <> bReset THEN RETURN > > $bModify = NOT bReset > DrawTitle > RefreshChildList(edtEditor.Text) > END > Browsing the source code to find function each time the file is modified is a huge job: this function is called each time you enter a character! You must do it less often, for example, each time a whole line is modified, i.e. each time the cursor line change AND the file has been modified. > --------------------------------------------------------------------------- >------------------- > > - Change sub Goto in class FEditor > > PUBLIC SUB Goto(iLine AS Integer, OPTIONAL iColumn AS Integer = > -1) > > DIM PosEndOfTheLine AS Integer > DIM PosStartOfTheLine AS Integer > edtEditor.Line = iLine > edtEditor.Column=0 > PosEndOfTheLine=edtEditor.Pos > edtEditor.Line = iLine-1 > PosStartOfTheLine=edtEditor.Pos > > IF iColumn >= 0 THEN > edtEditor.Column = iColumn > ELSE > edtEditor.Column=0 > edtEditor.Select(PosStartOfTheLine,PosEndOfTheLine-PosStartOfTheLine-1) > ENDIF > > END > Why do you want to select the entire line when you are going to a line ? > --------------------------------------------------------------------------- >----------------------- - Change property of tvwProject.sort to Ture > > waiting for your reply > best regards > > Yizhou He > > Research Technician (Xiong Lab) > Lineberger Comprehensive Cancer Center > University of North Carolina at Chapel Hill > Chapel Hill, NC 27599-7295 > Tel: (919)-962-2143 Don't be upset by my questions. I want to be sure of what you want to do exactly, and I must ensure that it don't break anything in the IDE. Regards, -- Benoit Minisini mailto:gambas at ...1... From na2492 at ...16... Sun Aug 1 20:29:31 2004 From: na2492 at ...16... (na2492 at ...16...) Date: Sun, 1 Aug 2004 20:29:31 00200 Subject: [Gambas-devel] find your sub easier Message-ID: <410d368b.39ae.0@...16...> >* Wed Jul 31 2004 yizhou 0.95-104 > >All the modification below is to make developer can browe >function or sub of a class >and by click on the function or sub, the current focus will goto >the start of the function >or class. even if Gambas can fold cold in edit window, this >function will still be useful. >----------------------------------------------------------------------------------- >- add sub RefreshchildList in class FEditor > >PRIVATE SUB RefreshchildList(sText AS String) > DIM Linearray AS NEW String[] > DIM isStatic AS Integer > DIM isPublic AS Integer > DIM isSub AS Integer > DIM lines AS String > DIM ChildName AS String > DIM NamePos AS Integer > DIM lineses AS String > DIM LineNumber AS Integer > DIM iLine AS Integer > Linearray=Split(sText,"\n") > > FOR EACH lineses IN Linearray > LineNumber=LineNumber+1 > isStatic=0 > isPublic=0 > isSub=0 > lines=lineses > IF lines="END" THEN > 'MESSAGE(ChildName) > fmain.AddMethod(ChildName,Path,iLine) > END IF > IF Left(lines,7)="STATIC " THEN > isStatic=1 > lines=Right(lines,Len(lines)-7) > ENDIF > IF Left(lines,7)="PUBLIC " THEN > isPublic=1 > lines=Right(lines,Len(lines)-7) > ENDIF > IF Left(lines,8)="PRIVATE " THEN > isPublic=0 > lines=Right(lines,Len(lines)-8) > ENDIF > IF Left(lines,4)="SUB " THEN > isSub=1 > lines=Right(lines,Len(lines)-4) > ENDIF > IF Left(lines,9)="FUNCTION " THEN > isSub=2 > lines=Right(lines,Len(lines)-9) > ENDIF > IF isSub>0 THEN > NamePos=Instr(lines,"(") > IF NamePos=0 THEN NamePos=Instr(lines," ") > ChildName=Left(lines,NamePos-1) > 'To show the detail of function then use next line > 'ChildName=lines > iLine=LineNumber > ENDIF > 'message( isstatic+ispublic+issub) > > > NEXT >END > >-------------------------------------------------------------------------------------- >- add function AddMethod in class FMain > >PUBLIC FUNCTION AddMethod(ChildName AS String,Name AS String,iLine >AS Integer) AS String > > IF NOT tvwproject.Exist(CStr(iLine) & "@" & Name) THEN >tvwproject.Add(CStr(iLine) & "@" & >Name,ChildName,Picture["img/16/method.png"],Name) > tvwproject.Current.Expanded=TRUE >END > >-------------------------------------------------------------------------------------- > >- Change sub tvwProject_Activate in class FMain > >PUBLIC SUB tvwProject_Activate() >DIM pos AS Integer >DIM iLine AS Integer >DIM iLineString AS String > IF tvwProject.Key THEN > IF CanEdit(tvwProject.Key) THEN > pos=Instr(tvwProject.Key,"@") > IF pos=0 THEN > iLine=0 > iLineString=tvwProject.Key > ELSE > iLineString=Left(tvwProject.Key,pos-1) > iLine=CInt(iLineString) > iLineString=Right(tvwProject.Key,Len(tvwProject.Key)-pos) > > ENDIF > Project.OpenFile(iLineString,iLine) > ENDIF > ENDIF > >END > >---------------------------------------------------------------------------------------------- > >- Change sub Modify in class FEditor > >PUBLIC SUB Modify(OPTIONAL bReset AS Boolean) > > IF Project.ReadOnly THEN RETURN > IF $bModify <> bReset THEN RETURN > > $bModify = NOT bReset > DrawTitle > RefreshChildList(edtEditor.Text) >END > >---------------------------------------------------------------------------------------------- > >- Change sub Goto in class FEditor > >PUBLIC SUB Goto(iLine AS Integer, OPTIONAL iColumn AS Integer = >-1) > > DIM PosEndOfTheLine AS Integer > DIM PosStartOfTheLine AS Integer > edtEditor.Line = iLine > edtEditor.Column=0 > PosEndOfTheLine=edtEditor.Pos > edtEditor.Line = iLine-1 > PosStartOfTheLine=edtEditor.Pos > > IF iColumn >= 0 THEN > edtEditor.Column = iColumn > ELSE > edtEditor.Column=0 > edtEditor.Select(PosStartOfTheLine,PosEndOfTheLine-PosStartOfTheLine-1) > ENDIF > >END > >-------------------------------------------------------------------------------------------------- >- Change property of tvwProject.sort to Ture > > >Yizhou He > >Research Technician (Xiong Lab) >Lineberger Comprehensive Cancer Center >University of North Carolina at Chapel Hill >Chapel Hill, NC 27599-7295 >Tel: (919)-962-2143 Salut, realy usefull, but one question : For what reason Change property of tvwProject.sort to TRUE ? unsorted it shows like they placed in the file. Or is it needed for somethig I ingnore ? Amicalement Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From na2492 at ...16... Sun Aug 1 20:29:40 2004 From: na2492 at ...16... (na2492 at ...16...) Date: Sun, 1 Aug 2004 20:29:40 00200 Subject: [Gambas-devel] find your sub easier Message-ID: <410d3694.39ca.0@...16...> >* Wed Jul 31 2004 yizhou 0.95-104 > >All the modification below is to make developer can browe >function or sub of a class >and by click on the function or sub, the current focus will goto >the start of the function >or class. even if Gambas can fold cold in edit window, this >function will still be useful. >----------------------------------------------------------------------------------- >- add sub RefreshchildList in class FEditor > >PRIVATE SUB RefreshchildList(sText AS String) > DIM Linearray AS NEW String[] > DIM isStatic AS Integer > DIM isPublic AS Integer > DIM isSub AS Integer > DIM lines AS String > DIM ChildName AS String > DIM NamePos AS Integer > DIM lineses AS String > DIM LineNumber AS Integer > DIM iLine AS Integer > Linearray=Split(sText,"\n") > > FOR EACH lineses IN Linearray > LineNumber=LineNumber+1 > isStatic=0 > isPublic=0 > isSub=0 > lines=lineses > IF lines="END" THEN > 'MESSAGE(ChildName) > fmain.AddMethod(ChildName,Path,iLine) > END IF > IF Left(lines,7)="STATIC " THEN > isStatic=1 > lines=Right(lines,Len(lines)-7) > ENDIF > IF Left(lines,7)="PUBLIC " THEN > isPublic=1 > lines=Right(lines,Len(lines)-7) > ENDIF > IF Left(lines,8)="PRIVATE " THEN > isPublic=0 > lines=Right(lines,Len(lines)-8) > ENDIF > IF Left(lines,4)="SUB " THEN > isSub=1 > lines=Right(lines,Len(lines)-4) > ENDIF > IF Left(lines,9)="FUNCTION " THEN > isSub=2 > lines=Right(lines,Len(lines)-9) > ENDIF > IF isSub>0 THEN > NamePos=Instr(lines,"(") > IF NamePos=0 THEN NamePos=Instr(lines," ") > ChildName=Left(lines,NamePos-1) > 'To show the detail of function then use next line > 'ChildName=lines > iLine=LineNumber > ENDIF > 'message( isstatic+ispublic+issub) > > > NEXT >END > >-------------------------------------------------------------------------------------- >- add function AddMethod in class FMain > >PUBLIC FUNCTION AddMethod(ChildName AS String,Name AS String,iLine >AS Integer) AS String > > IF NOT tvwproject.Exist(CStr(iLine) & "@" & Name) THEN >tvwproject.Add(CStr(iLine) & "@" & >Name,ChildName,Picture["img/16/method.png"],Name) > tvwproject.Current.Expanded=TRUE >END > >-------------------------------------------------------------------------------------- > >- Change sub tvwProject_Activate in class FMain > >PUBLIC SUB tvwProject_Activate() >DIM pos AS Integer >DIM iLine AS Integer >DIM iLineString AS String > IF tvwProject.Key THEN > IF CanEdit(tvwProject.Key) THEN > pos=Instr(tvwProject.Key,"@") > IF pos=0 THEN > iLine=0 > iLineString=tvwProject.Key > ELSE > iLineString=Left(tvwProject.Key,pos-1) > iLine=CInt(iLineString) > iLineString=Right(tvwProject.Key,Len(tvwProject.Key)-pos) > > ENDIF > Project.OpenFile(iLineString,iLine) > ENDIF > ENDIF > >END > >---------------------------------------------------------------------------------------------- > >- Change sub Modify in class FEditor > >PUBLIC SUB Modify(OPTIONAL bReset AS Boolean) > > IF Project.ReadOnly THEN RETURN > IF $bModify <> bReset THEN RETURN > > $bModify = NOT bReset > DrawTitle > RefreshChildList(edtEditor.Text) >END > >---------------------------------------------------------------------------------------------- > >- Change sub Goto in class FEditor > >PUBLIC SUB Goto(iLine AS Integer, OPTIONAL iColumn AS Integer = >-1) > > DIM PosEndOfTheLine AS Integer > DIM PosStartOfTheLine AS Integer > edtEditor.Line = iLine > edtEditor.Column=0 > PosEndOfTheLine=edtEditor.Pos > edtEditor.Line = iLine-1 > PosStartOfTheLine=edtEditor.Pos > > IF iColumn >= 0 THEN > edtEditor.Column = iColumn > ELSE > edtEditor.Column=0 > edtEditor.Select(PosStartOfTheLine,PosEndOfTheLine-PosStartOfTheLine-1) > ENDIF > >END > >-------------------------------------------------------------------------------------------------- >- Change property of tvwProject.sort to Ture > > >Yizhou He > >Research Technician (Xiong Lab) >Lineberger Comprehensive Cancer Center >University of North Carolina at Chapel Hill >Chapel Hill, NC 27599-7295 >Tel: (919)-962-2143 Salut, realy usefull, but one question : For what reason Change property of tvwProject.sort to TRUE ? unsorted it shows like they placed in the file. Or is it needed for somethig I ingnore ? Amicalement Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From yizhou_he at ...143... Mon Aug 2 06:45:46 2004 From: yizhou_he at ...143... (Yizhou He) Date: Sun, 01 Aug 2004 21:45:46 -0700 Subject: [Gambas-devel] Re: Gambas-devel digest, Vol 1 #273 - 4 msgs Message-ID: <391761039196a3.39196a33917610@...143...> Hi: For Question No.1 ---------------------------------------------------------------------- But you can already list the subs and functions directly in the editor. Do you want to do that also in the project window ? The problem is that files displayed in the project window are loaded only when the user want to edit them. So they will be seen only when the file is opened. ----------------------------------------------------------------------- Answer: The editor can list the subs and functions that's ture. but when it become very long, it really take long time to find the function espically you didn't write all the code yourself.It frees you from go throught a lot of mnt..._click and btn..._click just to find a function. List them in project window make developer easier to see what function or sub it have, and more important, by click the sub on the project window, you go to the function or sub code directly, no long time brower, no need typing and search. try it out. In my design, only opened class will list it's sub in project window right under that class item. It will not list all the class file. And I think we only care about what function in the class file we currently opened. There is no need to open all of them. Question NO.2 -------------------------------------------------------------------- The CreateMenu() function in FEditor does almost the same thing. So I think they must be factorized. --------------------------------------------------------------------- I do agree. I find that out when I finished writing, but they are still different. CreatMenu list more information than what we need. It can be a option that user can choose easly on toolbar. It is also good idea to have a option to list just name of function or whole thing. 1.list property, method, event 2.list sub, function name:Creatmenu 3.list sub, function decalaration: Creatmenu(A as integer, B as String) as String AS I said, these code are far from pefect, I just want to make a demo version so that you can see how useful it will be. Question NO.3 ------------------------------------------------------------------- Browsing the source code to find function each time the file is modified is a huge job: this function is called each time you enter a character! You must do it less often, for example, each time a whole line is modified, i.e. each time the cursor line change AND the file has been modified. ------------------------------------------------------------------- Answer: I do realize that. This is my first time read part of the code. I just read what I need to change. if you do think it is a good idea, I will spend more time on that. my plan is only after the code loaded or saved, it will be refreshed once. If you want to see the change after you add or delete a sub or function, simply click the save button. It also help you save your data more often. Question NO.3 ----------------------------------------------------------------------- Why do you want to select the entire line when you are going to a line ? ----------------------------------------------------------------------- I have problem to find the current line while useing goto or search. It take me a while to find the small cursor. by select the whole line, I can easily see the big blug selection. I also want to figure how to make search result select the word it found if you agree. Otherwise the cursor sometimes on the top, sometime at the botton, sometimes in the middle, but selection make it so obvious to find. Question NO.4 -------------------------------------------------------------------- Don't be upset by my questions. I want to be sure of what you want to do exactly, and I must ensure that it don't break anything in the IDE. ------------------------------------------------------------------- NoNoNo, I known my English is not good and have lot of spelling mistakes that you hate. I do have problem to explain my idea clearly. If you have any question just let me know. And I haven't read thought the whole thing yet but come up with something already, so I'm ready to be told it is a stupid idea. I don't want to break anything in the IDE either. If I come up with something stupid or waste your time, just forgive new people. Thanks. Question NO.5 --------------------------------------------------------------------- Salut, realy usefull, but one question : For what reason Change property of tvwProject.sort to TRUE ? unsorted it shows like they placed in the file. Or is it needed for somethig I ingnore ? --------------------------------------------------------------------- Thanks, I'm gald you like it. Sort it make it easy to find the function you want, and it put those mnu..._click(), btn..._click(), tvwProject_....() orgnized. I first list them as they placed in the file and I'm thinking about if I can drag the icon of the sub and change the order of the code will be cool. But I soon realize the sequence the sub or function in the file is not important, it actually make no different. and I found if there is a lot of button or menu click event, without sort, it is still take a while to find the sub I want. after sort,sub for menu click event are together,sub for button click are together, one control's different event are together. Yizhou He Research Technician (Xiong Lab) Lineberger Comprehensive Cancer Center University of North Carolina at Chapel Hill Chapel Hill, NC 27599-7295 Tel: (919)-962-2143 ----- Original Message ----- From: gambas-devel-request at lists.sourceforge.net Date: Sunday, August 1, 2004 8:27 pm Subject: Gambas-devel digest, Vol 1 #273 - 4 msgs From yizhou_he at ...143... Mon Aug 2 06:55:55 2004 From: yizhou_he at ...143... (Yizhou He) Date: Sun, 01 Aug 2004 21:55:55 -0700 Subject: [Gambas-devel] bug report Message-ID: <391bc80391781b.391781b391bc80@...143...> Hi: Is the debug system really works? In my hand, when I'm tracing a value of string, it works fine during first 3 loop, but the value of the string become a error message in the 4th loop. I have to use the debug icon on project window, for what reason it is not on editor window? Yizhou He Research Technician (Xiong Lab) Lineberger Comprehensive Cancer Center University of North Carolina at Chapel Hill Chapel Hill, NC 27599-7295 Tel: (919)-962-2143 ----- Original Message ----- From: gambas-devel-request at lists.sourceforge.net Date: Sunday, August 1, 2004 8:27 pm Subject: Gambas-devel digest, Vol 1 #273 - 4 msgs From gambas at ...1... Mon Aug 2 11:04:26 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Aug 2004 11:04:26 +0200 Subject: [Gambas-devel] bug report In-Reply-To: <391bc80391781b.391781b391bc80@...143...> References: <391bc80391781b.391781b391bc80@...143...> Message-ID: <200408021104.26627.gambas@...1...> On Monday 02 August 2004 06:55, Yizhou He wrote: > Hi: > > Is the debug system really works? Most the time. :-) > In my hand, when I'm tracing a value > of string, it works fine during first 3 loop, but the value of the > string become a error message in the 4th loop. Can you send me a project so that I show the problem ? > > I have to use the debug icon on project window, for what reason it is > not on editor window? Because I didn't want to put the debug toolbar in every editor window. Normally, if you put the main window on the left of the screen, the editor window will be opened beside it - If your window manager does not override window starting positions of course! > > Yizhou He > > Research Technician (Xiong Lab) > Lineberger Comprehensive Cancer Center > University of North Carolina at Chapel Hill > Chapel Hill, NC 27599-7295 > Tel: (919)-962-2143 > > ----- Original Message ----- > From: gambas-devel-request at lists.sourceforge.net > Date: Sunday, August 1, 2004 8:27 pm > Subject: Gambas-devel digest, Vol 1 #273 - 4 msgs > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, > one more big change to announce. We are now OSTG- Open Source Technology > Group. Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon Aug 2 11:53:03 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Aug 2004 11:53:03 +0200 Subject: [Gambas-devel] Re: Gambas-devel digest, Vol 1 #273 - 4 msgs In-Reply-To: <391761039196a3.39196a33917610@...143...> References: <391761039196a3.39196a33917610@...143...> Message-ID: <200408021153.03521.gambas@...1...> On Monday 02 August 2004 06:45, Yizhou He wrote: > Hi: Hi, > For Question No.1 > ---------------------------------------------------------------------- > But you can already list the subs and functions directly in the editor. > Do you > want to do that also in the project window ? The problem is that files > displayed in the project window are loaded only when the user want to > edit > them. So they will be seen only when the file is opened. > ----------------------------------------------------------------------- > Answer: > The editor can list the subs and functions that's ture. but when it > become very long, it really take long time to find the function > espically you didn't write all the code yourself.It frees you from go > throught a lot of mnt..._click and btn..._click just to find a > function. List them in project window make developer easier to see what > function or sub it have, and more important, by click the sub on the > project window, you go to the function or sub code directly, no long > time brower, no need typing and search. try it out. I will try :-) Just after I release the 0.96 version. > > In my design, only opened class will list it's sub in project window > right under that class item. It will not list all the class file. And I > think we only care about what function in the class file we currently > opened. There is no need to open all of them. Happily. > > > Question NO.2 > -------------------------------------------------------------------- > The CreateMenu() function in FEditor does almost the same thing. So I > think > they must be factorized. > --------------------------------------------------------------------- > I do agree. I find that out when I finished writing, but they are still > different. CreatMenu list more information than what we need. It can be > a option that user can choose easly on toolbar. It is also good idea to > have a option to list just name of function or whole thing. > 1.list property, method, event > 2.list sub, function name:Creatmenu > 3.list sub, function decalaration: Creatmenu(A as integer, B as String) > as String > > AS I said, these code are far from pefect, I just want to make a demo > version so that you can see how useful it will be. OK. > > Question NO.3 > ------------------------------------------------------------------- > Browsing the source code to find function each time the file is > modified is a > huge job: this function is called each time you enter a character! > > You must do it less often, for example, each time a whole line is > modified, > i.e. each time the cursor line change AND the file has been modified. > ------------------------------------------------------------------- > Answer: > I do realize that. This is my first time read part of the code. I just > read what I need to change. if you do think it is a good idea, I will > spend more time on that. my plan is only after the code loaded or > saved, it will be refreshed once. If you want to see the change after > you add or delete a sub or function, simply click the save button. It > also help you save your data more often. Actually, complete class analyzing is already done for the auto completion. You just have to call CComponent.GetClassSymbols("class name") to get all the information about each public symbol declared in the class (type, function signature, ...). A little modification, and you will have the private symbols and the line numbers too :-) If analyzing a class/module becomes too slow, it could be optimized by doing it with the compiler or the gb.eval component in C. > > Question NO.3 > ----------------------------------------------------------------------- > Why do you want to select the entire line when you are going to a line ? > ----------------------------------------------------------------------- > I have problem to find the current line while useing goto or search. It > take me a while to find the small cursor. by select the whole line, I > can easily see the big blug selection. I also want to figure how to > make search result select the word it found if you agree. Otherwise the > cursor sometimes on the top, sometime at the botton, sometimes in the > middle, but selection make it so obvious to find. Right. > > Question NO.4 > -------------------------------------------------------------------- > Don't be upset by my questions. I want to be sure of what you want to > do > exactly, and I must ensure that it don't break anything in the IDE. > ------------------------------------------------------------------- > NoNoNo, I known my English is not good and have lot of spelling > mistakes that you hate. I hate them in French. I have absolutely unpretentious about my english! :-) > I do have problem to explain my idea clearly. > If you have any question just let me know. And I haven't read thought > the whole thing yet but come up with something already, so I'm ready to > be told it is a stupid idea. It is not a stupid idea. It is a pretty good idea. By using CComponent.GetClassSymbols(), you can even do it as you described before. > I don't want to break anything in the IDE > either. If I come up with something stupid or waste your time, just > forgive new people. Thanks. > > Question NO.5 > --------------------------------------------------------------------- > Salut, > > realy usefull, but one question : > For what reason Change property of tvwProject.sort to TRUE ? > > unsorted it shows like they placed in the file. > Or is it needed for somethig I ingnore ? > --------------------------------------------------------------------- > Thanks, I'm gald you like it. > Sort it make it easy to find the function you want, and it put those > mnu..._click(), btn..._click(), tvwProject_....() orgnized. > I first list them as they placed in the file and I'm thinking about if > I can drag the icon of the sub and change the order of the code will be > cool. But I soon realize the sequence the sub or function in the file > is not important, it actually make no different. and I found if there > is a lot of button or menu click event, without sort, it is still take > a while to find the sub I want. after sort,sub for menu click event are > together,sub for button click are together, one control's different > event are together. You should not use tvwProject.Sort, because it is global (it will sort other items I don't want to be sorted). You should sort the items yourself by adding them in the correct order. > > > Yizhou He > > Research Technician (Xiong Lab) > Lineberger Comprehensive Cancer Center > University of North Carolina at Chapel Hill > Chapel Hill, NC 27599-7295 > Tel: (919)-962-2143 > Best regards, -- Benoit Minisini mailto:gambas at ...1... From lordheavy at ...141... Mon Aug 2 14:57:32 2004 From: lordheavy at ...141... (Laurent Carlier) Date: Mon, 2 Aug 2004 14:57:32 +0200 Subject: [Gambas-devel] missing (useful ?) feature in the IDE Message-ID: <200408021457.32668.lordheavy@...141...> It should be useful to add a "run with args" in the IDE that should help to test project with command line. thanks -- Laurent Carlier From gambas at ...1... Mon Aug 2 15:04:38 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Aug 2004 15:04:38 +0200 Subject: [Gambas-devel] missing (useful ?) feature in the IDE In-Reply-To: <200408021457.32668.lordheavy@...141...> References: <200408021457.32668.lordheavy@...141...> Message-ID: <200408021504.39088.gambas@...1...> On Monday 02 August 2004 14:57, Laurent Carlier wrote: > It should be useful to add a "run with args" in the IDE that should help to > test project with command line. > > thanks Put your arguments in the 'Arguments' text field in the project property dialog. Regards, -- Benoit Minisini mailto:gambas at ...1... From lordheavy at ...141... Mon Aug 2 15:17:24 2004 From: lordheavy at ...141... (Laurent Carlier) Date: Mon, 2 Aug 2004 15:17:24 +0200 Subject: [Gambas-devel] missing (useful ?) feature in the IDE In-Reply-To: <200408021504.39088.gambas@...1...> References: <200408021457.32668.lordheavy@...141...> <200408021504.39088.gambas@...1...> Message-ID: <200408021517.24696.lordheavy@...141...> Le lundi 2 Ao?t 2004 15:04, Benoit Minisini a ?crit?: > On Monday 02 August 2004 14:57, Laurent Carlier wrote: > > It should be useful to add a "run with args" in the IDE that should help > > to test project with command line. > > > > thanks > > Put your arguments in the 'Arguments' text field in the project property > dialog. > > Regards, Thanks beno?t, But it looklikes an 'hidden feature' ! it should be better to add a menu entry (missing too a 'Run program' entry) Regards, -- Laurent Carlier From gambas at ...1... Mon Aug 2 15:26:48 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Aug 2004 15:26:48 +0200 Subject: [Gambas-devel] missing (useful ?) feature in the IDE In-Reply-To: <200408021517.24696.lordheavy@...141...> References: <200408021457.32668.lordheavy@...141...> <200408021504.39088.gambas@...1...> <200408021517.24696.lordheavy@...141...> Message-ID: <200408021526.48731.gambas@...1...> On Monday 02 August 2004 15:17, Laurent Carlier wrote: > Le lundi 2 Ao?t 2004 15:04, Benoit Minisini a ?crit?: > > On Monday 02 August 2004 14:57, Laurent Carlier wrote: > > > It should be useful to add a "run with args" in the IDE that should > > > help to test project with command line. > > > > > > thanks > > > > Put your arguments in the 'Arguments' text field in the project property > > dialog. > > > > Regards, > > Thanks beno?t, > > But it looklikes an 'hidden feature' ! No more than in VB :-) -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...19... Mon Aug 2 15:30:52 2004 From: sourceforge-raindog2 at ...19... (Rob) Date: Mon, 2 Aug 2004 09:30:52 -0400 Subject: [Gambas-devel] missing (useful ?) feature in the IDE In-Reply-To: <200408021517.24696.lordheavy@...141...> References: <200408021457.32668.lordheavy@...141...> <200408021504.39088.gambas@...1...> <200408021517.24696.lordheavy@...141...> Message-ID: <200408020930.52364.sourceforge-raindog2@...19...> On Monday 02 August 2004 09:17, Laurent Carlier wrote: > > Put your arguments in the 'Arguments' text field in the > > project property dialog. > Thanks beno?t, > But it looklikes an 'hidden feature' ! it should be better to > add a menu entry (missing too a 'Run program' entry) VB does it the same way as gambas, or used to... but I would like to see a "Run Program..." (maybe shift-f5?) that brings up a dialog prompting the user for run-time options. Rob From lordheavy at ...141... Mon Aug 2 15:39:38 2004 From: lordheavy at ...141... (Laurent Carlier) Date: Mon, 2 Aug 2004 15:39:38 +0200 Subject: [Gambas-devel] missing (useful ?) feature in the IDE In-Reply-To: <200408021526.48731.gambas@...1...> References: <200408021457.32668.lordheavy@...141...> <200408021517.24696.lordheavy@...141...> <200408021526.48731.gambas@...1...> Message-ID: <200408021539.38046.lordheavy@...141...> Le lundi 2 Ao?t 2004 15:26, Benoit Minisini a ?crit?: > On Monday 02 August 2004 15:17, Laurent Carlier wrote: > > Le lundi 2 Ao?t 2004 15:04, Benoit Minisini a ?crit?: > > > On Monday 02 August 2004 14:57, Laurent Carlier wrote: > > > > It should be useful to add a "run with args" in the IDE that should > > > > help to test project with command line. > > > > > > > > thanks > > > > > > Put your arguments in the 'Arguments' text field in the project > > > property dialog. > > > > > > Regards, > > > > Thanks beno?t, > > > > But it looklikes an 'hidden feature' ! > > No more than in VB :-) .. and i don't known anything of this "awful proprietary VB" app, i NEITHER use it so .... Perhaps adding it with a long click (is it possible ?) on the start icon ? (yes i 've found this nice shortcut :) ) -- Laurent Carlier From lordheavy at ...141... Mon Aug 2 16:45:54 2004 From: lordheavy at ...141... (Laurent Carlier) Date: Mon, 2 Aug 2004 16:45:54 +0200 Subject: [Gambas-devel] missing (useful ?) feature in the IDE In-Reply-To: <200408020930.52364.sourceforge-raindog2@...19...> References: <200408021457.32668.lordheavy@...141...> <200408021517.24696.lordheavy@...141...> <200408020930.52364.sourceforge-raindog2@...19...> Message-ID: <200408021645.54031.lordheavy@...141...> Le lundi 2 Ao?t 2004 15:30, Rob a ?crit?: > On Monday 02 August 2004 09:17, Laurent Carlier wrote: > > > Put your arguments in the 'Arguments' text field in the > > > project property dialog. > > > > Thanks beno?t, > > But it looklikes an 'hidden feature' ! it should be better to > > add a menu entry (missing too a 'Run program' entry) > > VB does it the same way as gambas, or used to... but I would like > to see a "Run Program..." (maybe shift-f5?) that brings up a > dialog prompting the user for run-time options. > > Rob > > Here is a quick "hack" of 2 files ( adding 2 files), put them to the project of the IDE, compile and test .... There's 2 new menu entries : run the project (f5) and run the project with args (shift+f5) It should work -- Laurent Carlier -------------- next part -------------- A non-text attachment was scrubbed... Name: mygambas.tar.bz2 Type: application/x-tbz Size: 4765 bytes Desc: not available URL: From gambas at ...144... Mon Aug 2 17:58:59 2004 From: gambas at ...144... (Tor Krill) Date: Mon, 02 Aug 2004 17:58:59 +0200 Subject: [Gambas-devel] Packaging gambas Message-ID: <1091462338.1465.114.camel@...145...> Hi, I'm trying to build a package for gambas for my favourite distro, archlinux http://archlinux.org/. I think compilation goes alright, using gcc 3.4.1. The problem is however when at the make install step in this environment. Because i am building a package rather than doing a normal install i try to use the buildprocess to my advangtage. Here is what i have tried so far. (I have done a normal build and install which seems to be working) To configure: ============= CXXFLAGS=-fpermissive ./configure --disable-kde \ --with-qt-includes=/opt/qt/include --with-qt-libraries=/opt/qt/lib \ --with-moc=/opt/qt/bin/ The CXXFLAGS is to turn some errors into warnings. GCC 3.4 is a little more picky than the older ones. Building: ========= I just issue make Installing: =========== This is the part that fails miserably. First attempt I issue: make ROOT=$startdir/pkg DESTDIR=$startdir/pkg install Then libtool(?) fails with (Sorry for the wrapped lines): Making install in lib make[2]: Entering directory `/home/tor/packages/gambas/src/gambas-0.96/src/lib' Making install in debug make[3]: Entering directory `/home/tor/packages/gambas/src/gambas-0.96/src/lib/debug' make[4]: Entering directory `/home/tor/packages/gambas/src/gambas-0.96/src/lib/debug' /bin/sh ../../../mkinstalldirs /home/tor/packages/gambas/src/gambas-0.96/target/opt/gambas/lib/gambas /bin/sh ../../../libtool --mode=install /bin/install -c lib.gb.debug.la /home/tor/packages/gambas/src/gambas-0.96/target/opt/gambas/lib/gambas/lib.gb.debug.la /bin/install -c .libs/lib.gb.debug.so.0.0.0 /home/tor/packages/gambas/src/gambas-0.96/target/opt/gambas/lib/gambas/lib.gb.debug.so.0.0.0 (cd /home/tor/packages/gambas/src/gambas-0.96/target/opt/gambas/lib/gambas && rm -f lib.gb.debug.so.0 && ln -s lib.gb.debug.so.0.0.0 lib.gb.debug.so.0) (cd /home/tor/packages/gambas/src/gambas-0.96/target/opt/gambas/lib/gambas && rm -f lib.gb.debug.so && ln -s lib.gb.debug.so.0.0.0 lib.gb.debug.so) /bin/install -c .libs/lib.gb.debug.lai /home/tor/packages/gambas/src/gambas-0.96/target/opt/gambas/lib/gambas/lib.gb.debug.la libtool: install: warning: remember to run `libtool --finish /opt/gambas/lib/gambas' cp: cannot create regular file `/opt/gambas/lib/gambas/lib.gb.debug.component': Permission denied make[4]: *** [install-exec-local] Error 1 make[4]: Leaving directory `/home/tor/packages/gambas/src/gambas-0.96/src/lib/debug' make[3]: *** [install-am] Error 2 make[3]: Leaving directory `/home/tor/packages/gambas/src/gambas-0.96/src/lib/debug' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/home/tor/packages/gambas/src/gambas-0.96/src/lib' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/tor/packages/gambas/src/gambas-0.96/src' make: *** [install-recursive] Error 1 I then try another way which gets me a bit longer: mkdir -p $startdir/pkg/usr/bin make ROOT=$startdir/pkg prefix=$startdir/pkg/opt/gambas install And get: make[1]: Entering directory `/home/tor/packages/gambas/src/gambas-0.96' make[2]: Entering directory `/home/tor/packages/gambas/src/gambas-0.96' Installing with ROOT=/home/tor/packages/gambas/pkg Making symbolic links in /usr/bin... Creating the library info files... /home/tor/packages/gambas/pkg/opt/gambas/share/gambas/info/gb.net.info make[2]: *** [install-exec-local] Segmentation fault make[2]: Leaving directory `/home/tor/packages/gambas/src/gambas-0.96' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/home/tor/packages/gambas/src/gambas-0.96' make: *** [install-recursive] Error 1 ==> ERROR: Build Failed. Aborting... Here i get a segmentation fault from the gbi executable. Since im not used to Gambas itself i am not sure why this happens or what the gbi executable should do. Regards, /Tor From gambas at ...1... Mon Aug 2 18:01:19 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Aug 2004 18:01:19 +0200 Subject: [Gambas-devel] Packaging gambas In-Reply-To: <1091462338.1465.114.camel@...145...> References: <1091462338.1465.114.camel@...145...> Message-ID: <200408021801.19430.gambas@...1...> On Monday 02 August 2004 17:58, Tor Krill wrote: > Hi, > > I'm trying to build a package for gambas for my favourite distro, > archlinux http://archlinux.org/. > > I think compilation goes alright, using gcc 3.4.1. The problem is > however when at the make install step in this environment. > > Because i am building a package rather than doing a normal install i try > to use the buildprocess to my advangtage. Here is what i have tried so > far. (I have done a normal build and install which seems to be working) > > To configure: > ============= > CXXFLAGS=-fpermissive ./configure --disable-kde \ > --with-qt-includes=/opt/qt/include --with-qt-libraries=/opt/qt/lib \ > --with-moc=/opt/qt/bin/ > > The CXXFLAGS is to turn some errors into warnings. GCC 3.4 is a little > more picky than the older ones. > > Building: > ========= > > I just issue make > > Installing: > =========== > > This is the part that fails miserably. > > First attempt > > I issue: > > make ROOT=$startdir/pkg DESTDIR=$startdir/pkg install > > Then libtool(?) fails with (Sorry for the wrapped lines): > > Making install in lib > make[2]: Entering directory > `/home/tor/packages/gambas/src/gambas-0.96/src/lib' > Making install in debug > make[3]: Entering directory > `/home/tor/packages/gambas/src/gambas-0.96/src/lib/debug' > make[4]: Entering directory > `/home/tor/packages/gambas/src/gambas-0.96/src/lib/debug' > /bin/sh ../../../mkinstalldirs > /home/tor/packages/gambas/src/gambas-0.96/target/opt/gambas/lib/gambas > /bin/sh ../../../libtool --mode=install /bin/install -c lib.gb.debug.la > /home/tor/packages/gambas/src/gambas-0.96/target/opt/gambas/lib/gambas/lib. >gb.debug.la /bin/install -c .libs/lib.gb.debug.so.0.0.0 > /home/tor/packages/gambas/src/gambas-0.96/target/opt/gambas/lib/gambas/lib. >gb.debug.so.0.0.0 (cd > /home/tor/packages/gambas/src/gambas-0.96/target/opt/gambas/lib/gambas > && rm -f lib.gb.debug.so.0 && ln -s lib.gb.debug.so.0.0.0 > lib.gb.debug.so.0) > (cd > /home/tor/packages/gambas/src/gambas-0.96/target/opt/gambas/lib/gambas > && rm -f lib.gb.debug.so && ln -s lib.gb.debug.so.0.0.0 lib.gb.debug.so) > /bin/install -c .libs/lib.gb.debug.lai > /home/tor/packages/gambas/src/gambas-0.96/target/opt/gambas/lib/gambas/lib. >gb.debug.la libtool: install: warning: remember to run `libtool --finish > /opt/gambas/lib/gambas' > cp: cannot create regular file > `/opt/gambas/lib/gambas/lib.gb.debug.component': Permission denied > make[4]: *** [install-exec-local] Error 1 > make[4]: Leaving directory > `/home/tor/packages/gambas/src/gambas-0.96/src/lib/debug' > make[3]: *** [install-am] Error 2 > make[3]: Leaving directory > `/home/tor/packages/gambas/src/gambas-0.96/src/lib/debug' > make[2]: *** [install-recursive] Error 1 > make[2]: Leaving directory > `/home/tor/packages/gambas/src/gambas-0.96/src/lib' > make[1]: *** [install-recursive] Error 1 > make[1]: Leaving directory > `/home/tor/packages/gambas/src/gambas-0.96/src' > make: *** [install-recursive] Error 1 > > > I then try another way which gets me a bit longer: > > mkdir -p $startdir/pkg/usr/bin > make ROOT=$startdir/pkg prefix=$startdir/pkg/opt/gambas install > > And get: > > make[1]: Entering directory `/home/tor/packages/gambas/src/gambas-0.96' > make[2]: Entering directory `/home/tor/packages/gambas/src/gambas-0.96' > Installing with ROOT=/home/tor/packages/gambas/pkg > > Making symbolic links in /usr/bin... > > Creating the library info files... > /home/tor/packages/gambas/pkg/opt/gambas/share/gambas/info/gb.net.info > make[2]: *** [install-exec-local] Segmentation fault > make[2]: Leaving directory `/home/tor/packages/gambas/src/gambas-0.96' > make[1]: *** [install-am] Error 2 > make[1]: Leaving directory `/home/tor/packages/gambas/src/gambas-0.96' > make: *** [install-recursive] Error 1 > ==> ERROR: Build Failed. Aborting... > > Here i get a segmentation fault from the gbi executable. > > Since im not used to Gambas itself i am not sure why this happens or > what the gbi executable should do. gbi creates *.info and *.class files that describe the components. Can you use gdb to see where gbi crashes: $ gdb /home/tor/packages/gambas/pkg/opt/gambas/bin/gbi ... $ setenv ROOT /home/tor/packages/gambas/pkg $ run ... Thanks in advance. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...144... Mon Aug 2 18:38:28 2004 From: gambas at ...144... (Tor Krill) Date: Mon, 02 Aug 2004 18:38:28 +0200 Subject: [Gambas-devel] Packaging gambas In-Reply-To: <200408021801.19430.gambas@...1...> References: <1091462338.1465.114.camel@...145...> <200408021801.19430.gambas@...1...> Message-ID: <1091464708.1465.121.camel@...145...> Hi Benoit and thank You for your quick reply, On Mon, 2004-08-02 at 18:01, Benoit Minisini wrote: > > Creating the library info files... > > /home/tor/packages/gambas/pkg/opt/gambas/share/gambas/info/gb.net.info > > make[2]: *** [install-exec-local] Segmentation fault > > make[2]: Leaving directory `/home/tor/packages/gambas/src/gambas-0.96' > > make[1]: *** [install-am] Error 2 > > make[1]: Leaving directory `/home/tor/packages/gambas/src/gambas-0.96' > > make: *** [install-recursive] Error 1 > > ==> ERROR: Build Failed. Aborting... > > > > Here i get a segmentation fault from the gbi executable. > > > > Since im not used to Gambas itself i am not sure why this happens or > > what the gbi executable should do. > > gbi creates *.info and *.class files that describe the components. > > Can you use gdb to see where gbi crashes: I have attached a log of a short gdb session. I hope i got the arguments correct. Regards, /Tor -------------- next part -------------- A non-text attachment was scrubbed... Name: gdb.log Type: text/x-log Size: 1675 bytes Desc: not available URL: From gambas at ...1... Mon Aug 2 19:08:39 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Aug 2004 19:08:39 +0200 Subject: [Gambas-devel] Packaging gambas In-Reply-To: <1091464708.1465.121.camel@...145...> References: <1091462338.1465.114.camel@...145...> <200408021801.19430.gambas@...1...> <1091464708.1465.121.camel@...145...> Message-ID: <200408021908.39715.gambas@...1...> On Monday 02 August 2004 18:38, Tor Krill wrote: > Hi Benoit and thank You for your quick reply, > > On Mon, 2004-08-02 at 18:01, Benoit Minisini wrote: > > > Creating the library info files... > > > /home/tor/packages/gambas/pkg/opt/gambas/share/gambas/info/gb.net.info > > > make[2]: *** [install-exec-local] Segmentation fault > > > make[2]: Leaving directory `/home/tor/packages/gambas/src/gambas-0.96' > > > make[1]: *** [install-am] Error 2 > > > make[1]: Leaving directory `/home/tor/packages/gambas/src/gambas-0.96' > > > make: *** [install-recursive] Error 1 > > > ==> ERROR: Build Failed. Aborting... > > > > > > Here i get a segmentation fault from the gbi executable. > > > > > > Since im not used to Gambas itself i am not sure why this happens or > > > what the gbi executable should do. > > > > gbi creates *.info and *.class files that describe the components. > > > > Can you use gdb to see where gbi crashes: > > I have attached a log of a short gdb session. I hope i got the arguments > correct. > > Regards, > /Tor It is a crash in ld.so. Hum... Can you check that the shared library lib.gb.net.so has been correctly compiled ? I don't think so, as you told me that everything was working when compiling the package from scratch without special options. Regards, -- Benoit Minisini mailto:gambas at ...1... From lordheavy at ...141... Mon Aug 2 19:13:33 2004 From: lordheavy at ...141... (Laurent Carlier) Date: Mon, 2 Aug 2004 19:13:33 +0200 Subject: [Gambas-devel] bug in adding arguments Message-ID: <200408021913.33487.lordheavy@...141...> all is in this little demo :) -- Laurent Carlier -------------- next part -------------- A non-text attachment was scrubbed... Name: argsbug-0.0.1.tar.gz Type: application/x-tgz Size: 589 bytes Desc: not available URL: From gambas at ...1... Mon Aug 2 19:22:23 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Aug 2004 19:22:23 +0200 Subject: [Gambas-devel] bug in adding arguments In-Reply-To: <200408021913.33487.lordheavy@...141...> References: <200408021913.33487.lordheavy@...141...> Message-ID: <200408021922.23195.gambas@...1...> On Monday 02 August 2004 19:13, Laurent Carlier wrote: > all is in this little demo :) Indeed! -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon Aug 2 19:36:22 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Aug 2004 19:36:22 +0200 Subject: [Gambas-devel] bug in adding arguments In-Reply-To: <200408021913.33487.lordheavy@...141...> References: <200408021913.33487.lordheavy@...141...> Message-ID: <200408021936.22599.gambas@...1...> On Monday 02 August 2004 19:13, Laurent Carlier wrote: > all is in this little demo :) Here is a patch for the IDE. Use it with gambas 0.96 Regards, -- Benoit Minisini mailto:gambas at ...1... -------------- next part -------------- A non-text attachment was scrubbed... Name: FDebug.class Type: application/x-java Size: 11287 bytes Desc: not available URL: From lordheavy at ...141... Mon Aug 2 20:17:27 2004 From: lordheavy at ...141... (Laurent Carlier) Date: Mon, 2 Aug 2004 20:17:27 +0200 Subject: [Gambas-devel] bug in adding arguments In-Reply-To: <200408021936.22599.gambas@...1...> References: <200408021913.33487.lordheavy@...141...> <200408021936.22599.gambas@...1...> Message-ID: <200408022017.27381.lordheavy@...141...> Le lundi 2 Ao?t 2004 19:36, Benoit Minisini a ?crit?: > On Monday 02 August 2004 19:13, Laurent Carlier wrote: > > all is in this little demo :) > > Here is a patch for the IDE. Use it with gambas 0.96 > > Regards, sorry but .... it split too args like 'one args' as it should be managed like one not two Regards, -- Laurent Carlier From gambas at ...1... Mon Aug 2 20:58:40 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Aug 2004 20:58:40 +0200 Subject: [Gambas-devel] bug in adding arguments In-Reply-To: <200408022017.27381.lordheavy@...141...> References: <200408021913.33487.lordheavy@...141...> <200408021936.22599.gambas@...1...> <200408022017.27381.lordheavy@...141...> Message-ID: <200408022058.40630.gambas@...1...> On Monday 02 August 2004 20:17, Laurent Carlier wrote: > Le lundi 2 Ao?t 2004 19:36, Benoit Minisini a ?crit?: > > On Monday 02 August 2004 19:13, Laurent Carlier wrote: > > > all is in this little demo :) > > > > Here is a patch for the IDE. Use it with gambas 0.96 > > > > Regards, > > sorry but .... it split too args like 'one args' as it should be managed > like one not two > > Regards, What ?? -- Benoit Minisini mailto:gambas at ...1... From lordheavy at ...141... Mon Aug 2 21:11:00 2004 From: lordheavy at ...141... (Laurent Carlier) Date: Mon, 2 Aug 2004 21:11:00 +0200 Subject: [Gambas-devel] bug in adding arguments In-Reply-To: <200408022058.40630.gambas@...1...> References: <200408021913.33487.lordheavy@...141...> <200408022017.27381.lordheavy@...141...> <200408022058.40630.gambas@...1...> Message-ID: <200408022111.00124.lordheavy@...141...> > What ?? in French : cf livre le language c en 21 jours :) "Les arguments sont s?par?s les uns des autres sur la ligne de commande par des espaces. Si un des arguments que vous voulez passer est une cha?ne de caract?res contenant un ou plusieurs blancs, vous devez la placer entre guillemets. Comme ceci, par exemple : C:>\MONPROG "Jules et Jim" ..." ps : aussi avec : > MONPROG 'Pincemi et Pincemoi' Regards, -- Laurent Carlier From lordheavy at ...141... Mon Aug 2 21:23:52 2004 From: lordheavy at ...141... (Laurent Carlier) Date: Mon, 2 Aug 2004 21:23:52 +0200 Subject: [Gambas-devel] bug in adding arguments In-Reply-To: <200408022111.00124.lordheavy@...141...> References: <200408021913.33487.lordheavy@...141...> <200408022058.40630.gambas@...1...> <200408022111.00124.lordheavy@...141...> Message-ID: <200408022123.52917.lordheavy@...141...> Try this with the patch applied -- Laurent Carlier -------------- next part -------------- A non-text attachment was scrubbed... Name: argsbug-0.0.2.tar.gz Type: application/x-tgz Size: 600 bytes Desc: not available URL: From gambas at ...1... Mon Aug 2 21:28:12 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Aug 2004 21:28:12 +0200 Subject: [Gambas-devel] bug in adding arguments In-Reply-To: <200408022111.00124.lordheavy@...141...> References: <200408021913.33487.lordheavy@...141...> <200408022058.40630.gambas@...1...> <200408022111.00124.lordheavy@...141...> Message-ID: <200408022128.12403.gambas@...1...> On Monday 02 August 2004 21:11, Laurent Carlier wrote: > > What ?? > > in French : cf livre le language c en 21 jours :) > > "Les arguments sont s?par?s les uns des autres sur la ligne de commande par > des espaces. Si un des arguments que vous voulez passer est une cha?ne de > caract?res contenant un ou plusieurs blancs, vous devez la placer entre > guillemets. Comme ceci, par exemple : > > C:>\MONPROG "Jules et Jim" > > ..." > > ps : aussi avec : > MONPROG 'Pincemi et Pincemoi' > > Regards, This should work better. -- Benoit Minisini mailto:gambas at ...1... -------------- next part -------------- A non-text attachment was scrubbed... Name: FDebug.class Type: application/x-java Size: 11297 bytes Desc: not available URL: From lordheavy at ...141... Mon Aug 2 21:43:08 2004 From: lordheavy at ...141... (Laurent Carlier) Date: Mon, 2 Aug 2004 21:43:08 +0200 Subject: [Gambas-devel] bug in adding arguments In-Reply-To: <200408022128.12403.gambas@...1...> References: <200408021913.33487.lordheavy@...141...> <200408022111.00124.lordheavy@...141...> <200408022128.12403.gambas@...1...> Message-ID: <200408022143.08796.lordheavy@...141...> > > Regards, > > This should work better. this should works better (missing ' management) : aExec.Insert(Split(Project.Arguments, " ", Chr$(34)&"'")) Regards, -- Laurent Carlier From danielcampos at ...45... Mon Aug 2 23:42:57 2004 From: danielcampos at ...45... (Daniel Campos) Date: Mon, 02 Aug 2004 23:42:57 +0200 Subject: [Gambas-devel] Spanish translation 0.96 Message-ID: <1091482977.31074.0.camel@...102...> Here's spanish translation for 0.96 Regards, -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-database-manager-es-0.96.po Type: text/x-po Size: 17680 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-es-0.96.po Type: text/x-po Size: 62126 bytes Desc: not available URL: From gambas at ...144... Tue Aug 3 00:02:32 2004 From: gambas at ...144... (Tor Krill) Date: Tue, 03 Aug 2004 00:02:32 +0200 Subject: [Gambas-devel] Packaging gambas In-Reply-To: <200408021908.39715.gambas@...1...> References: <1091462338.1465.114.camel@...145...> <200408021801.19430.gambas@...1...> <1091464708.1465.121.camel@...145...> <200408021908.39715.gambas@...1...> Message-ID: <1091484151.1471.214.camel@...145...> On Mon, 2004-08-02 at 19:08, Benoit Minisini wrote: > On Monday 02 August 2004 18:38, Tor Krill wrote: > > Hi Benoit and thank You for your quick reply, > > > > On Mon, 2004-08-02 at 18:01, Benoit Minisini wrote: > > > > Creating the library info files... > > > > /home/tor/packages/gambas/pkg/opt/gambas/share/gambas/info/gb.net.info > > > > make[2]: *** [install-exec-local] Segmentation fault > > > > make[2]: Leaving directory `/home/tor/packages/gambas/src/gambas-0.96' > > > > make[1]: *** [install-am] Error 2 > > > > make[1]: Leaving directory `/home/tor/packages/gambas/src/gambas-0.96' > > > > make: *** [install-recursive] Error 1 > > > > ==> ERROR: Build Failed. Aborting... > > > > > > > > Here i get a segmentation fault from the gbi executable. > > > > > > > > Since im not used to Gambas itself i am not sure why this happens or > > > > what the gbi executable should do. > > > > > > gbi creates *.info and *.class files that describe the components. > > > > > > Can you use gdb to see where gbi crashes: > > > > I have attached a log of a short gdb session. I hope i got the arguments > > correct. > > > > Regards, > > /Tor > > It is a crash in ld.so. Hum... Can you check that the shared library > lib.gb.net.so has been correctly compiled ? As far as i can tell the lib.gb.net.so has been correctly built. > I don't think so, as you told me > that everything was working when compiling the package from scratch without > special options. Yes when only compiling and installing it. I get a running version of gambas. I have narrowed it down to that gbi crashes horribly on gb.qt When running gbi from within the "installation directory" and issueing: ./bin/gbi gb.qt I get a segmentation fault while gb.net works fine. When seing this there seems to be something wrong with my environment(?) My qt installation is installed under /opt/qt and i do not have any kde installation. Further more, this setup is working when running as root. When im building packages i try not to do that as root but rather building as my self. Using fakeroot when necessary. Other observations is that when i have a working installation of gambas on my computer. The package building succeeds. Removing the installation makes it crash again. Also, the size of lib.gb.qt.so.0.0.0 differs between the successful install and the package building process. It seems that something in the intallment procedure requires that some parts are where they should finaly be installed? Or that the qt library is treated diffrently during install as root or not. Regards, /Tor From lordheavy at ...141... Tue Aug 3 00:05:17 2004 From: lordheavy at ...141... (Laurent Carlier) Date: Tue, 3 Aug 2004 00:05:17 +0200 Subject: [Gambas-devel] Packaging gambas In-Reply-To: <1091484151.1471.214.camel@...145...> References: <1091462338.1465.114.camel@...145...> <200408021908.39715.gambas@...1...> <1091484151.1471.214.camel@...145...> Message-ID: <200408030005.17763.lordheavy@...141...> Perhaps you should take a look at the gentoo patch ? -- Laurent Carlier -------------- next part -------------- A non-text attachment was scrubbed... Name: non-symlink-0.95.patch Type: text/x-diff Size: 2384 bytes Desc: not available URL: From gambas at ...1... Tue Aug 3 00:10:09 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 Aug 2004 00:10:09 +0200 Subject: [Gambas-devel] Packaging gambas In-Reply-To: <1091484151.1471.214.camel@...145...> References: <1091462338.1465.114.camel@...145...> <200408021908.39715.gambas@...1...> <1091484151.1471.214.camel@...145...> Message-ID: <200408030010.10071.gambas@...1...> On Tuesday 03 August 2004 00:02, Tor Krill wrote: > On Mon, 2004-08-02 at 19:08, Benoit Minisini wrote: > > On Monday 02 August 2004 18:38, Tor Krill wrote: > > > Hi Benoit and thank You for your quick reply, > > > > > > On Mon, 2004-08-02 at 18:01, Benoit Minisini wrote: > > > > > Creating the library info files... > > > > > /home/tor/packages/gambas/pkg/opt/gambas/share/gambas/info/gb.net.i > > > > >nfo make[2]: *** [install-exec-local] Segmentation fault > > > > > make[2]: Leaving directory > > > > > `/home/tor/packages/gambas/src/gambas-0.96' make[1]: *** > > > > > [install-am] Error 2 > > > > > make[1]: Leaving directory > > > > > `/home/tor/packages/gambas/src/gambas-0.96' make: *** > > > > > [install-recursive] Error 1 > > > > > ==> ERROR: Build Failed. Aborting... > > > > > > > > > > Here i get a segmentation fault from the gbi executable. > > > > > > > > > > Since im not used to Gambas itself i am not sure why this happens > > > > > or what the gbi executable should do. > > > > > > > > gbi creates *.info and *.class files that describe the components. > > > > > > > > Can you use gdb to see where gbi crashes: > > > > > > I have attached a log of a short gdb session. I hope i got the > > > arguments correct. > > > > > > Regards, > > > /Tor > > > > It is a crash in ld.so. Hum... Can you check that the shared library > > lib.gb.net.so has been correctly compiled ? > > As far as i can tell the lib.gb.net.so has been correctly built. > > > I don't think so, as you told me > > that everything was working when compiling the package from scratch > > without special options. > > Yes when only compiling and installing it. I get a running version of > gambas. > > I have narrowed it down to that gbi crashes horribly on gb.qt > > When running gbi from within the "installation directory" and issueing: > > ./bin/gbi gb.qt > > I get a segmentation fault while gb.net works fine. When seing this > there seems to be something wrong with my environment(?) > > My qt installation is installed under /opt/qt and i do not have any kde > installation. > > Further more, this setup is working when running as root. When im > building packages i try not to do that as root but rather building as my > self. Using fakeroot when necessary. > > Other observations is that when i have a working installation of gambas > on my computer. The package building succeeds. Removing the installation > makes it crash again. > > Also, the size of lib.gb.qt.so.0.0.0 differs between the successful > install and the package building process. > > It seems that something in the intallment procedure requires that some > parts are where they should finaly be installed? Or that the qt library > is treated diffrently during install as root or not. It is very strange. Not that I make mandrake rpm packages on my machine, and everything is compiled and installed in a temporary directory, as a non-root user. And everything works fine. Regards, -- Benoit Minisini mailto:gambas at ...1... From lordheavy at ...141... Tue Aug 3 00:13:16 2004 From: lordheavy at ...141... (Laurent Carlier) Date: Tue, 3 Aug 2004 00:13:16 +0200 Subject: [Gambas-devel] Packaging gambas In-Reply-To: <200408030010.10071.gambas@...1...> References: <1091462338.1465.114.camel@...145...> <1091484151.1471.214.camel@...145...> <200408030010.10071.gambas@...1...> Message-ID: <200408030013.16186.lordheavy@...141...> > > It is very strange. > > Not that I make mandrake rpm packages on my machine, and everything is > compiled and installed in a temporary directory, as a non-root user. And > everything works fine. > > Regards, Does It seem like that http://bugs.gentoo.org/show_bug.cgi?id=52432 ? Previous post gets the gentoo patch file of gambas 0.95 -- Laurent Carlier From gambasfr at ...4... Tue Aug 3 22:47:45 2004 From: gambasfr at ...4... (Bodard Fabien) Date: Tue, 3 Aug 2004 22:47:45 +0200 Subject: [Gambas-devel] Segmentation fault Message-ID: <200408032247.45287.gambasfr@...4...> Hi benoit i can't edit or read the data of my database on mysql ! Fabien Bodard [gambas at ...102... gambas-database-manager]$ gdb gbx GNU gdb 6.0-2mdk (Mandrake Linux) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-mandrake-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) set args -p (gdb) run Starting program: /usr/bin/gbx -p [Thread debugging using libthread_db enabled] [New Thread 1075449984 (LWP 6041)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1075449984 (LWP 6041)] 0x08061ea7 in STRING_unref (ptr=0xbfffe434) at gbx_string.c:325 325 if ((--str->ref) <= 0) (gdb) bt #0 0x08061ea7 in STRING_unref (ptr=0xbfffe434) at gbx_string.c:325 #1 0x0805e42d in GB_FreeString (str=0xbfffe434) at gbx_api.c:1221 #2 0x40e70ca3 in field_index (Result=0x81bb048, name=0x81bd188 "id", handle=0x81444d0, version=40018) at main.c:725 #3 0x401dac3f in CRESULTFIELD_find (result=Variable "result" is not available. ) at CResultField.c:55 #4 0x401dad2e in CRESULTFIELD_get (result=Variable "result" is not available. ) at CResultField.c:95 #5 0x08066562 in get_from_key (_object=0x81bf198, key=0x81bd188 "id", len=2) at gbx_c_subcollection.c:122 #6 0x401daf5f in CRESULTFIELD_next (_object=0x81bf198, _param=0x8074b68) at CResultField.c:230 #7 0x0804ed70 in EXEC_call_native (exec=0x401daf02 , object=0x81bf198, type=134716632, param=0x8074b68) at gbx_exec.c:650 #8 0x0804ef26 in EXEC_native () at gbx_exec.c:741 #9 0x0804f2a6 in EXEC_spec (special=5, class=0x8079dc0, object=0x81bf198, nparam=0, drop=0 '\0') at gbx_exec.c:956 #10 0x08050cac in EXEC_enum_next (code=9984) at gbx_exec_enum.c:67 #11 0x08050147 in EXEC_loop () at gbx_exec_loop.c:1204 #12 0x0804eba7 in EXEC_function_real (keep_ret_value=0 '\0') at gbx_exec.c:550 #13 0x0804f2be in EXEC_spec (special=0, class=0x81455c0, object=0x8140120, nparam=3, drop=1 '\001') at gbx_exec.c:963 #14 0x0804f38a in EXEC_special_inheritance (special=0, class=0x81455c0, object=0x8140120, nparam=3, drop=1 '\001') at gbx_exec.c:1060 #15 0x0804f53f in EXEC_new () at gbx_exec.c:1133 ---Type to continue, or q to quit--- #16 0x0804fca3 in EXEC_loop () at gbx_exec_loop.c:899 #17 0x0804eba7 in EXEC_function_real (keep_ret_value=1 '\001') at gbx_exec.c:550 #18 0x0805d532 in call_method (object=0x8148d40, desc=0x818dfcc, nparam=0) at gbx_api.c:345 #19 0x0805d626 in GB_Raise (event_id=15, nparam=0) at gbx_api.c:434 #20 0x4022ebd8 in CTabStrip::currentChanged(QWidget*) (this=Variable "this" is not available. ) at CTabStrip.cpp:526 #21 0x4022dfbe in CTabStrip::qt_invoke(int, QUObject*) (this=0x4024c820, _id=Variable "_id" is not available. ) at qucom_p.h:312 #22 0x405f5432 in QObject::activate_signal(QConnectionList*, QUObject*) () from /usr/lib/qt3/lib/libqt-mt.so.3 #23 0x40a3d998 in ?? () from /usr/lib/qt3/lib/libqt-mt.so.3 #24 0x08148360 in ?? () #25 0x00000003 in ?? () (gdb) Quit (gdb) From gambas at ...1... Wed Aug 4 00:10:45 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 Aug 2004 00:10:45 +0200 Subject: [Gambas-devel] Spanish translation 0.96 In-Reply-To: <1091482977.31074.0.camel@...102...> References: <1091482977.31074.0.camel@...102...> Message-ID: <200408040010.45986.gambas@...1...> On Monday 02 August 2004 23:42, Daniel Campos wrote: > Here's spanish translation for 0.96 > > Regards, Thank you Daniel. -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed Aug 4 00:15:24 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 Aug 2004 00:15:24 +0200 Subject: [Gambas-devel] Segmentation fault In-Reply-To: <200408032247.45287.gambasfr@...4...> References: <200408032247.45287.gambasfr@...4...> Message-ID: <200408040015.24029.gambas@...1...> On Tuesday 03 August 2004 22:47, Bodard Fabien wrote: > Hi benoit > > i can't edit or read the data of my database on mysql ! > > Fabien Bodard > Thanks for the bug report. This made the bug easy to found. It was located in the mysql driver, and I join a new "main.c" file to put in ./src/lib/db/mysql Regards, -- Benoit Minisini mailto:gambas at ...1... -------------- next part -------------- A non-text attachment was scrubbed... Name: main.c Type: text/x-csrc Size: 59049 bytes Desc: not available URL: From karl.reinl at ...16... Wed Aug 4 22:08:30 2004 From: karl.reinl at ...16... (Charlie) Date: Wed, 04 Aug 2004 22:08:30 +0200 Subject: [Gambas-devel] Pretty Printer for gambas-0.96 Message-ID: <4111423E.9040709@...16...> Salut Beno?t, I send you the PrettyPrinter for gambas-0.96. I changed FEditor and FOption from the IDE . In the FEditor I added a ToolButton to call it and in FOption a Button to configure it. I made a script to install and patch all the files, but you have to copy the unpacked PrettyPrinter Dir into the gambas-0.96 Directory, then cd to .../gambas-0.96/PrettyPrinter Dir and start the ./PrettyPrinter.sh script. I make a copy of each file who will be patched, back to the PrettyPrinter Dir. At the end I make a su -c 'make install' Hope you enjoy, because I would like to see it included in gambas. Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: PrettyPrinter.tar.bz2 Type: application/octet-stream Size: 19670 bytes Desc: not available URL: From gambas at ...144... Wed Aug 4 22:28:36 2004 From: gambas at ...144... (Tor Krill) Date: Wed, 04 Aug 2004 22:28:36 +0200 Subject: [Gambas-devel] Packaging gambas (Solved) In-Reply-To: <200408030013.16186.lordheavy@...141...> References: <1091462338.1465.114.camel@...145...> <1091484151.1471.214.camel@...145...> <200408030010.10071.gambas@...1...> <200408030013.16186.lordheavy@...141...> Message-ID: <1091651315.1534.70.camel@...145...> Hi, I now manage to build a package of gambas 0.96 for archlinux. But i must say that im not satisfied because i have not managed to narrow the problem. On Tue, 2004-08-03 at 00:13, Laurent Carlier wrote: > > > > It is very strange. > > > > Not that I make mandrake rpm packages on my machine, and everything is > > compiled and installed in a temporary directory, as a non-root user. And > > everything works fine. > > > > Regards, > > Does It seem like that http://bugs.gentoo.org/show_bug.cgi?id=52432 ? > > Previous post gets the gentoo patch file of gambas 0.95 Yes this looked quite a lot like my problems. However not on the exact line/module. The patch however did not apply cleanly, so i never got around to test it. The problem seems to have something to do with glibc. Because when archlinux upgraded to version 2.3.3 everything worked. (I also have disabled preloading. But im not sure this has anything to do with it starting to work.) If anybody is interrested in the "buildscript" you can find it here: http://bbs.archlinux.org/viewtopic.php?t=5993 Thanks Benoit and Laurent for your help. Regards, /Tor From gambas at ...1... Wed Aug 4 22:31:34 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 Aug 2004 22:31:34 +0200 Subject: [Gambas-devel] Pretty Printer for gambas-0.96 In-Reply-To: <4111423E.9040709@...16...> References: <4111423E.9040709@...16...> Message-ID: <200408042231.34672.gambas@...1...> On Wednesday 04 August 2004 22:08, Charlie wrote: > Salut Beno?t, > > I send you the PrettyPrinter for gambas-0.96. > I changed FEditor and FOption from the IDE . > In the FEditor I added a ToolButton to call it and in FOption a Button > to configure it. > > I made a script to install and patch all the files, but you have to copy > the unpacked PrettyPrinter Dir into the > gambas-0.96 Directory, then cd to .../gambas-0.96/PrettyPrinter Dir and > start the ./PrettyPrinter.sh script. > > I make a copy of each file who will be patched, back to the > PrettyPrinter Dir. > > At the end I make a su -c 'make install' > > Hope you enjoy, because I would like to see it included in gambas. > > Amicalement > Charlie Hi, Charlie. I would like to see your pretty printer in Gambas too, and I can include it now because I won't release a 0.97 immediately. I'm very glad that you took the time to make patches and a script to apply them. Alas, I prefer that you send me the whole files and not just the diffs, because it is easier for me to look at your modifications before inserting them in my current source tree (which is always more advanced than what I have released). And do you think it is possible to rewrite your pretty printer by using some functions I will export from the gb.eval component ? These functions will analyze the syntax for you, will tell you if a line is the beginning of a procedure, the end, a variable declaration, ... Tell me what you need. I tell you that, because these functions are needed by the IDE too when it does auto-completion (at the moment, part is done by the editor component, and part is done by the IDE itself). And Yizhou He (the chinese translator) want to integrate a function browser directly in the IDE project window, and so these functions will be welcome too. So, if you are agree, send me first your modifications as plain file so that I look at it. Then I will implement the needed functions in the gb.eval component, and will explain to you how to use them. Regards, -- Benoit Minisini mailto:gambas at ...1... From yizhou_he at ...143... Thu Aug 5 07:26:40 2004 From: yizhou_he at ...143... (Yizhou He) Date: Thu, 05 Aug 2004 13:26:40 +0800 Subject: [Gambas-devel] Find your sub easier improved version Message-ID: <3c2c3b33c2946b.3c2946b3c2c3b3@...143...> Hi: After read more source code of gambas and get some advise, I improved the function I proposed last time. Here is the changelog. it is write based on gambas-0.96. It still can not list the control of forms yet, I plan to make it list control under forms and by click it show the property of the control. Mr. Benoit Minisini, if you received my update on Chinese simplify translation, please let me know. Yizhou He '------- add sub in class FMain--------- PUBLIC SUB AddMethod(sClass AS String,sItemName AS String,iLine AS Integer) IF NOT tvwProject.exist(sClass & ":" & sItemName & "@" & iLine ) AND iLine<>0 THEN tvwProject.add(sClass & ":" & sItemName & "@" & iLine,sItemName,picture["img/16/method.png"],sClass) tvwProject.current.Expanded=TRUE END PUBLIC SUB ExpandClass(sClass AS String ) tvwProject.Current.Expanded=TRUE END '------- Modify sub in class FMain---- PUBLIC SUB tvwProject_Activate() DIM iAtPos AS Integer DIM iLine AS Integer DIM sLine AS String IF tvwProject.Key THEN IF CanEdit(tvwProject.Key) THEN iAtPos=Instr(tvwProject.Key,"@") IF iAtPos=0 THEN iLine=0 sLine=tvwProject.Key ELSE sLine=Right(tvwProject.Key,Len(tvwproject.Key)-iAtPos) iLine=CInt(sLine) sLine=Left(tvwProject.Key,Instr(tvwProject.Key,":")-1) ENDIF Project.OpenFile(sLine,iLine) ENDIF ENDIF END '--------- Modify sub in class FEditor ----------- PUBLIC FUNCTION Save() AS Boolean DIM iLig AS Integer DIM iProc AS Integer DIM iFull AS Integer DIM sLig AS String DIM iPosProc AS Integer DIM sData AS String DIM iLine AS Integer DIM iCol AS Integer DIM bChange AS Boolean DIM iCount AS Integer DIM iVoidLine AS Integer '----Yizhou He Start---------------- CreateMenu() '----Yizhou He End--------------- IF Project.ReadOnly THEN RETURN IF NOT $bModify THEN RETURN Save.Begin(Path) IF $bCleanOnSave THEN iProc = -1 iLine = edtEditor.Line iCol = edtEditor.Column iCount = edtEditor.Lines.Count FOR iLig = 0 TO iCount IF iLig < iCount THEN sLig = RTrim(edtEditor.Lines[iLig]) ELSE sLig = "SUB gambas()" ENDIF IF NOT LTrim(sLig) THEN INC iVoidLine CONTINUE ENDIF IF IsProc(sLig) THEN IF iProc >= 0 THEN IF iFull < 2 THEN bChange = TRUE sData = Left(sData, iPosProc) IF iLine > iProc THEN IF iLine < iLig THEN iLine = iProc - 1 ELSE iLine = iLine - (iLig - iProc + 1) ENDIF ENDIF ENDIF ENDIF iProc = iLig iFull = 0 iPosProc = Len(sData) ELSE INC iFull ENDIF IF iLig < iCount THEN sData = sData & String(iVoidLine, "\n") & sLig & "\n" iVoidLine = 0 ENDIF NEXT IF Len(sData) <> Len(edtEditor.Text) THEN File.Save(Path, sData) edtEditor.Frozen = TRUE edtEditor.Text = sData TRY edtEditor.Line = iLine IF Error = 0 THEN TRY edtEditor.Column = iCol ENDIF edtEditor.Frozen = FALSE ENDIF ENDIF IF NOT bChange THEN File.Save(Path, edtEditor.Text) $bModify = FALSE DrawTitle Save.End() CATCH RETURN Save.Error() END '-------- Modify sub in class FEditor ----------- PUBLIC SUB Goto(iLine AS Integer, OPTIONAL iColumn AS Integer = -1) DIM iPosEOL AS Integer DIM iposSOL AS Integer edtEditor.Line=iLine edtEditor.Column=0 iPosEOL=edtEditor.Pos edtEditor.Line = iLine - 1 iPosSOL=edtEditor.Pos IF iColumn >= 0 THEN edtEditor.Column = iColumn ELSE edtEditor.Select(iPosSOL,iPosEOL-iPosSOL-1) ENDIF createmenu END '------- Modify sub in class FEditor ---------- PRIVATE SUB CreateMenu() DIM iInd AS Integer DIM sLine AS String DIM sName AS String DIM hMenu AS Menu DIM cFunc AS NEW String[] DIM sParent AS String DIM sNewParent AS String DIM hParent AS Menu DIM sFullName AS String DIM sDesc AS String DIM iPos AS Integer 'IF $hMenuGo THEN $hMenuGo.Delete '$hMenuGo = NEW Menu(mnuEditor) '$hMenuGo.Caption = "&Go to" INC Application.Busy mnuGoto.Children.Clear $cLine.Clear FOR iInd = 0 TO edtEditor.Lines.Count - 1 'sLine = edtEditor.Lines[iInd] 'PRINT sLine IF IsProc(edtEditor.Lines[iInd]) THEN IF NOT $cLine.Exist($sName) THEN 'PRINT $sName 'IF $bPublic THEN $sName = "#" & $sName $cLine[$sName] = iInd cFunc.Add($sName) ENDIF ENDIF NEXT cFunc.Sort(gb.Text) hParent = mnuGoto '------ Yizhou He Start ------ project.ProjectTree[Path].Clear '------- Yizhou He End ------- 'UNTIL project.ProjectTree[sFullName].Count=0 FOR EACH sName IN cFunc 'IF Left$(sName) = "#" THEN ' sName = Mid$(sName, 2) ' $bPublic = TRUE 'ELSE ' $bPublic = FALSE 'ENDIF sFullName = sName iPos = Instr(sName, "_") IF iPos THEN sNewParent = Left$(sName, iPos - 1) sName = Mid$(sName, iPos + 1) IF Len(sNewParent) = 0 THEN sNewParent = "(Special)" sName = "_" & sName ENDIF ELSE sNewParent = "" ENDIF IF UCase(sNewParent) <> UCase(sParent) THEN IF sNewParent THEN hParent = NEW Menu(mnuGoto) hParent.Text = sNewParent ELSE hParent = mnuGoto ENDIF sParent = sNewParent ENDIF hMenu = NEW Menu(hParent) AS "mnuGoto" hMenu.Text = sName hMenu.Tag = sFullName hMenu.Checked = $bPublic '----Yizhou He Start----- fmain.AddMethod(Path,sFullName,$cLine[sFullName]+1) '----Yizhou He End----- NEXT mnuGoto.Visible = $cLine.count > 0 mnuSepGoto.Visible = $cLine.count > 0 'mnuWatch.Visible = Project.Running mnuWatch.Enabled = Project.Running AND Len(Trim(edtEditor.Selection.Text)) > 0 'btnWatch.Enabled = mnuWatch 'mnuSepWatch.Visible = Project.Running DEC Application.Busy END Yizhou He Research Technician (Xiong Lab) Lineberger Comprehensive Cancer Center University of North Carolina at Chapel Hill Chapel Hill, NC 27599-7295 Tel: (919)-962-2143 From yizhou_he at ...143... Thu Aug 5 07:34:46 2004 From: yizhou_he at ...143... (Yizhou He) Date: Thu, 05 Aug 2004 13:34:46 +0800 Subject: [Gambas-devel] Need advise about automatic changlog generator Message-ID: <3c27b573c252e7.3c252e73c27b57@...143...> Hi: I don't know Gambas have this function or not, I think it will be useful to have gambas be able to automaticly generate the change of source code. If a class or a form changed, Gambas will be able to tell with function or sub changed, by compare with unchanged one and find out what is inserted and what is changed, the record will based on as small unit as it could, All the change will be list in one file. If you have suggestion or know Gambas already have this function or some sub that I can use will be helpful. If you think this is useless function, Let me know too. Yizhou He Research Technician (Xiong Lab) Lineberger Comprehensive Cancer Center University of North Carolina at Chapel Hill Chapel Hill, NC 27599-7295 Tel: (919)-962-2143 ----- Original Message ----- From: gambas-devel-request at lists.sourceforge.net Date: Thursday, August 5, 2004 11:10 am Subject: Gambas-devel digest, Vol 1 #280 - 1 msg > Send Gambas-devel mailing list submissions to > gambas-devel at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/gambas-devel > or, via email, send a message with subject or body 'help' to > gambas-devel-request at lists.sourceforge.net > > You can reach the person managing the list at > gambas-devel-admin at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Gambas-devel digest..." > > > Today's Topics: > > 1. Re: Pretty Printer for gambas-0.96 (Benoit Minisini) > > --__--__-- > > Message: 1 > From: Benoit Minisini > To: gambas-devel at lists.sourceforge.net > Subject: Re: [Gambas-devel] Pretty Printer for gambas-0.96 > Date: Wed, 4 Aug 2004 22:31:34 +0200 > Reply-To: gambas-devel at lists.sourceforge.net > > On Wednesday 04 August 2004 22:08, Charlie wrote: > > Salut Beno=EEt, > > > > I send you the PrettyPrinter for gambas-0.96. > > I changed FEditor and FOption from the IDE . > > In the FEditor I added a ToolButton to call it and in FOption a > Button> to configure it. > > > > I made a script to install and patch all the files, but you have > to copy > > the unpacked PrettyPrinter Dir into the > > gambas-0.96 Directory, then cd to .../gambas-0.96/PrettyPrinter > Dir and > > start the ./PrettyPrinter.sh script. > > > > I make a copy of each file who will be patched, back to the > > PrettyPrinter Dir. > > > > At the end I make a su -c 'make install' > > > > Hope you enjoy, because I would like to see it included in gambas. > > > > Amicalement > > Charlie > > Hi, Charlie. > > I would like to see your pretty printer in Gambas too, and I can > include it= > =20 > now because I won't release a 0.97 immediately. > > I'm very glad that you took the time to make patches and a script > to apply= > =20 > them. Alas, I prefer that you send me the whole files and not just > the diff= > s,=20 > because it is easier for me to look at your modifications before > inserting==20 > them in my current source tree (which is always more advanced than > what I=20 > have released). > > And do you think it is possible to rewrite your pretty printer by > using som= > e=20 > functions I will export from the gb.eval component ? These > functions will=20 > analyze the syntax for you, will tell you if a line is the > beginning of a=20 > procedure, the end, a variable declaration, ... Tell me what you need. > > I tell you that, because these functions are needed by the IDE too > when it= > =20 > does auto-completion (at the moment, part is done by the editor > component,==20 > and part is done by the IDE itself). And Yizhou He (the chinese > translator)==20 > want to integrate a function browser directly in the IDE project > window, an= > d=20 > so these functions will be welcome too. > > So, if you are agree, send me first your modifications as plain > file so tha= > t I=20 > look at it. Then I will implement the needed functions in the > gb.eval=20component, and will explain to you how to use them. > > Regards, > > =2D-=20 > Benoit Minisini > mailto:gambas at ...1... > > > > --__--__-- > > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > > > End of Gambas-devel Digest > From yizhou_he at ...143... Thu Aug 5 17:03:45 2004 From: yizhou_he at ...143... (Yizhou He) Date: Thu, 05 Aug 2004 23:03:45 +0800 Subject: [Gambas-devel] update on Easier to find your subs Message-ID: <3c68f273c6dc09.3c6dc093c68f27@...143...> Sorry,guys I forget to include this change for "Easier to find your sub" function. All the change based on Gambas 0.96 '-------Modify sub in class FEditor---------- PUBLIC SUB Form_Activate() Project.Activate(ME) 'edtEditor.SetFocus '-------Yizhou He Start---------------- createmenu '-------Yizhou He End---------------- END '-------To make it complete, I include last change ------ '------- add sub in class FMain--------- PUBLIC SUB AddMethod(sClass AS String,sItemName AS String,iLine AS Integer) IF NOT tvwProject.exist(sClass & ":" & sItemName & "@" & iLine ) AND iLine<>0 THEN tvwProject.add(sClass & ":" & sItemName & "@" & iLine,sItemName,picture["img/16/method.png"],sClass) tvwProject.current.Expanded=TRUE END PUBLIC SUB ExpandClass(sClass AS String ) tvwProject.Current.Expanded=TRUE END '------- Modify sub in class FMain---- PUBLIC SUB tvwProject_Activate() DIM iAtPos AS Integer DIM iLine AS Integer DIM sLine AS String IF tvwProject.Key THEN IF CanEdit(tvwProject.Key) THEN iAtPos=Instr(tvwProject.Key,"@") IF iAtPos=0 THEN iLine=0 sLine=tvwProject.Key ELSE sLine=Right(tvwProject.Key,Len(tvwproject.Key)-iAtPos) iLine=CInt(sLine) sLine=Left(tvwProject.Key,Instr(tvwProject.Key,":")-1) ENDIF Project.OpenFile(sLine,iLine) ENDIF ENDIF END '--------- Modify sub in class FEditor ----------- PUBLIC FUNCTION Save() AS Boolean DIM iLig AS Integer DIM iProc AS Integer DIM iFull AS Integer DIM sLig AS String DIM iPosProc AS Integer DIM sData AS String DIM iLine AS Integer DIM iCol AS Integer DIM bChange AS Boolean DIM iCount AS Integer DIM iVoidLine AS Integer '----Yizhou He Start---------------- CreateMenu() '----Yizhou He End--------------- IF Project.ReadOnly THEN RETURN IF NOT $bModify THEN RETURN Save.Begin(Path) IF $bCleanOnSave THEN iProc = -1 iLine = edtEditor.Line iCol = edtEditor.Column iCount = edtEditor.Lines.Count FOR iLig = 0 TO iCount IF iLig < iCount THEN sLig = RTrim(edtEditor.Lines[iLig]) ELSE sLig = "SUB gambas()" ENDIF IF NOT LTrim(sLig) THEN INC iVoidLine CONTINUE ENDIF IF IsProc(sLig) THEN IF iProc >= 0 THEN IF iFull < 2 THEN bChange = TRUE sData = Left(sData, iPosProc) IF iLine > iProc THEN IF iLine < iLig THEN iLine = iProc - 1 ELSE iLine = iLine - (iLig - iProc + 1) ENDIF ENDIF ENDIF ENDIF iProc = iLig iFull = 0 iPosProc = Len(sData) ELSE INC iFull ENDIF IF iLig < iCount THEN sData = sData & String(iVoidLine, "\n") & sLig & "\n" iVoidLine = 0 ENDIF NEXT IF Len(sData) <> Len(edtEditor.Text) THEN File.Save(Path, sData) edtEditor.Frozen = TRUE edtEditor.Text = sData TRY edtEditor.Line = iLine IF Error = 0 THEN TRY edtEditor.Column = iCol ENDIF edtEditor.Frozen = FALSE ENDIF ENDIF IF NOT bChange THEN File.Save(Path, edtEditor.Text) $bModify = FALSE DrawTitle Save.End() CATCH RETURN Save.Error() END '-------- Modify sub in class FEditor ----------- PUBLIC SUB Goto(iLine AS Integer, OPTIONAL iColumn AS Integer = -1) DIM iPosEOL AS Integer DIM iposSOL AS Integer edtEditor.Line=iLine edtEditor.Column=0 iPosEOL=edtEditor.Pos edtEditor.Line = iLine - 1 iPosSOL=edtEditor.Pos IF iColumn >= 0 THEN edtEditor.Column = iColumn ELSE edtEditor.Select(iPosSOL,iPosEOL-iPosSOL-1) ENDIF createmenu END '------- Modify sub in class FEditor ---------- PRIVATE SUB CreateMenu() DIM iInd AS Integer DIM sLine AS String DIM sName AS String DIM hMenu AS Menu DIM cFunc AS NEW String[] DIM sParent AS String DIM sNewParent AS String DIM hParent AS Menu DIM sFullName AS String DIM sDesc AS String DIM iPos AS Integer 'IF $hMenuGo THEN $hMenuGo.Delete '$hMenuGo = NEW Menu(mnuEditor) '$hMenuGo.Caption = "&Go to" INC Application.Busy mnuGoto.Children.Clear $cLine.Clear FOR iInd = 0 TO edtEditor.Lines.Count - 1 'sLine = edtEditor.Lines[iInd] 'PRINT sLine IF IsProc(edtEditor.Lines[iInd]) THEN IF NOT $cLine.Exist($sName) THEN 'PRINT $sName 'IF $bPublic THEN $sName = "#" & $sName $cLine[$sName] = iInd cFunc.Add($sName) ENDIF ENDIF NEXT cFunc.Sort(gb.Text) hParent = mnuGoto '------ Yizhou He Start ------ project.ProjectTree[Path].Clear '------- Yizhou He End ------- FOR EACH sName IN cFunc 'IF Left$(sName) = "#" THEN ' sName = Mid$(sName, 2) ' $bPublic = TRUE 'ELSE ' $bPublic = FALSE 'ENDIF sFullName = sName iPos = Instr(sName, "_") IF iPos THEN sNewParent = Left$(sName, iPos - 1) sName = Mid$(sName, iPos + 1) IF Len(sNewParent) = 0 THEN sNewParent = "(Special)" sName = "_" & sName ENDIF ELSE sNewParent = "" ENDIF IF UCase(sNewParent) <> UCase(sParent) THEN IF sNewParent THEN hParent = NEW Menu(mnuGoto) hParent.Text = sNewParent ELSE hParent = mnuGoto ENDIF sParent = sNewParent ENDIF hMenu = NEW Menu(hParent) AS "mnuGoto" hMenu.Text = sName hMenu.Tag = sFullName hMenu.Checked = $bPublic '----Yizhou He Start----- fmain.AddMethod(Path,sFullName,$cLine[sFullName]+1) '----Yizhou He End----- NEXT mnuGoto.Visible = $cLine.count > 0 mnuSepGoto.Visible = $cLine.count > 0 'mnuWatch.Visible = Project.Running mnuWatch.Enabled = Project.Running AND Len(Trim(edtEditor.Selection.Text)) > 0 'btnWatch.Enabled = mnuWatch 'mnuSepWatch.Visible = Project.Running DEC Application.Busy END Research Technician (Xiong Lab) Lineberger Comprehensive Cancer Center University of North Carolina at Chapel Hill Chapel Hill, NC 27599-7295 Tel: (919)-962-2143 ----- Original Message ----- From: gambas-devel-request at lists.sourceforge.net Date: Thursday, August 5, 2004 11:10 am Subject: Gambas-devel digest, Vol 1 #280 - 1 msg > Send Gambas-devel mailing list submissions to > gambas-devel at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/gambas-devel > or, via email, send a message with subject or body 'help' to > gambas-devel-request at lists.sourceforge.net > > You can reach the person managing the list at > gambas-devel-admin at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Gambas-devel digest..." > > > Today's Topics: > > 1. Re: Pretty Printer for gambas-0.96 (Benoit Minisini) > > --__--__-- > > Message: 1 > From: Benoit Minisini > To: gambas-devel at lists.sourceforge.net > Subject: Re: [Gambas-devel] Pretty Printer for gambas-0.96 > Date: Wed, 4 Aug 2004 22:31:34 +0200 > Reply-To: gambas-devel at lists.sourceforge.net > > On Wednesday 04 August 2004 22:08, Charlie wrote: > > Salut Beno=EEt, > > > > I send you the PrettyPrinter for gambas-0.96. > > I changed FEditor and FOption from the IDE . > > In the FEditor I added a ToolButton to call it and in FOption a > Button> to configure it. > > > > I made a script to install and patch all the files, but you have > to copy > > the unpacked PrettyPrinter Dir into the > > gambas-0.96 Directory, then cd to .../gambas-0.96/PrettyPrinter > Dir and > > start the ./PrettyPrinter.sh script. > > > > I make a copy of each file who will be patched, back to the > > PrettyPrinter Dir. > > > > At the end I make a su -c 'make install' > > > > Hope you enjoy, because I would like to see it included in gambas. > > > > Amicalement > > Charlie > > Hi, Charlie. > > I would like to see your pretty printer in Gambas too, and I can > include it= > =20 > now because I won't release a 0.97 immediately. > > I'm very glad that you took the time to make patches and a script > to apply= > =20 > them. Alas, I prefer that you send me the whole files and not just > the diff= > s,=20 > because it is easier for me to look at your modifications before > inserting==20 > them in my current source tree (which is always more advanced than > what I=20 > have released). > > And do you think it is possible to rewrite your pretty printer by > using som= > e=20 > functions I will export from the gb.eval component ? These > functions will=20 > analyze the syntax for you, will tell you if a line is the > beginning of a=20 > procedure, the end, a variable declaration, ... Tell me what you need. > > I tell you that, because these functions are needed by the IDE too > when it= > =20 > does auto-completion (at the moment, part is done by the editor > component,==20 > and part is done by the IDE itself). And Yizhou He (the chinese > translator)==20 > want to integrate a function browser directly in the IDE project > window, an= > d=20 > so these functions will be welcome too. > > So, if you are agree, send me first your modifications as plain > file so tha= > t I=20 > look at it. Then I will implement the needed functions in the > gb.eval=20component, and will explain to you how to use them. > > Regards, > > =2D-=20 > Benoit Minisini > mailto:gambas at ...1... > > > > --__--__-- > > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > > > End of Gambas-devel Digest > From elentirmo at ...51... Thu Aug 5 20:12:52 2004 From: elentirmo at ...51... (Marco Bauer) Date: Thu, 5 Aug 2004 20:12:52 +0200 Subject: [Gambas-devel] German translation Message-ID: <200408052012.53279.elentirmo@...51...> Hi, here is the german translation for gambas 0.96 and the database manager. While preparing the new translation files I encountered a bug in the translation dialog. When exporting the translation to an existing file, no further confirmation is needed to overwrite the file. Greatings Marco -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-de-0.96.tar.bz2 Type: application/x-tbz Size: 14837 bytes Desc: not available URL: From yizhou_he at ...143... Thu Aug 5 22:32:22 2004 From: yizhou_he at ...143... (Yizhou He) Date: Fri, 06 Aug 2004 04:32:22 +0800 Subject: [Gambas-devel] Find your sub easier full function version Message-ID: <3cd262d3cd6be7.3cd6be73cd262d@...143...> Hi: I didn't expect I can slove the problem so fast, I guess I'm warmed up for Gambas. This version is report all the change compare to Gambas 0.96, I think I reach the goal I wanted. Sorry for release so many path in one day. Is there anyway to delete my previous two message about this? Yizhou He '-------Modify sub in class FEditor---------- PUBLIC SUB Form_Activate() Project.Activate(ME) 'edtEditor.SetFocus '-------Yizhou He Start---------------- createmenu '-------Yizhou He End---------------- END '-------Modify sub in class FForm---------- PUBLIC SUB Form_Activate() $bDoNotModify = FALSE Project.Activate(ME) 'FProperty.Show 'FToolBox.Show '-------Yizhou He Start---------------- createmenu '-------Yizhou He Ended---------------- END '------- add sub in class FMain--------- PUBLIC SUB AddMethod(sClass AS String,sItemName AS String,sPicture AS String,OPTIONAL iLine AS Integer) IF NOT tvwProject.exist(sClass & ":" & sItemName & "@" & iLine ) THEN tvwProject.add(sClass & ":" & sItemName & "@" & iLine,sItemName,picture[sPicture],sClass) tvwProject.current.Expanded=TRUE END '------- Modify sub in class FMain---- PUBLIC SUB tvwProject_Activate() DIM iAtPos AS Integer DIM sLineNumber AS String DIM sLineString AS String IF tvwProject.Key THEN IF CanEdit(tvwProject.Key) THEN iAtPos=Instr(tvwProject.Key,":") IF iAtPos=0 THEN sLineNumber="0" sLineString=tvwProject.Key ELSE sLineNumber=Right(tvwProject.Key,Len(tvwproject.Key)-Instr(tvwProject.Key,"@")) IF sLineNumber="0" THEN sLineNumber=Mid(tvwProject.Key,Instr(tvwProject.Key,":")+1,Instr(tvwProject.Key,"@")-Instr(tvwProject.Key,":")-1) sLineString=Left(tvwProject.Key,Instr(tvwProject.Key,":")-1) ENDIF Project.OpenFile(sLineString,sLineNumber) ENDIF ENDIF END '------- Modify sub in class FForm---- PUBLIC FUNCTION Save() AS Boolean DIM hFic AS File '-------Yizhou He Start---------------- createmenu '-------Yizhou He Ended---------------- IF Project.ReadOnly THEN RETURN IF NOT $bModify THEN RETURN UnselectAll Save.Begin(Path) ResetSave AddLine(Project.FORM_MAGIC) AddLine() SaveOne(Control[Name]) File.Save(Path, $sSave) 'OPEN Path & ".test" FOR CREATE AS #hFic ' y a un truc bizarre avec CREATE ! 'PRINT #hFic, $sSave 'CLOSE #hFic $sSave = "" $bModify = FALSE DrawTitle Save.End() CATCH RETURN Save.Error() END '--------- Modify sub in class FEditor ----------- PUBLIC FUNCTION Save() AS Boolean DIM iLig AS Integer DIM iProc AS Integer DIM iFull AS Integer DIM sLig AS String DIM iPosProc AS Integer DIM sData AS String DIM iLine AS Integer DIM iCol AS Integer DIM bChange AS Boolean DIM iCount AS Integer DIM iVoidLine AS Integer CreateMenu() IF Project.ReadOnly THEN RETURN IF NOT $bModify THEN RETURN Save.Begin(Path) IF $bCleanOnSave THEN iProc = -1 iLine = edtEditor.Line iCol = edtEditor.Column iCount = edtEditor.Lines.Count FOR iLig = 0 TO iCount IF iLig < iCount THEN sLig = RTrim(edtEditor.Lines[iLig]) ELSE sLig = "SUB gambas()" ENDIF IF NOT LTrim(sLig) THEN INC iVoidLine CONTINUE ENDIF IF IsProc(sLig) THEN IF iProc >= 0 THEN IF iFull < 2 THEN bChange = TRUE sData = Left(sData, iPosProc) IF iLine > iProc THEN IF iLine < iLig THEN iLine = iProc - 1 ELSE iLine = iLine - (iLig - iProc + 1) ENDIF ENDIF ENDIF ENDIF iProc = iLig iFull = 0 iPosProc = Len(sData) ELSE INC iFull ENDIF IF iLig < iCount THEN sData = sData & String(iVoidLine, "\n") & sLig & "\n" iVoidLine = 0 ENDIF NEXT IF Len(sData) <> Len(edtEditor.Text) THEN File.Save(Path, sData) edtEditor.Frozen = TRUE edtEditor.Text = sData TRY edtEditor.Line = iLine IF Error = 0 THEN TRY edtEditor.Column = iCol ENDIF edtEditor.Frozen = FALSE ENDIF ENDIF IF NOT bChange THEN File.Save(Path, edtEditor.Text) $bModify = FALSE DrawTitle Save.End() CATCH RETURN Save.Error() END '-------- Modify sub in class FEditor ----------- PUBLIC SUB Goto(iLine AS Integer, OPTIONAL iColumn AS Integer = -1) DIM iPosEOL AS Integer DIM iposSOL AS Integer edtEditor.Line=iLine edtEditor.Column=0 iPosEOL=edtEditor.Pos edtEditor.Line = iLine - 1 iPosSOL=edtEditor.Pos IF iColumn >= 0 THEN edtEditor.Column = iColumn ELSE edtEditor.Select(iPosSOL,iPosEOL-iPosSOL-1) ENDIF END '-------- Add sub in class FForm ----------- PUBLIC SUB Goto(sCtrl AS String) DIM hCtrl AS CControl DIM sName AS String createmenu FOR EACH hCtrl IN Control sName = hCtrl.Name IF sName =sCtrl THEN hCtrl.Select(ME) FProperty.Refreshall 'hCtrl.Selected=TRUE ELSE hCtrl.UnSelect(ME) ENDIF NEXT END '------- Modify sub in class FEditor ---------- PRIVATE SUB CreateMenu() DIM iInd AS Integer DIM sLine AS String DIM sName AS String DIM hMenu AS Menu DIM cFunc AS NEW String[] DIM sParent AS String DIM sNewParent AS String DIM hParent AS Menu DIM sFullName AS String DIM sDesc AS String DIM iPos AS Integer 'IF $hMenuGo THEN $hMenuGo.Delete '$hMenuGo = NEW Menu(mnuEditor) '$hMenuGo.Caption = "&Go to" INC Application.Busy mnuGoto.Children.Clear $cLine.Clear FOR iInd = 0 TO edtEditor.Lines.Count - 1 'sLine = edtEditor.Lines[iInd] 'PRINT sLine IF IsProc(edtEditor.Lines[iInd]) THEN IF NOT $cLine.Exist($sName) THEN 'PRINT $sName 'IF $bPublic THEN $sName = "#" & $sName $cLine[$sName] = iInd cFunc.Add($sName) ENDIF ENDIF NEXT cFunc.Sort(gb.Text) hParent = mnuGoto '-------Yizhou He Start------- project.ProjectTree[Path].Clear '-------Yizhou He Ended------- FOR EACH sName IN cFunc 'IF Left$(sName) = "#" THEN ' sName = Mid$(sName, 2) ' $bPublic = TRUE 'ELSE ' $bPublic = FALSE 'ENDIF sFullName = sName iPos = Instr(sName, "_") IF iPos THEN sNewParent = Left$(sName, iPos - 1) sName = Mid$(sName, iPos + 1) IF Len(sNewParent) = 0 THEN sNewParent = "(Special)" sName = "_" & sName ENDIF ELSE sNewParent = "" ENDIF IF UCase(sNewParent) <> UCase(sParent) THEN IF sNewParent THEN hParent = NEW Menu(mnuGoto) hParent.Text = sNewParent ELSE hParent = mnuGoto ENDIF sParent = sNewParent ENDIF hMenu = NEW Menu(hParent) AS "mnuGoto" hMenu.Text = sName hMenu.Tag = sFullName hMenu.Checked = $bPublic '-------Yizhou He Start------- IF Instr(sFullName,"_") THEN fmain.AddMethod(Path,sFullName,"img/16/event.png", $cLine[sFullName]+1) ELSE fmain.AddMethod(Path,sFullName,"img/16/method.png", $cLine[sFullName]+1) ENDIF '-------Yizhou He Ended-------- NEXT mnuGoto.Visible = $cLine.count > 0 mnuSepGoto.Visible = $cLine.count > 0 'mnuWatch.Visible = Project.Running mnuWatch.Enabled = Project.Running AND Len(Trim(edtEditor.Selection.Text)) > 0 'btnWatch.Enabled = mnuWatch 'mnuSepWatch.Visible = Project.Running DEC Application.Busy END '----------Modified sub in class FForm-------- PRIVATE SUB CreateMenu() DIM hCtrl AS CControl DIM hMenu AS Menu DIM cCtrl AS NEW String[] DIM sName AS String DIM cSymbol AS Collection DIM hSymbol AS CSymbolInfo DIM sGroup AS String mnuSelect.Children.Clear FOR EACH hCtrl IN Control sName = hCtrl.Name IF sName <> Name THEN IF hCtrl.Kind <> "Menu" THEN cCtrl.Add(sName) ENDIF ENDIF NEXT mnuSelect.Enabled = cCtrl.Count cCtrl.Sort(gb.Text) '-----------Yizhou He Start------- project.ProjectTree[Path].Clear '-----------Yizhou He Ended------- FOR EACH sName IN cCtrl hMenu = NEW Menu(mnuSelect) AS "mnuControl" hMenu.Text = sName '-------Yizhou He Start----------------- fmain.AddMethod(Path,sName,"img/16/control.png") '-------Yizhou He Ended------------------------------ NEXT mnuEvent.Visible = FALSE IF NOT $bReadOnly THEN IF Master THEN cCtrl = CComponent.Classes[Master.Kind].Events sGroup = Master.GetGroup() ELSE cCtrl = CComponent.Classes["Form"].Events sGroup = "Form" ENDIF IF cCtrl THEN mnuEvent.Children.Clear cSymbol = CComponent.GetClassSymbols(Name) FOR EACH sName IN cCtrl hMenu = NEW Menu(mnuEvent) AS "mnuEvent" hMenu.Text = sName hSymbol = cSymbol[sGroup & "_" & sName] IF hSymbol THEN IF hSymbol.Kind = "m" THEN hMenu.Checked = TRUE ENDIF NEXT mnuEvent.Visible = TRUE ENDIF ENDIF RefreshMenu END '-------- Modified sub in model Project-------- PUBLIC SUB OpenFile(sPath AS String, OPTIONAL sLine AS String) DIM hForm AS Object IF Instr(sPath, "/") = 0 THEN sPath = FindPath(sPath) IF NOT Exist(sPath) THEN Message.Warning("File not found!") Project.Refresh RETURN ENDIF 'IF File.Ext(sPath) = "form" THEN ' FProperty.Show ' FToolBox.Show 'ENDIF LoadFile(sPath) hForm = Files[sPath] IF NOT hForm THEN RETURN TRY hForm.SetReadOnly(Project.Running) hForm.Show IF Object.Type(hForm) = "FEditor" THEN hForm.Editor.SetFocus IF sLine THEN hForm.Goto(CInt(sLine)) ENDIF IF Object.Type(hForm) = "FForm" THEN 'hForm.control[sLine].SetFocus IF sLine THEN hForm.Goto(sLine) ENDIF END Yizhou He Research Technician (Xiong Lab) Lineberger Comprehensive Cancer Center University of North Carolina at Chapel Hill Chapel Hill, NC 27599-7295 Tel: (919)-962-2143 From karl.reinl at ...16... Thu Aug 5 23:44:49 2004 From: karl.reinl at ...16... (Charlie) Date: Thu, 05 Aug 2004 23:44:49 +0200 Subject: [Gambas-devel] Pretty Printer for gambas-0.96 References: <4111423E.9040709@...16...> <200408042231.34672.gambas@...1...> Message-ID: <4112AA51.7050601@...16...> Salut Beno?t, Benoit Minisini schrieb: >On Wednesday 04 August 2004 22:08, Charlie wrote: > > >>Salut Beno?t, >> >>I send you the PrettyPrinter for gambas-0.96. >>................................ >> >>Hope you enjoy, because I would like to see it included in gambas. >> >>Amicalement >>Charlie >> >> > >Hi, Charlie. > >I would like to see your pretty printer in Gambas too, and I can include it >now because I won't release a 0.97 immediately. > >I'm very glad that you took the time to make patches and a script to apply >them. Alas, I prefer that you send me the whole files and not just the diffs, >because it is easier for me to look at your modifications before inserting >them in my current source tree (which is always more advanced than what I >have released). > No problem > >And do you think it is possible to rewrite your pretty printer by using some >functions I will export from the gb.eval component ? These functions will >analyze the syntax for you, will tell you if a line is the beginning of a >procedure, the end, a variable declaration, ... Tell me what you need. > OK, but I need time to do that. I know what you mean, I had a look, and I wrote it to you about the gb.eval. > >I tell you that, because these functions are needed by the IDE too when it >does auto-completion (at the moment, part is done by the editor component, >and part is done by the IDE itself). And Yizhou He (the chinese translator) >want to integrate a function browser directly in the IDE project window, and >so these functions will be welcome too. > > I will send you soon both, for changes in gambas IDE changes and editor-C files. >So, if you are agree, send me first your modifications as plain file so that I >look at it. Then I will implement the needed functions in the gb.eval >component, and will explain to you how to use them. > >Regards, > > > Amicalement Charlie From Karl.Reinl at ...16... Sat Aug 7 02:03:54 2004 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Sat, 7 Aug 2004 00:03:54 +0000 Subject: [Gambas-devel] PrettyPrinter the sourec Files Message-ID: <200408070003.54109.Karl.Reinl@...16...> as said yesterday here are the sourec Files amicalemeent Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: PrettyPrinterSources.tar.bz2 Type: application/x-tbz Size: 61200 bytes Desc: not available URL: From yizhou_he at ...143... Sat Aug 7 09:21:09 2004 From: yizhou_he at ...143... (Yizhou He) Date: Sat, 07 Aug 2004 15:21:09 +0800 Subject: [Gambas-devel] Sample release for automatic changelog generator Message-ID: <3dc97ef3dc879f.3dc879f3dc97ef@...143...> Hi: Since I got no comments on this idea. I guess I need release a sample release. This is a crude version. Just finished 1. Automatic backup a class file before first save. all the change log will base on this backup. 2. Compare backup class file and saved file 3. Write changed function or sub into Changelog+version .txt file 4. Only after you change version number, it will make new backup and all the change will based on the new version. This version only narrow down to function or sub. later version will be able to mark changed lines. Comment and suggestion needed. thanks '--------Changed function in class FEditor--------- PUBLIC FUNCTION Save() AS Boolean DIM iLig AS Integer DIM iProc AS Integer DIM iFull AS Integer DIM sLig AS String DIM iPosProc AS Integer DIM sData AS String DIM iLine AS Integer DIM iCol AS Integer DIM bChange AS Boolean DIM iCount AS Integer DIM iVoidLine AS Integer '---Yizhou He Start---- DIM iBackup AS Integer DIM iSaved AS Integer DIM sBackup AS String DIM sSaved AS String DIM aBackup AS String[] DIM aSaved AS String[] DIM sChange AS String DIM iInd AS Integer IF NOT Exist(path & "." & project.Version) THEN COPY path TO path & "." & project.Version CreateMenu '---Yizhou He Ended--- IF Project.ReadOnly THEN RETURN IF NOT $bModify THEN RETURN Save.Begin(Path) IF $bCleanOnSave THEN iProc = -1 iLine = edtEditor.Line iCol = edtEditor.Column iCount = edtEditor.Lines.Count FOR iLig = 0 TO iCount IF iLig < iCount THEN sLig = RTrim(edtEditor.Lines[iLig]) ELSE sLig = "SUB gambas()" ENDIF IF NOT LTrim(sLig) THEN INC iVoidLine CONTINUE ENDIF IF IsProc(sLig) THEN IF iProc >= 0 THEN IF iFull < 2 THEN bChange = TRUE sData = Left(sData, iPosProc) IF iLine > iProc THEN IF iLine < iLig THEN iLine = iProc - 1 ELSE iLine = iLine - (iLig - iProc + 1) ENDIF ENDIF ENDIF ENDIF iProc = iLig iFull = 0 iPosProc = Len(sData) ELSE INC iFull ENDIF IF iLig < iCount THEN sData = sData & String(iVoidLine, "\n") & sLig & "\n" iVoidLine = 0 ENDIF NEXT IF Len(sData) <> Len(edtEditor.Text) THEN File.Save(Path, sData) edtEditor.Frozen = TRUE edtEditor.Text = sData TRY edtEditor.Line = iLine IF Error = 0 THEN TRY edtEditor.Column = iCol ENDIF edtEditor.Frozen = FALSE ENDIF ENDIF IF NOT bChange THEN File.Save(Path, edtEditor.Text) $bModify = FALSE DrawTitle Save.End() '--------Yizhou He Start---------------------- IF NOT bChange THEN sSaved=edtEditor.Text & "\n" sBackup=File.Load(path & "." & project.Version) & "\n" iBackup=1 iInd=0 aBackup=NEW String[] aSaved=NEW String[] WHILE iBackup>0 iSaved=iBackup iBackup=Instr(sBackup,"\nEND\n",iBackup+1) IF iBackup>0 THEN aBackup.Add(Mid(sBackup,iSaved,iBackup-iSaved+5),iInd) iBackup=iBackup+5 iInd=iInd+1 ENDIF WEND iBackup=1 iInd=0 WHILE iBackup>0 iSaved=iBackup iBackup=Instr(sSaved,"\nEND\n",iBackup+1) IF iBackup>0 THEN aSaved.Add(Mid(sSaved,iSaved,iBackup-iSaved+5),iInd) iBackup=iBackup+5 iInd=iInd+1 ENDIF WEND iBackup=0 iSaved=0 FOR EACH sBackup IN aBackup FOR EACH sSaved IN aSaved IF Trim(sBackup)=Trim(sSaved) THEN aBackup[iBackup]="" aSaved[iSaved]="" EXIT ENDIF iSaved=iSaved+1 NEXT iBackup=iBackup+1 iSaved=0 NEXT sChange="" IF Exist(File.Dir(path) & "/Changelog" & project.Version & ".txt") THEN sChange=File.Load(File.Dir(path) & "/Changelog" & project.Version & ".txt") IF Instr(sChange,"'#----Changes in class " & Name & " Start----\n\n")>0 THEN iBackup=Instr(sChange,"'#----Changes in class " & Name & " Start----\n\n") iSaved=Instr(sChange,"'#----Changes in class " & Name & " Ended----\n\n")+Len("'#----Changes in class " & Name & " Ended----\n\n") sChange=Left(sChange,iBackup) & Right(sChange,Len(sChange)-iSaved) ENDIF ENDIF sChange=sChange & "'#----Changes in class " & Name & " Start----\n\n" sChange=sChange & "'#----Sub that will be removed----\n\n" FOR EACH sBackup IN aBackup IF Trim(sBackup)<>"" THEN sChange=sChange & Trim(sBackup) & "\n" NEXT sChange=sChange & "'#----Sub that will be added----\n\n" FOR EACH sSaved IN aSaved IF Trim(sSaved)<>"" THEN sChange=sChange & Trim(sSaved) & "\n" NEXT sChange=sChange & "'#----Changes in class " & Name & " Ended----\n\n" file.Save(File.Dir(path) & "/Changelog " & project.Version & ".txt",sChange) ENDIF '--------Yizhou He Ended---------------------- CATCH RETURN Save.Error() END Yizhou He Research Technician (Xiong Lab) Lineberger Comprehensive Cancer Center University of North Carolina at Chapel Hill Chapel Hill, NC 27599-7295 Tel: (919)-962-2143 From yizhou_he at ...143... Sat Aug 7 10:42:18 2004 From: yizhou_he at ...143... (Yizhou He) Date: Sat, 07 Aug 2004 16:42:18 +0800 Subject: [Gambas-devel] patch for Auto ChangeLog generator Message-ID: <3dcef313dcbc2f.3dcbc2f3dcef31@...143...> This one save change in all the class into one file '------changed function in class FEditor PUBLIC FUNCTION Save() AS Boolean DIM iLig AS Integer DIM iProc AS Integer DIM iFull AS Integer DIM sLig AS String DIM iPosProc AS Integer DIM sData AS String DIM iLine AS Integer DIM iCol AS Integer DIM bChange AS Boolean DIM iCount AS Integer DIM iVoidLine AS Integer '---Yizhou He Start---- DIM iBackup AS Integer DIM iSaved AS Integer DIM sBackup AS String DIM sSaved AS String DIM aBackup AS String[] DIM aSaved AS String[] DIM sChange AS String DIM iInd AS Integer DIM bFoundChange AS Boolean DIM sLog AS String IF NOT Exist(path & "." & project.Version) THEN COPY path TO path & "." & project.Version CreateMenu '---Yizhou He Ended--- IF Project.ReadOnly THEN RETURN IF NOT $bModify THEN RETURN Save.Begin(Path) IF $bCleanOnSave THEN iProc = -1 iLine = edtEditor.Line iCol = edtEditor.Column iCount = edtEditor.Lines.Count FOR iLig = 0 TO iCount IF iLig < iCount THEN sLig = RTrim(edtEditor.Lines[iLig]) ELSE sLig = "SUB gambas()" ENDIF IF NOT LTrim(sLig) THEN INC iVoidLine CONTINUE ENDIF IF IsProc(sLig) THEN IF iProc >= 0 THEN IF iFull < 2 THEN bChange = TRUE sData = Left(sData, iPosProc) IF iLine > iProc THEN IF iLine < iLig THEN iLine = iProc - 1 ELSE iLine = iLine - (iLig - iProc + 1) ENDIF ENDIF ENDIF ENDIF iProc = iLig iFull = 0 iPosProc = Len(sData) ELSE INC iFull ENDIF IF iLig < iCount THEN sData = sData & String(iVoidLine, "\n") & sLig & "\n" iVoidLine = 0 ENDIF NEXT IF Len(sData) <> Len(edtEditor.Text) THEN File.Save(Path, sData) edtEditor.Frozen = TRUE edtEditor.Text = sData TRY edtEditor.Line = iLine IF Error = 0 THEN TRY edtEditor.Column = iCol ENDIF edtEditor.Frozen = FALSE ENDIF ENDIF IF NOT bChange THEN File.Save(Path, edtEditor.Text) $bModify = FALSE DrawTitle Save.End() '--------Yizhou He Start---------------------- IF NOT bChange THEN sSaved=edtEditor.Text & "\n" sBackup=File.Load(path & "." & project.Version) & "\n" iBackup=1 iInd=0 aBackup=NEW String[] aSaved=NEW String[] WHILE iBackup>0 iSaved=iBackup iBackup=Instr(sBackup,"\nEND\n",iBackup+1) IF iBackup>0 THEN aBackup.Add(Mid(sBackup,iSaved,iBackup-iSaved+5),iInd) iBackup=iBackup+5 iInd=iInd+1 ENDIF WEND iBackup=1 iInd=0 WHILE iBackup>0 iSaved=iBackup iBackup=Instr(sSaved,"\nEND\n",iBackup+1) IF iBackup>0 THEN aSaved.Add(Mid(sSaved,iSaved,iBackup-iSaved+5),iInd) iBackup=iBackup+5 iInd=iInd+1 ENDIF WEND iBackup=0 iSaved=0 FOR EACH sBackup IN aBackup FOR EACH sSaved IN aSaved IF Trim(sBackup)=Trim(sSaved) THEN aBackup[iBackup]="" aSaved[iSaved]="" EXIT ENDIF iSaved=iSaved+1 NEXT iBackup=iBackup+1 iSaved=0 NEXT sChange="" IF Exist(File.Dir(path) & "/Changelog " & project.Version & ".txt") THEN sChange=File.Load(File.Dir(path) & "/Changelog " & project.Version & ".txt") & "\n" IF Instr(sChange,"'#----Changes in class " & Name & " Start----\n\n")>0 THEN iBackup=Instr(sChange,"'#----Changes in class " & Name & " Start----\n\n") iSaved=Instr(sChange,"'#----Changes in class " & Name & " Ended----\n\n")+Len("'#----Changes in class " & Name & " Ended----\n\n") sChange=Left(sChange,iBackup-1) & Right(sChange,Len(sChange)-iSaved) ENDIF ENDIF bFoundchange=FALSE sLog= "'#----Changes in class " & Name & " Start----\n\n" sLog=sLog & "'#----Sub that will be removed----\n\n" FOR EACH sBackup IN aBackup IF Trim(sBackup)<>"" THEN sLog=sLog & Trim(sBackup) & "\n" bFoundchange=TRUE ENDIF NEXT sLog=sLog & "'#----Sub that will be added----\n\n" FOR EACH sSaved IN aSaved IF Trim(sSaved)<>"" THEN sLog=sLog & Trim(sSaved) & "\n" bFoundChange=TRUE ENDIF NEXT sLog=sLog & "'#----Changes in class " & Name & " Ended----\n\n" IF bFoundChange THEN sChange=sChange & sLog file.Save(File.Dir(path) & "/Changelog " & project.Version & ".txt",sChange) ENDIF '--------Yizhou He Ended---------------------- CATCH RETURN Save.Error() END Yizhou He Research Technician (Xiong Lab) Lineberger Comprehensive Cancer Center University of North Carolina at Chapel Hill Chapel Hill, NC 27599-7295 Tel: (919)-962-2143 From gambas at ...1... Sat Aug 7 12:38:40 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 7 Aug 2004 12:38:40 +0200 Subject: [Gambas-devel] Sample release for automatic changelog generator In-Reply-To: <3dc97ef3dc879f.3dc879f3dc97ef@...143...> References: <3dc97ef3dc879f.3dc879f3dc97ef@...143...> Message-ID: <200408071238.40316.gambas@...1...> On Saturday 07 August 2004 09:21, Yizhou He wrote: > Hi: Hi! > > Since I got no comments on this idea. I guess I need release a > sample release. This is a crude version. Just finished I didn't have the time yet to test your code, so don't be too in a hurry! :-) I think you should provide the tar.gz of your complete patched IDE project. This way, I will able to look at the difference with the original 0.96 project, to easily understand and check your code. > 1. Automatic backup a class file before first save. all the change > log will base on this backup. This was already done actually: backup files have the '~' character appended. > 2. Compare backup class file and saved file > 3. Write changed function or sub into Changelog+version .txt file I think you should use the 'diff' command instead of reinventing the wheel. > 4. Only after you change version number, it will make new backup > and all the change will based on the new version. > > This version only narrow down to function or sub. later version > will be able to mark changed lines. > > Comment and suggestion needed. I think you could put all the changes in the same files little by little. Like a log file. Don't create a file for each version. I think you should put in this file when a new file is added to the project, when a file is removed, when the project property changed, when a translation is added, when the version number change, when a package is made... It will be like an historic. You could name this file ".history" or something like that. You must put a dot before the name of the file, so that this file don't go in the executable. > > thanks > Regards, -- Benoit Minisini mailto:gambas at ...1... From na2492 at ...16... Sat Aug 7 18:24:26 2004 From: na2492 at ...16... (na2492 at ...16...) Date: Sat, 7 Aug 2004 18:24:26 00200 Subject: [Gambas-devel] Sample release for automatic changelog generator Message-ID: <4115023a.3ab1.0@...16...> >On Saturday 07 August 2004 09:21, Yizhou He wrote: >> Hi: > >Hi! > >> >> Since I got no comments on this idea. I guess I need release a >> sample release. This is a crude version. Just finished > >I didn't have the time yet to test your code, so don't be too in a hurry! :-) > >I think you should provide the tar.gz of your complete patched IDE project. >This way, I will able to look at the difference with the original 0.96 >project, to easily understand and check your code. > >> 1. Automatic backup a class file before first save. all the change >> log will base on this backup. > >This was already done actually: backup files have the '~' character appended. > >> 2. Compare backup class file and saved file >> 3. Write changed function or sub into Changelog+version .txt file > >I think you should use the 'diff' command instead of reinventing the wheel. > >> 4. Only after you change version number, it will make new backup >> and all the change will based on the new version. >> >> This version only narrow down to function or sub. later version >> will be able to mark changed lines. >> >> Comment and suggestion needed. > >I think you could put all the changes in the same files little by little. Like >a log file. Don't create a file for each version. > >I think you should put in this file when a new file is added to the project, >when a file is removed, when the project property changed, when a translation >is added, when the version number change, when a package is made... It will >be like an historic. > >You could name this file ".history" or something like that. You must put a dot >before the name of the file, so that this file don't go in the executable. > >> >> thanks >> > >Regards, > >-- >Benoit Minisini >mailto:gambas at ...1... > Salut Yizhou, attached you LinDiff Amicalement Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * -------------- next part -------------- A non-text attachment was scrubbed... Name: LinDiff-0.04-0.0.1.tar.gz Type: application/x-tgz Size: 11333 bytes Desc: not available URL: From yizhou_he at ...143... Sat Aug 7 20:27:33 2004 From: yizhou_he at ...143... (Yizhou He) Date: Sat, 07 Aug 2004 11:27:33 -0700 Subject: [Gambas-devel] Re: comments on Automatic changelog Message-ID: <3de7a573de75b3.3de75b33de7a57@...143...> >I think you should provide the tar.gz of your complete patched IDE >project. >This way, I will able to look at the difference with the original 0.96 >project, to easily understand and check your code. That is why we need this function, The aim is for group developer can easier communicate each other, that is why all the change is only compared with the backup based on versions. They can track all the change they made based on last release version. By sending the Changelog+Version.txt to each other, by apply the file to the release function(havn't done yet,do it manually for now), developer can merage the changes from different develpers. >This was already done actually: backup files have the '~' character >appended. I thought this backup file is made everytime change was made.(I may wrong) and according to my aims, the appending of version number is required. >I think you should use the 'diff' command instead of reinventing the >wheel. Thanks for let me know that, I need look into how to use the command. the wheel I use can be a lot simpler if you can fix the bug in split or tell me something I don't know to use it. I try to split the string returned from openfile with "\nEND\n" but the array it return is not what I expected. >I think you could put all the changes in the same files little by >little. Like >a log file. Don't create a file for each version. >I think you should put in this file when a new file is added to the >project, >when a file is removed, when the project property changed, when a >translation >is added, when the version number change, when a package is made... It >will >be like an historic. >You could name this file ".history" or something like that. You must >put a dot >before the name of the file, so that this file don't go in the >executable. This is not what I want to do. But if you think this is useful too, i can make both easily. How can I open the attachment for maillist? All I got is bas64 encoded text files. Thanks for comments. Yizhou He Research Technician (Xiong Lab) Lineberger Comprehensive Cancer Center University of North Carolina at Chapel Hill Chapel Hill, NC 27599-7295 Tel: (919)-962-2143 Research Technician (Xiong Lab) Lineberger Comprehensive Cancer Center University of North Carolina at Chapel Hill Chapel Hill, NC 27599-7295 Tel: (919)-962-2143 ----- Original Message ----- From: gambas-devel-request at lists.sourceforge.net Date: Saturday, August 7, 2004 9:26 am Subject: Gambas-devel digest, Vol 1 #284 - 4 msgs From karl.reinl at ...16... Sat Aug 7 22:25:11 2004 From: karl.reinl at ...16... (Charlie) Date: Sat, 07 Aug 2004 22:25:11 +0200 Subject: [Gambas-devel] about PrettyPrinter Message-ID: <41153AA7.7040606@...16...> Salut, send you the second part. Where I try to explain what I need to work with 'eval' It's a OOo 2 doc. Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: PrettyPrinter for gambas.sxw Type: application/octet-stream Size: 9458 bytes Desc: not available URL: From gambas at ...1... Sun Aug 8 01:20:54 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 8 Aug 2004 01:20:54 +0200 Subject: [Gambas-devel] Re: comments on Automatic changelog In-Reply-To: <3de7a573de75b3.3de75b33de7a57@...143...> References: <3de7a573de75b3.3de75b33de7a57@...143...> Message-ID: <200408080120.55088.gambas@...1...> On Saturday 07 August 2004 20:27, Yizhou He wrote: > >I think you should provide the tar.gz of your complete patched IDE > >project. > >This way, I will able to look at the difference with the original 0.96 > >project, to easily understand and check your code. > > That is why we need this function, The aim is for group developer can > easier communicate each other, that is why all the change is only > compared with the backup based on versions. They can track all the > change they made based on last release version. By sending the > Changelog+Version.txt to each other, by apply the file to the release > function(havn't done yet,do it manually for now), developer can merage > the changes from different develpers. > OK, I see: you want something like CVS, i.e. a repository of the project that keep every change of every version. CVS can be used with gambas projects. Did you ever look at this software ? If you want to add something like that in the IDE, it is not something light. So I think this should be optional in the code. Maybe I won't put it in the main tree before the 1.0, because it is a big change in the IDE, like the pretty printer. I must think about that, as I almost finished all I wanted to do for the 1.0. > >This was already done actually: backup files have the '~' character > >appended. > > I thought this backup file is made everytime change was made.(I may > wrong) and according to my aims, the appending of version number is > required. > > >I think you should use the 'diff' command instead of reinventing the > >wheel. > > Thanks for let me know that, I need look into how to use the command. > the wheel I use can be a lot simpler if you can fix the bug in split or > tell me something I don't know to use it. I try to split the string > returned from openfile with "\nEND\n" but the array it return is not > what I expected. It is not a bug, be careful: Split() only works with characters, and the 'Separator' argument is a list of splitting characters. Moreover, it ignores the UTF-8 encoding of the string. > > >I think you could put all the changes in the same files little by > >little. Like > >a log file. Don't create a file for each version. > > > >I think you should put in this file when a new file is added to the > >project, > >when a file is removed, when the project property changed, when a > >translation > >is added, when the version number change, when a package is made... It > >will > >be like an historic. > > > >You could name this file ".history" or something like that. You must > >put a dot > >before the name of the file, so that this file don't go in the > >executable. > > This is not what I want to do. But if you think this is useful too, i > can make both easily. An automatic ChangeLog file could be useful, don't you think ? Note that there is already a CHANGELOG file that is generated when you use the packager wizard. > > How can I open the attachment for maillist? All I got is bas64 encoded > text files. It is normal. I see that you use "Netscape WebMail". Can't you use another mail client ? > > Thanks for comments. > > Yizhou He > Research Technician (Xiong Lab) > Lineberger Comprehensive Cancer Center > University of North Carolina at Chapel Hill > Chapel Hill, NC 27599-7295 > Tel: (919)-962-2143 > Regards, -- Benoit Minisini mailto:gambas at ...1... From yizhou_he at ...143... Sun Aug 8 03:25:08 2004 From: yizhou_he at ...143... (Yizhou He) Date: Sat, 07 Aug 2004 18:25:08 -0700 Subject: [Gambas-devel] Re: translateion Message-ID: <3df99623dfb3c2.3dfb3c23df9962@...143...> Dear Mr. Benoit Minisini: I know people use both Chinese simplified, Chinese traditional and Simplified Chinese, Traditional Chinese. I'm not sure the reason. I guess use the first order just to make sure these two Chinese are together after sort. You can pick one. Yizhou He -----Original Message----- From: Benoit Minisini [mailto:gambas at ...1...] Sent: 2004 08 07 16:03 To: yizhou Subject: Re: Chinese Simplified translation for Gambas 0.96 On Friday 06 August 2004 17:34, you wrote: > Dear Mr. Benoit Minisini: > > Sorry, it's my mistake, it is "Chinese traditional (Taiwan)" > The change I want to make is capital "C" in "Chinese". "Chinese" first and > "traditional" second, Are you sure ? Because in English, adjectives come first. > and spelling mistake for "Taiwan". Oops! I wrote it in French - I fix it... > > > Yizhou He > Regards, -- Benoit Minisini mailto:gambas at ...1... From yizhou_he at ...143... Sun Aug 8 06:34:12 2004 From: yizhou_he at ...143... (Yizhou He) Date: Sat, 07 Aug 2004 21:34:12 -0700 Subject: [Gambas-devel] Version Control Message-ID: <3e00aa43dfe47f.3dfe47f3e00aa4@...143...> >OK, I see: you want something like CVS, i.e. a repository of the >project that keep every change of every version. something like that, the main goal is not keep change of every version, the main goal is to merge the change made by different developer correctly and easily. > CVS can be used with gambas projects. Did you ever look at this software ? you want to integrate CVS into gambas projects or write a lite one best fit gambas needs. > If you want to add something like that in the IDE, it is not something light. So I think this should be optional in the code. Maybe I won"t put it in the main tree before the 1.0, because it is a big change in the IDE, like the pretty printer. > I must think about that, as I almost finished all I wanted to do for the 1.0. I think full function CVS is too much for Gambas, we don't not need that many overpowerful(or useless) function. At least not now. > It is not a bug, be careful: Split() only works with characters, and >the "Separator" argument is a list of splitting characters. Moreover, >it ignores > the UTF-8 encoding of the string. I see. > An automatic ChangeLog file could be useful, don"t you think ? for the function I proposed, compare the changes between start point and end point is good enough. Too much inter-media information make the log file unreadable. Undo is kind of historic function, modify from that point may get the historic changelog file easier. > Note that there is already a CHANGELOG file that is generated when >you use the packager wizard. I think gambas should load the Changelog of source code generated automaticly(the way I proposed) and let developer add comments or summary after that. And I think this changelog is based on last released version instead of last modified version. the log of inter- media change will confuss developer. > It is normal. I see that you use "Netscape WebMail". Can"t you use another mail client ? I can not, "Netscape WebMail" is not my mail client, it is our university's email server. I'm using outlook as my mail client. Yizhou He Research Technician (Xiong Lab) Lineberger Comprehensive Cancer Center University of North Carolina at Chapel Hill Chapel Hill, NC 27599-7295 Tel: (919)-962-2143 From gambas at ...1... Sun Aug 8 11:49:38 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 8 Aug 2004 11:49:38 +0200 Subject: [Gambas-devel] about PrettyPrinter In-Reply-To: <41153AA7.7040606@...16...> References: <41153AA7.7040606@...16...> Message-ID: <200408081149.38127.gambas@...1...> On Saturday 07 August 2004 22:25, Charlie wrote: > Salut, > > send you the second part. > Where I try to explain what I need to work with 'eval' > It's a OOo 2 doc. > > Amicalement > Charlie I think... I think :-) Wouldn't it be a better idea to pretty print the code directly with the compiler, or to create a pretty-printer program that uses the same sources than the compiler ? This need passing many options to the command line, but I think syntax analyzing code must be centralized as much as possible. The need some modifications in the compiler of course, because at the moment, the compiler parser removes every useless things at early stage: spaces, comments, even some new lines. They should be kept for the pretty printer. I will made the needed modifications, so that you could simply add a source file in the compiler to parse the pattern array generated by the parser. I think pretty printing code will be simpler after the job done by the parser. As for the options you described in your document, it is not very clear. Why not indenting declarations ? I think CATCH and FINALLY should be put at the beginning of the line, like SUB, PROCEDURE, FUNCTION and END. You should define how many void lines you want between two SUB/FUNCTION declarations. The option for indenting or not in SELECT CASE / END SELECT is good. Aligning comments to the next line... What for ? Useless spaces at line's end should be stripped. This is already done by the IDE actually, but if the pretty-printer remove them, I will drop the duplicated code. When we will agree with the options, I will add them to the compiler main source file - Or to a new executable, I don't know yet. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambasfr at ...4... Sun Aug 8 21:22:33 2004 From: gambasfr at ...4... (Bodard Fabien) Date: Sun, 8 Aug 2004 21:22:33 +0200 Subject: [Gambas-devel] Problem in the gambas database manager Message-ID: <200408082122.33713.gambasfr@...4...> Hi all I think it miss something in the gambas database manager... A max delay for the database connecting... In fact when i try to connect to a database without authorization... the gbdm is blocked ... Fabien Bodard Try this server: wanadoo.fr user: titi password: truc From gambas at ...1... Sun Aug 8 21:35:57 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 8 Aug 2004 21:35:57 +0200 Subject: [Gambas-devel] Problem in the gambas database manager In-Reply-To: <200408082122.33713.gambasfr@...4...> References: <200408082122.33713.gambasfr@...4...> Message-ID: <200408082135.57518.gambas@...1...> On Sunday 08 August 2004 21:22, Bodard Fabien wrote: > Hi all > > I think it miss something in the gambas database manager... > > A max delay for the database connecting... > > In fact when i try to connect to a database without authorization... the > gbdm is blocked ... > > Fabien Bodard > > Try this > > server: wanadoo.fr > user: titi > password: truc > > I think there is a timeout, whatever database backend you use (mysql or postgresql). How long did you wait ? Anyway, I don't know if I can change the timeout parameter of the clients. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambasfr at ...4... Sun Aug 8 21:48:12 2004 From: gambasfr at ...4... (Bodard Fabien) Date: Sun, 8 Aug 2004 21:48:12 +0200 Subject: [Gambas-devel] Problem in the gambas database manager In-Reply-To: <200408082135.57518.gambas@...1...> References: <200408082122.33713.gambasfr@...4...> <200408082135.57518.gambas@...1...> Message-ID: <200408082148.12824.gambasfr@...4...> Le dimanche 8 Ao?t 2004 21:35, Benoit Minisini a ?crit?: > On Sunday 08 August 2004 21:22, Bodard Fabien wrote: > > Hi all > > > > I think it miss something in the gambas database manager... > > > > A max delay for the database connecting... > > > > In fact when i try to connect to a database without authorization... the > > gbdm is blocked ... > > > > Fabien Bodard > > > > Try this > > > > server: wanadoo.fr > > user: titi > > password: truc > > I think there is a timeout, whatever database backend you use (mysql or > postgresql). How long did you wait ? > > Anyway, I don't know if I can change the timeout parameter of the clients. > > Regards, 5 min regards, fabien From Karl.Reinl at ...16... Sun Aug 8 23:45:55 2004 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Sun, 8 Aug 2004 21:45:55 +0000 Subject: [Gambas-devel] about PrettyPrinter Message-ID: <200408082145.55679.Karl.Reinl@...16...> >Wouldn't it be a better idea to pretty print the code directly with the >compiler, or to create a pretty-printer program that uses the same sources >than the compiler ? Oh, yeah if I mention 'eval' in the document, I mean of one of your two proposed places, eval or the comp. >This need passing many options to the command line, but I >think syntax analyzing code must be centralized as much as possible. I think the same for centralizing, for that I'm happy that we work together, because in that way ervery new basic command in gambas which is as new logical structure will be easier to include to PrettyPrinter. But, the PrettyPrinter does NOT make syntax analyzing, it makes document analyzing. The only things where it dedects 'mistakes' in the syntax: Are that the END of a Proc will not have its place at the most left position, if one or more logical structures are not closed correctly. Or it is at the most left position, but the lines up also, so more logical structures where closed then opened. For the parameters I don't understand ? Do you mean the PrettyPrinter Parameters ? >The need some modifications in the compiler of course, because at the moment, >the compiler parser removes every useless things at early stage: spaces, >comments, even some new lines. They should be kept for the pretty printer. >I will made the needed modifications, so that you could simply add a source >file in the compiler to parse the pattern array generated by the parser. I >think pretty printing code will be simpler after the job done by the parser. I also think so, and like you said centralized. >As for the options you described in your document, it is not very clear. >Why not indenting declarations ? Declarations outside of Procs are at the most left position. Inside a Proc, this is one of the parameters (bEveryWithOutDim), if they are indeted or not. >I think CATCH and FINALLY should be put at the beginning of the line, like >SUB, PROCEDURE, FUNCTION and END. So it can be, like I said in the document, I haven't analysed yet. If so I need to know, when does this case ends What I see, CATCH could be followed by an END or by FINALLY , right ? FINALLY could be only followed by an END >You should define how many void lines you want between two SUB/FUNCTION >declarations. Techincal not a problem, but I don't understand, for what reason, you made the blue line seperator. >The option for indenting or not in SELECT CASE / END SELECT is good. Dit you understand well that option :? Without bWithInCase : SELECT CASE Key CASE "H" doitWith_H() CASE "I" doitWith_I() END SELECT With bWithInCase : SELECT CASE Key CASE "H" doitWith_H() CASE "I" doitWith_I() END SELECT >Aligning comments to the next line... What for ? It's a PrettyPrinter ! But you have an parameter (bAlignComments) to to that or not >Useless spaces at line's end should be stripped. This is already done by the >IDE actually, but if the pretty-printer remove them, I will drop the >duplicated code. And useless spaces at the beginning of the line. Oh, why will you drop that, PrettyPrinter is an NOT automatique, the user has to start it. Useless spaces at line's end should be stripped anyway. The idea of the PrettyPrinter, is that some people like me, like well arranged Text , but not all, but they don't like take care while writing (like me). So the PrettyPrinter makes that 'on demande' (push the button) >When we will agree with the options, I will add them to the compiler main >source file - Or to a new executable, I don't know yet. If you have questions about my explicatios, let me know . >Regards, -- >Benoit Minisini >mailto:gambas at ...1... Amicalement Charlie From yizhou_he at ...143... Tue Aug 10 06:50:57 2004 From: yizhou_he at ...143... (Yizhou He) Date: Mon, 09 Aug 2004 21:50:57 -0700 Subject: [Gambas-devel] memo system and auto-captital function Message-ID: <36167384a9.384a936167@...143...> Hi: I know this is easy, but I can not find out where to add the code. I hope Gambas can improve in two functions: 1. I notice if I typing endif it will automatically change to ENDIF, but when type in a variable or object name, it don't change them to uni- form. For example: Dim iLine as Integer iline=3 I think it should automatically change iline to iLine. With this function, developers don't have to use shift that often, the caps will be changed as function, sub, object or variable defines. More importantly, if developer have typing mistake, it will not change automatically, and developer realize it right way. He doesn't have to wait until compile the project and find out he make a typing mistake. 2. For auto complete, it don't have memos about what this function for, if there are few sentence to explain what this function will do, what it return, what x means what y means. For example: Public function Split(String as String, optional Separate as String, optional Escape as String]) as String[] 'function Split will split a String by the separate inside the string\n it returns a array, string between separates will be add in the array the function returns. For example \n Dim aTime as String[] \n aTime=split("11:13:50",":")\n the expression will return a string array aTime, and aTime[0]="11", aTime[1] ="13", aTime[2]="50"\n\n Split() only works with characters, and the 'Separator' argument is a list of splitting characters. Moreover, it ignores the UTF-8 encoding of the string. ... END When use auto complete it will display: ------------------------------------------------------------------------ ---- Split(String as String, optional Separate as String, optional Escape as String]) as String[] function Split will split a String by the separate inside the string it returns a array, string between separates will be add in the array the function returns. For example Dim aTime as String[] aTime=split("11:13:50",":") the expression will return a string array aTime, and aTime[0]="11", aTime[1]="13", aTime[2]="50" Split() only works with characters, and the 'Separator' argument is a list of splitting characters. Moreover, it ignores the UTF-8 encoding of the string. ------------------------------------------------------------------------ ---- This will be very useful while many developer working on one project and writing components, control, libs, developer don't have to search document for how to use the function,sub, 3. Treeview control should add a memo or tip function so that when mouse move over a node will display a help or memo information for different node. The memo information should be input in "treeview.add" method. 4. Fproperty form should add a text control to display the memo about the selected property The memo means tips help information, comments, anything can help developer or user to use Gambas and it's application. Do I ask for too much? Yizhou He From yizhou_he at ...143... Tue Aug 10 06:52:34 2004 From: yizhou_he at ...143... (Yizhou He) Date: Mon, 09 Aug 2004 21:52:34 -0700 Subject: [Gambas-devel] support auto-indent function or so called pretty printer Message-ID: <359a835400.35400359a8@...143...> Hi: I thought pretty printer is a build-in printer control. It is actually a code beautifier. I think it is useful, and I think we should include it before release Gambas 1.0. Especially auto-indent function makes code structure much clear. I think add auto-indent while createmenu analyze the code will be enough, also add preference a option how many space will be added to indent the line. Do it automatically and as simple as possible. Yizhou He From gambas at ...1... Wed Aug 11 00:46:35 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 Aug 2004 00:46:35 +0200 Subject: [Gambas-devel] memo system and auto-captital function In-Reply-To: <36167384a9.384a936167@...143...> References: <36167384a9.384a936167@...143...> Message-ID: <200408110046.35088.gambas@...1...> On Tuesday 10 August 2004 06:50, Yizhou He wrote: > Hi: > > I know this is easy, but I can not find out where to add the code. > > I hope Gambas can improve in two functions: > 1. I notice if I typing endif it will automatically change to ENDIF, > but when type in a variable or object name, it don't change them to uni- > form. For example: > > Dim iLine as Integer > iline=3 > > I think it should automatically change iline to iLine. With this > function, developers don't have to use shift that often, the caps will > be changed as function, sub, object or variable defines. More > importantly, if developer have typing mistake, it will not change > automatically, and developer realize it right way. He doesn't have to > wait until compile the project and find out he make a typing mistake. This will not be done immediately, because this imply a lot of change in the editor. But this could be done in a pretty-printer integrated into the compiler. > > 2. For auto complete, it don't have memos about what this function for, > if there are few sentence to explain what this function will do, what > it return, what x means what y means. For example: > > Public function Split(String as String, optional Separate as String, > optional Escape as String]) as String[] 'function Split will split a > String by the separate inside the string\n it returns a array, string > between separates will be add in the array the function returns. For > example \n Dim aTime as String[] \n aTime=split("11:13:50",":")\n the > expression will return a string array aTime, and aTime[0]="11", aTime[1] > ="13", aTime[2]="50"\n\n Split() only works with characters, and > the 'Separator' argument is a list of splitting characters. Moreover, > it ignores the UTF-8 encoding of the string. > ... > END > > When use auto complete it will display: > ------------------------------------------------------------------------ > ---- > Split(String as String, optional Separate as String, optional Escape > as String]) as String[] > function Split will split a String by the separate inside the string > it returns a array, string between separates will be add in the array > the function returns. For example > Dim aTime as String[] > aTime=split("11:13:50",":") > the expression will return a string array aTime, and aTime[0]="11", > aTime[1]="13", aTime[2]="50" > > Split() only works with characters, and the 'Separator' argument is a > list of splitting characters. Moreover, it ignores the UTF-8 encoding > of the string. > ------------------------------------------------------------------------ > ---- > > This will be very useful while many developer working on one project > and writing components, control, libs, developer don't have to search > document for how to use the function,sub, I will do that in a next version. As a workaround, if I open the help on the Split() page if I press F2 while the cursor in on the Split instruction, will you be happy ? > > 3. Treeview control should add a memo or tip function so that when > mouse move over a node will display a help or memo information for > different node. The memo information should be input in "treeview.add" > method. I don't know if it is possible with QT. But you can do it by hand by tracking the mouse and changing the global treeview tooltip each time the mouse enter a node. To find a node from the mouse coordinates, there is the TreeView.Find() method. > > 4. Fproperty form should add a text control to display the memo about > the selected property I will do that in a next version. > > The memo means tips help information, comments, anything can help > developer or user to use Gambas and it's application. > > Do I ask for too much? No, but I want to release a 1.0 the earlier as possible, and put such development in next releases. > > Yizhou He > > Regards, -- Benoit Minisini mailto:gambas at ...1... From yizhou_he at ...143... Wed Aug 11 07:20:01 2004 From: yizhou_he at ...143... (Yizhou He) Date: Tue, 10 Aug 2004 22:20:01 -0700 Subject: [Gambas-devel] Good luck Gambas 1.0 Message-ID: <13879b13cfdc.13cfdc13879b@...143...> Dear Mr.Benoit Minisini: > This will not be done immediately, because this imply a lot of > change in the > editor. But this could be done in a pretty-printer integrated into > the > compiler. I really think so called pretty-printer is a good stuff, recommend include in 1.0 > > This will be very useful while many developer working on one project > > and writing components, control, libs, developer don't have to > search> document for how to use the function,sub, > > I will do that in a next version. > > As a workaround, if I open the help on the Split() page if I press > F2 while > the cursor in on the Split instruction, will you be happy ? I don't think let developer press F2 is a good idea. It involves extra button press and opens another window, load help opener program (typically as slow as web browser or it is web browser). More importantly, my solution allow user add memo to the function (or class or component) they wrote easily. No need to write separate help file (he may just need this information for develop the program, he don't want to show it to the user of his program) > > 3. Treeview control should add a memo or tip function so that when > > mouse move over a node will display a help or memo information for > > different node. The memo information should be input in > "treeview.add"> method. > > I don't know if it is possible with QT. But you can do it by hand > by tracking > the mouse and changing the global treeview tooltip each time the > mouse enter > a node. To find a node from the mouse coordinates, there is the > TreeView.Find() method. Whatever method can be used, it should be packed into the control. The reason we need control is to make develop easier. > > 4. Fproperty form should add a text control to display the memo > about> the selected property > > I will do that in a next version. I know what I asked for involve a lot of work and typing. if it is something that can copy and paste from menu, you can distribute the work to different developer in developer mail list. Different people work for different part and you go over it and make it looks uniform. > > The memo means tips help information, comments, anything can help > > developer or user to use Gambas and it's application. > > > > Do I ask for too much? > > No, but I want to release a 1.0 the earlier as possible, and put > such > development in next releases. Is there any reason to release a 1.0 the earlier as possible. I thought you don't have to catch time for the stock or market. I have problem to tracking error using debug, first many step is ok, but after step in 10 or 15 steps, the varible value become error message. I don't think it is a good idea to release 1.0 without slove the problem. In my mind, 1.0 may not necessary to be fancy, may not very convenient, may not very powerful, but all function listed should be usable, stable, user friendly. Many people may use gambas for the first time, may just because they read a news article about gambas 1.0 released and download for a trial. Unable (don't know where) to download a copy of linux and install it will kill one third of the people (I suggest put a link about how to download a recommend version of linux on website right after the link about where to download Gambas). Problem with redhat 9.0 will kill one third of the rest(recommend detect redhat9.0 and fix the problem automatically or provide download for redhat9.0). User friendly design may make them learn the difference between VB and GB quickly. After try and learn something quickly allow him write first simple program on linux will make he feel like he is powerful with linux too. Requirement of reading long and boring manual about the difference between VB and GB, and searching the menu to find out how to use one function will kill two third of the rest. program bug, crash, errors that user can not understand will kill 90% of the rest, 10% of the rest who really like gambas or program on linux will send bug report or join the develop mail list. My English is not good; I can not understand the feeling beside or inside the words. If any words make you feel uncomfortable. I apologize for that. I don't want to criticize Gamebas, I just want it better and sucess. Before put release 1.0 on website, can you send it to translators first, after get it translated, put on website. Otherwise, there always some new function is not translated. Best regards Yizhou He Research Technician (Xiong Lab) Lineberger Comprehensive Cancer Center University of North Carolina at Chapel Hill Chapel Hill, NC 27599-7295 Tel: (919)-962-2143 From frankberg at ...136... Wed Aug 11 07:36:48 2004 From: frankberg at ...136... (Frank Berg) Date: Wed, 11 Aug 2004 07:36:48 +0200 Subject: [Gambas-devel] AX25 Message-ID: <003301c47f65$339258f0$0200a8c0@...146...> hi.. i want to write ax25 programs in gambas. my problem is, there must be write an little component ( maybe gb.ax25 ???) . my c++ is so bad as my english, so i must ask the gambas devel group to help me. an little overview: the ax25 protocol is attached to the kernel, and if i will use ax25, i must register me to the streams. in c++ this is it done by including the /usr/local/include/netax25/axconfig.h and maybe the ax25.h. in axconfig.h there are 10 function (and 3 structs in axconfig.c) to initialise and register my callsign to the streams. if i understunt it, the gb.ax25 component only handle the parameter from/to the axconfig.h in an "basic like langue" my ask: are there folk some will help me with this? ps. i can read well english, but it wil be easyer for me in german, danish or islandish langue to reply in not english frankberg at ...136... many tnx.. frank -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambasfr at ...4... Wed Aug 11 12:06:34 2004 From: gambasfr at ...4... (Bodard Fabien) Date: Wed, 11 Aug 2004 12:06:34 +0200 Subject: [Gambas-devel] Good luck Gambas 1.0 In-Reply-To: <13879b13cfdc.13cfdc13879b@...143...> References: <13879b13cfdc.13cfdc13879b@...143...> Message-ID: <200408111206.34604.gambasfr@...4...> Le mercredi 11 Ao?t 2004 07:20, Yizhou He a ?crit?: > Dear Mr.Benoit Minisini: > > This will not be done immediately, because this imply a lot of > > change in the > > editor. But this could be done in a pretty-printer integrated into > > the > > compiler. > > I really think so called pretty-printer is a good stuff, recommend > include in 1.0 > > > > This will be very useful while many developer working on one project > > > and writing components, control, libs, developer don't have to > > > > search> document for how to use the function,sub, > > > > I will do that in a next version. > > > > As a workaround, if I open the help on the Split() page if I press > > F2 while > > the cursor in on the Split instruction, will you be happy ? > > I don't think let developer press F2 is a good idea. It involves extra > button press and opens another window, load help opener program > (typically as slow as web browser or it is web browser). More > importantly, my solution allow user add memo to the function (or class > or component) they wrote easily. No need to write separate help file > (he may just need this information for develop the program, he don't > want to show it to the user of his program) > > > > 3. Treeview control should add a memo or tip function so that when > > > mouse move over a node will display a help or memo information for > > > different node. The memo information should be input in > > > > "treeview.add"> method. > > > > I don't know if it is possible with QT. But you can do it by hand > > by tracking > > the mouse and changing the global treeview tooltip each time the > > mouse enter > > a node. To find a node from the mouse coordinates, there is the > > TreeView.Find() method. > > Whatever method can be used, it should be packed into the control. The > reason we need control is to make develop easier. > > > > 4. Fproperty form should add a text control to display the memo > > > > about> the selected property > > > > I will do that in a next version. > > I know what I asked for involve a lot of work and typing. if it is > something that can copy and paste from menu, you can distribute the > work to different developer in developer mail list. Different people > work for different part and you go over it and make it looks uniform. > > > > The memo means tips help information, comments, anything can help > > > developer or user to use Gambas and it's application. > > > > > > Do I ask for too much? > > > > No, but I want to release a 1.0 the earlier as possible, and put > > such > > development in next releases. > > Is there any reason to release a 1.0 the earlier as possible. I thought > you don't have to catch time for the stock or market. I have problem to > tracking error using debug, first many step is ok, but after step in 10 > or 15 steps, the varible value become error message. I don't think it > is a good idea to release 1.0 without slove the problem. Hi, Mr Yizhou He, You make a good job in the ide. But i think you must to understand that. When Benoit, say he want to finish the 1.0 before, he talk about the gambas language. In fact the language can be in stable version and the ide in beta version, i think it's not really a problem. And it's the same about the components these are not part of gambas language but just addons. So, if for exemple there is some bug in the gb.qt or gb.net when the 1.0 is released, it's not really important. The more important for Benoit, i think is to have zero bug in the gambas internal classes, nor in the interpreter, neither in the compiler... In summary, with the gambas 1.0, you can have bug : - in the Ide - in the components (as less as possible) - in your own program ! But not in the language ! OUps, i'm repeating the same thing three time no ? The more important job on the IDE is planed for after the 1.0 version. If i remember all, We talk about a near complete redesign of the ide, about add a report designer, and many other little interesting thing that i've writed somewhere but i don't remember where... So, get ready, there is many job, but after the 1.0 gambas version... And your ideas will be welcome ! good holliday ;-) Fabien Bodard (hum sorry Benoit... mabe i've act at a bad time ? But i think this explanation about the diferent parts of gambas is important for all users. If i've say something bad... shoot me !(frapper... hum type ?) ) > In my mind, 1.0 may not necessary to be fancy, may not very convenient, > may not very powerful, but all function listed should be usable, > stable, user friendly. > Many people may use gambas for the first time, may just because they > read a news article about gambas 1.0 released and download for a trial. > > Unable (don't know where) to download a copy of linux and install it > will kill one third of the people (I suggest put a link about how to > download a recommend version of linux on website right after the link > about where to download Gambas). > > Problem with redhat 9.0 will kill one third of the rest(recommend > detect redhat9.0 and fix the problem automatically or provide download > for redhat9.0). > > User friendly design may make them learn the difference between VB and > GB quickly. After try and learn something quickly allow him write first > simple program on linux will make he feel like he is powerful with > linux too. Requirement of reading long and boring manual about the > difference between VB and GB, and searching the menu to find out how to > use one function will kill two third of the rest. > > program bug, crash, errors that user can not understand will kill 90% > of the rest, 10% of the rest who really like gambas or program on linux > will send bug report or join the develop mail list. > > My English is not good; I can not understand the feeling beside or > inside the words. If any words make you feel uncomfortable. I apologize > for that. I don't want to criticize Gamebas, I just want it better and > sucess. > > Before put release 1.0 on website, can you send it to translators > first, after get it translated, put on website. Otherwise, there always > some new function is not translated. > > Best regards > > Yizhou He > Research Technician (Xiong Lab) > Lineberger Comprehensive Cancer Center > University of North Carolina at Chapel Hill > Chapel Hill, NC 27599-7295 > Tel: (919)-962-2143 > > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel From lordheavy at ...141... Wed Aug 11 14:05:33 2004 From: lordheavy at ...141... (Laurent Carlier) Date: Wed, 11 Aug 2004 14:05:33 +0200 Subject: [Gambas-devel] Good luck Gambas 1.0 In-Reply-To: <200408111206.34604.gambasfr@...4...> References: <13879b13cfdc.13cfdc13879b@...143...> <200408111206.34604.gambasfr@...4...> Message-ID: <200408111405.33889.lordheavy@...141...> Le mercredi 11 Ao?t 2004 12:06, Bodard Fabien a ?crit?: > You make a good job in the ide. But i think you must to understand that. > When Benoit, say he want to finish the 1.0 before, he talk about the gambas > language. In fact the language can be in stable version and the ide in beta > version, i think it's not really a problem. And it's the same about the > components these are not part of gambas language but just addons. > > So, if for exemple there is some bug in the gb.qt or gb.net when the 1.0 is > released, it's not really important. The more important for Benoit, i think > is to have zero bug in the gambas internal classes, nor in the interpreter, > neither in the compiler... > > In summary, with the gambas 1.0, you can have bug : > - in the Ide > - in the components (as less as possible) > - in your own program ! > > But not in the language ! > > OUps, i'm repeating the same thing three time no ? > > The more important job on the IDE is planed for after the 1.0 version. > > If i remember all, We talk about a near complete redesign of the ide, about > add a report designer, and many other little interesting thing that i've > writed somewhere but i don't remember where... > > So, get ready, there is many job, but after the 1.0 gambas version... And > your ideas will be welcome ! > > > good holliday ;-) > > Fabien Bodard The confusion (mistake ?) comes from the fact of gambas is only available as a standalone source package. My opinion is that it should be better to split gambas source in "several" packages. But it should be problematic as component can only be built inside the gambas source tree. Components sould be more "dynamic", be built outside od the source tree. Perhaps macro language like #include inside gb (like the future #if , ...) and of course versioning in component (future but not only in db). It's only my opinion, it's only for showing my vision of gambas future. You can fire me :) (.... hmmm not too much, please) Amicalement, -- Laurent Carlier From daniel.campos at ...103... Wed Aug 11 17:06:10 2004 From: daniel.campos at ...103... (Daniel) Date: Wed, 11 Aug 2004 17:06:10 +0200 Subject: [Gambas-devel] Good luck Gambas 1.0 In-Reply-To: <200408111206.34604.gambasfr@...4...> References: <13879b13cfdc.13cfdc13879b@...143...> <200408111206.34604.gambasfr@...4...> Message-ID: <1092236770.3289.0.camel@...102...> Are there bugs in the net component? Tell me soon! I can not help if you do not report them Regards, Daniel Campos El mi?, 11-08-2004 a las 12:06, Bodard Fabien escribi?: > Le mercredi 11 Ao?t 2004 07:20, Yizhou He a ?crit : > > Dear Mr.Benoit Minisini: > > > This will not be done immediately, because this imply a lot of > > > change in the > > > editor. But this could be done in a pretty-printer integrated into > > > the > > > compiler. > > > > I really think so called pretty-printer is a good stuff, recommend > > include in 1.0 > > > > > > This will be very useful while many developer working on one project > > > > and writing components, control, libs, developer don't have to > > > > > > search> document for how to use the function,sub, > > > > > > I will do that in a next version. > > > > > > As a workaround, if I open the help on the Split() page if I press > > > F2 while > > > the cursor in on the Split instruction, will you be happy ? > > > > I don't think let developer press F2 is a good idea. It involves extra > > button press and opens another window, load help opener program > > (typically as slow as web browser or it is web browser). More > > importantly, my solution allow user add memo to the function (or class > > or component) they wrote easily. No need to write separate help file > > (he may just need this information for develop the program, he don't > > want to show it to the user of his program) > > > > > > 3. Treeview control should add a memo or tip function so that when > > > > mouse move over a node will display a help or memo information for > > > > different node. The memo information should be input in > > > > > > "treeview.add"> method. > > > > > > I don't know if it is possible with QT. But you can do it by hand > > > by tracking > > > the mouse and changing the global treeview tooltip each time the > > > mouse enter > > > a node. To find a node from the mouse coordinates, there is the > > > TreeView.Find() method. > > > > Whatever method can be used, it should be packed into the control. The > > reason we need control is to make develop easier. > > > > > > 4. Fproperty form should add a text control to display the memo > > > > > > about> the selected property > > > > > > I will do that in a next version. > > > > I know what I asked for involve a lot of work and typing. if it is > > something that can copy and paste from menu, you can distribute the > > work to different developer in developer mail list. Different people > > work for different part and you go over it and make it looks uniform. > > > > > > The memo means tips help information, comments, anything can help > > > > developer or user to use Gambas and it's application. > > > > > > > > Do I ask for too much? > > > > > > No, but I want to release a 1.0 the earlier as possible, and put > > > such > > > development in next releases. > > > > Is there any reason to release a 1.0 the earlier as possible. I thought > > you don't have to catch time for the stock or market. I have problem to > > tracking error using debug, first many step is ok, but after step in 10 > > or 15 steps, the varible value become error message. I don't think it > > is a good idea to release 1.0 without slove the problem. > > Hi, Mr Yizhou He, > > You make a good job in the ide. But i think you must to understand that. When > Benoit, say he want to finish the 1.0 before, he talk about the gambas > language. In fact the language can be in stable version and the ide in beta > version, i think it's not really a problem. And it's the same about the > components these are not part of gambas language but just addons. > > So, if for exemple there is some bug in the gb.qt or gb.net when the 1.0 is > released, it's not really important. The more important for Benoit, i think > is to have zero bug in the gambas internal classes, nor in the interpreter, > neither in the compiler... > > In summary, with the gambas 1.0, you can have bug : > - in the Ide > - in the components (as less as possible) > - in your own program ! > > But not in the language ! > > OUps, i'm repeating the same thing three time no ? > > The more important job on the IDE is planed for after the 1.0 version. > > If i remember all, We talk about a near complete redesign of the ide, about > add a report designer, and many other little interesting thing that i've > writed somewhere but i don't remember where... > > So, get ready, there is many job, but after the 1.0 gambas version... And your > ideas will be welcome ! > > > good holliday ;-) > > Fabien Bodard > > (hum sorry Benoit... mabe i've act at a bad time ? But i think this > explanation about the diferent parts of gambas is important for all users. > If i've say something bad... shoot me !(frapper... hum type ?) > ) > > > In my mind, 1.0 may not necessary to be fancy, may not very convenient, > > may not very powerful, but all function listed should be usable, > > stable, user friendly. > > > > > Many people may use gambas for the first time, may just because they > > read a news article about gambas 1.0 released and download for a trial. > > > > Unable (don't know where) to download a copy of linux and install it > > will kill one third of the people (I suggest put a link about how to > > download a recommend version of linux on website right after the link > > about where to download Gambas). > > > > Problem with redhat 9.0 will kill one third of the rest(recommend > > detect redhat9.0 and fix the problem automatically or provide download > > for redhat9.0). > > > > User friendly design may make them learn the difference between VB and > > GB quickly. After try and learn something quickly allow him write first > > simple program on linux will make he feel like he is powerful with > > linux too. Requirement of reading long and boring manual about the > > difference between VB and GB, and searching the menu to find out how to > > use one function will kill two third of the rest. > > > > program bug, crash, errors that user can not understand will kill 90% > > of the rest, 10% of the rest who really like gambas or program on linux > > will send bug report or join the develop mail list. > > > > My English is not good; I can not understand the feeling beside or > > inside the words. If any words make you feel uncomfortable. I apologize > > for that. I don't want to criticize Gamebas, I just want it better and > > sucess. > > > > Before put release 1.0 on website, can you send it to translators > > first, after get it translated, put on website. Otherwise, there always > > some new function is not translated. > > > > Best regards > > > > Yizhou He > > Research Technician (Xiong Lab) > > Lineberger Comprehensive Cancer Center > > University of North Carolina at Chapel Hill > > Chapel Hill, NC 27599-7295 > > Tel: (919)-962-2143 > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > > _______________________________________________ > > Gambas-devel mailing list > > Gambas-devel at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-devel > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel From gambas at ...1... Thu Aug 12 23:36:38 2004 From: gambas at ...1... (Benoit Minisini) Date: Thu, 12 Aug 2004 23:36:38 +0200 Subject: [Gambas-devel] Good luck Gambas 1.0 In-Reply-To: <13879b13cfdc.13cfdc13879b@...143...> References: <13879b13cfdc.13cfdc13879b@...143...> Message-ID: <200408122336.39392.gambas@...1...> On Wednesday 11 August 2004 07:20, Yizhou He wrote: > Dear Mr.Benoit Minisini: > ... > Is there any reason to release a 1.0 the earlier as possible. Here are the reasons I don't want to add such many features just now: - I want Gambas to be included as soon as possible in a distribution. IMHO, all the important features are there, especially the packager wizard. But this wizard is useless if Gambas is not included in the distribution. So I must break this nasty circle. - As Fabien explained, the IDE is a Gambas project, so some features can miss at the release, as they will be able to be added in a next version easily. The more important is the stability of the interpreter and the language. - In September, I go back to acting courts, so I will add very few time. > I thought > you don't have to catch time for the stock or market. I have problem to > tracking error using debug, first many step is ok, but after step in 10 > or 15 steps, the varible value become error message. I don't think it > is a good idea to release 1.0 without slove the problem. Are you sure to find a bug ? If the debugger show "*ERROR*" while displaying a variable value, it's because the variable is out of scope. > > In my mind, 1.0 may not necessary to be fancy, may not very convenient, > may not very powerful, but all function listed should be usable, > stable, user friendly. I agree. So I don't want to include important features in the IDE just now, like your (very good) ideas or the pretty printer. For example, the file browser and the find list were included months ago, and there are still problems with them, because these problems are often hard to notice and fix. > > Many people may use gambas for the first time, may just because they > read a news article about gambas 1.0 released and download for a trial. > ... > I will add in the next version the possibility to go to the definition of a symbol just by pressing F2, and to go back with SHIFT-F2. The only thing I wanted to add before the 1.0 is a version number in the component files, so that old gambas project could choose the right version of the component they need. Just after the first release candidate is released, I will create a development branch in the sources, and will include your modifications and the pretty printer. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Thu Aug 12 23:40:12 2004 From: gambas at ...1... (Benoit Minisini) Date: Thu, 12 Aug 2004 23:40:12 +0200 Subject: [Gambas-devel] about PrettyPrinter In-Reply-To: <200408081149.38127.gambas@...1...> References: <41153AA7.7040606@...16...> <200408081149.38127.gambas@...1...> Message-ID: <200408122340.12955.gambas@...1...> On Sunday 08 August 2004 11:49, Benoit Minisini wrote: > I think... I think :-) I continue... > > Wouldn't it be a better idea to pretty print the code directly with the > compiler, or to create a pretty-printer program that uses the same sources > than the compiler ? This need passing many options to the command line, but > I think syntax analyzing code must be centralized as much as possible. > I think you could have wrote your pretty printer in Gambas, as the GambasEditor class has a method, Analyze() that splits a line into symbols, spaces, comments, operators... and tells you what is what. I made it to implement automatic completion, display method signatures and find symbol definitions in code. I think it would be a good idea. Is it a problem for you to rewrite your C pretty printer in Gambas, if I tell you how to use the Analyze() method ? Regards, -- Benoit Minisini mailto:gambas at ...1... From lordheavy at ...141... Fri Aug 13 16:26:11 2004 From: lordheavy at ...141... (Laurent Carlier) Date: Fri, 13 Aug 2004 16:26:11 +0200 Subject: [Gambas-devel] Is it possible to make components ... Message-ID: <200408131626.11867.lordheavy@...141...> Outside of the gambas source ? (with adding only gambas.h), as it shall allow me to test component writing without rebuilding all the source (rebuilding the distro package) :) Thanks ! -- Laurent Carlier From karl.reinl at ...16... Fri Aug 13 23:53:05 2004 From: karl.reinl at ...16... (Charlie) Date: Fri, 13 Aug 2004 23:53:05 +0200 Subject: [Gambas-devel] about PrettyPrinter References: <41153AA7.7040606@...16...> <200408081149.38127.gambas@...1...> <200408122340.12955.gambas@...1...> Message-ID: <411D3841.7020803@...16...> Benoit Minisini schrieb: >On Sunday 08 August 2004 11:49, Benoit Minisini wrote: > > >>I think... I think :-) >> >> > >I continue... > > > >>Wouldn't it be a better idea to pretty print the code directly with the >>compiler, or to create a pretty-printer program that uses the same sources >>than the compiler ? This need passing many options to the command line, but >>I think syntax analyzing code must be centralized as much as possible. >> >> >> > >I think you could have wrote your pretty printer in Gambas, as the >GambasEditor class has a method, Analyze() that splits a line into symbols, >spaces, comments, operators... and tells you what is what. I made it to >implement automatic completion, display method signatures and find symbol >definitions in code. > The first PrettyPrinte was written in gambas-0.56 and posted to the list (25.05.2003) . Then I wrote it in C to re-get in touche with C in Linux and for reason speed . The Indenter4 is mostly part of it. Now keeped to choose the Parameters. > >I think it would be a good idea. Is it a problem for you to rewrite your C >pretty printer in Gambas, if I tell you how to use the Analyze() method ? > No it (I think) will not be a problem, to rewrite it, let us know about Analyze(). I will have a look at it, but hints about will be welcome. Amicalement Charlie From gambas at ...1... Fri Aug 13 22:29:22 2004 From: gambas at ...1... (Benoit Minisini) Date: Fri, 13 Aug 2004 22:29:22 +0200 Subject: [Gambas-devel] about PrettyPrinter In-Reply-To: <411D3841.7020803@...16...> References: <41153AA7.7040606@...16...> <200408122340.12955.gambas@...1...> <411D3841.7020803@...16...> Message-ID: <200408132229.22659.gambas@...1...> On Friday 13 August 2004 23:53, Charlie wrote: > Benoit Minisini schrieb: > >On Sunday 08 August 2004 11:49, Benoit Minisini wrote: > >>I think... I think :-) > > > >I continue... > > > >>Wouldn't it be a better idea to pretty print the code directly with the > >>compiler, or to create a pretty-printer program that uses the same > >> sources than the compiler ? This need passing many options to the > >> command line, but I think syntax analyzing code must be centralized as > >> much as possible. > > > >I think you could have wrote your pretty printer in Gambas, as the > >GambasEditor class has a method, Analyze() that splits a line into > > symbols, spaces, comments, operators... and tells you what is what. I > > made it to implement automatic completion, display method signatures and > > find symbol definitions in code. > > The first PrettyPrinte was written in gambas-0.56 and posted to the list > (25.05.2003) . > Then I wrote it in C to re-get in touche with C in Linux and for reason > speed . > The Indenter4 is mostly part of it. Now keeped to choose the Parameters. > > >I think it would be a good idea. Is it a problem for you to rewrite your C > >pretty printer in Gambas, if I tell you how to use the Analyze() method ? > > No it (I think) will not be a problem, to rewrite it, let us know about > Analyze(). > I will have a look at it, but hints about will be welcome. > > Amicalement > Charlie > The GambasEditor offers the following static methods and properties: STATIC SUB Analyze(sLine AS String) This function split a Gambas line code into its syntactic components. STATIC PROPERTY READ Symbols AS String[] Returns an array of symbols included in the analyzed line. For example, the following line: IF Message.Warning(("The file has been modified."), ("Reload"), ("Cancel")) <> 1 THEN RETURN will be splitted in the following array: [ "IF", "Message", ".", "Warning", "(", "(", "The file has been modified.", ")", ",", "(", "Reload", ")", "(", "Cancel", ")", ")", "<>", "1", "THEN", "RETURN" ] STATIC PROPERTY READ Types AS String[] Returns an array of integer giving the "type" (actually the color) of the corresponding symbol in the array returned by the Symbols property. Use the GambasEditor.Color.* constants. If you have more questions, tell them :-) And soory for asking you to rewrite your pretty printer back in Gambas, but at the 0.56 version, the previous functions didn't exist. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambasfr at ...4... Fri Aug 13 22:40:24 2004 From: gambasfr at ...4... (Bodard Fabien) Date: Fri, 13 Aug 2004 22:40:24 +0200 Subject: [Gambas-devel] Is it possible to make components ... In-Reply-To: <200408131626.11867.lordheavy@...141...> References: <200408131626.11867.lordheavy@...141...> Message-ID: <200408132240.25084.gambasfr@...4...> Le vendredi 13 Ao?t 2004 16:26, Laurent Carlier a ?crit?: > Outside of the gambas source ? (with adding only gambas.h), as it shall > allow me to test component writing without rebuilding all the source > (rebuilding the distro package) :) > > Thanks ! when you do a make... you didn't rebuilding all the source but just the modifiate one... when you have made change..; do : ./reconf ./configure make it just compile your component if gambas is already compiled ! Fabien From lordheavy at ...141... Fri Aug 13 23:09:02 2004 From: lordheavy at ...141... (Laurent Carlier) Date: Fri, 13 Aug 2004 23:09:02 +0200 Subject: [Gambas-devel] Is it possible to make components ... In-Reply-To: <200408132240.25084.gambasfr@...4...> References: <200408131626.11867.lordheavy@...141...> <200408132240.25084.gambasfr@...4...> Message-ID: <200408132309.02934.lordheavy@...141...> Le vendredi 13 Ao?t 2004 22:40, Bodard Fabien a ?crit?: > > when you do a make... > > you didn't rebuilding all the source but just the modifiate one... > > when you have made change..; do : > > ./reconf > ./configure > make > > it just compile your component if gambas is already compiled ! > > Fabien > Of course, if you have build gambas from souce code but if you have installed it form package (ex : rpm), you should built it from source for be able to make components ! I've take a look and it seems that components are dynamicly (?) loaded by gbi so why gambas.h (and perhaps other) not installed in a default include dir at installation time ? -- Laurent Carlier From Karl.Reinl at ...16... Sat Aug 14 16:37:01 2004 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Sat, 14 Aug 2004 14:37:01 +0000 Subject: [Gambas-devel] IDE Make Executable ... Message-ID: <200408141437.01584.Karl.Reinl@...16...> Salut, like every lazy coder, I use "USE Archive" for not to pass thought , while debugging, in well known and tested Parts. These, my Archives, are stored in a easy reachable Dir. Now my problem is, that every time when I add a new Archive or recomplie an older one I have to copy it to the Archive-Dir. I said it at the beginning, i'm a lazy coder, so I would like , that I can compile it direct to that Archive. has anybody changed the IDE in that way ? Added to the .project file the output Dir , for use when making an executable ? So let me know it, and send me your changes. Amicalement Charlie From gambas at ...1... Sat Aug 14 15:05:27 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 14 Aug 2004 15:05:27 +0200 Subject: [Gambas-devel] IDE Make Executable ... In-Reply-To: <200408141437.01584.Karl.Reinl@...16...> References: <200408141437.01584.Karl.Reinl@...16...> Message-ID: <200408141505.27853.gambas@...1...> On Saturday 14 August 2004 16:37, Charlie Reinl wrote: > Salut, > > like every lazy coder, I use "USE Archive" for not to pass thought , while > debugging, in well known and tested Parts. > These, my Archives, are stored in a easy reachable Dir. > > Now my problem is, that every time when I add a new Archive or recomplie an > older one I have to copy it to the Archive-Dir. > > I said it at the beginning, i'm a lazy coder, so I would like , that I can > compile it direct to that Archive. > > has anybody changed the IDE in that way ? > Added to the .project file the output Dir , for use when making an > executable ? > > So let me know it, and send me your changes. > > Amicalement > Charlie > As a workaround, you can use symbolic links from your archive repository to the projects directory. Regards, -- Benoit Minisini mailto:gambas at ...1... From lordheavy at ...141... Sat Aug 14 15:03:51 2004 From: lordheavy at ...141... (Laurent Carlier) Date: Sat, 14 Aug 2004 15:03:51 +0200 Subject: [Gambas-devel] IDE Make Executable ... In-Reply-To: <200408141437.01584.Karl.Reinl@...16...> References: <200408141437.01584.Karl.Reinl@...16...> Message-ID: <200408141503.52211.lordheavy@...141...> Le samedi 14 Ao?t 2004 16:37, Charlie Reinl a ?crit?: > Salut, > > like every lazy coder, I use "USE Archive" for not to pass thought , while > debugging, in well known and tested Parts. > These, my Archives, are stored in a easy reachable Dir. > > Now my problem is, that every time when I add a new Archive or recomplie an > older one I have to copy it to the Archive-Dir. > > I said it at the beginning, i'm a lazy coder, so I would like , that I can > compile it direct to that Archive. > > has anybody changed the IDE in that way ? > Added to the .project file the output Dir , for use when making an > executable ? > > So let me know it, and send me your changes. > > Amicalement > Charlie > Perhaps you should use a symbolic link (ln -s ...) to the directory you put your archives ? -- Laurent Carlier From na2492 at ...16... Sat Aug 14 15:06:14 2004 From: na2492 at ...16... (na2492 at ...16...) Date: Sat, 14 Aug 2004 15:06:14 00200 Subject: [Gambas-devel] IDE Make Executable ... Message-ID: <411e0e46.ad3.0@...16...> >On Saturday 14 August 2004 16:37, Charlie Reinl wrote: >> Salut, >> >> like every lazy coder, I use "USE Archive" for not to pass thought , while >> debugging, in well known and tested Parts. >> These, my Archives, are stored in a easy reachable Dir. >> >> Now my problem is, that every time when I add a new Archive or recomplie an >> older one I have to copy it to the Archive-Dir. >> >> I said it at the beginning, i'm a lazy coder, so I would like , that I can >> compile it direct to that Archive. >> >> has anybody changed the IDE in that way ? >> Added to the .project file the output Dir , for use when making an >> executable ? >> >> So let me know it, and send me your changes. >> >> Amicalement >> Charlie >> > >As a workaround, you can use symbolic links from your archive repository to >the projects directory. > >Regards, > >-- >Benoit Minisini Thanks, I use them daily but for that I ditn't think of. Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From karl.reinl at ...16... Sat Aug 14 18:25:16 2004 From: karl.reinl at ...16... (Charlie) Date: Sat, 14 Aug 2004 18:25:16 +0200 Subject: [Gambas-devel] about PrettyPrinter References: <41153AA7.7040606@...16...> <200408122340.12955.gambas@...1...> <411D3841.7020803@...16...> <200408132229.22659.gambas@...1...> Message-ID: <411E3CEC.4000405@...16...> Benoit Minisini schrieb: >On Friday 13 August 2004 23:53, Charlie wrote: > > >>Benoit Minisini schrieb: >> >> >>>On Sunday 08 August 2004 11:49, Benoit Minisini wrote: >>> >>> >>>>I think... I think :-) >>>> >>>> >>>I continue... >>> >>> >>> >>>>Wouldn't it be a better idea to pretty print the code directly with the >>>>compiler, or to create a pretty-printer program that uses the same >>>>sources than the compiler ? This need passing many options to the >>>>command line, but I think syntax analyzing code must be centralized as >>>>much as possible. >>>> >>>> >>>I think you could have wrote your pretty printer in Gambas, as the >>>GambasEditor class has a method, Analyze() that splits a line into >>>symbols, spaces, comments, operators... and tells you what is what. I >>>made it to implement automatic completion, display method signatures and >>>find symbol definitions in code. >>> >>> >>The first PrettyPrinte was written in gambas-0.56 and posted to the list >>(25.05.2003) . >>Then I wrote it in C to re-get in touche with C in Linux and for reason >>speed . >>The Indenter4 is mostly part of it. Now keeped to choose the Parameters. >> >> >> >>>I think it would be a good idea. Is it a problem for you to rewrite your C >>>pretty printer in Gambas, if I tell you how to use the Analyze() method ? >>> >>> >>No it (I think) will not be a problem, to rewrite it, let us know about >>Analyze(). >>I will have a look at it, but hints about will be welcome. >> >>Amicalement >>Charlie >> >> >> > >The GambasEditor offers the following static methods and properties: > > >STATIC SUB Analyze(sLine AS String) > >This function split a Gambas line code into its syntactic components. > > >STATIC PROPERTY READ Symbols AS String[] > >Returns an array of symbols included in the analyzed line. For example, >the following line: > >IF Message.Warning(("The file has been modified."), ("Reload"), ("Cancel")) <> >1 THEN RETURN > >will be splitted in the following array: > >[ "IF", "Message", ".", "Warning", "(", "(", "The file has been modified.", >")", ",", "(", "Reload", ")", "(", "Cancel", ")", ")", "<>", "1", "THEN", >"RETURN" ] > > >STATIC PROPERTY READ Types AS String[] > >Returns an array of integer giving the "type" (actually the color) of the >corresponding symbol in the array returned by the Symbols property. > >Use the GambasEditor.Color.* constants. > > >If you have more questions, tell them :-) > >And soory for asking you to rewrite your pretty printer back in Gambas, but at >the 0.56 version, the previous functions didn't exist. > >Regards, > Salut Beno?t, this is just for my comprehenion. The GambasEditor.Color.* constants have nothing to do with the visible Editor.Colors You see my thinkings, a white background and the rest is black. I tested it, it stills works, but may be I failed my tests. Amicalement Charlie From gambas at ...1... Sat Aug 14 16:39:48 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 14 Aug 2004 16:39:48 +0200 Subject: [Gambas-devel] about PrettyPrinter In-Reply-To: <411E3CEC.4000405@...16...> References: <41153AA7.7040606@...16...> <200408132229.22659.gambas@...1...> <411E3CEC.4000405@...16...> Message-ID: <200408141639.48934.gambas@...1...> On Saturday 14 August 2004 18:25, Charlie wrote: > Benoit Minisini schrieb: > >On Friday 13 August 2004 23:53, Charlie wrote: > >>Benoit Minisini schrieb: > >>>On Sunday 08 August 2004 11:49, Benoit Minisini wrote: > >>>>I think... I think :-) > >>> > >>>I continue... > >>> > >>>>Wouldn't it be a better idea to pretty print the code directly with the > >>>>compiler, or to create a pretty-printer program that uses the same > >>>>sources than the compiler ? This need passing many options to the > >>>>command line, but I think syntax analyzing code must be centralized as > >>>>much as possible. > >>> > >>>I think you could have wrote your pretty printer in Gambas, as the > >>>GambasEditor class has a method, Analyze() that splits a line into > >>>symbols, spaces, comments, operators... and tells you what is what. I > >>>made it to implement automatic completion, display method signatures and > >>>find symbol definitions in code. > >> > >>The first PrettyPrinte was written in gambas-0.56 and posted to the list > >>(25.05.2003) . > >>Then I wrote it in C to re-get in touche with C in Linux and for reason > >>speed . > >>The Indenter4 is mostly part of it. Now keeped to choose the Parameters. > >> > >>>I think it would be a good idea. Is it a problem for you to rewrite your > >>> C pretty printer in Gambas, if I tell you how to use the Analyze() > >>> method ? > >> > >>No it (I think) will not be a problem, to rewrite it, let us know about > >>Analyze(). > >>I will have a look at it, but hints about will be welcome. > >> > >>Amicalement > >>Charlie > > > >The GambasEditor offers the following static methods and properties: > > > > > >STATIC SUB Analyze(sLine AS String) > > > >This function split a Gambas line code into its syntactic components. > > > > > >STATIC PROPERTY READ Symbols AS String[] > > > >Returns an array of symbols included in the analyzed line. For example, > >the following line: > > > >IF Message.Warning(("The file has been modified."), ("Reload"), > > ("Cancel")) <> 1 THEN RETURN > > > >will be splitted in the following array: > > > >[ "IF", "Message", ".", "Warning", "(", "(", "The file has been > > modified.", ")", ",", "(", "Reload", ")", "(", "Cancel", ")", ")", "<>", > > "1", "THEN", "RETURN" ] > > > > > >STATIC PROPERTY READ Types AS String[] > > > >Returns an array of integer giving the "type" (actually the color) of the > >corresponding symbol in the array returned by the Symbols property. > > > >Use the GambasEditor.Color.* constants. > > > > > >If you have more questions, tell them :-) > > > >And soory for asking you to rewrite your pretty printer back in Gambas, > > but at the 0.56 version, the previous functions didn't exist. > > > >Regards, > > Salut Beno?t, > > this is just for my comprehenion. > > The GambasEditor.Color.* constants have nothing to do with the visible > Editor.Colors No. GambasEditor.Color.* are only color "types". > You see my thinkings, a white background and the rest is > black. I don't understand the rest of the sentence... > I tested it, it stills works, but may be I failed my tests. > > Amicalement > Charlie > Regards, -- Benoit Minisini mailto:gambas at ...1... From danielcampos at ...45... Sun Aug 15 18:31:19 2004 From: danielcampos at ...45... (Daniel Campos) Date: Sun, 15 Aug 2004 18:31:19 +0200 Subject: [Gambas-devel] Spanish translation Message-ID: <1092587479.16167.1.camel@...102...> Here's Spanish translation for 0.97 (no changes found at database manager) Regards, -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-es-0.97.po Type: text/x-po Size: 61786 bytes Desc: not available URL: From danielcampos at ...45... Sun Aug 15 18:37:50 2004 From: danielcampos at ...45... (Daniel Campos) Date: Sun, 15 Aug 2004 18:37:50 +0200 Subject: [Gambas-devel] Spanish bugs Message-ID: <1092587870.16167.3.camel@...102...> Here's two bugs in the spanish version. Regards, -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: bug1.png Type: image/png Size: 23557 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bug2.png Type: image/png Size: 22376 bytes Desc: not available URL: From michael at ...147... Sun Aug 15 20:11:51 2004 From: michael at ...147... (Michael Sullivan) Date: Sun, 15 Aug 2004 13:11:51 -0500 Subject: [Gambas-devel] Gambas interface Message-ID: <1092593510.15599.12.camel@...148...> Hi. I'm relatively new to the Gambas community but I was wondering if there was a roadmap for the Gambas source code. I compiled my copy of Gambas 0.96 from source and I was wanting to alter the interface, but I can't figure out where to start. Where are the interface files located? One of the alterations I wanted to make was this: When I run Gambas, I have to put it in a different workspace because it opens up several windows, all of which take up space on the taskbar (or whatever it's called in Linux - I used to use Windows) I'd like to set up an MDI interface for Gambas, if possible. Where should I start? From sourceforge-raindog2 at ...19... Sun Aug 15 23:57:38 2004 From: sourceforge-raindog2 at ...19... (Rob) Date: Sun, 15 Aug 2004 17:57:38 -0400 Subject: [Gambas-devel] Gambas interface In-Reply-To: <1092593510.15599.12.camel@...148...> References: <1092593510.15599.12.camel@...148...> Message-ID: <200408151757.38771.sourceforge-raindog2@...19...> On Sunday 15 August 2004 14:11, Michael Sullivan wrote: > several windows, all of which take up space on the taskbar (or > whatever it's called in Linux - I used to use Windows) I'd > like to set up an MDI interface for Gambas, if possible. > Where should I start? I did that myself close to a year ago, with a now-ancient version of gambas (look in the older entries on http://www.kudla.org and you'll find it.) In the source tarball for gambas, there's an "app/" directory and in it is the source for gambas and gambas-database-manager. I stopped maintaining it because I couldn't keep up with the rapid Gambas releases at the time (each release would break my patch and it got too confusing to maintain it. Besides, I never came up with a docking bar like VB has or any of that stuff.) Another workaround is to start Gambas in another virtual desktop (KDE defaults to having 4 of them available) but then it's a pain in the ass to switch back and forth. The GIMP developers frequently use this as an excuse for why they haven't made an MDI version of their app despite all the complaints. Benoit and/or Fabien is working on some kind of tabbed interface for Gambas post-1.0, so hopefully us fans of "one big window" will get our wish eventually ;) Rob From list-subscriber at ...149... Mon Aug 16 16:51:09 2004 From: list-subscriber at ...149... (list-subscriber at ...149...) Date: Mon, 16 Aug 2004 11:51:09 -0300 Subject: [Gambas-devel] request Message-ID: <200408161151.09250.list-subscriber@...149...> From sourceforge-raindog2 at ...19... Mon Aug 16 20:29:15 2004 From: sourceforge-raindog2 at ...19... (Rob) Date: Mon, 16 Aug 2004 14:29:15 -0400 Subject: [Gambas-devel] context help Message-ID: <200408161429.15095.sourceforge-raindog2@...19...> One thing I think it might be useful to have in the 1.0 release is context help - basically, if your cursor is in a keyword or symbol, or if you have a keyword or symbol selected, when you press F1 to bring up the help browser it would bring up that keyword or symbol's page. An easy way to do this would be to have the help browser search for the word that contains the cursor, though admittedly the way search works now (ordering without regard for relevance) that might be confusing. I'm just throwing out ideas here, but I may try to implement this myself against 0.97 and submit a patch unless someone is already working on it. Rob From gambas at ...1... Mon Aug 16 20:44:47 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 16 Aug 2004 20:44:47 +0200 Subject: [Gambas-devel] context help In-Reply-To: <200408161429.15095.sourceforge-raindog2@...19...> References: <200408161429.15095.sourceforge-raindog2@...19...> Message-ID: <200408162044.47554.gambas@...1...> On Monday 16 August 2004 20:29, Rob wrote: > One thing I think it might be useful to have in the 1.0 release > is context help - basically, if your cursor is in a keyword or > symbol, or if you have a keyword or symbol selected, when you > press F1 to bring up the help browser it would bring up that > keyword or symbol's page. An easy way to do this would be to > have the help browser search for the word that contains the > cursor, though admittedly the way search works now (ordering > without regard for relevance) that might be confusing. > > I'm just throwing out ideas here, but I may try to implement this > myself against 0.97 and submit a patch unless someone is already > working on it. > > Rob > Look at the code that is executed when you press F2 key. It finds which symbol of which class the word under the cursor is. If the class is not native, then it moves the cursor to the symbol definition in the class. It is just matter of doing the same thing, but instead of moving the cursor to a non-native class, you open the help browser to the symbol of the native class that was found. -- Benoit Minisini mailto:gambas at ...1... From gambasfr at ...4... Tue Aug 17 12:35:26 2004 From: gambasfr at ...4... (Bodard Fabien) Date: Tue, 17 Aug 2004 12:35:26 +0200 Subject: [Gambas-devel] Gambas interface Message-ID: <200408171235.26516.gambasfr@...4...> Le dimanche 15 Ao?t 2004 23:57, Rob a ?crit?: > On Sunday 15 August 2004 14:11, Michael Sullivan wrote: > > several windows, all of which take up space on the taskbar (or > > whatever it's called in Linux - I used to use Windows) I'd > > like to set up an MDI interface for Gambas, if possible. > > Where should I start? > > I did that myself close to a year ago, with a now-ancient version > of gambas (look in the older entries on http://www.kudla.org and > you'll find it.) In the source tarball for gambas, there's an > "app/" directory and in it is the source for gambas and > gambas-database-manager. I stopped maintaining it because I > couldn't keep up with the rapid Gambas releases at the time > (each release would break my patch and it got too confusing to > maintain it. Besides, I never came up with a docking bar like > VB has or any of that stuff.) > > Another workaround is to start Gambas in another virtual desktop > (KDE defaults to having 4 of them available) but then it's a > pain in the ass to switch back and forth. The GIMP developers > frequently use this as an excuse for why they haven't made an > MDI version of their app despite all the complaints. Benoit > and/or Fabien is working on some kind of tabbed interface for > Gambas post-1.0, so hopefully us fans of "one big window" will > get our wish eventually ;) > > Rob > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel There is many kind of interface..; in fact... I've tested the ide with the rob work... buti find that i lost many place... In the paste i've worked with vb 4... and when i've updated to vb6 i was horrified by the difficulty to draw forms... And by the difficulty to find the good opened windows in the back... So a good compromise, will be to have the possibility to chose... My idea in fact is a total modular system... With an mdi option ... i think it will be possible by adding at less to thing : the reparent concept the dockarea... By this way, it allow to have the tool windows docked as you want: 1 (one windows per level separate by a splitter) 2 (one windows per level separate by a splitter) 3 (one windows per level separate by a splitter) or 12 (two windows in tabs) 3 (one windows per level separate by a splitter) or 123 (tree windows in tabs) And you can manage that by drag and drop... easy no ? It's the gimp system... And you can have one module in one windows if you want too, And i think the same for the editor windows... I SEND HERE A SHOT OF MY IDEA... BUT IT'S A SHOT NOT REAL CODE And the better will be to have a form with 3 dockarea and a workspace (for editor only) the dock area will allows to display and lock the tool windows where we want... _____ |DWD| | D | --------- Many job ... for the futur Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: capture5.png Type: image/png Size: 113214 bytes Desc: not available URL: From michael at ...147... Tue Aug 17 16:23:05 2004 From: michael at ...147... (Michael Sullivan) Date: Tue, 17 Aug 2004 09:23:05 -0500 Subject: [Gambas-devel] Gambas Interface - Run and Stop In-Reply-To: References: Message-ID: <1092752584.26862.4.camel@...148...> Another thing about Gambas 0.96 that really annoys me is that I can only run and stop a program from the main project window. When there's an error in my program it doesn't show up until I try to run it. Gambas brings up the code editor window along with the error in a message box, but you can't do anything in the code window without first switching back to the project window and stopping the program. Can we put a Stop button on the button panel in the code editor to avoid having to switch back to the project window to stop the program when there's an error? From sourceforge-raindog2 at ...19... Tue Aug 17 14:55:23 2004 From: sourceforge-raindog2 at ...19... (Rob) Date: Tue, 17 Aug 2004 08:55:23 -0400 Subject: [Gambas-devel] Gambas interface In-Reply-To: <200408171235.26516.gambasfr@...4...> References: <200408171235.26516.gambasfr@...4...> Message-ID: <200408170855.23339.sourceforge-raindog2@...19...> On Tuesday 17 August 2004 06:35, Bodard Fabien wrote: > I've tested the ide with the rob work... buti find that i lost > many place... In the paste i've worked with vb 4... and when > i've updated to vb6 i was horrified by the difficulty to draw > forms... > And by the difficulty to find the good opened windows in the > back... On the other hand, with the "lots of little windows" method, it's very common to (for example) have your code window in front and the project browser obscured by another window. I guess that could be solved by having an activate event on all the windows that causes all the other windows of the app to come to the top, but that's nasty! > My idea in fact is a total modular system... With an mdi > option ... i think it will be possible by adding at less to > thing : > the reparent concept > the dockarea... This sounds wonderful, I look forward to helping debug it ;) Rob From Karl.Reinl at ...16... Tue Aug 17 23:13:50 2004 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Tue, 17 Aug 2004 21:13:50 +0000 Subject: [Gambas-devel] les accent provocant une bouge Message-ID: <200408172113.50833.Karl.Reinl@...16...> Salut, like you can see on the snapshot I started on IDE (0.97) gambas (where I try to finish the LineAnalyze) and for testing I started a copy of gambas gambasTest . When I reached the line with the french accent the 2.IDE crached. I tried to reproduce that in the 1. IDE but I couldn't. Why ??? Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: snapshot5.jpg Type: image/jpeg Size: 151139 bytes Desc: not available URL: From Karl.Reinl at ...16... Tue Aug 17 23:35:46 2004 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Tue, 17 Aug 2004 21:35:46 +0000 Subject: [Gambas-devel] Operator > 1 Message-ID: <200408172135.46517.Karl.Reinl@...16...> Salut Benoit, where can I find the editor.color List. I mean all possible Operators etc. Because I need a List of all Operator > 1. Amicalement Charlie From gambas at ...1... Tue Aug 17 22:01:16 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 17 Aug 2004 22:01:16 +0200 Subject: [Gambas-devel] Operator > 1 In-Reply-To: <200408172135.46517.Karl.Reinl@...16...> References: <200408172135.46517.Karl.Reinl@...16...> Message-ID: <200408172201.16046.gambas@...1...> On Tuesday 17 August 2004 23:35, Charlie Reinl wrote: > Salut Benoit, > > where can I find the editor.color List. > I mean all possible Operators etc. > Because I need a List of all Operator > 1. > > Amicalement > Charlie > What do you mean exactly ??? -- Benoit Minisini mailto:gambas at ...1... From karl.reinl at ...16... Tue Aug 17 22:38:33 2004 From: karl.reinl at ...16... (Charlie) Date: Tue, 17 Aug 2004 22:38:33 +0200 Subject: [Gambas-devel] Operator > 1 References: <200408172135.46517.Karl.Reinl@...16...> <200408172201.16046.gambas@...1...> Message-ID: <41226CC9.6050301@...16...> Benoit Minisini schrieb: >On Tuesday 17 August 2004 23:35, Charlie Reinl wrote: > > >>Salut Benoit, >> >>where can I find the editor.color List. >>I mean all possible Operators etc. >>Because I need a List of all Operator > 1. >> >>Amicalement >>Charlie >> >> >> > >What do you mean exactly ??? > > A liste or where I can find this, of all what gets the Type Operator. Like : <>, <=, >=, &/ etc. Charlie From michael at ...147... Tue Aug 17 16:23:05 2004 From: michael at ...147... (Michael Sullivan) Date: Tue, 17 Aug 2004 09:23:05 -0500 Subject: [Gambas-devel] Gambas Interface - Run and Stop In-Reply-To: References: Message-ID: <1092752584.26862.4.camel@...148...> Another thing about Gambas 0.96 that really annoys me is that I can only run and stop a program from the main project window. When there's an error in my program it doesn't show up until I try to run it. Gambas brings up the code editor window along with the error in a message box, but you can't do anything in the code window without first switching back to the project window and stopping the program. Can we put a Stop button on the button panel in the code editor to avoid having to switch back to the project window to stop the program when there's an error? From Karl.Reinl at ...16... Tue Aug 17 23:27:54 2004 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Tue, 17 Aug 2004 21:27:54 +0000 Subject: [Gambas-devel] LineAnalyze Message-ID: <200408172127.54362.Karl.Reinl@...16...> Salut Benoit, why LINE is a Keyword Draw.LineStyle = LINE.Dash Output : Draw 5 Symbol . 4 Operator LineStyle 5 Symbol = 4 Operator LINE 2 Keyword . 4 Operator Dash 5 Symbol After my testings on a copy from gambas CASE "." sBlank = "" IF nI > 0 THEN IF iPart[nI - 1] <> 5 AND sPart[nI - 1] <> "LINE" THEN sBlank = " " ENDIF ENDIF to cache also that IF .Count = 0 THEN RETURN Amicalement Charlie From Karl.Reinl at ...16... Tue Aug 17 23:35:56 2004 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Tue, 17 Aug 2004 21:35:56 +0000 Subject: [Gambas-devel] 1. still now the best LineAnalyze (you can compile after) Message-ID: <200408172135.56102.Karl.Reinl@...16...> Salut, better then yesterday, but not as good like tomorrow he will be. Hope you are carefully use that, i don't want crash your code. But I need code lines where it dosn't compile or has spaces on wrong places. Amicalement Charlie '-------------------------- PUBLIC SUB edtEditor_Cursor() DIM sModifLine AS String IF edtEditor.Line <> $iLastLine THEN ' changings charlie IF Left(Trim(edtEditor.Lines[$iLastLine]) , 1) <> "'" AND Trim(edtEditor.Lines[$iLastLine]) <> "" THEN sModifLine = LineAnalyze(edtEditor.Lines[$iLastLine] , $iLastLine) IF sModifLine <> edtEditor.Lines[$iLastLine] THEN edtEditor.Lines[$iLastLine] = sModifLine edtEditor.Refresh ENDIF ENDIF ' end changings charlie $iLastLine = edtEditor.Line HideCompletion HideSignature IF IsModified() THEN Scan = NULL ELSE IF $bCheckSignature OR frmSignature.Visible THEN $bCheckSignature = FALSE CheckSignature ENDIF DrawTitle ' TRY PRINT Editor.Analyze(Editor.Lines[Editor.Line]).Join(",") END '-------------------------- PUBLIC SUB edtEditor_LostFocus() DIM sModifLine AS String IF Left(Trim(edtEditor.Lines[$iLastLine]) , 1) <> "'" AND Trim(edtEditor.Lines[$iLastLine]) <> "" THEN sModifLine = LineAnalyze(edtEditor.Lines[$iLastLine] , $iLastLine) IF sModifLine <> edtEditor.Lines[$iLastLine] THEN edtEditor.Lines[$iLastLine] = sModifLine edtEditor.Refresh ENDIF ENDIF END '-------------------------- PRIVATE FUNCTION LineAnalyze(sLine AS String,iLine AS Integer) AS String DIM nI AS Integer DIM nJ AS Integer DIM sOut AS String DIM sPart AS String[] DIM iPart AS Integer[] DIM aSPart AS Object DIM sLeftBlanks AS String DIM sBlank AS String IF IsProc(Trim(sLine)) THEN RETURN sLine IF Upper(Trim(sLine)) = "END" THEN RETURN sLine ' looking for leading Blanks sLeftBlanks = String$(Len(sLine) - Len(LTrim(sLine)) , " ") ' analysing Line edtEditor.Analyze(sLine) ' reading Symbols sPart = GambasEditor.Symbols ' reading Types iPart = GambasEditor.Types sBlank = " " ' set the sBlank FOR nI = 0 TO sPart.Count - 1 ' if legth Operator > 1 exepte some IF iPart[nI] = 4 AND Len(sPart[nI]) > 1 THEN SELECT CASE sPart[nI] CASE "<>" CASE "<=" CASE ">=" CASE "&/" CASE ELSE sPart[nI] = Left(sPart[nI] , 1) & " " & Mid(sPart[nI] , 2) sOut = sOut & " " & sPart[nI] FOR nJ = ni + 1 TO sPart.Count - 1 sOut = sOut & " " & sPart[nJ] NEXT edtEditor.Lines[iLine] = sLeftBlanks & Trim(sOut) RETURN LineAnalyze(edtEditor.Lines[iLine] , iLine) END SELECT ENDIF SELECT CASE sPart[nI] CASE "." sBlank = "" IF nI > 0 THEN IF iPart[nI - 1] <> 5 AND sPart[nI - 1] <> "LINE" THEN ' Symbol and Keyword "LINE" sBlank = " " ENDIF ENDIF CASE "(" sBlank = "" IF nI > 0 THEN IF iPart[nI - 1] <> 3 AND iPart[nI - 1] <> 5 THEN ' Function and Symbol sBlank = " " ENDIF ENDIF CASE ")" , "[" , "]" sBlank = "" CASE ELSE IF nI > 0 THEN SELECT CASE sPart[nI - 1] CASE "." , "(" , "[" sBlank = "" CASE ELSE sBlank = " " END SELECT ELSE sBlank = " " ENDIF END SELECT SELECT CASE iPart[nI] CASE 5 ' Symbol ' here you can look up if this Symbol is written as declaret sOut = sOut & sBlank & sPart[nI] CASE 6 ' Number IF nI > 0 THEN SELECT CASE iPart[nI - 1] CASE 5 ' Symbol sOut = sOut & sBlank & Left(sPart[nI] , 1) & " " & Mid(sPart[nI] , 2) CASE ELSE sOut = sOut & sBlank & sPart[nI] END SELECT ELSE sOut = sOut & sBlank & sPart[nI] ENDIF CASE ELSE sOut = sOut & sBlank & sPart[nI] END SELECT PRINT sPart[nI] , iPart[nI] , GetColorsName(iPart[nI]) NEXT sOut = sLeftBlanks & Trim(sOut) RETURN sOut END '-------------------------- FUNCTION GetColorsName(iType AS Integer) AS String DIM sOut AS String SELECT CASE iType CASE edtEditor.Colors.Background sOut = "Background" CASE edtEditor.Colors.Breakpoint sOut = "Breakpoint" CASE edtEditor.Colors.Comment sOut = "Comment" CASE edtEditor.Colors.Current sOut = "Current" CASE edtEditor.Colors.DataType sOut = "DataType" CASE edtEditor.Colors.Function sOut = "Function" CASE edtEditor.Colors.Keyword sOut = "Keyword" CASE edtEditor.Colors.Normal sOut = "Normal" CASE edtEditor.Colors.Number sOut = "Number" CASE edtEditor.Colors.Operator sOut = "Operator" CASE edtEditor.Colors.String sOut = "String" CASE edtEditor.Colors.Symbol sOut = "Symbol" CASE ELSE sOut = "??" END SELECT RETURN sOut END From gambas at ...1... Tue Aug 17 21:56:28 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 17 Aug 2004 21:56:28 +0200 Subject: [Gambas-devel] les accent provocant une bouge In-Reply-To: <200408172113.50833.Karl.Reinl@...16...> References: <200408172113.50833.Karl.Reinl@...16...> Message-ID: <200408172156.28935.gambas@...1...> On Tuesday 17 August 2004 23:13, Charlie Reinl wrote: > Salut, > > like you can see on the snapshot I started on IDE (0.97) gambas (where I > try to finish the LineAnalyze) and for testing I started a copy of gambas > gambasTest . > > When I reached the line with the french accent the 2.IDE crached. > I tried to reproduce that in the 1. IDE but I couldn't. > > Why ??? The conversion error occurs when inserting the text printed by the debugged process in the console window. This text is always converted from System.Charset to UTF-8, as if everything that is printed on standard output would be UTF-8! Are you printing very long lines in the debugged program ? Are you printing non-ASCII characters ? -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...19... Wed Aug 18 01:53:12 2004 From: sourceforge-raindog2 at ...19... (Rob) Date: Tue, 17 Aug 2004 19:53:12 -0400 Subject: [Gambas-devel] Gambas Interface - Run and Stop In-Reply-To: <1092752584.26862.4.camel@...148...> References: <1092752584.26862.4.camel@...148...> Message-ID: <200408171953.12016.sourceforge-raindog2@...19...> On Tuesday 17 August 2004 10:23, Michael Sullivan wrote: > the project window and stopping the program. Can we put a > Stop button on the button panel in the code editor to avoid > having to switch back to the project window to stop the > program when there's an error? That behavior annoys me too. Maybe when I'm trying to add the context help I'll also see if I can add that. I would also encourage you to open the Gambas IDE project yourself and poke around with making such changes though, so that whenever you brainstorm a new feature or interface improvement you can flesh your ideas out and have example code to post, which I find always makes people more excited. Of course, the behavior I'd *like* to see is the ability to edit your code without having to stop the program, since after all Gambas is an interpreted language, but I'm guessing that's not going to happen ;) Rob From sourceforge-raindog2 at ...19... Wed Aug 18 04:50:29 2004 From: sourceforge-raindog2 at ...19... (Rob) Date: Tue, 17 Aug 2004 22:50:29 -0400 Subject: [Gambas-devel] context help In-Reply-To: <200408162044.47554.gambas@...1...> References: <200408161429.15095.sourceforge-raindog2@...19...> <200408162044.47554.gambas@...1...> Message-ID: <200408172250.29694.sourceforge-raindog2@...19...> On Monday 16 August 2004 14:44, Benoit Minisini wrote: > Look at the code that is executed when you press F2 key. I did, but I ended up kinda rewriting it anyway ;) Also, there is a function called Shortcut() in Project.Module that seems to be left over from an old, old Gambas version and isn't called from anywhere else.... from the days when F2 brought up the object browser. Might as well get rid of it.... My code only touched FExplorer.class and FEditor.class so here they are. If you select one or more words, it will search for them, otherwise, it will look for whichever word is under the cursor, just like VB. Unlike VB, it will bring up a lot of less useful results because it doesn't differentiate between finding the word in the title vs. in the body of the help page, but let's fix one thing at a time ;) Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-context-help-patch.tar.gz Type: application/x-tgz Size: 10788 bytes Desc: not available URL: From na2492 at ...16... Wed Aug 18 10:47:09 2004 From: na2492 at ...16... (na2492 at ...16...) Date: Wed, 18 Aug 2004 10:47:09 00200 Subject: [Gambas-devel] les accent provocant une bouge Message-ID: <4123178d.2175.0@...16...> >On Tuesday 17 August 2004 23:13, Charlie Reinl wrote: >> Salut, >> >> like you can see on the snapshot I started on IDE (0.97) gambas (where I >> try to finish the LineAnalyze) and for testing I started a copy of gambas >> gambasTest . >> >> When I reached the line with the french accent the 2.IDE crached. >> I tried to reproduce that in the 1. IDE but I couldn't. >> >> Why ??? > >The conversion error occurs when inserting the text printed by the debugged >process in the console window. This text is always converted from >System.Charset to UTF-8, as if everything that is printed on standard output >would be UTF-8! > >Are you printing very long lines in the debugged program ? Are you printing >non-ASCII characters ? > >-- >Benoit Minisini >mailto:gambas at ...1... > for testing the LineAnalyze I opend the lagest gambas IDE Classes and worked from the top to the end. The line shown is original gambas IDE code. Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From linus at ...2... Wed Aug 18 16:25:53 2004 From: linus at ...2... (Nigel Gerrard) Date: Wed, 18 Aug 2004 15:25:53 +0100 Subject: [Gambas-devel] Encoding for Sqlite Driver Message-ID: <1092839152.3245.4.camel@...128...> Benoit, Seems that I didn't send you the following line for including in the Sqlite driver updates. This should replace the similar line in main.cpp GB.NewString(charset, strcmp(sqlite_encoding,"iso8859") == 0 ? "ISO-8859-1" : "UTF-8", 0); This will solve the problem where the 0.97 database manager can no longer add records to the tables. Nigel From gambas at ...1... Wed Aug 18 19:44:05 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 18 Aug 2004 19:44:05 +0200 Subject: [Gambas-devel] Operator > 1 In-Reply-To: <41226CC9.6050301@...16...> References: <200408172135.46517.Karl.Reinl@...16...> <200408172201.16046.gambas@...1...> <41226CC9.6050301@...16...> Message-ID: <200408181944.05940.gambas@...1...> On Tuesday 17 August 2004 22:38, Charlie wrote: > Benoit Minisini schrieb: > >On Tuesday 17 August 2004 23:35, Charlie Reinl wrote: > >>Salut Benoit, > >> > >>where can I find the editor.color List. > >>I mean all possible Operators etc. > >>Because I need a List of all Operator > 1. > >> > >>Amicalement > >>Charlie > > > >What do you mean exactly ??? > > A liste or where I can find this, of all what gets the Type Operator. > Like : <>, <=, >=, &/ etc. > > Charlie > I think I understand your problem. GambasEditor.Analyze() should do the job for you, i.e. if an operator is two characters, then it should take only one entry in the array returnes by GambasEditor.Symbols. Actually, sometimes, maybe operators are splitted by the Analyze() method, whereas they should not. Is it your problem ? -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed Aug 18 19:45:07 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 18 Aug 2004 19:45:07 +0200 Subject: [Gambas-devel] LineAnalyze In-Reply-To: <200408172127.54362.Karl.Reinl@...16...> References: <200408172127.54362.Karl.Reinl@...16...> Message-ID: <200408181945.07545.gambas@...1...> On Tuesday 17 August 2004 23:27, Charlie Reinl wrote: > Salut Benoit, > > why LINE is a Keyword > > Draw.LineStyle = LINE.Dash > > Output : > Draw 5 Symbol > . 4 Operator > LineStyle 5 Symbol > = 4 Operator > LINE 2 Keyword > . 4 Operator > Dash 5 Symbol > > After my testings on a copy from gambas > CASE "." > sBlank = "" > IF nI > 0 THEN > IF iPart[nI - 1] <> 5 AND sPart[nI - 1] <> "LINE" THEN > sBlank = " " > ENDIF > ENDIF > > to cache also that > > IF .Count = 0 THEN RETURN > > Amicalement > Charlie > Analyze() is not intelligent enough :-) -- Benoit Minisini mailto:gambas at ...1... From Lamego at ...108... Wed Aug 18 20:25:37 2004 From: Lamego at ...108... (=?ISO-8859-1?Q?Jo=E3o_Pinto?=) Date: Wed, 18 Aug 2004 19:25:37 +0100 Subject: [Gambas-devel] gambas 0.97 - preferences bug Message-ID: <41239F21.7070306@...108...> Hello, after of doing a fresh install of gambas 0.97 I found it was crashing when trying to change any setting on the preferences window. I found the problem was because there was no ~/.gambas directory, I guess it should be created by the application on the first run ? Best Regards, PTlink Tech Admin Lamego at ...108... From gambas at ...1... Wed Aug 18 20:50:55 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 18 Aug 2004 20:50:55 +0200 Subject: [Gambas-devel] gambas 0.97a Message-ID: <200408182050.55353.gambas@...1...> Hi, I released a 0.97a that fixes the two bugs I talked before: 1) If ~/.gambas does not exist, the IDE (and the database manager) crashes at exit, trying to create the configuration file. 2) Modal windows are not modal with QT 3.2! This is the bug noticed by Rob and many other people. With QT 3.3, there is no problem! This version includes an updated documentation too. Enjoy it! -- Benoit Minisini mailto:gambas at ...1... From mauriiiii3001 at ...112... Wed Aug 18 21:41:30 2004 From: mauriiiii3001 at ...112... (Pozzo) Date: Wed, 18 Aug 2004 21:41:30 +0200 Subject: [Gambas-devel] Ita Translation In-Reply-To: References: Message-ID: <4123B0EA.8000704@...112...> Hi here are the Ita translations for the .97 v -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-it.po Type: text/x-po Size: 59600 bytes Desc: not available URL: From gambas at ...1... Wed Aug 18 22:00:22 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 18 Aug 2004 22:00:22 +0200 Subject: [Gambas-devel] Encoding for Sqlite Driver In-Reply-To: <1092839152.3245.4.camel@...128...> References: <1092839152.3245.4.camel@...128...> Message-ID: <200408182200.22199.gambas@...1...> On Wednesday 18 August 2004 16:25, Nigel Gerrard wrote: > Benoit, > > Seems that I didn't send you the following line for including in the > Sqlite driver updates. This should replace the similar line in main.cpp > > GB.NewString(charset, strcmp(sqlite_encoding,"iso8859") == 0 ? > "ISO-8859-1" : "UTF-8", 0); > > This will solve the problem where the 0.97 database manager can no > longer add records to the tables. > > Nigel > Thanks. I add it... -- Benoit Minisini mailto:gambas at ...1... From gambasfr at ...4... Wed Aug 18 22:29:08 2004 From: gambasfr at ...4... (Bodard Fabien) Date: Wed, 18 Aug 2004 22:29:08 +0200 Subject: [Gambas-devel] Gambas installation... Message-ID: <200408182229.08730.gambasfr@...4...> Hi to all ! As gambas is an easy to use language... it is mabe a good way to find a simple solution to install it in many distribution ... And .. i've mabe find something like that... http://autopackage.org/ As i can see gimp and inksckape use it for their project, and i've installed inkscape without any real problem... The frontend say what file miss... What did you think about that ? Fabien Bodard From gambas at ...1... Wed Aug 18 22:54:07 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 18 Aug 2004 22:54:07 +0200 Subject: [Gambas-devel] Gambas installation... In-Reply-To: <200408182229.08730.gambasfr@...4...> References: <200408182229.08730.gambasfr@...4...> Message-ID: <200408182254.08077.gambas@...1...> On Wednesday 18 August 2004 22:29, Bodard Fabien wrote: > Hi to all ! > > As gambas is an easy to use language... it is mabe a good way to find a > simple solution to install it in many distribution ... > > And .. i've mabe find something like that... http://autopackage.org/ > > As i can see gimp and inksckape use it for their project, and i've > installed inkscape without any real problem... The frontend say what file > miss... > > What did you think about that ? > > Fabien Bodard > I have tried to install inkscape by using the package from their site, and it fails on my Mandrake. If I launch the program, there is an error: a missing shared library. If will try later when I have more time to understand what happened. The problem is that this system seems to be incompatible with the rpm database in Mandrake. If it installs some library, the rpm database don't know it, and may erase it the next time you use urpmi. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed Aug 18 23:00:35 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 18 Aug 2004 23:00:35 +0200 Subject: [Gambas-devel] Spanish translation In-Reply-To: <1092587479.16167.1.camel@...102...> References: <1092587479.16167.1.camel@...102...> Message-ID: <200408182300.35237.gambas@...1...> On Sunday 15 August 2004 18:31, Daniel Campos wrote: > Here's Spanish translation for 0.97 (no changes found at database > manager) > > Regards, Thanks! -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed Aug 18 23:02:31 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 18 Aug 2004 23:02:31 +0200 Subject: [Gambas-devel] Spanish bugs In-Reply-To: <1092587870.16167.3.camel@...102...> References: <1092587870.16167.3.camel@...102...> Message-ID: <200408182302.31334.gambas@...1...> On Sunday 15 August 2004 18:37, Daniel Campos wrote: > Here's two bugs in the spanish version. > > Regards, Bug n?2 is fixed, but can't you find a shorter term for the bug n?1 ? Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed Aug 18 23:03:12 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 18 Aug 2004 23:03:12 +0200 Subject: [Gambas-devel] Ita Translation In-Reply-To: <4123B0EA.8000704@...112...> References: <4123B0EA.8000704@...112...> Message-ID: <200408182303.12029.gambas@...1...> On Wednesday 18 August 2004 21:41, Pozzo wrote: > Hi here are the Ita translations for the .97 v Thanks!! -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed Aug 18 23:07:06 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 18 Aug 2004 23:07:06 +0200 Subject: [Gambas-devel] context help In-Reply-To: <200408172250.29694.sourceforge-raindog2@...19...> References: <200408161429.15095.sourceforge-raindog2@...19...> <200408162044.47554.gambas@...1...> <200408172250.29694.sourceforge-raindog2@...19...> Message-ID: <200408182307.06589.gambas@...1...> On Wednesday 18 August 2004 04:50, Rob wrote: > On Monday 16 August 2004 14:44, Benoit Minisini wrote: > > Look at the code that is executed when you press F2 key. > > I did, but I ended up kinda rewriting it anyway ;) > > Also, there is a function called Shortcut() in Project.Module > that seems to be left over from an old, old Gambas version and > isn't called from anywhere else.... from the days when F2 > brought up the object browser. Might as well get rid of it.... > > My code only touched FExplorer.class and FEditor.class so here > they are. If you select one or more words, it will search for > them, otherwise, it will look for whichever word is under the > cursor, just like VB. > > Unlike VB, it will bring up a lot of less useful results because > it doesn't differentiate between finding the word in the title > vs. in the body of the help page, but let's fix one thing at a > time ;) > > Rob Why do you perform a search ? If you know the symbol name, and its class, you can find easily find its page by searching in the FExplorer treeview. -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed Aug 18 23:21:16 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 18 Aug 2004 23:21:16 +0200 Subject: [Gambas-devel] Gambas Interface - Run and Stop In-Reply-To: <1092752584.26862.4.camel@...148...> References: <1092752584.26862.4.camel@...148...> Message-ID: <200408182321.16847.gambas@...1...> On Tuesday 17 August 2004 16:23, Michael Sullivan wrote: > Another thing about Gambas 0.96 that really annoys me is that I can only > run and stop a program from the main project window. When there's an > error in my program it doesn't show up until I try to run it. Gambas > brings up the code editor window along with the error in a message box, > but you can't do anything in the code window without first switching > back to the project window and stopping the program. Can we put a Stop > button on the button panel in the code editor to avoid having to switch > back to the project window to stop the program when there's an error? > > I added a keyboard shortcut to stop the program. The shortcut is ALT+PAUSE, because I didn't succeed in making CTRL+PAUSE work :-) I don't know if I will add the stop button to the editor toolbar yet... -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...19... Wed Aug 18 23:55:19 2004 From: sourceforge-raindog2 at ...19... (Rob) Date: Wed, 18 Aug 2004 17:55:19 -0400 Subject: [Gambas-devel] context help In-Reply-To: <200408182307.06589.gambas@...1...> References: <200408161429.15095.sourceforge-raindog2@...19...> <200408172250.29694.sourceforge-raindog2@...19...> <200408182307.06589.gambas@...1...> Message-ID: <200408181755.19246.sourceforge-raindog2@...19...> On Wednesday 18 August 2004 17:07, Benoit Minisini wrote: > Why do you perform a search ? If you know the symbol name, and > its class, you can find easily find its page by searching in > the FExplorer treeview. Will Analyze() give me good information if the user has selected a keyword? There's no documentation for Analyze() and nothing that I saw in your code clued me in to the fact that I could derive which component and class a given symbol was, let alone return anything about keywords. At any rate, I think a search should always be a fallback position when an exact match can't be found. Rob From gambas at ...1... Thu Aug 19 00:06:01 2004 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 Aug 2004 00:06:01 +0200 Subject: [Gambas-devel] The future of gambas Message-ID: <200408190006.01970.gambas@...1...> Here is a mindmap of the Gambas future I made with freemind. It is not finished yet. If someone is interested in having the .mm file, tell me, and I will send it. Regards, -- Benoit Minisini mailto:gambas at ...1... -------------- next part -------------- A non-text attachment was scrubbed... Name: freemind-19-08-2004.png Type: image/png Size: 101146 bytes Desc: not available URL: From karl.reinl at ...16... Thu Aug 19 21:54:36 2004 From: karl.reinl at ...16... (Charlie) Date: Thu, 19 Aug 2004 21:54:36 +0200 Subject: [Gambas-devel] context help References: <200408161429.15095.sourceforge-raindog2@...19...> <200408172250.29694.sourceforge-raindog2@...19...> <200408182307.06589.gambas@...1...> <200408181755.19246.sourceforge-raindog2@...19...> Message-ID: <4125057C.7020400@...16...> Rob schrieb: >On Wednesday 18 August 2004 17:07, Benoit Minisini wrote: > > >>Why do you perform a search ? If you know the symbol name, and >>its class, you can find easily find its page by searching in >>the FExplorer treeview. >> >> > >Will Analyze() give me good information if the user has selected >a keyword? There's no documentation for Analyze() and nothing >that I saw in your code clued me in to the fact that I could >derive which component and class a given symbol was, let alone >return anything about keywords. > >At any rate, I think a search should always be a fallback >position when an exact match can't be found. > >Rob > > Salut Rob, if you strip all lines from LineAnalyz exepte DIM sPart AS String[] DIM iPart AS Integer[] edtEditor.Analyze(sLine) ' reading Symbols sPart = GambasEditor.Symbols ' reading Types iPart = GambasEditor.Types and if you wnat see it also PRINT sPart[nI] , iPart[nI] , GetColorsName(iPart[nI]) but then you need GetColorsName you will see somthig like that: Draw.LineStyle = LINE.Dash Output : Draw 5 Symbol . 4 Operator LineStyle 5 Symbol = 4 Operator LINE 2 Keyword . 4 Operator Dash 5 Symbol Amicalement Charlie From karl.reinl at ...16... Thu Aug 19 21:39:56 2004 From: karl.reinl at ...16... (Charlie) Date: Thu, 19 Aug 2004 21:39:56 +0200 Subject: [Gambas-devel] Operator > 1 References: <200408172135.46517.Karl.Reinl@...16...> <200408172201.16046.gambas@...1...> <41226CC9.6050301@...16...> <200408181944.05940.gambas@...1...> Message-ID: <4125020C.3000605@...16...> Benoit Minisini schrieb: >On Tuesday 17 August 2004 22:38, Charlie wrote: > > >>Benoit Minisini schrieb: >> >> >>>On Tuesday 17 August 2004 23:35, Charlie Reinl wrote: >>> >>> >>>>Salut Benoit, >>>> >>>>where can I find the editor.color List. >>>>I mean all possible Operators etc. >>>>Because I need a List of all Operator > 1. >>>> >>>>Amicalement >>>>Charlie >>>> >>>> >>>What do you mean exactly ??? >>> >>> >>A liste or where I can find this, of all what gets the Type Operator. >>Like : <>, <=, >=, &/ etc. >> >>Charlie >> >> >> > >I think I understand your problem. > >GambasEditor.Analyze() should do the job for you, i.e. if an operator is two >characters, then it should take only one entry in the array returnes by >GambasEditor.Symbols. > No he shouldn't , but I have to know which operaters > 1 like the above has not splited . > >Actually, sometimes, maybe operators are splitted by the Analyze() method, >whereas they should not. Is it your problem ? > > > Amicalement Charlie From karl.reinl at ...16... Thu Aug 19 21:41:16 2004 From: karl.reinl at ...16... (Charlie) Date: Thu, 19 Aug 2004 21:41:16 +0200 Subject: [Gambas-devel] LineAnalyze References: <200408172127.54362.Karl.Reinl@...16...> <200408181945.07545.gambas@...1...> Message-ID: <4125025C.20806@...16...> Benoit Minisini schrieb: >On Tuesday 17 August 2004 23:27, Charlie Reinl wrote: > > >>Salut Benoit, >> >>why LINE is a Keyword >> >>Draw.LineStyle = LINE.Dash >> >>Output : >> Draw 5 Symbol >> . 4 Operator >> LineStyle 5 Symbol >> = 4 Operator >> LINE 2 Keyword >> . 4 Operator >> Dash 5 Symbol >> >>After my testings on a copy from gambas >> CASE "." >> sBlank = "" >> IF nI > 0 THEN >> IF iPart[nI - 1] <> 5 AND sPart[nI - 1] <> "LINE" THEN >> sBlank = " " >> ENDIF >> ENDIF >> >>to cache also that >> >> IF .Count = 0 THEN RETURN >> >>Amicalement >>Charlie >> >> >> > >Analyze() is not intelligent enough :-) > > > So I have to wait !? Charlie From gambas at ...1... Thu Aug 19 21:15:05 2004 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 Aug 2004 21:15:05 +0200 Subject: [Gambas-devel] LineAnalyze In-Reply-To: <4125025C.20806@...16...> References: <200408172127.54362.Karl.Reinl@...16...> <200408181945.07545.gambas@...1...> <4125025C.20806@...16...> Message-ID: <200408192115.05076.gambas@...1...> On Thursday 19 August 2004 21:41, Charlie wrote: > > So I have to wait !? > > Charlie > Replace the line 376 in ./src/lib/qt/editor/qeditor.cpp if (cn != "(") by if (cn != "(" && cn != ".") It should fix the problem. -- Benoit Minisini mailto:gambas at ...1... From gambasfr at ...4... Thu Aug 19 23:10:50 2004 From: gambasfr at ...4... (Bodard Fabien) Date: Thu, 19 Aug 2004 23:10:50 +0200 Subject: [Gambas-devel] Gambas installation... In-Reply-To: <200408182254.08077.gambas@...1...> References: <200408182229.08730.gambasfr@...4...> <200408182254.08077.gambas@...1...> Message-ID: <200408192310.50416.gambasfr@...4...> Le mercredi 18 Ao?t 2004 22:54, Benoit Minisini a ?crit?: > On Wednesday 18 August 2004 22:29, Bodard Fabien wrote: > > Hi to all ! > > > > As gambas is an easy to use language... it is mabe a good way to find a > > simple solution to install it in many distribution ... > > > > And .. i've mabe find something like that... http://autopackage.org/ > > > > As i can see gimp and inksckape use it for their project, and i've > > installed inkscape without any real problem... The frontend say what file > > miss... > > > > What did you think about that ? > > > > Fabien Bodard > > I have tried to install inkscape by using the package from their site, and > it fails on my Mandrake. If I launch the program, there is an error: a > missing shared library. > > If will try later when I have more time to understand what happened. > > The problem is that this system seems to be incompatible with the rpm > database in Mandrake. If it installs some library, the rpm database don't > know it, and may erase it the next time you use urpmi. > > Regards, you certainly miss libsigc++... for inkscape... it's normal... and yes it's incompatible with rpm... but the goal of this install system is to permit to install the same package every where ! sure it's not really usefull for major distrubution but for minor... Fabien Bodard From danielcampos at ...45... Thu Aug 19 23:17:08 2004 From: danielcampos at ...45... (Daniel Campos) Date: Thu, 19 Aug 2004 23:17:08 +0200 Subject: [Gambas-devel] Spanish bugs In-Reply-To: <200408182302.31334.gambas@...1...> References: <1092587870.16167.3.camel@...102...> <200408182302.31334.gambas@...1...> Message-ID: <1092928908.3295.4.camel@...102...> El mi?, 18-08-2004 a las 23:02, Benoit Minisini escribi?: > On Sunday 15 August 2004 18:37, Daniel Campos wrote: > > Here's two bugs in the spanish version. > > > > Regards, > > Bug n?2 is fixed, but can't you find a shorter term for the bug n?1 ? > OK, shorter term added. Spanish translation 0.97a is here. Regards, -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-es-0.97a.po Type: text/x-po Size: 61944 bytes Desc: not available URL: From Karl.Reinl at ...16... Thu Aug 19 23:20:22 2004 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Thu, 19 Aug 2004 21:20:22 +0000 Subject: [Gambas-devel] While testing LineAnalyze Message-ID: <200408192120.22507.Karl.Reinl@...16...> Salut Benoit, the compiler takes that line sFile=Left(hForm.Title,Instr(hform.Title," ")-1) a 'Comma missing' he said at that line (one of the cases I don't handle correct with LineAnalyze) sFile = Left(hForm.Title, Instr(hform.Title, " ") -1) Amicalement Charlie From Karl.Reinl at ...16... Fri Aug 20 03:57:48 2004 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Fri, 20 Aug 2004 01:57:48 +0000 Subject: [Gambas-devel] 2. still now the best LineAnalyze (you should compile after) Message-ID: <200408200157.48961.Karl.Reinl@...16...> Salut, based on gambas-0.97 like I said yesterday : better then yesterday, but not as good like tomorrow he will be. Hope you are carefully use that, i don't want crash your code. But I need code lines where it dosn't ?compile or has spaces on wrong places. What I need: Guy who makes a copy from app/gambas then they start gambas opening that copy and choosing FEditor.Class file. Up from PUBLIC SUB edtEditor_Cursor() they select and replace it with my PUBLIC SUB edtEditor_Cursor() and all the follwed lines. Then press F5, a new gambas IDE will start, open a gambas project from you (better is a copy from) and choose a class or a module file to opening. Start from the first line and press the UP Button till you reache the end of the file. Press F5. If an Error raise, please send my that line where the error occure. And have a look to the other lines if there are no well formatet lines. If you think a line is not well formated , send me that line. And then open the next Class or module file and do the same. I need examples to finish the LineAnalyze. Thanks Amicalement Charlie PS that code is based on gambas-0.97 (not gambas-0.97a) '---------------------------------------------------------- PUBLIC SUB edtEditor_Cursor() DIM sModifLine AS String IF edtEditor.Line <> $iLastLine THEN ' changings charlie IF Left(Trim(edtEditor.Lines[$iLastLine]), 1) <> "'" AND Trim(edtEditor.Lines[$iLastLine]) <> "" THEN sModifLine = LineAnalyze(edtEditor.Lines[$iLastLine], $iLastLine) IF sModifLine <> edtEditor.Lines[$iLastLine] THEN edtEditor.Lines[$iLastLine] = sModifLine edtEditor.Refresh ENDIF ENDIF ' end changings charlie $iLastLine = edtEditor.Line HideCompletion HideSignature IF IsModified() THEN Scan = NULL ELSE IF $bCheckSignature OR frmSignature.Visible THEN $bCheckSignature = FALSE CheckSignature ENDIF DrawTitle ' TRY PRINT Editor.Analyze(Editor.Lines[Editor.Line]).Join(",") END PUBLIC SUB edtEditor_LostFocus() DIM sModifLine AS String IF Left(Trim(edtEditor.Lines[$iLastLine]), 1) <> "'" AND Trim(edtEditor.Lines[$iLastLine]) <> "" THEN sModifLine = LineAnalyze(edtEditor.Lines[$iLastLine], $iLastLine) IF sModifLine <> edtEditor.Lines[$iLastLine] THEN edtEditor.Lines[$iLastLine] = sModifLine edtEditor.Refresh ENDIF ENDIF END PRIVATE FUNCTION LineAnalyze(sLine AS String,iLine AS Integer) AS String DIM nI AS Integer DIM nJ AS Integer DIM sOut AS String DIM sPart AS String[] DIM iPart AS Integer[] DIM aSPart AS Object DIM sLeftBlanks AS String DIM sBlank AS String IF IsProc(Trim(sLine)) THEN RETURN sLine IF Upper(Trim(sLine)) = "END" THEN RETURN sLine ' looking for leading Blanks sLeftBlanks = String$(Len(sLine) - Len(LTrim(sLine)), " ") ' analysing Line edtEditor.Analyze(sLine) ' reading Symbols sPart = GambasEditor.Symbols ' reading Types iPart = GambasEditor.Types sBlank = " " ' set the sBlank FOR nI = 0 TO sPart.Count - 1 ' if legth Operator > 1 exepte some IF iPart[nI] = 4 AND Len(sPart[nI]) > 1 THEN SELECT CASE sPart[nI] CASE "<>" CASE "<=" CASE ">=" CASE "&/" CASE ELSE sPart[nI] = Left(sPart[nI], 1) & " " & Mid(sPart[nI], 2) sOut = sOut & " " & sPart[nI] FOR nJ = ni + 1 TO sPart.Count - 1 sOut = sOut & " " & sPart[nJ] NEXT edtEditor.Lines[iLine] = sLeftBlanks & Trim(sOut) RETURN LineAnalyze(edtEditor.Lines[iLine], iLine) END SELECT ENDIF SELECT CASE sPart[nI] CASE "." sBlank = "" IF nI > 0 THEN IF iPart[nI - 1] <> 5 AND iPart[nI - 1] <> 2 THEN ' Symbol and Keyword sBlank = " " ENDIF ENDIF CASE "(" sBlank = "" IF nI > 0 THEN IF iPart[nI - 1] <> 3 AND iPart[nI - 1] <> 5 THEN ' Function and Symbol sBlank = " " ENDIF ENDIF CASE ")", "[", "]" sBlank = "" CASE ELSE IF nI > 0 THEN SELECT CASE sPart[nI - 1] CASE ".", "(", "[" sBlank = "" CASE ELSE sBlank = " " END SELECT ELSE sBlank = " " ENDIF END SELECT SELECT CASE iPart[nI] CASE 5 ' Symbol ' here you can look up if this Symbol is written as declaret sOut = sOut & sBlank & sPart[nI] CASE 6 ' Number IF nI > 0 THEN SELECT CASE iPart[nI - 1] CASE 5 ' Symbol sOut = sOut & sBlank & Left(sPart[nI], 1) & " " & Mid(sPart[nI], 2) CASE ELSE sOut = sOut & sBlank & sPart[nI] END SELECT ELSE sOut = sOut & sBlank & sPart[nI] ENDIF CASE ELSE sOut = sOut & sBlank & sPart[nI] END SELECT PRINT sPart[nI], iPart[nI], GetColorsName(iPart[nI]) NEXT sOut = sLeftBlanks & Trim(sOut) RETURN sOut END FUNCTION GetColorsName(iType AS Integer) AS String DIM sOut AS String SELECT CASE iType CASE edtEditor.Colors.Background sOut = "Background" CASE edtEditor.Colors.Breakpoint sOut = "Breakpoint" CASE edtEditor.Colors.Comment sOut = "Comment" CASE edtEditor.Colors.Current sOut = "Current" CASE edtEditor.Colors.DataType sOut = "DataType" CASE edtEditor.Colors.Function sOut = "Function" CASE edtEditor.Colors.Keyword sOut = "Keyword" CASE edtEditor.Colors.Normal sOut = "Normal" CASE edtEditor.Colors.Number sOut = "Number" CASE edtEditor.Colors.Operator sOut = "Operator" CASE edtEditor.Colors.String sOut = "String" CASE edtEditor.Colors.Symbol sOut = "Symbol" CASE ELSE sOut = "??" END SELECT RETURN sOut END From lordheavy at ...141... Sat Aug 21 14:38:14 2004 From: lordheavy at ...141... (Laurent Carlier) Date: Sat, 21 Aug 2004 14:38:14 +0200 Subject: [Gambas-devel] Gambas installation... In-Reply-To: <200408192310.50416.gambasfr@...4...> References: <200408182229.08730.gambasfr@...4...> <200408182254.08077.gambas@...1...> <200408192310.50416.gambasfr@...4...> Message-ID: <200408211438.16031.lordheavy@...141...> Le jeudi 19 Ao?t 2004 23:10, Bodard Fabien a ?crit?: > Le mercredi 18 Ao?t 2004 22:54, Benoit Minisini a ?crit?: > > On Wednesday 18 August 2004 22:29, Bodard Fabien wrote: > > > Hi to all ! > > > > > > As gambas is an easy to use language... it is mabe a good way to find a > > > simple solution to install it in many distribution ... > > > > > > And .. i've mabe find something like that... http://autopackage.org/ > > > > > > As i can see gimp and inksckape use it for their project, and i've > > > installed inkscape without any real problem... The frontend say what > > > file miss... > > > > > > What did you think about that ? > > > > > > Fabien Bodard > > > > I have tried to install inkscape by using the package from their site, > > and it fails on my Mandrake. If I launch the program, there is an error: > > a missing shared library. > > > > If will try later when I have more time to understand what happened. > > > > The problem is that this system seems to be incompatible with the rpm > > database in Mandrake. If it installs some library, the rpm database don't > > know it, and may erase it the next time you use urpmi. > > > > Regards, > > you certainly miss libsigc++... for inkscape... it's normal... and yes it's > incompatible with rpm... but the goal of this install system is to permit > to install the same package every where ! > > sure it's not really usefull for major distrubution but for minor... > > Fabien Bodard > A good way should be to improve (make a new ?) tarball making : - Create the configure (with various test like gambas version, components, ...) - ... Then the user should do ./configure, make, make install to install :) (or with others utility like ant, ...) -- Laurent Carlier From gambas at ...1... Sun Aug 22 13:57:02 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 22 Aug 2004 13:57:02 +0200 Subject: [Gambas-devel] While testing LineAnalyze In-Reply-To: <200408192120.22507.Karl.Reinl@...16...> References: <200408192120.22507.Karl.Reinl@...16...> Message-ID: <200408221357.02791.gambas@...1...> On Thursday 19 August 2004 23:20, Charlie Reinl wrote: > Salut Benoit, > > the compiler takes that line > sFile=Left(hForm.Title,Instr(hform.Title," ")-1) > > a 'Comma missing' he said at that line (one of the cases I don't handle > correct with LineAnalyze) > > sFile = Left(hForm.Title, Instr(hform.Title, " ") -1) > > Amicalement > Charlie > Huu ? I don't understand what you mean. If I enter your first line, it compiles perfectly. Regards, -- Benoit Minisini mailto:gambas at ...1... From karl.reinl at ...16... Sun Aug 22 16:28:35 2004 From: karl.reinl at ...16... (Charlie) Date: Sun, 22 Aug 2004 16:28:35 +0200 Subject: [Gambas-devel] While testing LineAnalyze References: <200408192120.22507.Karl.Reinl@...16...> <200408221357.02791.gambas@...1...> Message-ID: <4128AD93.9050804@...16...> Benoit Minisini schrieb: >On Thursday 19 August 2004 23:20, Charlie Reinl wrote: > > >>Salut Benoit, >> >>the compiler takes that line >>sFile=Left(hForm.Title,Instr(hform.Title," ")-1) >> >>a 'Comma missing' he said at that line (one of the cases I don't handle >>correct with LineAnalyze) >> >>sFile = Left(hForm.Title, Instr(hform.Title, " ") -1) >> >>Amicalement >>Charlie >> >> >> > >Huu ? I don't understand what you mean. > >If I enter your first line, it compiles perfectly. > >Regards, > > > The first line has no spaces, the seconde argument of Left is Instr(hform.Title,"")-1 (without a space), and like you say it compiles well. That line is from gambas FFind. In my line I just have some Spaces more and also a -1 (without a space) , and the compiler don't like it nomore. Amicalement Charlie From gambas at ...1... Sun Aug 22 17:33:41 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 22 Aug 2004 17:33:41 +0200 Subject: [Gambas-devel] 2. still now the best LineAnalyze (you should compile after) In-Reply-To: <200408200157.48961.Karl.Reinl@...16...> References: <200408200157.48961.Karl.Reinl@...16...> Message-ID: <200408221733.42017.gambas@...1...> On Friday 20 August 2004 03:57, Charlie Reinl wrote: > Salut, > > based on gambas-0.97 > like I said yesterday : > better then yesterday, but not as good like tomorrow he will be. > Hope you are carefully use that, i don't want crash your code. > > But I need code lines where it dosn't ?compile or has spaces on wrong > places. > > What I need: > Guy who makes a copy from app/gambas then they start gambas opening that > copy and choosing FEditor.Class file. > Up from PUBLIC SUB edtEditor_Cursor() they select and replace it with my > PUBLIC SUB edtEditor_Cursor() and all the follwed lines. > Then press F5, a new gambas IDE will start, open a gambas project from you > (better is a copy from) and choose a class or a module file to opening. > Start from the first line and press the UP Button till you reache the end > of the file. > Press F5. > If an Error raise, please send my that line where the error occure. > And have a look to the other lines if there are no well formatet lines. > If you think a line is not well formated , send me that line. > > And then open the next Class or module file and do the same. > I need examples to finish the LineAnalyze. > Thanks > > Amicalement > Charlie > > PS that code is based on gambas-0.97 (not gambas-0.97a) > > '---------------------------------------------------------- > PUBLIC SUB edtEditor_Cursor() > DIM sModifLine AS String > IF edtEditor.Line <> $iLastLine THEN > ' changings charlie > IF Left(Trim(edtEditor.Lines[$iLastLine]), 1) <> "'" AND > Trim(edtEditor.Lines[$iLastLine]) <> "" THEN > sModifLine = LineAnalyze(edtEditor.Lines[$iLastLine], > $iLastLine) IF sModifLine <> edtEditor.Lines[$iLastLine] THEN > edtEditor.Lines[$iLastLine] = sModifLine > edtEditor.Refresh > ENDIF > ENDIF > ' end changings charlie > $iLastLine = edtEditor.Line > HideCompletion > HideSignature > IF IsModified() THEN Scan = NULL > ELSE IF $bCheckSignature OR frmSignature.Visible THEN > $bCheckSignature = FALSE > CheckSignature > ENDIF > DrawTitle > ' TRY PRINT Editor.Analyze(Editor.Lines[Editor.Line]).Join(",") > END > PUBLIC SUB edtEditor_LostFocus() > DIM sModifLine AS String > IF Left(Trim(edtEditor.Lines[$iLastLine]), 1) <> "'" AND > Trim(edtEditor.Lines[$iLastLine]) <> "" THEN > sModifLine = LineAnalyze(edtEditor.Lines[$iLastLine], $iLastLine) > IF sModifLine <> edtEditor.Lines[$iLastLine] THEN > edtEditor.Lines[$iLastLine] = sModifLine > edtEditor.Refresh > ENDIF > ENDIF > END > PRIVATE FUNCTION LineAnalyze(sLine AS String,iLine AS Integer) AS String > DIM nI AS Integer > DIM nJ AS Integer > DIM sOut AS String > DIM sPart AS String[] > DIM iPart AS Integer[] > DIM aSPart AS Object > DIM sLeftBlanks AS String > DIM sBlank AS String > IF IsProc(Trim(sLine)) THEN RETURN sLine > IF Upper(Trim(sLine)) = "END" THEN RETURN sLine > ' looking for leading Blanks > sLeftBlanks = String$(Len(sLine) - Len(LTrim(sLine)), " ") > ' analysing Line > edtEditor.Analyze(sLine) > ' reading Symbols > sPart = GambasEditor.Symbols > ' reading Types > iPart = GambasEditor.Types > sBlank = " " > ' set the sBlank > FOR nI = 0 TO sPart.Count - 1 > ' if legth Operator > 1 exepte some > IF iPart[nI] = 4 AND Len(sPart[nI]) > 1 THEN > SELECT CASE sPart[nI] > CASE "<>" > CASE "<=" > CASE ">=" > CASE "&/" > CASE ELSE > sPart[nI] = Left(sPart[nI], 1) & " " & Mid(sPart[nI], > 2) sOut = sOut & " " & sPart[nI] > FOR nJ = ni + 1 TO sPart.Count - 1 > sOut = sOut & " " & sPart[nJ] > NEXT > edtEditor.Lines[iLine] = sLeftBlanks & Trim(sOut) > RETURN LineAnalyze(edtEditor.Lines[iLine], iLine) > END SELECT > ENDIF > SELECT CASE sPart[nI] > CASE "." > sBlank = "" > IF nI > 0 THEN > IF iPart[nI - 1] <> 5 AND iPart[nI - 1] <> 2 THEN ' > Symbol and Keyword > sBlank = " " > ENDIF > ENDIF > CASE "(" > sBlank = "" > IF nI > 0 THEN > IF iPart[nI - 1] <> 3 AND iPart[nI - 1] <> 5 THEN ' > Function and Symbol > sBlank = " " > ENDIF > ENDIF > CASE ")", "[", "]" > sBlank = "" > CASE ELSE > IF nI > 0 THEN > SELECT CASE sPart[nI - 1] > CASE ".", "(", "[" > sBlank = "" > CASE ELSE > sBlank = " " > END SELECT > ELSE > sBlank = " " > ENDIF > END SELECT > SELECT CASE iPart[nI] > CASE 5 ' Symbol > ' here you can look up if this Symbol is written as declaret > sOut = sOut & sBlank & sPart[nI] > CASE 6 ' Number > IF nI > 0 THEN > SELECT CASE iPart[nI - 1] > CASE 5 ' Symbol > sOut = sOut & sBlank & Left(sPart[nI], 1) & " " & > Mid(sPart[nI], 2) > CASE ELSE > sOut = sOut & sBlank & sPart[nI] > END SELECT > ELSE > sOut = sOut & sBlank & sPart[nI] > ENDIF > CASE ELSE > sOut = sOut & sBlank & sPart[nI] > END SELECT > PRINT sPart[nI], iPart[nI], GetColorsName(iPart[nI]) > NEXT > sOut = sLeftBlanks & Trim(sOut) > RETURN sOut > END > FUNCTION GetColorsName(iType AS Integer) AS String > DIM sOut AS String > SELECT CASE iType > CASE edtEditor.Colors.Background > sOut = "Background" > CASE edtEditor.Colors.Breakpoint > sOut = "Breakpoint" > CASE edtEditor.Colors.Comment > sOut = "Comment" > CASE edtEditor.Colors.Current > sOut = "Current" > CASE edtEditor.Colors.DataType > sOut = "DataType" > CASE edtEditor.Colors.Function > sOut = "Function" > CASE edtEditor.Colors.Keyword > sOut = "Keyword" > CASE edtEditor.Colors.Normal > sOut = "Normal" > CASE edtEditor.Colors.Number > sOut = "Number" > CASE edtEditor.Colors.Operator > sOut = "Operator" > CASE edtEditor.Colors.String > sOut = "String" > CASE edtEditor.Colors.Symbol > sOut = "Symbol" > CASE ELSE > sOut = "??" > END SELECT > RETURN sOut > END > > Hi, Charlie. I read your last code, and I find it very complicated! I think you could do simpler by implementing the following rules: * Each keyword has a space before and a space after, except ME and LAST. * The operators ( ) [ ] . has no space before, and no space after. * The operators , ; : has no space before and one space after. * The operator # has one space before and no space after. * Each other operator has a space before and a space after. * The other elements has no space before and no space after, except if the last element is not a operator. Then you should add a space. * No more than one space between two elements. All the rules except the last one can be implemented in a big test into the loop that enumerates each element of the analyzed string. By catenating the rewritten line with a function that checks the last rule, the code will become small and clear, and many tests will be avoided. If you don't see how to do that, tell me. Regards, -- Benoit Minisini mailto:gambas at ...1... From Karl.Reinl at ...16... Sun Aug 22 23:16:09 2004 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Sun, 22 Aug 2004 21:16:09 +0000 Subject: [Gambas-devel] Editor.Analyze has a problem with too long strings Message-ID: <200408222116.09836.Karl.Reinl@...16...> Salut Benoit, seams we Editor.Analyze have a problem with too long strings. Have a look to the "BE CAREFUL!..." line IF 2 Keyword Message 5 Symbol . 4 Operator Warning 5 Symbol ( 4 Operator ( 4 Operator IF 2 Keyword Message 5 Symbol . 4 Operator Warning 5 Symbol ( 4 Operator ( 4 Operator "BE CAREFUL! This project seems to be already opened.\n\nOpening the same project twice can crash the IDE\nand lead to data los 7 String s." 7 String ) 4 Operator , 4 Op 7 String s." 7 String ) 4 Operator , 4 Operator ( 4 Operator "Open after all" 7 String ) 4 Operator , 4 Operator ( 4 Operator "Do not open" 7 String ) 4 Operator ) 4 Operator = 4 Operator 2 6 Number THEN 2 Keyword This is the change he wana make. File :Project.module Line : 162 Org : -> IF Message.Warning(("BE CAREFUL! This project seems to be already opened.\n\nOpening the same project twice can crash the IDE\nand lead to data loss"),("Open after all"),("Do not open")) = 2 THEN<- New : -> IF Message.Warning(("BE CAREFUL! This project seems to be already opened.\n\nOpening the same project twice can crash the IDE\nand lead to data los s"), ("Open after all"), ("Do not open")) = 2 THEN<- At loos the return is bad. Amicalement Charlie From Karl.Reinl at ...16... Sun Aug 22 23:28:08 2004 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Sun, 22 Aug 2004 21:28:08 +0000 Subject: [Gambas-devel] Error. with Analyze Message-ID: <200408222128.08150.Karl.Reinl@...16...> Salut Banoit, see the following Error. with .Where it is a DataType with .Raise a Function ??? PRINT 2 Keyword "SetProperty: " 7 String ; 4 Operator Kind 5 Symbol ; 4 Operator "." 7 String ; 4 Operator sProp 5 Symbol ; 4 Operator ": " 7 String ; 4 Operator Error 11 DataType . 4 Operator Where 5 Symbol ; 4 Operator ": " 7 String ; 4 Operator Error 11 DataType . 4 Operator Text 5 Symbol ---------------------------------------- File :FTranslate.class Line : 81 Org : -> Error.Raise(("The 'msgmerge' command has failed"))<- New : -> Error .Raise(("The 'msgmerge' command has failed"))<- ----------------------------------------------------------- Error 3 Function . 4 Operator Raise 5 Symbol ( 4 Operator ( 4 Operator "The 'msgmerge' command has failed" 7 String ) 4 Operator ) 4 Operator ---------------------------------------- Amicalement Charlie From gambas at ...1... Sun Aug 22 21:59:42 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 22 Aug 2004 21:59:42 +0200 Subject: [Gambas-devel] Error. with Analyze In-Reply-To: <200408222128.08150.Karl.Reinl@...16...> References: <200408222128.08150.Karl.Reinl@...16...> Message-ID: <200408222159.42582.gambas@...1...> On Sunday 22 August 2004 23:28, Charlie Reinl wrote: > Salut Banoit, > > see the following Error. > > with .Where it is a DataType with .Raise a Function ??? > > > PRINT 2 Keyword > "SetProperty: " 7 String > ; 4 Operator > Kind 5 Symbol > ; 4 Operator > "." 7 String > ; 4 Operator > sProp 5 Symbol > ; 4 Operator > ": " 7 String > ; 4 Operator > Error 11 DataType > . 4 Operator > Where 5 Symbol > ; 4 Operator > ": " 7 String > ; 4 Operator > Error 11 DataType > . 4 Operator > Text 5 Symbol > ---------------------------------------- > File :FTranslate.class > Line : 81 > Org : -> Error.Raise(("The 'msgmerge' command has failed"))<- > New : -> Error .Raise(("The 'msgmerge' command has failed"))<- > ----------------------------------------------------------- > Error 3 Function > . 4 Operator > Raise 5 Symbol > ( 4 Operator > ( 4 Operator > "The 'msgmerge' command has failed" 7 String > ) 4 Operator > ) 4 Operator > ---------------------------------------- > > Amicalement > Charlie > > Yes, there is a clash between Error as a class, and Error as a sub-routine. Anyway, the Error sub-routine will disappear, and will be replaced by a keyword named ERROR, so you won't have this problem anymore! Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon Aug 23 00:32:19 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 23 Aug 2004 00:32:19 +0200 Subject: [Gambas-devel] Editor.Analyze has a problem with too long strings In-Reply-To: <200408222116.09836.Karl.Reinl@...16...> References: <200408222116.09836.Karl.Reinl@...16...> Message-ID: <200408230032.19317.gambas@...1...> On Sunday 22 August 2004 23:16, Charlie Reinl wrote: > Salut Benoit, > > > seams we Editor.Analyze have a problem with too long strings. > Have a look to the "BE CAREFUL!..." line > > IF 2 Keyword > Message 5 Symbol > . 4 Operator > Warning 5 Symbol > ( 4 Operator > ( 4 Operator > IF 2 Keyword > Message 5 Symbol > . 4 Operator > Warning 5 Symbol > ( 4 Operator > ( 4 Operator > "BE CAREFUL! This project seems to be already opened.\n\nOpening the same > project twice can crash the IDE\nand lead to data los 7 String > s." 7 String > ) 4 Operator > , 4 Op 7 String > s." 7 String > ) 4 Operator > , 4 Operator > ( 4 Operator > "Open after all" 7 String > ) 4 Operator > , 4 Operator > ( 4 Operator > "Do not open" 7 String > ) 4 Operator > ) 4 Operator > = 4 Operator > 2 6 Number > THEN 2 Keyword > > This is the change he wana make. > > File :Project.module > Line : 162 > Org : -> IF Message.Warning(("BE CAREFUL! This project seems to be > already opened.\n\nOpening the same project twice can crash the IDE\nand > lead to data loss"),("Open after all"),("Do not open")) = 2 THEN<- > New : -> IF Message.Warning(("BE CAREFUL! This project seems to be > already opened.\n\nOpening the same project twice can crash the IDE\nand > lead to data los s"), ("Open after all"), ("Do not open")) = 2 THEN<- > > At loos the return is bad. > > Amicalement > Charlie > I didn't think about this problem, while pattern splitting was only used for colorizing. Patterns are just limited to 127 characters... I will raise the limit to 4095 by rewriting the algorithm. I think it will be sufficient. Regards, -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...19... Mon Aug 23 03:10:02 2004 From: sourceforge-raindog2 at ...19... (Rob) Date: Sun, 22 Aug 2004 21:10:02 -0400 Subject: [Gambas-devel] context help again Message-ID: <200408222110.02798.sourceforge-raindog2@...19...> OK, I think I figured out what Benoit and Charlie were talking about. Here is another version of my context help changes, such that: (a) if a keyword is under your cursor, it brings up that keyword's page in Help; (b) if a symbol is under your cursor, it looks for a page in help with a title matching that symbol (it was faster than trying to figure out how to iterate through the explorer tree, but what I really would like to do is figure out what component and class the symbol belongs to) (c) otherwise, it still does the search as it did before. Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-context-help-patch-002.tar.gz Type: application/x-tgz Size: 11149 bytes Desc: not available URL: From gambas at ...1... Mon Aug 23 10:45:49 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 23 Aug 2004 10:45:49 +0200 Subject: [Gambas-devel] context help again In-Reply-To: <200408222110.02798.sourceforge-raindog2@...19...> References: <200408222110.02798.sourceforge-raindog2@...19...> Message-ID: <200408231045.49904.gambas@...1...> On Monday 23 August 2004 03:10, Rob wrote: > OK, I think I figured out what Benoit and Charlie were talking > about. Here is another version of my context help changes, such > that: > > (a) if a keyword is under your cursor, it brings up that > keyword's page in Help; > > (b) if a symbol is under your cursor, it looks for a page in help > with a title matching that symbol (it was faster than trying to > figure out how to iterate through the explorer tree, but what I > really would like to do is figure out what component and class > the symbol belongs to) > > (c) otherwise, it still does the search as it did before. > > Rob You put it under F1, but as F2 already find symbol definitions, I think I will put it under F2 too, and keep F1 for a hypothetical future Gambas IDE help. (a) F2 already find subroutines in help, but didn't find keyword yet. Now it will :-) (b) I already made it. (c) I won't keep it at the moment, because it would block the user with an help search if it presses F2 by error. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon Aug 23 12:49:48 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 23 Aug 2004 12:49:48 +0200 Subject: [Gambas-devel] context help again In-Reply-To: <200408222110.02798.sourceforge-raindog2@...19...> References: <200408222110.02798.sourceforge-raindog2@...19...> Message-ID: <200408231249.48771.gambas@...1...> Do you plan to update the wiki with what I sent you soon ? I ask that because I want to make some little fixes. Regards, -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...19... Mon Aug 23 13:09:28 2004 From: sourceforge-raindog2 at ...19... (Rob) Date: Mon, 23 Aug 2004 07:09:28 -0400 Subject: [Gambas-devel] context help again In-Reply-To: <200408231249.48771.gambas@...1...> References: <200408222110.02798.sourceforge-raindog2@...19...> <200408231249.48771.gambas@...1...> Message-ID: <200408230709.29055.sourceforge-raindog2@...19...> On Monday 23 August 2004 06:49, Benoit Minisini wrote: > Do you plan to update the wiki with what I sent you soon ? > I ask that because I want to make some little fixes. I'll do it this morning. The reason I haven't done it till now is that when I went to untar it when you sent it to me I noticed there were a bunch of changed pages since I had mailed it to you, and didn't want to lose the changes. So I am going to set up 3 copies of the wiki (the one I sent you, the one you sent me, and the one that is up now) and try to reconcile the changes. Rob From Karl.Reinl at ...16... Tue Aug 24 22:26:15 2004 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Tue, 24 Aug 2004 20:26:15 +0000 Subject: [Gambas-devel] LineAnalyze Message-ID: <200408242026.15648.Karl.Reinl@...16...> Salut Benoit, I changed with your hints and what I worked out the code of LineAnalyze. Now he is more compackt so it runs faster. And I include ProcLines also. But I have 3 problems: 1. operaters returned could be like ')=' and are not splitted off FFind.class line 137 IF cvwFindList.Moveto(hForm.path)=FALSE THEN gives IF cvwFindList.Moveto(hForm.path )= FALSE THEN the editor.Analyze out put is IF 2 Keyword cvwFindList 5 Symbol . 4 Operator Moveto 5 Symbol ( 4 Operator hForm 5 Symbol . 4 Operator path 5 Symbol )= 4 Operator FALSE 2 Keyword THEN 2 Keyword 2. Numbers could returned like '1+2' and are not splitted off i=1+2 gives i = 1+2 the editor.Analyze out put is i 5 Symbol = 4 Operator 1+2 6 Number 3. when i separate signe and number -1 to - 1 FDebug.class line 3 PRIVATE CONST STATE_LAST AS Integer = -1 gives PRIVATE CONST STATE_LAST AS Integer = - 1 and that line changed like that I can't compile Type mismatch at line 3 in FDebug.class After passing every line by LineAnalyze gambas (the IDE) compiled well, but I ditn't try to test the IDE if it also works. Amicalement Charlie Here the code: PUBLIC SUB edtEditor_Cursor() IF edtEditor.Line <> $iLastLine THEN ' changings charlie preLineAnalyze() ' end changings charlie $iLastLine = edtEditor.Line HideCompletion HideSignature IF IsModified() THEN Scan = NULL ELSE IF $bCheckSignature OR frmSignature.Visible THEN $bCheckSignature = FALSE CheckSignature ENDIF DrawTitle ' TRY PRINT Editor.Analyze(Editor.Lines[Editor.Line]).Join(",") END '-------------------------------------------- PUBLIC SUB edtEditor_LostFocus() preLineAnalyze() END PUBLIC SUB preLineAnalyze() DIM sModifLine AS String DIM iRet AS Integer IF NOT bmyMsgBox THEN IF Left(Trim(edtEditor.Lines[$iLastLine]), 1) <> "'" AND Trim(edtEditor.Lines[$iLastLine]) <> "" THEN sModifLine = LineAnalyze(edtEditor.Lines[$iLastLine], $iLastLine) IF sModifLine <> edtEditor.Lines[$iLastLine] THEN sModifLine = LineAnalyze(edtEditor.Lines[$iLastLine], $iLastLine, TRUE) bmyMsgBox = TRUE DO WHILE TRUE IF iRet > 0 THEN iRet = message.Question("Line : " & $iLastLine & "\n Org : ->" & edtEditor.Lines[$iLastLine] & "<-\nNew : ->" & sModifLine & "<-\n", "Change to 'New' line", "Keep the 'Org' line") ELSE iRet = message.Question("Line : " & $iLastLine & "\n Org : ->" & edtEditor.Lines[$iLastLine] & "<-\nNew : ->" & sModifLine & "<-\n", "Change to 'New' line", "Keep the 'Org' line", "Add line to report") ENDIF IF iRet = 1 THEN edtEditor.Lines[$iLastLine] = sModifLine edtEditor.Refresh BREAK ELSE IF iRet = 2 THEN BREAK ELSE IF iRet = 3 THEN writeReport(sModifLine) ENDIF LOOP bmyMsgBox = FALSE ENDIF ENDIF ENDIF END '-------------------------------------------- PRIVATE FUNCTION LineAnalyze(sLine AS String,iLine AS Integer, OPTIONAL bPrintChanges AS Boolean = FALSE) AS String DIM nI AS Integer DIM nJ AS Integer DIM sOut AS String DIM sPart AS String[] DIM iPart AS Integer[] DIM aSPart AS Object DIM sLeftBlanks AS String ' looking for leading Blanks sLeftBlanks = String$(Len(sLine) - Len(LTrim(sLine)), " ") ' analysing Line edtEditor.Analyze(sLine) ' reading Symbols sPart = GambasEditor.Symbols ' reading Types iPart = GambasEditor.Types FOR nI = 0 TO sPart.Count - 1 SELECT CASE iPart[nI] CASE 2 ' Keyword IF sPart[nI] = "LINE" OR sPart[nI] = "LAST" OR sPart[nI] = "ME" THEN sPart[nI] = " " & sPart[nI] ELSE sPart[nI] = " " & sPart[nI] & " " ENDIF CASE 4 ' Operator SELECT CASE sPart[nI] CASE "#" sPart[nI] = " " & sPart[nI] CASE "(", ")", "[", "]", "." ' nothing to do CASE ",", ";", ":" sPart[nI] = sPart[nI] & " " CASE ELSE sPart[nI] = " " & sPart[nI] & " " END SELECT CASE 5 ' Symbol ' here you can look up if this Symbol is written as declaret CASE 6 ' Number IF Left(sPart[nI], 1) = "+" OR Left(sPart[nI], 1) = "-" THEN sPart[nI] = Left(sPart[nI], 1) & " " & Mid(sPart[nI], 2) ENDIF CASE 8 'Comment IF Mid(sPart[nI], 2, 1) <> " " THEN sPart[nI] = " ' " & Mid(sPart[nI], 2) ELSE sPart[nI] = " " & sPart[nI] ENDIF END SELECT IF bPrintChanges THEN PRINT sPart[nI], iPart[nI], GetColorsName(iPart[nI]) ' last contition IF sPart.Count > 1 THEN IF nI = sPart.Count - 1 THEN IF iPart[nI] <> 4 AND iPart[nI] <> 5 THEN IF Right(sPart[nI - 1], 1) <> " " AND Left(sPart[nI], 1) <> " " THEN sPart[nI] = " " & sPart[nI] ENDIF ENDIF ENDIF ENDIF ' first contition IF nI = 0 THEN sOut = sPart[nI] ELSE IF Right(sPart[nI - 1], 1) = " " AND Left(sPart[nI], 1) = " " THEN sOut = RTrim(sOut) & sPart[nI] ELSE IF sPart[nI - 1] = ", " AND sPart[nI] = ", " THEN sOut = sOut & sPart[nI] ELSE IF Right(sPart[nI - 1], 1) = " " AND (Left(sPart[nI], 1) = "," OR Left(sPart[nI], 1) = ")" OR Left(sPart[nI], 1) = "]") THEN sOut = RTrim(sOut) & sPart[nI] ELSE IF (Right(sPart[nI - 1], 1) = "(" OR Right(sPart[nI - 1], 1) = "[" OR Right(sPart[nI - 1], 1) = "#") AND Left(sPart[nI], 1) = " " THEN sOut = sOut & LTrim(sPart[nI]) ELSE sOut = sOut & sPart[nI] ENDIF ENDIF NEXT IF bPrintChanges THEN PRINT " ----------------------------------------" sOut = sLeftBlanks & Trim(sOut) RETURN sOut END '-------------------------------------------- PUBLIC SUB writeReport(sLine AS String ) DIM sRep AS File OPEN "/tmp/LineAnalyzeReport.log" FOR APPEND AS sRep PRINT # sRep, "File :" & File .Name(Path) PRINT # sRep, "Line : " & $iLastLine PRINT # sRep, "Org : ->" & edtEditor.Lines[$iLastLine] & "<-" PRINT # sRep, "New : ->" & sLine & "<-" PRINT # sRep, "-----------------------------------------------------------" CLOSE # sRep END '-------------------------------------------- FUNCTION GetColorsName(iType AS Integer) AS String DIM sOut AS String SELECT CASE iType CASE edtEditor.Colors.Background sOut = "Background" CASE edtEditor.Colors.Breakpoint sOut = "Breakpoint" CASE edtEditor.Colors.Comment sOut = "Comment" CASE edtEditor.Colors.Current sOut = "Current" CASE edtEditor.Colors.DataType sOut = "DataType" CASE edtEditor.Colors.Function sOut = "Function" CASE edtEditor.Colors.Keyword sOut = "Keyword" CASE edtEditor.Colors.Normal sOut = "Normal" CASE edtEditor.Colors.Number sOut = "Number" CASE edtEditor.Colors.Operator sOut = "Operator" CASE edtEditor.Colors.String sOut = "String" CASE edtEditor.Colors.Symbol sOut = "Symbol" CASE ELSE sOut = "??" END SELECT RETURN sOut END From danielcampos at ...45... Wed Aug 25 01:34:44 2004 From: danielcampos at ...45... (Daniel Campos) Date: Wed, 25 Aug 2004 01:34:44 +0200 Subject: [Gambas-devel] Spanish translation 0.98 Message-ID: <1093390484.31456.2.camel@...102...> Here's spanish translation for 0.98. I hope this time you'll include it in the sources after the 0.97a and 0.98, that didn't include the changes I sent :-)) Regards, -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-es-0.98.po Type: text/x-po Size: 62323 bytes Desc: not available URL: From gambas at ...1... Wed Aug 25 22:14:22 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 25 Aug 2004 22:14:22 +0200 Subject: [Gambas-devel] Spanish translation 0.98 In-Reply-To: <1093390484.31456.2.camel@...102...> References: <1093390484.31456.2.camel@...102...> Message-ID: <200408252214.22284.gambas@...1...> On Wednesday 25 August 2004 01:34, Daniel Campos wrote: > Here's spanish translation for 0.98. I hope this time you'll include > it in the sources after the 0.97a and 0.98, that didn't include the > changes I sent :-)) > > Regards, I need real holidays :-) I will include your translation in gambas 0.98a Regards, -- Benoit Minisini mailto:gambas at ...1... From Karl.Reinl at ...16... Thu Aug 26 02:12:05 2004 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Thu, 26 Aug 2004 00:12:05 +0000 Subject: [Gambas-devel] LineAnalyze for gambas-0.98 Message-ID: <200408260012.05960.Karl.Reinl@...16...> Salut Benoit, from gdm SET Operater '!' ex. in line RETURN rResult!nRecord - no blank left and not rigth PUBLIC FUNCTION CountTableData(sTable AS String) AS Integer DIM rResult AS Result rResult = Handle.Exec("SELECT COUNT(*) AS nRecord FROM " & sTable) RETURN rResult!nRecord END Made Workearooound for Numbers in CONST , Operaters greater then 1 like ')=' and + or - in Numbers Amicalement Charlie Attached Feditor.class if you set bIsDebug in preLineAnalyze to FALSE no message will popup. -------------- next part -------------- A non-text attachment was scrubbed... Name: FEditor.class Type: application/x-java Size: 41443 bytes Desc: not available URL: From yizhou_he at ...143... Thu Aug 26 19:41:27 2004 From: yizhou_he at ...143... (Yizhou He) Date: Fri, 27 Aug 2004 01:41:27 +0800 Subject: [Gambas-devel] Simplified Chinese translation for Gambas 0.98a Message-ID: <288fa028c7f0.28c7f0288fa0@...143...> Hi, Here is the Simplified Chinese tranaslation for Gambas 0.98a No change found in database manager Yizhou He -------------- next part -------------- A non-text attachment was scrubbed... Name: ambas-zh.po Type: application/x-gettext Size: 59310 bytes Desc: not available URL: From gambas at ...1... Fri Aug 27 11:14:38 2004 From: gambas at ...1... (Benoit Minisini) Date: Fri, 27 Aug 2004 11:14:38 +0200 Subject: [Gambas-devel] Simplified Chinese translation for Gambas 0.98a In-Reply-To: <288fa028c7f0.28c7f0288fa0@...143...> References: <288fa028c7f0.28c7f0288fa0@...143...> Message-ID: <200408271114.38533.gambas@...1...> On Thursday 26 August 2004 19:41, Yizhou He wrote: > Hi, > > Here is the Simplified Chinese tranaslation for Gambas 0.98a > No change found in database manager > > Yizhou He Thank you! -- Benoit Minisini mailto:gambas at ...1... From Karl.Reinl at ...16... Sat Aug 28 22:28:32 2004 From: Karl.Reinl at ...16... (Charlie Reinl) Date: Sat, 28 Aug 2004 20:28:32 +0000 Subject: [Gambas-devel] Changing on the Analyze Patterns Message-ID: <200408282028.32075.Karl.Reinl@...16...> Salut Benoit, do you have a list of the changes at the patterns in editor.Analyze ? Have I make changes in LineAnalyze ? I closed, after make the work arounds, for instance to work on it. Please let me know if there is some additional work needed. Additional functionality like to correcting Variables like 'myInteger' to 'myInteger' while written 'MyinTeger' , is not implemented. And should done by an Interested, or comes later. If we need an implementation of the linechanged Event for instantce ??? Amicalement Charlie From gambas at ...1... Sat Aug 28 21:15:09 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 28 Aug 2004 21:15:09 +0200 Subject: [Gambas-devel] Changing on the Analyze Patterns In-Reply-To: <200408282028.32075.Karl.Reinl@...16...> References: <200408282028.32075.Karl.Reinl@...16...> Message-ID: <200408282115.09164.gambas@...1...> On Saturday 28 August 2004 22:28, Charlie Reinl wrote: > Salut Benoit, > > do you have a list of the changes at the patterns in editor.Analyze ? changes about what ? > > Have I make changes in LineAnalyze ? What ? > > I closed, after make the work arounds, for instance to work on it. > Please let me know if there is some additional work needed. While the analyze routine isn't fixed (about numbers and sticked operators), your code can't be clean. > > Additional functionality like to correcting Variables like 'myInteger' to > 'myInteger' while written 'MyinTeger' , is not implemented. > And should done by an Interested, or comes later. > > If we need an implementation of the linechanged Event for instantce ??? It will be an event raised just before or just after the line is colorized. > > Amicalement > Charlie > All these changes that are needed for your "line pretty printer" will be made after the 1.0. Regards, -- Benoit Minisini mailto:gambas at ...1... From ronstk at ...124... Sat Aug 28 22:00:01 2004 From: ronstk at ...124... (ron) Date: Sat, 28 Aug 2004 22:00:01 +0200 Subject: [Gambas-devel] Changing on the Analyze Patterns In-Reply-To: <200408282115.09164.gambas@...1...> References: <200408282028.32075.Karl.Reinl@...16...> <200408282115.09164.gambas@...1...> Message-ID: <200408282200.01991.ronstk@...124...> On Saturday 28 August 2004 21:15, Benoit Minisini wrote: > On Saturday 28 August 2004 22:28, Charlie Reinl wrote: > > Salut Benoit, ...snip > > I closed, after make the work arounds, for instance to work on it. > > Please let me know if there is some additional work needed. > > While the analyze routine isn't fixed (about numbers and sticked operators), > your code can't be clean. @charlie remember in rebuild the numbers are not correct. FOR x = 0 to 9 step 1 means step +1 FOR x = 9 to 0 step -1 means step -1 FOR x = 9 to 0 step - 1 is wrong The minus is not a calculation but a sign for the value of 1. A= 3 * -1 is 3 times the value -1 is -3 A= 3 * - 1 is +3 times ? and substract +1 B = 4-1 then mean is +4 minus +1 The way the rebuild now does is making a negative sign to a substract. C = 5 + -1 is 4 C = 5 + - 1 is ??? +3 + ? - +1 If there is a leading - for a number or variable and preceding the - is a number or variable or expression between () it can be a substraction. E=(12- -1)-4 the expression gives +13, and then substract 4. if preceding the - is a other calculation symbol +-*/ or operation it is a sign token. The + (positive signs are not shown but they do exist. D = 4 - -1 is 5, what should be 4 - - 1 ? a error for missing value between the 2 - tokens. I hope also one option to have. This was a very iritating thing in VB Dim x as string Dim xyzabc as string My text should keep the 'as' lined out above each other x = "12143342423423423424" xyzabc = "34676575675757567577" Here the '=' also by the reason the string on the rightside should be visual equal length Maybe the stings forming a picture in text The option is reformat the amount of spaces on/off > > > > > Additional functionality like to correcting Variables like 'myInteger' to > > 'myInteger' while written 'MyinTeger' , is not implemented. > > And should done by an Interested, or comes later. I'm Interestd to have! :) The changes for the case of the variable to the same as the DIM is very welcome by me. Good against typing mistakes. I do not know for others as my wish for above with spacing so I like a configuration option for it. BTW I got permission from the nurse :) > > > > If we need an implementation of the linechanged Event for instantce ??? > > It will be an event raised just before or just after the line is colorized. > I belive before is bether. The modifications will have then right color. If the color is wrong after modification it can be a hint for an error. When it the modify is done after it must run again to color the modified line. > > > > Amicalement > > Charlie > > > > All these changes that are needed for your "line pretty printer" will be made > after the 1.0. > > Regards, > Does not show we have to wait till 2027 :) From sourceforge-raindog2 at ...19... Sun Aug 29 06:31:30 2004 From: sourceforge-raindog2 at ...19... (Rob) Date: Sun, 29 Aug 2004 00:31:30 -0400 Subject: [Gambas-devel] imbricated-nacht Message-ID: <200408290031.30054.sourceforge-raindog2@...19...> Here's a patch getting rid of the last three user-visible uses of the English word "imbricated", which means "with overlapping edges like shingles or scales", and not "nested" which is apparently what it means in French. ;) Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: imbricated-nested-patch-0.98a.tar.gz Type: application/x-tgz Size: 10763 bytes Desc: not available URL: From gambas at ...1... Sun Aug 29 11:18:14 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 29 Aug 2004 11:18:14 +0200 Subject: [Gambas-devel] imbricated-nacht In-Reply-To: <200408290031.30054.sourceforge-raindog2@...19...> References: <200408290031.30054.sourceforge-raindog2@...19...> Message-ID: <200408291118.14727.gambas@...1...> On Sunday 29 August 2004 06:31, Rob wrote: > Here's a patch getting rid of the last three user-visible uses of > the English word "imbricated", which means "with overlapping > edges like shingles or scales", and not "nested" which is > apparently what it means in French. ;) > > Rob Thanks. None of these words are in my french-english dictionary. I think I should buy a better one! :-) Regards, -- Benoit Minisini mailto:gambas at ...1... From carsten at ...151... Sun Aug 29 13:24:20 2004 From: carsten at ...151... (Carsten Olsen) Date: Sun, 29 Aug 2004 13:24:20 +0200 Subject: [Gambas-devel] Problem with Dialog.filter Message-ID: <1093778660.4051.12.camel@...152...> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: snapshot1.png Type: image/png Size: 38671 bytes Desc: not available URL: From carsten at ...151... Tue Aug 31 10:41:42 2004 From: carsten at ...151... (Carsten Olsen) Date: Tue, 31 Aug 2004 10:41:42 +0200 Subject: [Gambas-devel] MP3 with SDL Message-ID: <1093941701.3986.152.camel@...152...> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronstk at ...124... Tue Aug 31 10:50:13 2004 From: ronstk at ...124... (ron) Date: Tue, 31 Aug 2004 10:50:13 +0200 Subject: [Gambas-devel] MP3 with SDL In-Reply-To: <1093941701.3986.152.camel@...152...> References: <1093941701.3986.152.camel@...152...> Message-ID: <200408311050.14998.ronstk@...124...> On Tuesday 31 August 2004 10:41, Carsten Olsen wrote: > class FSoundPlayer (12:1) you was just a second before me. The music object is in no component. From gambas at ...1... Tue Aug 31 19:40:46 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 31 Aug 2004 19:40:46 +0200 Subject: [Gambas-devel] MP3 with SDL In-Reply-To: <1093941701.3986.152.camel@...152...> References: <1093941701.3986.152.camel@...152...> Message-ID: <200408311940.46090.gambas@...1...> 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 ? -- Benoit Minisini mailto:gambas at ...1... From carsten at ...151... Tue Aug 31 22:57:42 2004 From: carsten at ...151... (Carsten Olsen) Date: Tue, 31 Aug 2004 22:57:42 +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: <1093985862.3995.17.camel@...152...> Her is the description from Synaptic: Simple DirectMedia Layer - Sample Mixer Library A simple multi-channel audio mixer for SDL. It supports 4 channels of 16 bit stereo audio, plus a single channel of music, mixed by the popular MikMod MOD, Timidity MIDI and SMPEG MP3 libraries. Libraries, includes and more to develop SDL applications using the SDL mixer. Development files for SDL_mixer, a simple multi-channel audio mixer for SDL. It supports 4 channels of 16 bit stereo audio, plus a single channel of music, mixed by the popular MikMod MOD, Timidity MIDI and SMPEG MP3 libraries. You need SDL_mixer-devel if you want to compile an application using SDL_mixer. Sow I will say that the answer is YES. Carsten Olsen On Tue, 2004-08-31 at 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 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: