Re: GUI updates
| From: | Alan Knowles | Date: | Wed, 29 May 2002 04:06:11 +0000 |
| Subject: | Re: GUI updates | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6555@lists.php.net to get a copy of this message | ||
Ok, here is a test.php bootloader if you dont use the pear.in file..
<?
ini_set('include_path',dirname(__FILE__).'/../..');
include_once('PEAR/Config.php');
include_once('PEAR/Frontend/Gtk.php');
include_once('PEAR/Registry.php');
include_once('PEAR/Remote.php');
$x=new PEAR_Frontend_Gtk();
Gtk::main();
?>
the up to date files are in pear's cvs - dont use the ones one the website (i've just deleted them)..
I just did a windows screenshot..
http://docs.akbkhome.com/Frontend/screenshot_windows_20020528.png
regards
alan
Urs Gehrig wrote:
hi alan i have written a small glade for php-gtk and it works. so what else could it be? -urs -- files attached.-----Original Message----- From: Alan Knowles [mailto:alan@akbkhome.com] Sent: Tuesday, May 28, 2002 4:55 PM To: urs@circle.ch; PEAR DEV Subject: Re: [PEAR-DEV] GUI updates Opps I should learn to read emails better after a few beers... -- looks like a few problems with the glade file.. , probably a win32 bug, (theres alot of bugs with glade on win32), After I've finnished getting the whole thing working on unix, i'll backtrack and see what fixes are necessary for win32. - either use the glade emulator, or just avoid certian widgets.. regards alan I've config'ed my test envirioment to do this.: pear.php: <? ini_set('include_path', '/home/alan/Projects/pear_installer/pear'); // path to php4/pear from cvs include('scripts/pear.in'); ?> then just run #./pear.php -G It's a bit of a complex test enviroment at present........ Urs Gehrig wrote:-- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phphi alan i downloaded your gtk and glade files and moved them to/pear/Frontend/Gtk.i downlaoded franks latest glade compilation for php-gtk forwin32. wrote afile with a single line (pear-gui.php): <?php require_once "PEAR/Gtk.php"; $f = &new PEAR_Frontend_Gtk; ?> ... modified line 70 in Gtk.php to $file = dirname(__FILE__).'/Frontend/Gtk/pear_installer.glade'; ... and got ***** C:\php>php -f pear-gui.php LOADED? ** CRITICAL **: file glade-xml.c: line 220: assertion `fname !=NULL' failedWarning: gladexml(): could not create GladeXML object inC:\php\PEAR\Gtk.phpon line 71 Fatal error: Call to a member function on a non-object in C:\php\PEAR\Gtk.php on line 76 C:\php> ***** is that a win32 specific problem? -urs-----Original Message----- From: Alan Knowles [mailto:alan@akbkhome.com] Sent: Tuesday, May 28, 2002 12:06 PM Cc: pear-dev@lists.php.net Subject: [PEAR-DEV] GUI updates well, a few little updates.. The details tab is mostly done - needs a bit of tidying up later.. http://docs.akbkhome.com/Frontend/screenshot_details_20020528.jpg http://docs.akbkhome.com/Frontend/screenshot_details_20020528.png Im considering breaking up the 'remove and install/update pages', more like red carpet - as the 'accidental removal' problem would be reduced alot then.. This the Download Progress screen - i'm learning more 'style' tricks with gtk as I go along, so the methods are getting slowly better.. http://docs.akbkhome.com/Frontend/screenshot_progress_20020528.jpg http://docs.akbkhome.com/Frontend/screenshot_progress_20020528.png Design idea for the config page... http://docs.akbkhome.com/Frontend/config%20design.jpg At present most of the work is focused on making the look & feel - sexy and smooth.. - Theres not alot of code that relates to actually installing packages *thanks to the simple API for the installer*... code is a bit messy in places, but will get tidied up as it nears completion... regards alan -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php