2009年6月2日 星期二

轉換Glade file 成 c 的 source files

http://mail.gnome.org/archives/gtkmm-list/2006-June/msg00305.html

Convenience utility for Glade users


  • From: Bob Caryl
  • To: Gtkmm Mailing List
  • Subject: Convenience utility for Glade users
  • Date: Fri, 30 Jun 2006 14:05:12 -0500

Hello all,

I have found Glade to be a very useful tool. I use it in conjunction with libglademm (using the Gnome::Glade::Xml::create_from_buffer method), and because I have a phobia about my executables being dependent on "load files" I wrote a utility that takes the standard Glade project file (e.g. foo.glade) and converts it into an include file that contains the Glade XML converted into a const char * literal. The output also encloses the entire thing in a macro wrapper. This can be downloaded here:
http://users.nehp.net/rcaryl/xmltocsource-0.09.tar.gz

Run from the command line without arguments, it outputs a verbose usage message. I use it in my makefiles to keep the include (.h) file synchronized with my Glade file. --
/*Bob Caryl*
Fiscal Systems,Inc.
256.772.8920 Ext. 108
http://www.fis-cal.com <http://www.fis-cal.com/>/

沒有留言: