Gnome frontend: print inserturl dialogs
Hi! the following patch together with additional files in tar.gz archive add Print and InsertUrl dialogs to Gnome frontend. The dialogs were implemented using Glade and its C output. I've tried to use glade-- to produce C++ output , but the result was far from complete since glade-- doesn't cover Gnome very well and produces the code for older version of Gtk--. So, I decided to use clear and fully functional C interface instead of incomplete C++ one. The patch includes changes in configure script to check for Gnome installation (the check is before AC_LANG_CPLUSPLUS); some small cleanup in config/lyxinclude.m4 (frontend help message); and enhancement of the performance of Gnome menus. To compile this patch you need to copy all unimplemented dialogs in Gnome frontend from Xforms frontend (or set up corresponding symbolic links). Marko gnome-print-url.newfiles.tar.gz gnome-print-url.gz
Re: Gnome frontend: print inserturl dialogs
On Mon, 14 Aug 2000, Marko Vendelin wrote: The dialogs were implemented using Glade and its C output. I've tried to use glade-- to produce C++ output , but the result was far from complete since glade-- doesn't cover Gnome very well and produces the code for older version of Gtk--. So, I decided to use clear and fully functional C interface instead of incomplete C++ one. So are you using anything from gtk-- and gnome-- now or will it all be done using gnome and gtk directly? To compile this patch you need to copy all unimplemented dialogs in Gnome frontend from Xforms frontend (or set up corresponding symbolic links). Maybe you should try some automake magic to create the symlinks at compile time. Try filling in the BUILT_SOURCES variable and then provide targets that create the symlinks if needed. Allan. (ARRae)
Re: Gnome frontend: print inserturl dialogs
On Mon, 14 Aug 2000, Allan Rae wrote: On Mon, 14 Aug 2000, Marko Vendelin wrote: The dialogs were implemented using Glade and its C output. I've tried to use glade-- to produce C++ output , but the result was far from complete since glade-- doesn't cover Gnome very well and produces the code for older version of Gtk--. So, I decided to use clear and fully functional C interface instead of incomplete C++ one. So are you using anything from gtk-- and gnome-- now or will it all be done using gnome and gtk directly? No, I use the mix. The menus are implemented in gnome--/gtk-- with small exception: update function uses gtk calls directly. I can use gtk-- there too, but there is no reason to do so. For dialogs the situation is a little bit more complicated. I generate C source code to create dialog and process some elementary callbacks (such as disabling entries according to the state of radiobuttons or adjusting minimal value of "To" field when "From" field is changed /* To=From */). Then, in dialog ::show method I use gtk-- wrapper to get pointers for all dialog elements that are required by update/apply methods (there is no need to check value of the label, for example). These pointers are used for communication between FormXXX and dialog using signal/slot mechanism common in gtk--/gnome--. Actually, the implementation is easier than it sounds --- take a look into FormUrl.C ::show, update, and apply methods (or FormPrint for lengthier example). To compile this patch you need to copy all unimplemented dialogs in Gnome frontend from Xforms frontend (or set up corresponding symbolic links). Maybe you should try some automake magic to create the symlinks at compile time. Try filling in the BUILT_SOURCES variable and then provide targets that create the symlinks if needed. Well, I'll better try to catch up :) Marko
Re: Gnome frontend: print inserturl dialogs
To compile this patch you need to copy all unimplemented dialogs in Gnome frontend from Xforms frontend (or set up corresponding symbolic links). Maybe you should try some automake magic to create the symlinks at compile time. Try filling in the BUILT_SOURCES variable and then provide targets that create the symlinks if needed. I did this actually and am trying to compile. The trick I used now is to compile ALWAYS the xforms tree (as this has to work right now as we use xforms call all over ;) and then link the frontends lib with the missing objects from the xforms tree. I'm linking right now and ..., ..., ..., ..., ..., ..., it worked #:O) Jürgen P.S.: will commit soon! -- -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Dr. Jürgen VignaE-Mail: [EMAIL PROTECTED] Italienallee 13/N Tel/Fax: +39-0471-450260 / +39-0471-450253 I-39100 Bozen Web: http://www.sad.it/~jug -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Envy is a pain of mind that successful men cause their neighbors. -- Onasander
Gnome frontend: print & inserturl dialogs
Hi! the following patch together with additional files in tar.gz archive add Print and InsertUrl dialogs to Gnome frontend. The dialogs were implemented using Glade and its C output. I've tried to use glade-- to produce C++ output , but the result was far from complete since glade-- doesn't cover Gnome very well and produces the code for older version of Gtk--. So, I decided to use clear and fully functional C interface instead of incomplete C++ one. The patch includes changes in configure script to check for Gnome installation (the check is before AC_LANG_CPLUSPLUS); some small cleanup in config/lyxinclude.m4 (frontend help message); and enhancement of the performance of Gnome menus. To compile this patch you need to copy all unimplemented dialogs in Gnome frontend from Xforms frontend (or set up corresponding symbolic links). Marko gnome-print-url.newfiles.tar.gz gnome-print-url.gz
Re: Gnome frontend: print & inserturl dialogs
On Mon, 14 Aug 2000, Marko Vendelin wrote: > The dialogs were implemented using Glade and its C output. I've tried to > use glade-- to produce C++ output , but the result was far from complete > since glade-- doesn't cover Gnome very well and produces the code for > older version of Gtk--. So, I decided to use clear and fully functional C > interface instead of incomplete C++ one. So are you using anything from gtk-- and gnome-- now or will it all be done using gnome and gtk directly? > To compile this patch you need to copy all unimplemented dialogs in Gnome > frontend from Xforms frontend (or set up corresponding symbolic links). Maybe you should try some automake magic to create the symlinks at compile time. Try filling in the BUILT_SOURCES variable and then provide targets that create the symlinks if needed. Allan. (ARRae)
Re: Gnome frontend: print & inserturl dialogs
On Mon, 14 Aug 2000, Allan Rae wrote: > On Mon, 14 Aug 2000, Marko Vendelin wrote: > > > The dialogs were implemented using Glade and its C output. I've tried to > > use glade-- to produce C++ output , but the result was far from complete > > since glade-- doesn't cover Gnome very well and produces the code for > > older version of Gtk--. So, I decided to use clear and fully functional C > > interface instead of incomplete C++ one. > > So are you using anything from gtk-- and gnome-- now or will it all be > done using gnome and gtk directly? No, I use the mix. The menus are implemented in gnome--/gtk-- with small exception: update function uses gtk calls directly. I can use gtk-- there too, but there is no reason to do so. For dialogs the situation is a little bit more complicated. I generate C source code to create dialog and process some elementary callbacks (such as disabling entries according to the state of radiobuttons or adjusting minimal value of "To" field when "From" field is changed /* To>=From */). Then, in dialog ::show method I use gtk-- wrapper to get pointers for all dialog elements that are required by update/apply methods (there is no need to check value of the label, for example). These pointers are used for communication between FormXXX and dialog using signal/slot mechanism common in gtk--/gnome--. Actually, the implementation is easier than it sounds --- take a look into FormUrl.C ::show, update, and apply methods (or FormPrint for lengthier example). > > To compile this patch you need to copy all unimplemented dialogs in Gnome > > frontend from Xforms frontend (or set up corresponding symbolic links). > > Maybe you should try some automake magic to create the symlinks at compile > time. Try filling in the BUILT_SOURCES variable and then provide targets > that create the symlinks if needed. Well, I'll better try to catch up :) Marko
Re: Gnome frontend: print & inserturl dialogs
>> To compile this patch you need to copy all unimplemented dialogs in Gnome >> frontend from Xforms frontend (or set up corresponding symbolic links). > > Maybe you should try some automake magic to create the symlinks at compile > time. Try filling in the BUILT_SOURCES variable and then provide targets > that create the symlinks if needed. I did this actually and am trying to compile. The trick I used now is to compile ALWAYS the xforms tree (as this has to work right now as we use xforms call all over ;) and then link the frontends lib with the missing objects from the xforms tree. I'm linking right now and ..., ..., ..., ..., ..., ..., it worked #:O) Jürgen P.S.: will commit soon! -- -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Dr. Jürgen VignaE-Mail: [EMAIL PROTECTED] Italienallee 13/N Tel/Fax: +39-0471-450260 / +39-0471-450253 I-39100 Bozen Web: http://www.sad.it/~jug -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Envy is a pain of mind that successful men cause their neighbors. -- Onasander