Re: [Lazarus] PWM on raspberry pi

2016-03-08 Thread Bo Berglund
On Mon, 07 Mar 2016 19:11:54 +, Mark Morgan Lloyd
 wrote:

>Two things: first, Bo on 8th Oct mentioned that he'd had to modify 
>pigpio.pas to make it compatible with the RPi2. Second, how are you 
>physically driving the system, my experience is that remote access can 

In PiGpio I added the following (roundabout line #20:

{$DEFINE RPi2}

const
  REG_GPIO = {$IFDEF RPi2} $3F000 {$ELSE} $2
{$ENDIF};//bcm2835/bcm2836 gpio register 0x2000 . new fpMap uses
page offset, one page is 4096bytes

then later down in the file (around line #150):

function TIoDriver.MapIo: boolean;
begin
 Result := True;
 {$IFDEF RPi2}
   fd := fpopen('/dev/gpiomem', O_RdWr or O_Sync); // Open the master
/dev/memory device
 {$ELSE}
   fd := fpopen('/dev/mem', O_RdWr or O_Sync); // Open the master
/dev/memory device
 {$ENDIF}

I do not know for a fact tha the second change is because of the RPi2
hardware, it was probably put there in order to make my program run as
a normal user rather than su.


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Windows exceptions and gdb

2016-03-08 Thread Martok
Hello,

this isn't technically a Lazarus issue but a gdb one, but maybe someone here
(Sven?) has encountered this before and knows what to do. I think this is
related to the discussion we had on #24908, and my lack of understanding back
then...

Take this example program, compile with -Pi386 and execute on a 64bit Windows
(Wow64, reproduced on 8.1 and 10). This might also apply to pure 32bit Windows,
but I currently don't have any available to test.

program Project1;
uses Windows;
begin
  CloseHandle(1);
  WriteLn('Done');
end.

This will execute fine when called directly:

  ...\Temp>project1.exe
  Done

But from gdb, Windows' internal use of exceptions confuses gdb and it doesn't
continue properly:

  (gdb) r
  Starting program: ...\Temp\project1.exe
  [New Thread 1444.0x1240]
  gdb: unknown target exception 0xc008 at 0x7737c56c

  Program received signal ?, Unknown signal.
  0x7737c56c in ntdll!ZwClose () from C:\Windows\SYSTEM32\ntdll.dll
  (gdb) c
  Continuing.
  [Inferior 1 (process 1444) exited with code 0310]


This issue is not new, an explanation can be found in this 9 year old list
reply:  In a nutshell, gdb
passes an exception back to the application that was only intended as a hint for
the debugger. It goes unhandled there (obiously) and Windows then kills the
application. There was a patch that would have fixed the situation, but
apparently that never landed
().

Is there any way to "fix"/avoid this from our side? This currently completely
breaks debugging on Wow64 in some situations... note that the example above is
just a simple version, gdb chokes as soon as anyone in the current process
throws an EXCEPTION_INVALID_HANDLE: drivers, codecs, ActiveX-objects, ...

I'd be grateful for any help,

Regards,

Sebastian

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Jesus Reyes A.
On Tue, 08 Mar 2016 08:01:10 -0600, Ondrej Pokorny   
wrote:



On 08.03.2016 14:15, Michael Van Canneyt wrote:

Well. You take yourself as a reference I think.


I don't think Jesus' idea wasn't really serious :)



Partly... I was aware there is no support in Lazarus for something like  
this.



Some contra's:
1.) Lazarus IDE doesn't have an API for that. I don't think anybody has  
time/will to make it - it could be pretty/unnecessarily complex to  
support it in every IDE dialog.
2.) No Lazarus function is called this way. It doesn't make sense if  
Code Creation is the only function taking advantage of it.
3.) I don't know any desktop application that works like this (except  
the TotalCommander mouse right click).


(1) is already a reason big enough for me.


Indeed.

