Re: Re: struture of the docs
| From: | Steph | Date: | Sun, 19 May 2002 19:05:03 +0000 |
| Subject: | Re: Re: struture of the docs | ||
| References: | 1 | Groups: | php.gtk.doc |
| Request: | Send a blank email to php-gtk-doc+get-537@lists.php.net to get a copy of this message | ||
Aha, James finally made it to the Far East :) just in time for the monsoon season ..
Thanks for that J (if you get this), but you're still going to cop it in September.
Henning, 'several hundred' is a bit of a misnomer but not much of one, and not every
widget inherits everything from the higher classes in the hierarchy. There is a script under
GtkCTree's constructor which will give all the methods available to any given class, sadly this
can't be done programmatically for signals so even if we went the complicated route in the
manual we'd still have to write all the signals by hand, including overrides.
I think there's more than enough outstanding work to be done already, if we can finish working
on the areas we can cover within the current structure we'll be in a stronger position to start
tinkering with the layout in this way. The only real and severe problem with the manual structure
at present IMHO is the one that prevents GdkEvent from being writeable, everything else is pretty
much cosmetic.
Please don't do anything about inheritance just now, it will create a lot of unnecessary work
and there are simply not enough people to do that work.
----- Original Message -----
From: "James Moore" <thai_james@hotmail.com>
To: <php-gtk-doc@lists.php.net>
Cc: <sfox@php.net>; <henning@sprang.de>
Sent: Sunday, May 19, 2002 12:51 PM
Subject: [PHP-GTK-DOC] Re: struture of the docs
> Hello from Thailand...
>
> I am here I just decided to take off for a few months, I have a few hours
> now so I thought I would catch up on the mailling lists to see if anything
> needed my urgent attention, the reason Andrei and I decided not to have all
> the methods listed was to keep the manual more concise as otherwise some of
> the lower classes in the heirerarchy would have several hundred, some
> totally useless methods, now when doing this (if you do and others feel its
> necessary, or the general concensus on the php-gtk-general list is this
> would be helpful) you need to make sure you take into account any overrides
> that are in place within the heirarchy so you must start at the base class
> and work down to your sepecified class now this isnt easy as XML has no
> varaibles as such. In psuedo XSL code:
>
> <xsl:template name="do.methods">
> <xsl:param name="class"/>
> <xsl:variable name="parent.class">
> <xsl:call-template name="get.parent.class">
> <xsl:with-param name="class" value='class'/>
> </xsl:call-template>
> </xsl:varaible>
> <!-- Build & Return node of all parent classes function nodes (not that easy
> and I cant remember how to do it here without any reference -->
> </xsl:template>
>
> Call this template assigning the outcome to a varaible then unique it, you
> then need to either run back through the tree looking up where the first
> occurance of this function is closest to the current node.
>
> The other option, probably the better one, is to do the following:
>
> Create and XSL Stylesheet that outputs another XSL stylesheet which has a
> function that can be called with the current classes name which outputs all
> the functions that class has, it will still require the above and an update
> every so often but it shouldnt slow the process of building the manual too
> much, to see roughly how this is done see gen_name_to_id.xsl in the root dir
> of php-gtk-doc. TBH Im guessing slightly at how I might attack the problem
> and the actual solution might be a long way from the possibilities Ive
> outlined and there might be a quicker way...
>
> If you get stuck feel free to send me the odd email about it but remember Im
> on holiday and will be back with a new vengence in July so Im gone for a
> little while longer but not that much longer.. I think another 6 weeks or
> so...
>
> also remember I havnt touched any code for about 2 months now so I might be
> slightly out of practice and have forgotten somthing important :)
>
> Anyway back to the sun (hopefully soon.. its raining right now) and the
> holiday!
>
> (Please CC me on any relevant replies as I AM NOT subscribed to any lists at
> the moment and jmoore@php.net will probably bounce for you as I havnt
> checked it in about 7 weeks)
>
> cheers,
>
> James
>
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device:
> http://mobile.msn.com
>
>
> --
> PHP-GTK Documentation Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>