Re: [Lazarus] Code Completion Templates

2013-02-12 Thread Mattias Gaertner
On Mon, 11 Feb 2013 21:43:03 -0500
Donald Ziesig don...@ziesig.org wrote:

[...]
 Hmmm.  In my code, the XML reader detects, and the IDE writes XML errors 
 to stdout as you say.  I haven't implemented a GUI to generate the XML. 
 (Yet).  Right now, if the author of the XML makes an error, he had 
 better be watching stdout while the XML loads so he can catch the 
 errors.  I will catch the syntax errors with a handler that puts up a 
 message box for now to make them visible to the user.
 
 I want to get the snippet generation fully implemented and tested first 
 (it is almost done) before I get fancy with a GUI.
 
 Any suggestions will be appreciated.

There are already several frames about options for codetools.
Extend an existing one or add a new one.

Mattias

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


[Lazarus] [PROPOSAL] Looking for contributors to write a modular book on Lazarus/FreePascal in French

2013-02-12 Thread D-BookeR
Hello,

I'm looking for French-writing contributors and authors for writting a
modular book on Lazarus / FreePascal (in French).
All experiences may be interesting, since a part of the book will be
dedicated to use cases.

The book will be published by Les éditions D-Booker (www.d-booker.fr).

For more information, please contact me off-list to contact at d-booker dot
fr

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


[Lazarus] Free Pascal + QML?

2013-02-12 Thread Krzysztof
Hi,

Lazarus has Qt4Pas. Are plans to extend it for QML support? Reason is not
only Ubuntu OS for mobile which come in autumn but I also looked at QML
demos in QT Creator and I'm just amazed what it can do. Unlimited
possibilities, 2D, 3D, physics. Just look at those demos:
http://www.youtube.com/watch?v=5waI92RiwhE
http://www.youtube.com/watch?v=nuvAK7X4g-Y
http://www.youtube.com/watch?v=U7IgwNrcln8

It's like flash power to 10. QML UI is defined in own separated file like
android UI in xml files handled by java via signals so maybe Qt4Pas can
handle it?
Free Pascal + QML on desktops could be a great response for Delphi
FireMonkey.

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


Re: [Lazarus] Code Completion Templates

2013-02-12 Thread Donald Ziesig

On 02/12/2013 03:36 AM, Mattias Gaertner wrote:

On Mon, 11 Feb 2013 21:43:03 -0500
Donald Ziesig don...@ziesig.org wrote:


[...]
Hmmm.  In my code, the XML reader detects, and the IDE writes XML errors
to stdout as you say.  I haven't implemented a GUI to generate the XML.
(Yet).  Right now, if the author of the XML makes an error, he had
better be watching stdout while the XML loads so he can catch the
errors.  I will catch the syntax errors with a handler that puts up a
message box for now to make them visible to the user.

I want to get the snippet generation fully implemented and tested first
(it is almost done) before I get fancy with a GUI.

Any suggestions will be appreciated.

There are already several frames about options for codetools.
Extend an existing one or add a new one.

Mattias

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


I extended the TCodetoolsClassCompletionOptionsFrame and added the 
template expander data in TCodeToolsOptions.  I can see the data being 
saved and restored appropriately in codetoolsoptions.xml.


I have spent the whole morning trying to find the route I must use to 
get the data in TCodeToolsOptions (which now contains the path to the 
template file) into my TemplateExpander unit (which is in the uses 
clause of codecompletiontool.pas).


The following code from my TemplateExpander unit fails at compilation:

uses
  CodeToolOptions;

because the compiler can't find the file.

What do I need to do to make that unit visible in my code?  It seems to 
have something to do with packages, but after reading the docs, I still 
don't know where to look.


Thanks,

Don Ziesig


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


Re: [Lazarus] Code Completion Templates

2013-02-12 Thread Howard Page-Clark

On 12/02/13 6:58, Donald Ziesig wrote:

The following code from my TemplateExpander unit fails at compilation:

uses
   CodeToolOptions;

because the compiler can't find the file.


Assuming CodeTools has been added as a dependency for your project, I 
think you also need to add in the Project Options dialog in the Compiler 
Options | Paths page, in the dropdown field labelled

Other unit files(-Fu) (delimiter is semicolon)
the following macro
$(LazarusDir)\units\$(TargetCPU)-$(TargetOS)\$(LCLWidgetType)


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


Re: [Lazarus] Code Completion Templates

2013-02-12 Thread Mattias Gaertner
On Tue, 12 Feb 2013 13:58:15 -0500
Donald Ziesig don...@ziesig.org wrote:

 On 02/12/2013 03:36 AM, Mattias Gaertner wrote:
[...]
 I extended the TCodetoolsClassCompletionOptionsFrame and added the 
 template expander data in TCodeToolsOptions.  I can see the data being 
 saved and restored appropriately in codetoolsoptions.xml.
 
 I have spent the whole morning trying to find the route I must use to 
 get the data in TCodeToolsOptions (which now contains the path to the 
 template file) into my TemplateExpander unit (which is in the uses 
 clause of codecompletiontool.pas).
 
 The following code from my TemplateExpander unit fails at compilation:
 
 uses
CodeToolOptions;
 
 because the compiler can't find the file.

That is a unit of the IDE itself. It can not be accessed by
installed packages.
I think these new options can be added to the IDE. They don't need an
extra package.

 
Mattias

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