Recent

Author Topic: Gecko (HTML engine) in Lazarus app  (Read 51578 times)

Savage

  • Newbie
  • Posts: 3
    • Pascal Game Development
Re: Gecko (HTML engine) in Lazarus app
« Reply #15 on: February 25, 2009, 12:16:46 am »
I ported the "pbear" components last summer, but don't yet have them working correctly. If you're serious I could commit the ported source to the Code and Components Repository SVN and you can see if you can get them to work.

I managed to install GeckoSDK and GeckoComponents packages from http://ftp.newbielabs.com/Delphi%20Gecko%20SDK/ (with minor changes to compile with Lazarus) on Windows.

Hi Phil and ZL,
  I'm am interested in both PBear and GeckoSDK working with Lazarus apps, particularly on Windows and Mac OS X.
Currently I have an application which uses PBear with Delphi on Windows and it works great. Having it work on Mac OS X with Lazarus/FreePascal would be the easiest porting route, but I'm willing to consider GeckoSDK as an alternative just to ensure cross-platform browser support.

My other requirement is that I need to be able to make use of .xpi plugins in my own application, without Gecko, but maybe I should start another thread about that one.

I would be willing to help out on trying to track down the PBear issues initially and then the Gecko stuff if we can't get PBear to work.
« Last Edit: February 25, 2009, 12:20:42 am by Savage »

dusanx

  • New Member
  • *
  • Posts: 17
Re: Gecko (HTML engine) in Lazarus app
« Reply #16 on: February 25, 2009, 09:09:30 am »
BTW, has anyone tried using WebKit with Lazarus?

You can look at http://www.lazarus.freepascal.org/pipermail/lazarus/2009-January/022364.html ;)

I need this oh-so-badly  :o

Also prefer webkit over gecko, this would be great to have.

How can I help with this?

Savage

  • Newbie
  • Posts: 3
    • Pascal Game Development
Re: Gecko (HTML engine) in Lazarus app
« Reply #17 on: February 25, 2009, 09:40:44 am »
http://webkit.org/

Can Phil or anyone else clarify. From playing around with Safari and Firefox, Firefox seems to render pages faster thank Safari and seems to have better cross-platform support. Is this what you have found as well?

Also since Application Bundles allow you to embed the various shared objects required into the Resources directory, I more tempted to use Gecko than Safari to keep my code base simple and cross-platform as it would be nice to support Linux as well, which I don't think Safari does yet.

madmai

  • New Member
  • *
  • Posts: 15
Re: Gecko (HTML engine) in Lazarus app
« Reply #18 on: March 04, 2009, 03:36:15 pm »
how i can install gecko components and gecko sdk in lazarus, there isn't have lpk file, thanks

aime2nice

  • New Member
  • *
  • Posts: 11
Re: Gecko (HTML engine) in Lazarus app
« Reply #19 on: April 28, 2009, 03:38:09 pm »
Hi ZL,
   
I am very interested in the Webkit component used in the project which has one .PNG in the link: http://www.lazarus.freepascal.org/pipermail/lazarus/2009-January/022364.html?

Where can I find it?

Is it usable on Windows, Linux and MacOSX (PPC and I386)?

Paul Ishenin

  • Sr. Member
  • ****
  • Posts: 274
Re: Gecko (HTML engine) in Lazarus app
« Reply #20 on: April 28, 2009, 04:25:14 pm »
WebKit can be only used with qt widgetset and it is not a component. It is just a set of functions in the qt4.pas unit.

aime2nice

  • New Member
  • *
  • Posts: 11
Re: Gecko (HTML engine) in Lazarus app
« Reply #21 on: April 30, 2009, 06:19:17 am »
Thanks,
I found examples on: http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html

But how to attach a QT Widget qwebview as a "Panel" Lazarus?
Do you have a concrete example.

Thank you for your help.


Paul Ishenin

  • Sr. Member
  • ****
  • Posts: 274
Re: Gecko (HTML engine) in Lazarus app
« Reply #22 on: April 30, 2009, 09:10:03 am »
According to documentation QWebView derives from QWidget. This means you can create a TWinControl descendant for QWebView.

Try to compile qt widgetset and place a button to a form. Then look how LCL uses qt widgetset. You will find TQtWidget and descendants. TQtWidget is a wrapper around qt QWidget class. Thus first you need to create TQtWebView class and override apropriate methods. Look how TQtButton is implemented for example. Next you need to create a TWinControl descendant TWebView (for example). Look at TButton code - it calls TWSButtonClass(WidgetSetClass).... You can follow this way too and create your own widgetset class but you can also do direct calls of TQtWebView.

If you don't want to do all this you can ask on qt mail list about code. As I know Zeljan and Felipe also interested in qt WebKit. I suspect Zeljan can have required code as he uses other qt-only widgets in applications.


aime2nice

  • New Member
  • *
  • Posts: 11
Re: Gecko (HTML engine) in Lazarus app
« Reply #24 on: August 23, 2009, 05:18:17 pm »
Hi,

Un grand pas est fait en ce qui concerne mon problème de visualisation de pages HTML dans une application Lazarus. Ca fonctionne plutôt bien, aussi bien sous Windows, Linux que MacOsx. J'imprime sous Mac Osx, mais sous Windows, j'ai juste une page blanche.

J'utilise bien sûr la "fonction" Qwebview_Print.

Quelqu'un a une petite idée?

Merci d'avance.

A big step is made in regard to my problem of visualization of HTML pages in a Lazarus application. This works fairly well, as well under Windows, Linux and MacOSX.
Printing with Mac OSX, but under Windows, I have just a blank page.

Of course I use the "function" Qwebview_Print.

Someone has an idea?

Thank you in advance.

DenJean

  • New Member
  • *
  • Posts: 18
Re: Gecko (HTML engine) in Lazarus app
« Reply #25 on: September 15, 2009, 10:23:46 pm »

DenJean

  • New Member
  • *
  • Posts: 18
Re: Gecko (HTML engine) in Lazarus app
« Reply #26 on: September 21, 2009, 02:50:50 pm »
New demo available:
http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html
Needs at least V1.72 of binding! 
Check if Lazarus svn trunk has already >= V1.72 qt4.pas.

Slavikk

  • New member
  • *
  • Posts: 5
    • http://www.bagirasoft.ru
Re: Gecko (HTML engine) in Lazarus app
« Reply #27 on: March 25, 2010, 07:14:36 am »
Good morning.
How to save the page HTML (save as)? How to save an image from the page?
Thanks in advance.

teymurbay

  • Newbie
  • Posts: 4
Re: Gecko (HTML engine) in Lazarus app
« Reply #28 on: November 26, 2012, 04:39:25 pm »
Hello, people! where i can download installable geckosdk from? please, help me, i need it urgently! =)