[Gambas-devel] memo system and auto-captital function

Benoit Minisini gambas at ...1...
Wed Aug 11 00:46:35 CEST 2004


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...




More information about the Devel mailing list