[Lazarus] Setting default widgetset per IDE installation
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon Nov 1 14:05:04 CET 2010
On Mon, 1 Nov 2010 15:57:58 +0300
Vladimir Zhirov <vvzh.lists at gmail.com> wrote:
> 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
More information about the Lazarus
mailing list