17 Nov
2010
17 Nov
'10
12:25 p.m.
-----Urspr?ngliche Nachricht----- An: dillo-dev@dillo.org; Von: corvid <corvid@lavabit.com> Gesendet: Do 11.11.2010 02:43 Betreff: Re: [Dillo-dev] patch: text-indent
Johannes wrote:
We probabely want some isBlockLevelWidget() function...
Using Widget::Flags, perhaps, or would you think it best generally to save the flags for state that changes during a widget's life?
I was just thinking about something simple like bool isBlockLevelWidget(Widget *w) { return widget->instanceOf (Textblock::CLASS_ID) || widget->instanceOf (Table::CLASS_ID) ... ); } in textblock.cc to explain to the code reader why we are testing for exactly these widget types. Plus we might have to reuse at some point. Cheers, Johannes