Re: [Lazarus] What is main form? (Splash question)

2015-05-08 Thread Vojtěch Čihák

I did it too. I have checkbox in application options, so users can disable 
splash screen.
Variable SplashEnabled is loaded from config files and its default is True 
(when no configs exist yet).
Therefore is splash always displayed when application run for the first time.
 
__

Od: Graeme Geldenhuys 
Komu: 
Datum: 09.05.2015 00:03
Předmět: Re: [Lazarus] What is main form? (Splash question)


On 2015-05-08 20:59, Vojtěch Čihák wrote:

the sleep() was there because demo is simple and is executed too fast
and I needed to see whether splash is actually displayed.


If you have the time, take a look at the splashscreen demo included with
fpGUI.  /examples/gui/splashscreen/

There I use a timer in the splash screen, so it will destroy itself. So
the splash screen is still visible for a short while, while the main
form is displayed. Clicking on the splash screen makes it disappear
instantly. In the real world, I would also make the splash screen
optional via an application setting, or the usual --no-splash or -ns
command line parameters.

Regards,
 - Graeme -

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/ 

--
___
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] How to display html contents?

2015-05-08 Thread Giuliano Colla

Il 09/05/2015 00:02, Giuliano Colla ha scritto:

a link to a tag in the same page doesn't work,


I meant to an anchor. Sorry.

Giuliano

--
Giuliano Colla

Project planning question: when it's 90% done, are we halfway or not yet?


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


Re: [Lazarus] How to display html contents?

2015-05-08 Thread Giuliano Colla

Il 08/05/2015 22:23, Euller Pereira ha scritto:
There's a framework called Brook and a plug-in for it called 
JTemplate, it's totally written in pascal and may be what you are 
looking for.

Here's the link: http://silvioprog.github.io/brookframework/

2015-05-08 16:55 GMT-03:00 Martin >:


This tutorial below will get you up and running quickly with
turbopower ipro html component.

http://pp4s.co.uk/main/tu-form2-help-demo-laz.html

You'll be able to see how to handle images and hot clicks easily.




Many thanks to both of you. With TIPHtmlPanel (which uses turbopower 
ipro) I've been able to display my contents. The only problem I get is 
that while links to other pages do work properly, a link to a tag in the 
same page doesn't work, even if the tag is properly recognized (I get a 
hint with the tag name passing with the mouse over the link).

Is it a known issue or I'm doing something wrong?

Giuliano


--
Giuliano Colla

Project planning question: when it's 90% done, are we halfway or not yet?

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


Re: [Lazarus] What is main form? (Splash question)

2015-05-08 Thread Graeme Geldenhuys
On 2015-05-08 20:59, Vojtěch Čihák wrote:
> the sleep() was there because demo is simple and is executed too fast
> and I needed to see whether splash is actually displayed.

If you have the time, take a look at the splashscreen demo included with
fpGUI.  /examples/gui/splashscreen/

There I use a timer in the splash screen, so it will destroy itself. So
the splash screen is still visible for a short while, while the main
form is displayed. Clicking on the splash screen makes it disappear
instantly. In the real world, I would also make the splash screen
optional via an application setting, or the usual --no-splash or -ns
command line parameters.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


Re: [Lazarus] How to display html contents?

2015-05-08 Thread Euller Pereira
There's a framework called Brook and a plug-in for it called JTemplate,
it's totally written in pascal and may be what you are looking for.
Here's the link: http://silvioprog.github.io/brookframework/

2015-05-08 16:55 GMT-03:00 Martin :

> This tutorial below will get you up and running quickly with turbopower
> ipro html component.
>
> http://pp4s.co.uk/main/tu-form2-help-demo-laz.html
>
> You'll be able to see how to handle images and hot clicks easily.
>
> A PDF manual is available at the link below, but only a small part of the
> functionality detailed has been ported to lazarus.
>
> http://download.sourceforge.net/tpipro/tpipro_docs.zip
>
> Ipro is slightly buggy but I've managed to get it displaying what I want
> quite well (with some workarounds).
>
> Rgds,
>
> Martin
>
>
> On 06/05/15 09:37, Giuliano Colla wrote:
>
>> Hi all,
>>
>> I need to display some local html files in a Lazarus application, which
>> must run under Linux.
>>
>> What's the best way to go?
>>
>> Thanks in advance for any hint.
>>
>> Giuliano
>>
>>
>
> --
> ___
> 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] What is main form? (Splash question)

