Hi guys.

been working on gladevcp.
much like pyvcp it uses the same syntaxts to load from HAL:

 loadusr gladevcp -g 500x500 200+200 -c componentname gladefile.glade

it can make standalone panels or be incorporated in a gtk program
You build and configure the HAL widgets along side regular widgets
using the glade UI editor. they can be saved as libglade (best) or 
gtkbuilder (coming along) projects.. Then call gladevcp and it will parse 
and export HAL pins for any special 'HAL isized' widgets it finds.
right now there are a few regular widgets with HAL pins 
(buttons and spin boxes etc) a couple that export pins for sensitivity
and one custom widget - an led in round, square, or oval.

see here:   http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?GladeVcp


So in my eyes gladevcp is gonna be a useful addition to emc.
In the not too far future I I would like to add it to master 
but I have some questions first.

on the glade side there is a catalog file that adds the widgets to glade UI
It is usually installed in usr/share/glade3/catalogs
I can link to a different folder for a run-n-place .

What folder in EMC should i put it?

there are three python files to add custom widgets .
Glade uses them and so will any program that uses those widgets.

In glade they usually go in usr/lib/glade3/modules
again I can link to them 

judging by pyvcp maybe they should go in emc2's     lib/python?

gladevcp itsself is two files. a general parser / HAL pin maker and a
standalone panel builder. very much like pyvcp 

again judging by pyvcp they should go in lib/python

Now to make gladevcp really useful , with Chris R's permission
I would like to add about twenty line of code to touchy and touchy's 
hal_interface.
and export an environment variable INI_DIR from scripts/emc
 
this would allow touchy to check to see if there is a local copy of 
toughy.glade in 
the loading configs folder (INI_DIR) and call gladevcp_makepins to parse and 
make
 any found HAL widgets. If the touchy.glade file is not modified then touchy 
does not 
make any extra pins or look/act any different.

I've done most of what I have talked about here, in a local (and dirty) copy of 
mine
(other then having the MAKE file make links to glade) and it works great.

I'll stop talking at this point to see if anyone sees some potential problems 
with 
what i am asking.

Thanks Chris M

.


                                          
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to