layouted() -> needsLayout()

Dirk Mueller mueller at kde.org
Sat Oct 18 05:40:43 CEST 2003


On Saturday 18 October 2003 03:49, David Hyatt wrote:

> layouted is not a word in the English language. 

We use English++ anyway. 

> needsLayout reads much better

not to me. I would consider requiresLayout a nicer read, but thats even 
longer. 

> Suggestions?

How about

setMinMaxKnown(bool b=true);
setLayoutKnown(bool b=true);

and

bool minMaxKnown() const
bool layoutKnown() const


If you don't like the K-ism in "Known" (which is maybe a bit hard to pronounce 
correctly) then my next suggestion would be: 

setMinMax(bool b=true);
setLayout(bool b=true);

and

bool hasMinMax() const
bool hasLayout() const

Although its not really clear what "having min max" means. The next best 
suggestion is the dirty variant, aka

setMinMaxDirty(bool b = true);
setLayoutDirty(bool b = true);

bool minMaxDirty() const;
bool layoutDirty() const;

Anyway, "setNeeds<Flo>" is very ugly imho, and the asymmetry with 
"setNeedsLayout" vs "minMaxKnown" is even worse. 


-- 
> Looking for a KDE-related EMail-Alias ? Get one at kdemail.net for FREE! <


More information about the Khtml-devel mailing list