2015-05-08 Thread Vojtěch Čihák

Thanks,
 
the sleep() was there because demo is simple and is executed too fast and I 
needed to see whether splash is actually displayed.
In the real project I will not use sleep() in *.lpr nor elsewhere. I don't want 
to waste user's time :) 
 
__

Od: Mattias Gaertner 
Komu: 
Datum: 08.05.2015 21:52
Předmět: Re: [Lazarus] What is main form? (Splash question)


On Fri, 08 May 2015 17:46:10 +0200
Vojtěch Čihák  wrote:


Hi,
 
what is main form from POV of Lazarus?


It is the first form created with Application.CreateForm, which
FormStyle is neither fsSplash nor fsMDIChild.



I made this demo:
 
program project1;
{$mode objfpc}{$H+}
 
uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  sysutils,
  Interfaces, // this includes the LCL widgetset
  Forms, Unit1, Unit2, Unit3
  { you can add units after this };
 
{$R *.res}
 
begin
  RequireDerivedFormResource:=True;
  Application.Initialize;
 // Application.CreateForm(TFrmSplash, FrmSplash);


Don't forget to set FrmSplash.FormStyle to fsSplash.


 // sleep(750);


On many platforms this won't work. Use
Application.ProcessMessages instead.

In general: don't use "sleep" in the main thread.


  Application.CreateForm(TFrmMain, FrmMain);
  Application.CreateForm(TForm3, Form3);
 // FrmSplash.Free;
  Application.Run;
end.


Mattias

--
___
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] How to display html contents?

2015-05-08 Thread Martin
This tutorial below will get you up and running quickly with turbopower 
ipro html component.


http://pp4s.co.uk/main/tu-form2-help-demo-laz.html

You'll be able to see how to handle images and hot clicks easily.

A PDF manual is available at the link below, but only a small part of 
the functionality detailed has been ported to lazarus.


http://download.sourceforge.net/tpipro/tpipro_docs.zip

Ipro is slightly buggy but I've managed to get it displaying what I want 
quite well (with some workarounds).


Rgds,

Martin


On 06/05/15 09:37, Giuliano Colla wrote:

Hi all,

I need to display some local html files in a Lazarus application, 
which must run under Linux.


What's the best way to go?

Thanks in advance for any hint.

Giuliano




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


Re: [Lazarus] What is main form? (Splash question)

2015-05-08 Thread Mattias Gaertner
On Fri, 08 May 2015 19:59:56 +0200
Giuliano Colla  wrote:

> Il 08/05/2015 17:46, Vojtěch Čihák ha scritto:
> >
> > It seems that after adding splash screen is FrmMain no longer 
> > considered as a main form.
> >
> > Is it bug? Or do I something wrong?
> >
> 
> AFAIK you can't treat the splash screen as a regular form. It must be 
> handled separately.
> I'd suggest you to give a look to:
> 
> http://delphi.about.com/od/formsdialogs/a/splashscreen.htm
> 
> It's for Delphi, but it appears to apply to Lazarus as well.

AFAIK it does not work on Carbon. You cannot draw without events.

Mattias

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


Re: [Lazarus] What is main form? (Splash question)

2015-05-08 Thread Mattias Gaertner
On Fri, 08 May 2015 17:46:10 +0200
Vojtěch Čihák  wrote:

> Hi,
>  
> what is main form from POV of Lazarus?

It is the first form created with Application.CreateForm, which
FormStyle is neither fsSplash nor fsMDIChild.


> I made this demo:
>  
> program project1;
> {$mode objfpc}{$H+}
>  
> uses
>   {$IFDEF UNIX}{$IFDEF UseCThreads}
>   cthreads,
>   {$ENDIF}{$ENDIF}
>   sysutils,
>   Interfaces, // this includes the LCL widgetset
>   Forms, Unit1, Unit2, Unit3
>   { you can add units after this };
>  
> {$R *.res}
>  
> begin
>   RequireDerivedFormResource:=True;
>   Application.Initialize;
>  // Application.CreateForm(TFrmSplash, FrmSplash);

Don't forget to set FrmSplash.FormStyle to fsSplash.

>  // sleep(750);

On many platforms this won't work. Use
Application.ProcessMessages instead.

In general: don't use "sleep" in the main thread.

