lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] Generating screenshots automatically


From: Greg Chicares
Subject: Re: [lmi] Generating screenshots automatically
Date: Sun, 22 Feb 2009 03:36:48 +0000
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

On 2009-02-17 16:22Z, Vaclav Slavik wrote:
> On Tue, 2009-02-17 at 02:10 +0100, Vadim Zeitlin wrote:
>> GC> Iterating over all panels automatically is pretty important.
>> 
>>  Ok, I'll add it, thanks. Vaclav, is there a way to find all top-level
>> objects defined in an XRC file or will I need to parse XML to do this? (VQ1)
> 
> There isn't (it's again the same reasoning: it's not particularly useful
> for *resources loader*, which is what wxXmlResource class is). It
> wouldn't be hard to add and it's not completely off-topic for
> wxXmlResource -- although I'm not _sure_ it's appropriate to have it
> there.
> 
> More importantly, are all the panels we need to show *top-level*
> objects? In other words, don't we need to extract individual panels from
> e.g. illustrations creation wxNotebook?

Yes. For instance, 'skin.xrc' contains twelve wxPanel instances, which
beget twelve notebook tabs, and we want a screenshot of each: a total
of twelve annotated screenshots for that XRC file.

>> GC> Drawing a circle around each number might make its footnote-nature more
>> GC> apparent. I suppose that'd be nice if it's not too difficult to do.
>> 
>>  No, at least not on the image itself. I don't think it's possible to use
>> rounded numbers in wxHTML easily though (by difficult way I mean that we
>> could always create a bitmap for each of them and include it in the HTML
>> using <img> tag). I'd be tempted to just use <ol> and <li> for this.

I think that's perfectly suitable: graphic numerals on graphics,
corresponding to text numerals in text.

I have no trouble looking up the parks numbered here:
  http://www.stevenspoint.com/parks/parkplan/allparks.html
or finding the "Metal Vent Plug" here:
  
http://www.maesco.com/products/racor/r_spn_intro/r_spn_mar/r_spn_assms/r_spn_assms.html
or figuring out which body of water has greater turbidity here:
  http://geosci.sfsu.edu/courses/geol103/labs/estuaries/partVIID.html

>> Vaclav, does wxHTML support specifying a different colour for <li>? (VQ2)
> 
> No. wxHTML doesn't implement CSS and as far as I know, there's no way to
> do that with HTML markup only. But... are the generated HTML files (if
> we choose that approach) meant to be displayed by wxHTML at all?

I'd like to be able to use wxHTML for this purpose.

I try to write html in a subset of the html subset supported by
wxHTML. For instance, this page:
  http://web.cvs.savannah.gnu.org/viewvc/lmi/index.html?root=lmi
looks fine to me in wxHTML. (There's some problem with UTF-8, but
IIRC that'll be okay in some forthcoming version of wx.)

> In
> other words, would CSS-only styling be enough?

We don't even need CSS. Plain text is perfectly sufficient.
(And <ol> is just a smart, robust way of generating plain text.)

http://www.rdrop.com/~half/Creations/Writings/TechNotes/CSS.html
|
| Bud, green leaf, gold, bare;
| Seasons pass, the tree remains.
| So sites with style sheets.
|
| Time spent twiddling style sheets
| is time not spent improving site content.

-- 

"Evolution der Kultur ist gleichbedeutend mit dem Entfernen des
Ornamentes aus dem Gebrauchsgegenstande." -- Adolf Loos

"Il semble que la perfection soit atteinte non quand il n'y a
plus rien à ajouter, mais quand il n'y a plus rien à retrancher."
 -- Saint-Ex




reply via email to

[Prev in Thread] Current Thread [Next in Thread]