From kde-look Tue Sep 03 19:04:34 2002 From: Rik Hemsley Date: Tue, 03 Sep 2002 19:04:34 +0000 To: kde-look Subject: Re: on value edit fields (i.e. the too small buttons inside) X-MARC-Message: https://marc.info/?l=kde-look&m=103107992405035 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 #if Steven D'Aprano > Sliders should *always* display values, at least start and end > values. That's just common sense, and I'm amazed that anyone would > forget that. Thankfully we use KNumInput and its derived classes for most numeric input situations in KDE, so making the adjustment of adding the min and max values is not too difficult. Currently KNumInput holds a QSpinBox and a QSlider, arranged thus: _____ |_____| |-------------<==>---| I like Steven's idea of having the numbers under the slider and enlarging the buttons in the spinbox. So, what we are looking at is this. _____ | | |-------------<==>---| |_____| min max There are two difficult things that need to be done: 1. Adjust KNumInput::layout(). This is not an entirely trivial function. It handles the case of stacking more than one KNumInput widget vertically, ensuring the contained widgets line up in a pleasant way. The number labels can be set with KLocale::formatNumber, which should handle localisation nicely. 2. Handle 'reverse' layout (for right-to-left locales.) I don't know what is involved here. Perhaps nothing. Anyone else know ? 3. Go through all KDE code looking for use of KNumInput (derived classes) and have a look at the on-screen appearance of the dialogs that use these. This will be necessary to avoid problems such as KControl modules growing extremely tall. The new layout will be approximately twice as high as the original, even larger when larger fonts than the defaults are used. Why am I writing this email instead of implementing the proposal ? I'm really busy with non-KDE stuff, sorry :( Rik - -- http://rikkus.info -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9dQfE6rehpl6X9l0RAnTOAKCKDObK+pluEdcSnWP9BAGg2hlcnQCfSOTx XU64exZ24LhxE1C3buVqnNo= =V62r -----END PGP SIGNATURE-----