|
Lines 55-60
Link Here
|
| 55 |
#include <tqwhatsthis.h> |
55 |
#include <tqwhatsthis.h> |
| 56 |
#include <tqtabwidget.h> |
56 |
#include <tqtabwidget.h> |
| 57 |
#include <tqradiobutton.h> |
57 |
#include <tqradiobutton.h> |
|
|
58 |
#include <tqstyle.h> |
| 58 |
|
59 |
|
| 59 |
#include <klocale.h> |
60 |
#include <klocale.h> |
| 60 |
#include <kdialog.h> |
61 |
#include <kdialog.h> |
|
Lines 223-230
Link Here
|
| 223 |
" rapidly to different areas on the screen."); |
224 |
" rapidly to different areas on the screen."); |
| 224 |
TQWhatsThis::add( thresh, wtstr ); |
225 |
TQWhatsThis::add( thresh, wtstr ); |
| 225 |
|
226 |
|
| 226 |
// It would be nice if the user had a test field. |
|
|
| 227 |
// Selecting such values in milliseconds is not intuitive |
| 228 |
doubleClickInterval = new KIntNumInput(thresh, 2000, tab2); |
227 |
doubleClickInterval = new KIntNumInput(thresh, 2000, tab2); |
| 229 |
doubleClickInterval->setLabel(i18n("Double click interval:")); |
228 |
doubleClickInterval->setLabel(i18n("Double click interval:")); |
| 230 |
doubleClickInterval->setRange(0, 2000, 100); |
229 |
doubleClickInterval->setRange(0, 2000, 100); |
|
Lines 241-247
Link Here
|
| 241 |
" separate clicks."); |
240 |
" separate clicks."); |
| 242 |
TQWhatsThis::add( doubleClickInterval, wtstr ); |
241 |
TQWhatsThis::add( doubleClickInterval, wtstr ); |
| 243 |
|
242 |
|
| 244 |
lay->addSpacing(15); |
243 |
lay->addSpacing(10); |
|
|
244 |
|
| 245 |
doubleClickLabel = new TQLabel(i18n("Double-click on the image below to test your double-click interval:"), tab2); |
| 246 |
lay->addWidget(doubleClickLabel); |
| 247 |
wtstr = i18n("The image will change when your double-click" |
| 248 |
" test time is less than or equal to the interval you" |
| 249 |
" configured. When changing the interval, be sure to select" |
| 250 |
" the Apply button before testing. For example, the image" |
| 251 |
" will not change when you configure a double-click interval" |
| 252 |
" of 700 milliseconds and the time between two successive" |
| 253 |
" clicks on the image is 800 milliseconds, but the image will" |
| 254 |
" change when the time between clicks is 600 milliseconds." |
| 255 |
" The goal is to select a comfortable interval that you find" |
| 256 |
" is not too fast or slow."); |
| 257 |
TQWhatsThis::add( doubleClickLabel, wtstr ); |
| 258 |
doubleClickButton = new TQPushButton( tab2 ); |
| 259 |
doubleClickButton->setAcceptDrops( false ); |
| 260 |
// The images are 32x32. |
| 261 |
uint sz = style().pixelMetric( TQStyle::PM_ButtonMargin ) * 2 + 32; |
| 262 |
doubleClickButton->setFixedSize( sz, sz ); |
| 263 |
// Show the first image. |
| 264 |
doubleClickButton->setPixmap(locate("data", "kcminput/pics/doubleclick-1.png")); |
| 265 |
lay->addWidget(doubleClickButton); |
| 266 |
// Use the same What's This help for the image. |
| 267 |
TQWhatsThis::add( doubleClickButton, wtstr ); |
| 268 |
connect( doubleClickButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotDoubleClickButtonClicked()) ); |
| 269 |
// Calculate the time difference between clicks. |
| 270 |
|
| 271 |
// When the double-click time difference is <= doubleClickInterval then change the image. |
| 272 |
// doubleClickButton->setPixmap(locate("data", "kcminput/pics/doubleclick-2.png")); |
| 273 |
|
| 274 |
lay->addSpacing(10); |
| 245 |
|
275 |
|
| 246 |
dragStartTime = new KIntNumInput(doubleClickInterval, 2000, tab2); |
276 |
dragStartTime = new KIntNumInput(doubleClickInterval, 2000, tab2); |
| 247 |
dragStartTime->setLabel(i18n("Drag start time:")); |
277 |
dragStartTime->setLabel(i18n("Drag start time:")); |