;;; glade-mode.el --- A mode to view glade interface using tree-widget ;; Copyright 2007 Ye Wenbin ;; ;; Author: wenbinye@163.com ;; Version: $Id: glade-mode.el,v 0.0 2007/06/16 12:08:19 ywb Exp $ ;; Keywords: ;; X-URL: not distributed yet ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 2, or (at your option) ;; any later version. ;; ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with this program; if not, write to the Free Software ;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ;;; Commentary: ;; 1. Why I write it? ;; Sometimes, I use glade draw a interface, I forget what signal I ;; used for a widget, I have to swap Emacs from coding to Glade to ;; look up for the signal. The other way is open the glade file to ;; search. But I hate the markup label, and I want a easy way for ;; me to browse the whole file. So I think use tree-widget to ;; represent the glade interface is necessary. ;; ;; 2. Can it modify glade file? ;; Currently not. But I think it is not hard to edit current ;; content in the xml. It really hard to add something to the xml. ;; Because I don't know what is valid to add to file. ;; ;; 3. How to invocate glade-mode automaticly when open .glade file? ;; Because magic-mode-alist is used before auto-mode-alist, So you ;; have to add a regexp to magic-mode-alist: ;; (add-to-list 'magic-mode-alist ;; '("<\\?xml[ \t\r\n]+[^>]*>[ \t\r\n]*