Embedded xrc dialogs

Поиск
Список
Период
Сортировка
Искать

Embedded xrc dialogs

От:
Andreas Pflug <pgadmin@pse-consulting.de>
Дата:
I just committed a change to cvs, enabling to load the xrc resources 
from binary instead of file. When defining EMBED_XRC, the dialogs 
generated in ui/common/xrcDialogs.cpp are used, and the ui/common 
directory isn't needed for execution any more. Currently, the macro is 
defined for Release versions in win32, and undefined in Debug versions. 
We could do the same for Linux.

To compile the xrc sources into the xrcDialogs.cpp, the script 
ui/common/embed-xrc is used.

Unfortunately, I didn't succeed in making the xrcDialogs.cpp under msdev 
automatically, dependent on ui/common/*.xrc; should be no problem in 
Makefile though (if wxrc is present, this should be checked in configure).

Under Win32, I used an enhanced version of wxrc which is able to 
evaluate wildcard filenames. The current version will not do this, but a 
patch is already posted to wxWindows.

Regards,
Andreas

Re: Embedded xrc dialogs

От:
"Hiroshi Saito" <saito@inetrt.skcapi.co.jp>
Дата:
Hi Andreas.

Oh. nice.
But,
Name is lower...cvs co
xrcdialogs.cpp ->xrcDialogs.cpp 

From: "Andreas Pflug" 
(snip)
> I just committed a change to cvs, enabling to load the xrc resources 
> from binary instead of file. When defining EMBED_XRC, the dialogs 
> generated in ui/common/xrcDialogs.cpp are used, and the ui/common 
> directory isn't needed for execution any more. Currently, the macro is 
> defined for Release versions in win32, and undefined in Debug versions. 
> We could do the same for Linux.

Regards,
Hiroshi-Saito

Re: Embedded xrc dialogs

От:
Andreas Pflug <pgadmin@pse-consulting.de>
Дата:
Hiroshi Saito wrote:

>Hi Andreas.
>
>Oh. nice.
>But,
>Name is lower...cvs co
>xrcdialogs.cpp ->xrcDialogs.cpp 
>
>  
>
Thanks, Fixed

Regards,
Andreas


Re: Embedded xrc dialogs

От:
"Adam H. Pendleton" <fmonkey@fmonkey.net>
Дата:
Andreas Pflug wrote:

> I just committed a change to cvs, enabling to load the xrc resources 
> from binary instead of file. When defining EMBED_XRC, the dialogs 
> generated in ui/common/xrcDialogs.cpp are used, and the ui/common 
> directory isn't needed for execution any more. Currently, the macro is 
> defined for Release versions in win32, and undefined in Debug 
> versions. We could do the same for Linux.
>
> To compile the xrc sources into the xrcDialogs.cpp, the script 
> ui/common/embed-xrc is used.
>
> Unfortunately, I didn't succeed in making the xrcDialogs.cpp under 
> msdev automatically, dependent on ui/common/*.xrc; should be no 
> problem in Makefile though (if wxrc is present, this should be checked 
> in configure).
>
> Under Win32, I used an enhanced version of wxrc which is able to 
> evaluate wildcard filenames. The current version will not do this, but 
> a patch is already posted to wxWindows.
>
> Regards,
> Andreas
>
>
I can't tell you how glad I am to hear this.  :-)  I like the simplicity 
of XRC resources for designing a UI, but when it comes to distributing 
one, they're a pain.  This is good!!

ahp

FAQ