Recent

Author Topic: The Important FpGUI Widgeset interface developement  (Read 66316 times)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: The Important FpGUI Widgeset interface developement
« Reply #30 on: December 05, 2013, 12:00:06 pm »
Ah ok, I understand. Still, I suppose disallowing new posts on the existing FPC forum, redirecting to forum.lazarus.freepascal.org, adding a new FPC section edit: to the Lazarus forum could work I suppose?
You'll still keep separate registration for mantis...

OTOH I do understand that this will take planning, effort etc and it's all done by volunteers.
« Last Edit: December 05, 2013, 02:40:12 pm by BigChimp »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: The Important FpGUI Widgeset interface developement
« Reply #31 on: December 05, 2013, 02:10:22 pm »
@ BigChimp, @ Marcov.

Nice to feel that you are not in war against other widgetset that lcl.

So, i want to ask if it could be possible to allow Lazarus to be single-instance. I mean : if you use command line : startlazarus myproject.pas and if Lazarus is already loaded, that the already loaded Lazarus is used for open the file, not open a new instance of Lazarus. Like gedit or notepad does...

Many thanks.

I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: The Important FpGUI Widgeset interface developement
« Reply #32 on: December 05, 2013, 02:26:32 pm »
No idea what may have given you that idea... but well...

Apart from that: patches are surely welcome...
« Last Edit: December 05, 2013, 02:28:25 pm by BigChimp »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: The Important FpGUI Widgeset interface developement
« Reply #33 on: December 05, 2013, 02:51:38 pm »
Quote
patches are surely welcome...

I will contribute for it with pleasure but...

Could you give me some light how to render Lazarus one-instance only ?
And what source-code must i explore for the parameters-command line of startlazarus ?

Many thanks.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: The Important FpGUI Widgeset interface developement
« Reply #34 on: December 05, 2013, 02:56:06 pm »
Sorry, no idea. Haven't looked in that area.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: The Important FpGUI Widgeset interface developement
« Reply #35 on: December 05, 2013, 03:07:21 pm »
Quote
patches are surely welcome...

I will contribute for it with pleasure but...

Could you give me some light how to render Lazarus one-instance only ?
And what source-code must i explore for the parameters-command line of startlazarus ?

Many thanks.

Usually you do the same check as singleinstance apps (that disallow multiple starts), e.g. with a named semaphore.

Then if you detect the other app, you send it a message over some IPC means and exit. The main (original) app then gets a message to open.

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: The Important FpGUI Widgeset interface developement
« Reply #36 on: December 05, 2013, 03:10:13 pm »
Could you give me some light how to render Lazarus one-instance only ?

This might help making Lazarus single instance:
http://forum.lazarus.freepascal.org/index.php/topic,21773.msg127827.html#msg127827

You will probably need to activate this new feature only after some specific parameter exists:
http://forum.lazarus.freepascal.org/index.php/topic,14383.msg76100.html#msg76100
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: The Important FpGUI Widgeset interface developement
« Reply #37 on: December 05, 2013, 04:23:39 pm »
@ Avra : many thanks.  ;D
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: The Important FpGUI Widgeset interface developement
« Reply #38 on: December 13, 2013, 12:55:11 pm »
Quote
patches are surely welcome...

Hello.

I have try to find the Lazarus code for opening-saving-closing files or projects but i do not find what source.pas do that things.

Do you know what source.pas has open-save-close procedures declarations?

Many thanks.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: The Important FpGUI Widgeset interface developement
« Reply #39 on: December 13, 2013, 03:45:30 pm »
Do you know what source.pas has open-save-close procedures declarations?

I think the best place for you to start is $LazarusDir\ide\main.pp
If you look at the methods of TMainIDE you'll see such as
  AskSaveProject
  DoOpenFileInSourceEditor
  DoNewFile
  DoNewOther
  DoSaveEditFile
etc.
These will lead you to other relevant units/procedures.

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: The Important FpGUI Widgeset interface developement
« Reply #40 on: December 14, 2013, 10:59:43 am »
@  howardpc : many thanks.  ;D
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: The Important FpGUI Widgeset interface developement
« Reply #41 on: December 15, 2013, 07:02:17 pm »
Hello.  :D

fpGUI uiDesigner is now totally integrable into Lazarus.
A patch is added for Lazarus IDE.

You may open your fpgui files with Lazarus.
If the file is fpgui type, the fpgui uidesigner_ext will be used.

How to install it :

- 1) Install fpGUI.
If not already done, go to fpgui site (else go to -2).

=> github.com/graemeg/fpGUI/tree/master

-Click on Download ZIP button, on right side...
-Unzip it.

Then Load Lazarus:
- in Package, Open Package (.lpk)
Choose :
- for Windows : fpGUI-develop/src/corelib/gdi/fpgui_toolkit.lpk
- for Linux : fpGUI-develop/src/corelib/x11/fpgui_toolkit.lpk
Compile the package.

-2) Compile uidesigner_ext
- Go to site:

>> github.com/fredvs/uidesigner_ext

-Click on Download ZIP button, on right side...
-Unzip it.
- Compile uidesigner_ext.lpr

-3) Run uidesigner_ext and config it.

- Run uidesigner_ext
- Click on Settings
- Enable "IDE integration into Lazarus"
- Close uidesigner_ext.

-4) Apply Lazarus patch

- Copy /uidesigner_ext/patch/Lazarus/main.pp into /lazarus/ide
- Rebuild the Lazarus IDE.

-5) Enjoy it !

- Load fpg-files ( pascal files, like *.pas, *.lpr,) from Lazarus Open menu...
PS : If you load a project file *.lpi, you may open his pascal correspondent file (usualy *.lpr file) to load uidesigner.

That's all.... :)
« Last Edit: November 16, 2015, 11:25:58 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: The Important FpGUI Widgeset interface developement
« Reply #42 on: December 27, 2013, 12:07:14 pm »
Hello everybody.  ;)

Now uidesigner_ext has his "undo" feature (like Delphi Form Designer)...
There are the "traditional" undo-redo feature + undo list (you may choose your
undo).

In setup you may choose the number of undo's...

Download it here :

>>> https://github.com/fredvs/uidesigner_ext

Binary for Linux 64 and Windows 32 are in package...

Explanation how to install fpGUI is here :

=> http://forum.lazarus.freepascal.org/index.php/topic,12481.msg136323.html#msg136323
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: The Important FpGUI Widgeset interface developement
« Reply #43 on: January 11, 2014, 04:31:09 pm »
fpGUI uiDesigner is now totally integrable into Lazarus.
A patch is added for Lazarus IDE.
Please post patches on the bugtracker. Thanks.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: The Important FpGUI Widgeset interface developement
« Reply #44 on: January 12, 2014, 01:37:41 am »
Could you give me some light how to render Lazarus one-instance only ?

The plan is to implement it for Lazarus. It may require moving Luiz Americo's UniqueInstance component to LCL first. See:
  http://bugs.freepascal.org/view.php?id=8051
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018