Jesus Reyes A

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] lazarus asking for every symlink

2016-03-08 Thread Marc Santhoff
Hi,

the last update to Lazarus 1.4.2 from 2016-02-06 brought some extra fun:

For every opened file represented by a symlink Lazarus asks if it should
follow the link. This is very annoying, there are at least 4 linked
files open in my work session prmanently, so I have to klick 4 times
extra.

Is thre an option to switch that behaviour of? I have found nothing in
the options dialog.

Running on:
FreeBSD 9.1-STABLE amd64

TIA,
Marc

-- 
Marc Santhoff 


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Ondrej Pokorny

On 08.03.2016 15:51, Vojtěch Čihák wrote:


Thanks, it's a nice idea. I think that selecting in listbox by arrow 
keys is annoying and slow. i would rather use RadioGroup where the 
option can be selected faster by Alt+Key.




Done, I did even better. You don't need Alt+Key, just Key.

Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Ondrej Pokorny

On 08.03.2016 16:00, Michael Van Canneyt wrote:

Great. No more wishes from me then. Good job ! :-)


Done in r51859, thanks.

Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Michael Van Canneyt



On Tue, 8 Mar 2016, Reimar Grabowski wrote:


On Tue, 8 Mar 2016 14:15:23 +0100 (CET)
Michael Van Canneyt  wrote:


Well. You take yourself as a reference I think.

When you called it very confusing...
... you were speaking on behalf of humanity?
... you stated an objective fact?
... you stated your personal opinion and only forgot to make clear that it is 
an opinion?




Reread my mail and you will see it's clearly all my opinion, who shall be the 
reference if not me.
The only fact is that 'long click' is a well known concept which you just 
happen to not know.


Sure, my apologies if I sounded offensive, that was not the intention.



Reread your mail and it reads more like it's a fact that it's confusing. Hence 
why I added the 'for me'.

I just wanted to show that it's not confusing for everybody (like your
mail sounded), that there are people who would actually prefer Jesus'
implementation idea over more short-cuts and that Jesus' did not come up
with something strange but with something that's very similar to a concept
on a different platform and there known and used by a lot of people.


I understand completely.




I don't own a smartphone, so 'long click' is not a known concept to me.

See, learned something new today.


Luckily, I do almost every day :-)

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Reimar Grabowski
On Tue, 8 Mar 2016 14:15:23 +0100 (CET)
Michael Van Canneyt  wrote:

> Well. You take yourself as a reference I think.
When you called it very confusing...
... you were speaking on behalf of humanity?
... you stated an objective fact?
... you stated your personal opinion and only forgot to make clear that it is 
an opinion?

Reread my mail and you will see it's clearly all my opinion, who shall be the 
reference if not me.
The only fact is that 'long click' is a well known concept which you just 
happen to not know.

Reread your mail and it reads more like it's a fact that it's confusing. Hence 
why I added the 'for me'.

I just wanted to show that it's not confusing for everybody (like your mail 
sounded), that there are people who would actually prefer Jesus' implementation 
idea over more short-cuts and that Jesus' did not come up with something 
strange but with something that's very similar to a concept on a different 
platform and there known and used by a lot of people.

> I don't own a smartphone, so 'long click' is not a known concept to me.
See, learned something new today.

> I have never met it on a PC.
Astonishing. Or actually not.

It's not really important anyhow as the simpler to implement method will be 
used.

R.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Ondrej Pokorny

On 08.03.2016 15:51, Michael Van Canneyt wrote:
I introduced the ctrl+shift+x shortcut for the "interactive Code 
Completion" (class code create).


Aha. This was not clear to me ?


Just read the very first email from this thread :)



So would it be correct to say that
  ctrl-shift-x = ctrl-shift-c but with dialog if a dialog exists ?


Yes, correct! This is the new policy. (That will also mean that 
ctrl+shift+c on method completion won't show a dialog any more, but 
place the method to the public section.)


Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Michael Van Canneyt



On Tue, 8 Mar 2016, Ondrej Pokorny wrote:


On 08.03.2016 15:51, Michael Van Canneyt wrote:
I introduced the ctrl+shift+x shortcut for the "interactive Code 
Completion" (class code create).


Aha. This was not clear to me ?


Just read the very first email from this thread :)



So would it be correct to say that
  ctrl-shift-x = ctrl-shift-c but with dialog if a dialog exists ?


Yes, correct! This is the new policy. (That will also mean that ctrl+shift+c 
on method completion won't show a dialog any more, but place the method to 
the public section.)


Great. No more wishes from me then. Good job ! :-)

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Ondrej Pokorny

Yep, will do.

Ondrej


On 08.03.2016 15:51, Vojtěch Čihák wrote:


Thanks, it's a nice idea. I think that selecting in listbox by arrow 
keys is annoying and slow. i would rather use RadioGroup where the 
option can be selected faster by Alt+Key.


V.




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Vojtěch Čihák

Thanks, it's a nice idea. I think that selecting in listbox by arrow keys is 
annoying and slow. i would rather use RadioGroup where the option can be 
selected faster by Alt+Key.
 
V.
 
__

Od: Ondrej Pokorny 
Komu: Lazarus 
Datum: 07.03.2016 21:26
Předmět: [Lazarus] Ann: class code creation


I implemented "class code creation" in r51851. I was already tired of 
creating/copying object variables by hand. The idea is the same as with code creation 
(ctrl+shift+c), but the variable is created in one of the class section:

It is the first version, it probably will need some tuning, so please give 
feedback.

Ondrej


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Michael Van Canneyt



On Tue, 8 Mar 2016, Ondrej Pokorny wrote:


On 08.03.2016 15:07, Mattias Gaertner wrote:

ctrl-shift-x -> ctrl-shift-alt-x
>ctrl-shift-space -> ctrl-shift-alt-space
>etc.
>
>(btw those are some ugly short-cuts)

Code completion is ctrl+shift+c. I thought Michael's X was a typo or
placeholder.


I introduced the ctrl+shift+x shortcut for the "interactive Code Completion" 
(class code create).


Aha. This was not clear to me ?

So would it be correct to say that
  ctrl-shift-x = ctrl-shift-c 
but with dialog if a dialog exists ?


Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Ondrej Pokorny

On 08.03.2016 15:20, Mattias Gaertner wrote:

For example the interactive completion on a property could give
options to add Getter, Setter or add code for an array property.


Yes, this is also a valid enhancement. In the dialog there could be an 
option to create a "property x: Integer read Fx/Getx write Fx/Setx;" 
instead of pure field "x: Integer".


Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Ondrej Pokorny

On 08.03.2016 15:07, Mattias Gaertner wrote:

ctrl-shift-x -> ctrl-shift-alt-x
>ctrl-shift-space -> ctrl-shift-alt-space
>etc.
>
>(btw those are some ugly short-cuts)

Code completion is ctrl+shift+c. I thought Michael's X was a typo or
placeholder.


I introduced the ctrl+shift+x shortcut for the "interactive Code 
Completion" (class code create).


Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Mattias Gaertner
On Tue, 8 Mar 2016 15:01:10 +0100
Ondrej Pokorny  wrote:

>[...]To reduce confusion I can enhance the 
> dialog with a local/class target combobox - people could than map the 
> more interactive shortcut to ctrl+shift+c and use only one shortcut for 
> both class/local target if they want. What do you think?

+1

The less interactive should do a common completion, the more
interactive shows a dialog to choose. This is easy to remember and can
be used for future completions.
For example the interactive completion on a property could give
options to add Getter, Setter or add code for an array property.

 
> If I create a special shortcut for every option of CodeCreation, they 
> could easily blow up (like shortcut for add to private, public etc, 
> maybe more in the future).

