Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-11

Setting default widgetset per IDE installation

5 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Vladimir Zhirov

Hi,

I've got a problem with setting widgetset for my project.

I use Qt version of Lazarus IDE but I want to build my application using GTK 2 on Linux. Since "default" widgetset in Project Options points to qt for my IDE, I cannot use it and have to manually change it to gtk2. However, if I committed this change to repository, my colleagues using Windows would have to change it back to "default" (that is win32/win64 for them). I see two possible solutions, but neither of them is perfect:

1. I can change widgetset from "default (qt)" to "gtk2" after an update and change it back from "gtk2" to "default" before a commit. Not very handy solution.

2. I can create two lpi files pointing to the same lpr, one for "default" widgetset and one for "gtk2". But then I have 2 almost identical files and have to synchronize them.

It would be nice if there was a way to specify the default widgetset per Lazarus IDE installation, other than building the IDE using this widgetset. Is there a way to do it? If not, I wonder how would you guys handle this problem?

Reply by email

Mattias Gaertner
to Vladimir Zhirov
Show quoted text 24 lines
Hi, I've got a problem with setting widgetset for my project. I use Qt version of Lazarus IDE but I want to build my application using GTK 2 on Linux. Since "default" widgetset in Project Options points to qt for my IDE, I cannot use it and have to manually change it to gtk2. However, if I committed this change to repository, my colleagues using Windows would have to change it back to "default" (that is win32/win64 for them). I see two possible solutions, but neither of them is perfect: 1. I can change widgetset from "default (qt)" to "gtk2" after an update and change it back from "gtk2" to "default" before a commit. Not very handy solution. 2. I can create two lpi files pointing to the same lpr, one for "default" widgetset and one for "gtk2". But then I have 2 almost identical files and have to synchronize them. It would be nice if there was a way to specify the default widgetset per Lazarus IDE installation, other than building the IDE using this widgetset. Is there a way to do it? If not, I wonder how would you guys handle this problem?

In Lazarus 0.9.29 you can use build modes for that. Set project session to be stored separate.
Then you can define own your build modes (e.g. with widgetset gtk2) without touching the project (lpi file).

Mattias

Reply by email

Graeme Geldenhuys
to Vladimir Zhirov: I've got a problem with setting widgetset for my project. I use Qt version of Lazarus IDE…

Op 2010-11-01 14:57, Vladimir Zhirov het geskryf:

Show quoted text 5 lines
It would be nice if there was a way to specify the default widgetset per Lazarus IDE installation, other than building the IDE using this widgetset. Is there a way to do it? If not, I wonder how would you guys handle this problem?

I have the exact same problem. My IDE is compiled with LCL-GTK1 (for performance reasons), but any test apps I create I would like it to default to LCL-GTK2 which it currently doesn't. The most logical solution would be to have a new Environment option, or a "default widgetset" parameter, or even better, both options.

Regards,
- Graeme -

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

Reply by email

Zaher Dirkey
to Graeme Geldenhuys

You mean you need a Default Options when create New Projects?

Graeme Geldenhuys wrote 29 lines
Op 2010-11-01 14:57, Vladimir Zhirov het geskryf: > > It would be nice if there was a way to specify the default > widgetset per Lazarus IDE installation, other than building > the IDE using this widgetset. Is there a way to do it? > If not, I wonder how would you guys handle this problem? I have the exact same problem. My IDE is compiled with LCL-GTK1 (for performance reasons), but any test apps I create I would like it to default to LCL-GTK2 which it currently doesn't. The most logical solution would be to have a new Environment option, or a "default widgetset" parameter, or even better, both options. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net:8080/fpgui/ -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Zaher Dirkey -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101101/37153d9e/attachment.html>

Reply by email

patspiper
to Graeme Geldenhuys: Op 2010-11-01 14:57, Vladimir Zhirov het geskryf: I have the exact same problem. My IDE…
Graeme Geldenhuys wrote 19 lines
Op 2010-11-01 14:57, Vladimir Zhirov het geskryf: > It would be nice if there was a way to specify the default > widgetset per Lazarus IDE installation, other than building > the IDE using this widgetset. Is there a way to do it? > If not, I wonder how would you guys handle this problem? > I have the exact same problem. My IDE is compiled with LCL-GTK1 (for performance reasons), but any test apps I create I would like it to default to LCL-GTK2 which it currently doesn't. The most logical solution would be to have a new Environment option, or a "default widgetset" parameter, or even better, both options. Regards, - Graeme -

Select the required widgetset and tick the use as defaults checkbox at the bottom of the project options dialog, then press OK. All new projects will be compiled using the required widgetset.

Reply by email