>   Application.CreateForm(TFrmMain, FrmMain);
>   Application.CreateForm(TForm3, Form3);
>  // FrmSplash.Free;
>   Application.Run;
> end.

Mattias

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


Re: [Lazarus] What is main form? (Splash question)

2015-05-08 Thread Vojtěch Čihák

Thanks.
 
FrmSplash:=TFrmSplash.Create; instead of Application.CreateForm(); does the job.
It is also what Lazarus does in lazarus.pp.
 
The reference code from Giuliano works well, especially 
Application.ProcessMessages; is necessary.
FrmSplash.Update can be omitted.
 
Problem solved.
__

Od: Giuliano Colla 
Komu: Lazarus mailing list 
Datum: 08.05.2015 20:13
Předmět: Re: [Lazarus] What is main form? (Splash question)


Il 08/05/2015 17:46, Vojtěch Čihák ha scritto:

Is it bug? Or do I something wrong?


The following code (where form2 is the splash screen) works fine under 
Lazarus



  RequireDerivedFormResource := True;
  Application.Initialize;
  Form2 := TForm2.Create(Nil);
  Form2.Show;
  Form2.Update;
  Application.ProcessMessages;
  Sleep(3000);
  Application.CreateForm(TForm1, Form1);
  Form2.Hide;
  Form2.Free;
  Application.Run;

You may use as a guideline for your purposes

Giuliano


--
___
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] What is main form? (Splash question)

2015-05-08 Thread Giuliano Colla

Il 08/05/2015 17:46, Vojtěch Čihák ha scritto:

Is it bug? Or do I something wrong?


The following code (where form2 is the splash screen) works fine under 
Lazarus



  RequireDerivedFormResource := True;
  Application.Initialize;
  Form2 := TForm2.Create(Nil);
  Form2.Show;
  Form2.Update;
  Application.ProcessMessages;
  Sleep(3000);
  Application.CreateForm(TForm1, Form1);
  Form2.Hide;
  Form2.Free;
  Application.Run;

You may use as a guideline for your purposes

Giuliano


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


Re: [Lazarus] What is main form? (Splash question)

2015-05-08 Thread Giuliano Colla

Il 08/05/2015 17:46, Vojtěch Čihák ha scritto:


It seems that after adding splash screen is FrmMain no longer 
considered as a main form.


Is it bug? Or do I something wrong?



AFAIK you can't treat the splash screen as a regular form. It must be 
handled separately.

I'd suggest you to give a look to:

http://delphi.about.com/od/formsdialogs/a/splashscreen.htm

It's for Delphi, but it appears to apply to Lazarus as well.

Giuliano


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


Re: [Lazarus] What is main form? (Splash question)

2015-05-08 Thread Graeme Geldenhuys
On 2015-05-08 17:11, Vojtěch Čihák wrote:
> I tried to look to Lazarus sources before but I don't where is *.lpr of
> Lazarus.

Take a look in /ide/lazarus.pp



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


Re: [Lazarus] What is main form? (Splash question)

2015-05-08 Thread Vojtěch Čihák

Thanks, I tried to look to Lazarus sources before but I don't where is *.lpr of 
Lazarus.
 

So I suggest you

create the splash form after the main form, but show the splash form
before the main form.
 
It's possible, but purpose ofsplash screen is to fill the gap until main form 
is created ? :-)
 
V.
__

Od: Graeme Geldenhuys 
Komu: 
Datum: 08.05.2015 17:59
Předmět: Re: [Lazarus] What is main form? (Splash question)


On 2015-05-08 16:46, Vojtěch Čihák wrote:

It seems that after adding splash screen is FrmMain no longer considered
as a main form.


As far as I know, the first form that gets created is considered the
"main form" and the one that controls the lifespan of the application.
When the main form closes, the application normally terminates.

In fpGUI I can simply assign a new instance to fpgApplication.MainForm,
but it doesn't seem like LCL as a MainForm property. So I suggest you
create the splash form after the main form, but show the splash form
before the main form.

I also suggest you take a look at what Lazarus IDE itself does. After
all, it displays a splash screen. Learn by example. ;-)

Regards,
 - Graeme -

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/ 

--
___
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] What is main form? (Splash question)

2015-05-08 Thread Graeme Geldenhuys
On 2015-05-08 16:46, Vojtěch Čihák wrote:
> It seems that after adding splash screen is FrmMain no longer considered
> as a main form.