Yes, that would be stupid.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Mattias Gaertner
On Tue, 8 Mar 2016 14:05:18 +0100
Reimar Grabowski  wrote:

>[...]
> > > Then better 2 shortcut keys:
> > > ctrl-shift-X = create using default set in options.
> > > ctrl-alt-X or ctrl-shift-alt-X = create and force dialog.
> > > Or something similar.  
>[...]
> ctrl-shift-x -> ctrl-shift-alt-x
> ctrl-shift-space -> ctrl-shift-alt-space
> etc.
> 
> (btw those are some ugly short-cuts)

Code completion is ctrl+shift+c. I thought Michael's X was a typo or
placeholder.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Ondrej Pokorny

On 08.03.2016 14:15, Michael Van Canneyt wrote:

Well. You take yourself as a reference I think.


I don't think Jesus' idea wasn't really serious :)

Some contra's:
1.) Lazarus IDE doesn't have an API for that. I don't think anybody has 
time/will to make it - it could be pretty/unnecessarily complex to 
support it in every IDE dialog.
2.) No Lazarus function is called this way. It doesn't make sense if 
Code Creation is the only function taking advantage of it.
3.) I don't know any desktop application that works like this (except 
the TotalCommander mouse right click).


(1) is already a reason big enough for me.

---

Btw. do you really think that the dialog is so frustrating? You can 
apply it by just one Enter press. I personally like to know where the 
things are put. An alternative "no-dialog" shortcut is easy to make, but 
I still don't know if yet another shortcut brings really some 
simplification. Formerly, there was 1 shortcut for CodeCreation, now 
there are 2, do you really want 3 for the same function?


On 08.03.2016 10:13, Mattias Gaertner wrote:

One for less interactive and one for more interactive.
Many code completions can be enhanced with dialogs.


Actually this is already done, ctrl+shift+c is the less interactive 
(therefore it doesn't offer the class option). ctrl+shift+x is the more 
interactive with more options. To reduce confusion I can enhance the 
dialog with a local/class target combobox - people could than map the 
more interactive shortcut to ctrl+shift+c and use only one shortcut for 
both class/local target if they want. What do you think?


If I create a special shortcut for every option of CodeCreation, they 
could easily blow up (like shortcut for add to private, public etc, 
maybe more in the future).


Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Michael Van Canneyt



On Tue, 8 Mar 2016, Reimar Grabowski wrote:


On Tue, 8 Mar 2016 10:13:22 +0100
Mattias Gaertner  wrote:


On Tue, 8 Mar 2016 09:49:45 +0100 (CET)
Michael Van Canneyt  wrote:


[...]
No, this kind of behaviour is very confusing

for me.

See, fixed that for you.
Because at least I and Jesus do not think so. It is common behavior on touch 
devices ('long click').
Give some visual clue (a little (animated) icon on the identifier when the key 
combination is held for example), document it and you are good to go.
On this and the fpc list it is often said that lazarus/fpc are tools for 
programmers and a little more can be expected of them than of the general user.
'Long click' is a well known and often used UI concept, so you should be able 
to transfer your knowledge of the virtual keyboard of your phone to the real 
keyboard in front of your monitor.


Well. You take yourself as a reference I think.

I don't own a smartphone, so 'long click' is not a known concept to me.
I have never met it on a PC.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Reimar Grabowski
On Tue, 8 Mar 2016 10:13:22 +0100
Mattias Gaertner  wrote:

> On Tue, 8 Mar 2016 09:49:45 +0100 (CET)
> Michael Van Canneyt  wrote:
> 
> >[...]
> > No, this kind of behaviour is very confusing
for me.

See, fixed that for you.
Because at least I and Jesus do not think so. It is common behavior on touch 
devices ('long click').
Give some visual clue (a little (animated) icon on the identifier when the key 
combination is held for example), document it and you are good to go.
On this and the fpc list it is often said that lazarus/fpc are tools for 
programmers and a little more can be expected of them than of the general user.
'Long click' is a well known and often used UI concept, so you should be able 
to transfer your knowledge of the virtual keyboard of your phone to the real 
keyboard in front of your monitor.

> > Then better 2 shortcut keys:
> > ctrl-shift-X = create using default set in options.
> > ctrl-alt-X or ctrl-shift-alt-X = create and force dialog.
> > Or something similar.
> 
> +1
-1

> One for less interactive and one for more interactive.
> Many code completions can be enhanced with dialogs.
Then these short-cuts must follow a general rule or it just gets overwhelming.
For example always 'alt' as additional key:
ctrl-shift-x -> ctrl-shift-alt-x
ctrl-shift-space -> ctrl-shift-alt-space
etc.

(btw those are some ugly short-cuts)

> Or a flag button (e.g. speedbutton) to enable/disable the interactivity.
Which must be easy to enable and disable by keyboard and even then it's a 
hassle if you have to switch it often.
 
I like Jesus' idea the most.
The same short-cut for the same function is very consistent.
It is a well known UI concept.
Switching IDEs often it is always better for me to have to memorize less and 
not more short-cuts.
Lazarus already has quite a lot of keyboard-short-cuts.
You could also implement a keyboard-short-cut 'double click' to get to the 
dialog and 'single click' to complete directly (or the other way round) but I 
like the 
'long click' more and this would most likely be also deemed confusing.

R.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Microsoft SQL Server coming to Linux

2016-03-08 Thread Michael Van Canneyt



On Tue, 8 Mar 2016, vfclists . wrote:



The cloud is getting dominated by Linux and if Microsoft doesn't have an
offering there it is bound to be left out. The idea is to let customers who
may be tempted switch to Linux  know that SQL Server will be available for
them if they do..


I'm sure they have their reasons. 
I don't want to dissuade other people of using their favourite product.


The point was simply to react on the 'good news all round':
One man's good news is another man's bad tidings :)

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Microsoft SQL Server coming to Linux

