Re: A model/buffer for GtkEntry



On Thu, Mar 26, 2009 at 5:38 PM, Stef Walter <stef-
> That may be the case, and I thought about this myself. One thing in
> favor of doing the conversion of 'real text' -> 'display text' in the
> model is that it allows subclassed models to do some quite interesting
> stuff in the conversion.
>
> For example, you could do what cell phones do as you enter a phone
> number: format it automatically as the user enters it. I haven't
> explored this idea properly though, but I believe it would be good to
> consider while implementing this model infrastructure for GtkEntry.

Once you talk about moving this kind of templated input into the
model, you also need to move cursor movement and selection handling to
the model, and then the model gets a lot more complicated.


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