As far as I know, the first form that gets created is considered the
"main form" and the one that controls the lifespan of the application.
When the main form closes, the application normally terminates.

In fpGUI I can simply assign a new instance to fpgApplication.MainForm,
but it doesn't seem like LCL as a MainForm property. So I suggest you
create the splash form after the main form, but show the splash form
before the main form.

I also suggest you take a look at what Lazarus IDE itself does. After
all, it displays a splash screen. Learn by example. ;-)

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


[Lazarus] What is main form? (Splash question)

2015-05-08 Thread Vojtěch Čihák

Hi,
 
what is main form from POV of Lazarus?
I made this demo:
 
program project1;
{$mode objfpc}{$H+}
 
uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  sysutils,
  Interfaces, // this includes the LCL widgetset
  Forms, Unit1, Unit2, Unit3
  { you can add units after this };
 
{$R *.res}
 
begin
  RequireDerivedFormResource:=True;
  Application.Initialize;
 // Application.CreateForm(TFrmSplash, FrmSplash);
 // sleep(750);
  Application.CreateForm(TFrmMain, FrmMain);
  Application.CreateForm(TForm3, Form3);
 // FrmSplash.Free;
  Application.Run;
end.
        
It works well, i.e. when I close FrmMain, the application is correctly 
terminated.
But when I uncomment those three lines, i.e. I add the splash screen to 
application, I got troubles.
Splash screen is displayed, both forms too but when I close FrmMain, Form3 
persists.
When I close Form3, application is not terminated although there is no 
remaining form.
Lazarus title bar still shows "(debugging)" and I have to use menu 
Project->Stop.
It seems that after adding splash screen is FrmMain no longer considered as a 
main form.
Is it bug? Or do I something wrong?
 
Thanks for help,
 
V.

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


[Lazarus] Google APIs

2015-05-08 Thread markbass72
hi, I am very happy of the addition of this package, great work and, of 
course, thanks!


I can't compile due to following error

reggoogleapi.pp(14,3) Fatal: Cannot find restbase used by reggoogleapi 
of package lazgoogleapis.


fpc 2.6.5
lazarus trunk



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


Re: [Lazarus] Google APIs

2015-05-08 Thread David Copeland
+1.

On 05/07/2015 06:33 PM, William Ferreira wrote:
> GCalendar will be very welcome!
>

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


Re: [Lazarus] Google APIs

2015-05-08 Thread Michael Van Canneyt



On Fri, 8 May 2015, Sven Barth wrote:



Am 08.05.2015 10:30 schrieb "Michael Van Canneyt" :
>
>>
>> Also there's the risk that Google will change or discontinue a service 
arbitrarily. They don't exactly have a good record in that area.
>
>
> This is web programming. Things change fast. I am aware of this.
> The files are generated using a tool, and the tool is also in SVN.

But maybe FPC's release cycle is too slow then. Maybe a separate fppkg would be 
better (like lnet) as those can be updated faster...


Let's not exaggerate. These APIS are around for years.

And the idea is to distribute FPC's own packages using fppkge anyway, exactly 
to be able to release faster.

Michael.

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


Re: [Lazarus] Google APIs

2015-05-08 Thread Sven Barth
Am 08.05.2015 10:30 schrieb "Michael Van Canneyt" :
>
>>
>> Also there's the risk that Google will change or discontinue a service
arbitrarily. They don't exactly have a good record in that area.
>
>
> This is web programming. Things change fast. I am aware of this.
> The files are generated using a tool, and the tool is also in SVN.

But maybe FPC's release cycle is too slow then. Maybe a separate fppkg
would be better (like lnet) as those can be updated faster...

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


Re: [Lazarus] Programming tutorials

2015-05-08 Thread Shaun O'Connor

on the subject of pascal tutorials...this site

http://schoolfreeware.com/Tutorials.html

An earlier version of Lazarus is used in the tutorial material but it is
quite comprehensive, well paced and I Believe there is sample code
available.
On 08/05/2015 09:52, Graeme Geldenhuys wrote:
> Hi,
>
> Over the years I have often seen posts about people looking for
> programming tutorials on Object Pascal. Last night I found a YouTube
> channel which seems to fit the bill perfectly. It introduces the
> language and concepts in an easy to understand way. There are around 30
> videos of varying lengths.
>
> It features Delphi programming, but that should translate nearly 1:1 to
> FPC+Lazarus.
>
>  https://www.youtube.com/channel/UCFZxawRN6quppxog_L0LjNg
>
>
> ps:
> Excuse the strong South African English accent. ;-)
>
> Regards,
>   - Graeme -
>