2016-03-08 Thread vfclists .
On 8 March 2016 at 08:58, Michael Van Canneyt 
wrote:

>
>
> On Tue, 8 Mar 2016, Anthony Walter wrote:
>
> For those of you using Linux with interest in database development here is
>> some news for you:
>>
>> Microsoft SQL Server will soon be officially supported on Linux.
>>
>>
>> https://blogs.microsoft.com/blog/2016/03/07/announcing-sql-server-on-linux/
>>
>> Microsoft Executive Vide President Scott Gu has been coordinating with
>> Mark
>> Shuttleworth (Ubuntu owner and head of Canonical) to make this happen.
>>
>> For me this is great news. Microsoft SQL Server is a robust RMDB system
>> with superior performance capable of great scale. Transact SQL (the
>> Microsoft SQL Server dialect) also has many powerful and useful features.
>> Good news all around.
>>
>
> Well, that depends highly on your point of view :)
> My point of view is that the sooner Microsoft is bancrupted the better...
>
> And I beg to differ on a second account:
> E.g. PostGreSQL is a way better/faster database than SQL Server.
> Not to mention it costs you nothing.
>
> Just to say that these are highly subjective views...
>
> Michael.
>
> --
>

The cloud is getting dominated by Linux and if Microsoft doesn't have an
offering there it is bound to be left out. The idea is to let customers who
may be tempted switch to Linux  know that SQL Server will be available for
them if they do..

-- 
Frank Church

===
http://devblog.brahmancreations.com
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] how to search in files but skip commented text

2016-03-08 Thread Martin Frb

On 08/03/2016 10:28, Dennis wrote:

When source files become big, the search function becomes very important.
Does anyone share my desire for the Search function in Lazarus to be 
smart enough to skip those commented out texts?


I often comment out a portion of the source files before permanently 
deleting it (after I am really sure the new code is better than the 
old ones).


I hope the IDE will one day be smart enough to skip those commented text.

