On Sun, 12 Jan 2020 02:49:15 -0800 (PST) Iwbnwif Yiw wrote:
IY> On Saturday, January 11, 2020 at 6:20:40 PM UTC, VZ wrote:
IY>
IY> For the curious, and to (maybe?) finish with this thread, the proposed
IY> > changes are at
IY> >
IY> >
https://github.com/wxWidgets/wxWidgets/pull/1705
IY> >
IY>
IY> Nice, and definitely feels quite 'wxGridey' :)
Thanks!
IY> I can only think of wxGridCellOverflowMode instead of wxGridFitMode as the
IY> function is really about how the grid treats overflowing content.
Yes, but...
IY> If that is too long or you are not happy clashing with previous naming,
... I indeed was afraid of confusion between SetCellOverflowMode() and the
existing SetCellOverflow(), so I didn't want to call it like this. Also,
SetCellOverflow(wxGridOverflowMode::Ellipsize()) doesn't seem logical: it
doesn't actually overflow if we ellipsize the string.
Maybe I'm overthinking this, and it would be definitely simpler to use a
single term ("overflow") for everything, but I just can't convince myself
that it's really clearer than using "fit".
IY> then I would suggest wxGridCellFitMode because it is the cells where the
IY> 'fitting' is taking place, rather than fitting the grid per se (e.g. into a
IY> sizer). This is also more consistent with functions such as SetCellFitMode
IY> which include 'cell' in the name.
I've intentionally avoided putting "Cell" in the enum name because in
theory we could use it for the headers (rows/labels) too. I don't need this
right now, but if we decide to add support for this later, having "Cell" in
the name would be unfortunate.
Thanks for the review!
VZ