-- 


  TPP BYPASSES JUDICIAL AND GOVERNMENT OVERSIGHT - RESIST IT

*PRIVACY IS A RIGHT - NOT A CONCESSION*
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Programming tutorials

2015-05-08 Thread Graeme Geldenhuys
Hi,

Over the years I have often seen posts about people looking for
programming tutorials on Object Pascal. Last night I found a YouTube
channel which seems to fit the bill perfectly. It introduces the
language and concepts in an easy to understand way. There are around 30
videos of varying lengths.

It features Delphi programming, but that should translate nearly 1:1 to
FPC+Lazarus.

 https://www.youtube.com/channel/UCFZxawRN6quppxog_L0LjNg


ps:
Excuse the strong South African English accent. ;-)

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


Re: [Lazarus] Google APIs

2015-05-08 Thread Michael Van Canneyt



On Fri, 8 May 2015, Mark Morgan Lloyd wrote:


Michael Van Canneyt wrote:

Hello,

Some of you may have noticed that a package 'Google APis' has been added to 
FPC in subversion.
These contain the Google APIs as generated from the Google Discovery 
Service (~70 APIS).


I am of the opinion that such Web APIs have meanwhile the same importance 
as the native APIS that make up the desktop; the world is increasingly 
connected to Internet, and Google, MS Office365 apis (and many others) will 
become more and more part of the toolset of a programmer.


Are these really APIs, i.e. an interface between an application program and a 
local library, or are they actually communication protocols?


https://xkcd.com/1481/ applies.


This is a sterile distinction. It is the only way to communicate with Google.
it is, for all practical purposes, the API.

They also call it the API, for good reason.

Perhaps FPC/Lazarus, which is already a large project, should package things 
which take a URI as a parameter and return HTML/XML/JSON etc. separately.


No. For me, this is at the same level as the Win32 headers or Mac OS headers.

Whether there is a protocol involved or not is irrelevant for me. 
It's about making functionality available.




Also there's the risk that Google will change or discontinue a service 
arbitrarily. They don't exactly have a good record in that area.


This is web programming. Things change fast. I am aware of this.
The files are generated using a tool, and the tool is also in SVN.

Michael.

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


Re: [Lazarus] Google APIs

2015-05-08 Thread Lukasz Sokol
On 07/05/15 22:00, Michael Van Canneyt wrote:
> 
> Hello,
> 
> Some of you may have noticed that a package 'Google APis' has been
> added to FPC in subversion. These contain the Google APIs as
> generated from the Google Discovery Service (~70 APIS).
> 
> I am of the opinion that such Web APIs have meanwhile the same
> importance as the native APIS that make up the desktop; the world is
> increasingly connected to Internet, and Google, MS Office365 apis
> (and many others) will become more and more part of the toolset of a
> programmer.
> 
> Object Pascal Programmers should not be left behind.
> 

Thanks * 10^6 ;)

> Michael.
> 
> PS. The REST API for MS Office365 is next.

LibreOffice is said to also developing theirs
https://libreoffice-from-collabora.com/icewarp-and-collabora-are-working-on-libreoffice-online-document-editing-an-open-source-alternative-to-google-apps-office-365/

;)

el es


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


Re: [Lazarus] Google APIs

2015-05-08 Thread Mark Morgan Lloyd

Michael Van Canneyt wrote:

Hello,

Some of you may have noticed that a package 'Google APis' has been added 
to FPC in subversion.
These contain the Google APIs as generated from the Google Discovery 
Service (~70 APIS).


I am of the opinion that such Web APIs have meanwhile the same 
importance as the native APIS that make up the desktop; the world is 
increasingly connected to Internet, and Google, MS Office365 apis (and 
many others) will become more and more part of the toolset of a programmer.


Are these really APIs, i.e. an interface between an application program 
and a local library, or are they actually communication protocols?


https://xkcd.com/1481/ applies.

Perhaps FPC/Lazarus, which is already a large project, should package 
things which take a URI as a parameter and return HTML/XML/JSON etc. 
separately.


Also there's the risk that Google will change or discontinue a service 
arbitrarily. They don't exactly have a good record in that area.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

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