Also, sometimes I use meaningful english words as my routine and 
variable names. A search on those names will then also return those 
words in my commented txt.


You can use find identifier references. IIRC that can skip comments. But 
it also skips identifiers of the same name, if they are not the same 
(e.g a field of equal name defined in a different class, or local var)


Another method with similar results, is to add "deprecated 'find me';" 
to the identifier you are interested, and compile.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] how to search in files but skip commented text

2016-03-08 Thread Dennis

When source files become big, the search function becomes very important.
Does anyone share my desire for the Search function in Lazarus to be 
smart enough to skip those commented out texts?


I often comment out a portion of the source files before permanently 
deleting it (after I am really sure the new code is better than the old 
ones).


I hope the IDE will one day be smart enough to skip those commented text.

Also, sometimes I use meaningful english words as my routine and 
variable names. A search on those names will then also return those 
words in my commented txt.


Dennis
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Mattias Gaertner
On Tue, 8 Mar 2016 09:49:45 +0100 (CET)
Michael Van Canneyt  wrote:

>[...]
> No, this kind of behaviour is very confusing. Then better 2 shortcut keys:
> ctrl-shift-X = create using default set in options.
> ctrl-alt-X or ctrl-shift-alt-X = create and force dialog.
> Or something similar.

+1
One for less interactive and one for more interactive.
Many code completions can be enhanced with dialogs.

Or a flag button (e.g. speedbutton) to enable/disable the interactivity.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Microsoft SQL Server coming to Linux

2016-03-08 Thread Michael Van Canneyt



On Tue, 8 Mar 2016, Anthony Walter wrote:


For those of you using Linux with interest in database development here is
some news for you:

Microsoft SQL Server will soon be officially supported on Linux.

https://blogs.microsoft.com/blog/2016/03/07/announcing-sql-server-on-linux/

Microsoft Executive Vide President Scott Gu has been coordinating with Mark
Shuttleworth (Ubuntu owner and head of Canonical) to make this happen.

For me this is great news. Microsoft SQL Server is a robust RMDB system
with superior performance capable of great scale. Transact SQL (the
Microsoft SQL Server dialect) also has many powerful and useful features.
Good news all around.


Well, that depends highly on your point of view :)
My point of view is that the sooner Microsoft is bancrupted the better...

And I beg to differ on a second account:
E.g. PostGreSQL is a way better/faster database than SQL Server.
Not to mention it costs you nothing.

Just to say that these are highly subjective views...

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Michael Van Canneyt



On Mon, 7 Mar 2016, Jesus Reyes A. wrote:

En Mon, 07 Mar 2016 21:21:03 -0600, Ondrej Pokorny  
escribió:



I don't think this is possible or reasonable.

On 08.03.2016 2:39, Dmitry Boyarintsev wrote:

procedure TClass.Test(y: integer);
begin
 x private|:= y;
end;


One problem is that CodeTools need valid syntax in front of y to evaluate 
the type of y correctly (the type that x gets).



Eventually people will know the dialog well, so selecting the needed item 
in the dialog might be painful.


Then we should do some kind of fast select possibility in the dialog.  From 
my point of view, typing "x private" is more paintful than writing just "x" 
and then selecting the section with key up/down from the dialog. If you add 
only private variables, you can make it the default choice (in 
Options->Code tools->Code creation) and then the dialog doesn't pop-up.


Ondrej


Some crazy idea:

Detect the shortcut being pressed and then start a timer, if the user 
releases the shortcut before the timer triggers, then the user wants to use 
the previous selection (in this case the private section for example) and 
then no dialog is needed, if there is no previous selection or the timer 
triggers then show the dialog. The timer interval would need to be a setting 
so it can be adjusted by the end user. :)


No, this kind of behaviour is very confusing. Then better 2 shortcut keys:
ctrl-shift-X = create using default set in options.
ctrl-alt-X or ctrl-shift-alt-X = create and force dialog.
Or something similar.

Michael.--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus