Re: RAD tool for php-gtk

From: Date: Thu, 25 Nov 2004 10:14:03 +0000
Subject: Re: RAD tool for php-gtk
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5259@lists.php.net to get a copy of this message
Didier ALAIN wrote:
Hello, This a recurrent question on this ML and many other places, but, despite my efforts, I can't find any real RAD tool to work with php-gtk, nor commercial or open source. I saw in a previous thread that many application developpments have been made, and some of them, on big projets. What tool/framework do you use for these projects ? The main issue, to me, is to generate applications with many windows, and to generate these windows recursively, making numerous modifications to the GUI and applying these mods to the code. Glade + Chistian Wieske's appwizard are a partial answer, but, despite the excellent quality of appwizard, it lacks some important features. Do you think that extending appwizard is a good idea ? If yes, I can probably contribute (with my little knowledge about php-gtk) to that. Does anybody know if there is a work in progress to include glade in an IDE (tulip, etc.) ? Didier ALAIN Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn) Hi Didier! I will give to you some ideas for your app!
I've been working on some apps. made with php-gtk, the first of them was made without glade, making classes for extending widgets and making interfaces, and managing it from a main window-class. But that was really a pain once you had several windows... so in next one I started using glade but without any kind of "appwizard", I just managed it all by hand. Later I worked on adding some main gui class to group all the code repeated in every window or dialog. I made a gui-class for extending all the interface from it. And later, I realized it was going to be a lot of work if not... so I breaked in parts that gui-main-class, providing a basic functionality in it and creating new intermediate extended classes for provide specialized functionality for every kind of window I use: main windows, table maintenance windows, dialog windows, and so on... they use all the main gui class functionality but have re-declared methods to match better their needs... and then finally the window classes, extended from the intermediate level classes... Object inheritance is called? So actually in each window there isn't really a lot of code... all its abstracted in the parent classes... So do I need to add something? I only need to do it in a class or just in some of them, not in dozens of separate windows.... In each window there's the code for managing the functions that the app. brings to the user, and well abstracted too, and not the code for managing the widgets...only some callbacks are implemented there and let the hard work to be in the parent classes... also as I told I managed to make some other classes to abstract from these windows the pain of database access (when you have a lot of tables wich are constantly growing) or any kind of process, so I've got an structure of several classes to implement this -I use first a db abstraction layer to forget about different types of db -I use ADOdb, the only foreign piece of php code used-, later I created my datamodel-sqlquery-abstraction layer to work easily with a database wich is constantly beign modified in its structure -as the project advances in several directions at once- and it manages all the database table fields, their type, validation, needed fields, linked tables and fields, and manages the referencial relationship when working with the data, gives you a recordset or row data for any table of the database you need with all the fields "translated" and "goodlooking" -decimals, dates, etc.-. Manages data access permission for each table/field... Another intermediate classes manage the logic or filters being applied to the data when your're working with the app or just apply some default filters if your are not admin user, etc.... And finally, the main object classes wich manage it all in a easy way 'cause all the other parts are well abstracted... It should seem a pain to implement this but I got fun a lot with it... ;^) anyway there is really a lot of work... OOP in PHP-GTK lets you make these pretty kind of things, and if you plan to work on a big project you will need some great big structure for your app or you will get into trouble surely... I didn't try to find any RAD tool or anything to do so because I wanted to do it for myself, to match to the best the needs of my project. I also want to release in the near future some parts of this work as an app.dev.library, but much work still need to be done in my app so I've got not many time to spare in that... im in hurry since months on this project... :( and I only expect getting relaxed once the rest of the app. structure re-make will be done... this is going really more far than I'd expect... Maybe anybody could drop me a hand to make these classes match better some "standard" needs and make a GPL release... now maybe they are too much specialized for my "big app" and lack a good doc. to work with it... not only phpdocumentor or doxygen, all the code comments are in spanish... I think the gui part could be integrated well with the "appwizard"-pro... :-) for the lazyest ;^) ! The rest maybe doesnt interest to anybody as the way of working with it (all the data is accessed via a sql-query abstraction... ala "MUMPS" -does anybody know this?-) maybe is too personal... and think it only would "worth the pain" in a really big app... Gonzalo Monzon

« previous php.gtk.general (#5259) next »