Hi devs,
I noticed filedialogimpl-gtkmm.cpp has been cleaned by Johan. I was wondering if there's any way to take big blocks of template like the kind used in this file and keep them in separate files.
I'm aware that there are pre-compile and compile-time macros and other interesting ways to handle these things. Or a run time loader (reducing the size of the binary, but increasing load time?)
The three templates are sizable enough to be seperate, so is it C++ that prevents us or is it just messy to do so?
Thanks for your answers,
Best Regards, Martin Owens
Hi,
// Our template. Modify to taste gchar const *xformat = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
That's just a normal variable, of course you can put it into a separate cpp-file and create a header that you can include so you get access to this variable. Neither cpp prevents this nor is it messy. Some simply needs to do it :) .
Regards, Markus
-----Ursprüngliche Nachricht----- Von: Martin Owens [mailto:doctormo@...400...] Gesendet: Dienstag, 1. April 2014 18:53 An: Inkscape Devel List Betreff: [Inkscape-devel] Text Blocks as Templates
Hi devs,
I noticed filedialogimpl-gtkmm.cpp has been cleaned by Johan. I was wondering if there's any way to take big blocks of template like the kind used in this file and keep them in separate files.
I'm aware that there are pre-compile and compile-time macros and other interesting ways to handle these things. Or a run time loader (reducing the size of the binary, but increasing load time?)
The three templates are sizable enough to be seperate, so is it C++ that prevents us or is it just messy to do so?
Thanks for your answers,
Best Regards, Martin Owens
---------------------------------------------------------------------------- -- _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
participants (2)
-
Markus Engel
-
Martin Owens