Re: php-gtk2 docs
| From: | Andrei Zmievski | Date: | Thu, 17 Mar 2005 05:42:16 +0000 |
| Subject: | Re: php-gtk2 docs | ||
| References: | 1 | Groups: | php.gtk.doc |
| Request: | Send a blank email to php-gtk-doc+get-1326@lists.php.net to get a copy of this message | ||
On Mar 16, 2005, at 2:28 PM, Christian Weiske wrote:
- the compiled manual should use directories. I hate it that some programs (konqueror or opera) have to load 1800+ files in the view just that I can select the index.htmlSure, as long as the rest of our tools are changed to accomodate this. I am talking about manual search, docs updates generator, etc.
- we need an object hierarchy. This is easy as the current stylesheet contains a function I wrote a year ago which exaclty does thisDefinitely - this is a very good idea.
- more tutorials. The basic hello world is ok, but many people want at least this ones: - widget packing (multiple in one window) - opening other windows from within the original ones (modal/non modal, what to do with multiple gtk::main loops, passing parameters between windows) - object oriented programming. Current sample scripts are all spaghetti code with absolutely no objects. This is a practice which isn't suitable for middle and large or even nearly every project. - explain what gtk, gdk, pango, glade and so is and how they are connectedAll sounds good.
- all the files in utf-8. The good old iso-8859-1 is nice, but not suitable for many languages. This would also mean that the utf-8 conversion before compiling isn't necessary any more. I had a conversation with Steph about this for the php-gtk1 manual many months before, and she meant that mixing is bad - as current editors don't automatically recognize the encoding. So if everything is in utf-8, it's really easy to switch between translations and the original files.This will help a lot, but we need to think about how this will affect documentation contributors, since this is yet another step on the learning curve. We will have to help them find an use an editor that supports UTF-8.
- All classes should have a mini-howto section which explains the most frequently needed solutions with examplesLinked from the main class page, I hope, not included in it.
- I would recommend the following structure, which is near to the curent one: ==================== -Introduction -Tutorials -Installation -Gtk, Pango & Co -Hello World -Packing -Building apps with glade -Object oriented scripts -Localization with gettext -Reference -Gtk -Object Hierarchy -GtkA -Constructor -FunctionA -FunctionB -PropertyA -PropertyB -SignalA -SignalB -MiniHowTo -GtkB -GtkC -Gdk -Pango -Glade -Atk??? -FAQ ====================Where do static functions go? Under Gtk:: and Gdk:: and such? What about enums and flags? Overall, it looks very good. -Andrei