[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    RE: KMessageBox::questionYesNo change
From:       David Faure <David.Faure () cramersystems ! com>
Date:       1999-11-29 8:54:44
[Download RAW message or body]




> -----Original Message-----
> From: antonio@max.tat.physik.uni-tuebingen.de
> [mailto:antonio@max.tat.physik.uni-tuebingen.de]On Behalf Of Antonio
> Larrosa
> Sent: Monday, November 29, 1999 7:02 AM
> To: kde-core-devel@kde.org
> Subject: Re: KMessageBox::questionYesNo change
> 
> 
> Stephan Kulow wrote:
> > 
> > Antonio Larrosa wrote:
> > >
> > > David Faure wrote:
> > > >
> > > > On Sun, Nov 28, 1999 at 11:47:13AM +0000, Stephan Kulow wrote:
> > > > > Antonio Larrosa wrote:
> > > > > >
> > > > > >
> > > > > > Opinions ?
> > > > >
> > > > > Another point: how would the message box look like if 
> I'm going to
> > > > > delete 6000 files?
> > > >
> > > > I thought of displaying the total number and the first 
> 10 items and "...".
> > > > Antonio, is this possible ?
> > > >
> > >
> > > Just make a QStringList with 11 QStrings , where the last one is
> > > "... + 5990 files" or something like that.
> > >
> > But this wouldn't help making it easier for programmers as 
> the actual
> > code in kdeui is only small compared to the one using it ;(
> > 
> 
> Do you think it would be better that questionYesNo 
> automatically "cut" the
> list, displaying only the first 10 strings and then the number ?
> This would need another parameter, for konqueror to use "files",
> korganizer to use "appointments", etc. as the string to 
> follow the numbers.
> 
> Anyway, I'm not too sure that this function should do that, 
> what happens if
> I just want to display 20 entries from a database to delete ?, should
> it show just the first 10 ? I don't think 20 strings aren't that much.

Well, the maximum number of entries before cutting the list
could be another parameter :-)

... this is where it really makes sense to have a separate method for 
this.


--
David Faure
faure@kde.org - KDE developer
david@mandrakesoft.com - Mandrake
david.faure@cramersystems.com - Cramer Systems

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic