Changeset View
Changeset View
Standalone View
Standalone View
src/dialogs/katedialogs.cpp
Show First 20 Lines • Show All 385 Lines • ▼ Show 20 Line(s) | 372 | { | |||
---|---|---|---|---|---|
386 | // after initial reload, connect the stuff for the changed () signal | 386 | // after initial reload, connect the stuff for the changed () signal | ||
387 | // | 387 | // | ||
388 | 388 | | |||
389 | connect(ui->cbTextSelectionMode, SIGNAL(currentIndexChanged(int)), this, SLOT(slotChanged())); | 389 | connect(ui->cbTextSelectionMode, SIGNAL(currentIndexChanged(int)), this, SLOT(slotChanged())); | ||
390 | connect(ui->chkSmartHome, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 390 | connect(ui->chkSmartHome, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | ||
391 | connect(ui->chkPagingMovesCursor, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 391 | connect(ui->chkPagingMovesCursor, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | ||
392 | connect(ui->sbAutoCenterCursor, SIGNAL(valueChanged(int)), this, SLOT(slotChanged())); | 392 | connect(ui->sbAutoCenterCursor, SIGNAL(valueChanged(int)), this, SLOT(slotChanged())); | ||
393 | connect(ui->chkScrollPastEnd, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 393 | connect(ui->chkScrollPastEnd, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | ||
394 | connect(ui->chkBackspaceRemoveComposed, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | ||||
394 | 395 | | |||
395 | layout->addWidget(newWidget); | 396 | layout->addWidget(newWidget); | ||
396 | setLayout(layout); | 397 | setLayout(layout); | ||
397 | } | 398 | } | ||
398 | 399 | | |||
399 | KateNavigationConfigTab::~KateNavigationConfigTab() | 400 | KateNavigationConfigTab::~KateNavigationConfigTab() | ||
400 | { | 401 | { | ||
401 | delete ui; | 402 | delete ui; | ||
Show All 14 Lines | 406 | { | |||
416 | 417 | | |||
417 | KateViewConfig::global()->setAutoCenterLines(qMax(0, ui->sbAutoCenterCursor->value())); | 418 | KateViewConfig::global()->setAutoCenterLines(qMax(0, ui->sbAutoCenterCursor->value())); | ||
418 | KateDocumentConfig::global()->setPageUpDownMovesCursor(ui->chkPagingMovesCursor->isChecked()); | 419 | KateDocumentConfig::global()->setPageUpDownMovesCursor(ui->chkPagingMovesCursor->isChecked()); | ||
419 | 420 | | |||
420 | KateViewConfig::global()->setPersistentSelection(ui->cbTextSelectionMode->currentIndex() == 1); | 421 | KateViewConfig::global()->setPersistentSelection(ui->cbTextSelectionMode->currentIndex() == 1); | ||
421 | 422 | | |||
422 | KateViewConfig::global()->setScrollPastEnd(ui->chkScrollPastEnd->isChecked()); | 423 | KateViewConfig::global()->setScrollPastEnd(ui->chkScrollPastEnd->isChecked()); | ||
423 | 424 | | |||
425 | KateViewConfig::global()->setBackspaceRemoveComposed(ui->chkBackspaceRemoveComposed->isChecked()); | ||||
426 | | ||||
424 | KateDocumentConfig::global()->configEnd(); | 427 | KateDocumentConfig::global()->configEnd(); | ||
425 | KateViewConfig::global()->configEnd(); | 428 | KateViewConfig::global()->configEnd(); | ||
426 | } | 429 | } | ||
427 | 430 | | |||
428 | void KateNavigationConfigTab::reload() | 431 | void KateNavigationConfigTab::reload() | ||
429 | { | 432 | { | ||
430 | ui->cbTextSelectionMode->setCurrentIndex(KateViewConfig::global()->persistentSelection() ? 1 : 0); | 433 | ui->cbTextSelectionMode->setCurrentIndex(KateViewConfig::global()->persistentSelection() ? 1 : 0); | ||
431 | 434 | | |||
432 | ui->chkSmartHome->setChecked(KateDocumentConfig::global()->smartHome()); | 435 | ui->chkSmartHome->setChecked(KateDocumentConfig::global()->smartHome()); | ||
433 | ui->chkPagingMovesCursor->setChecked(KateDocumentConfig::global()->pageUpDownMovesCursor()); | 436 | ui->chkPagingMovesCursor->setChecked(KateDocumentConfig::global()->pageUpDownMovesCursor()); | ||
434 | ui->sbAutoCenterCursor->setValue(KateViewConfig::global()->autoCenterLines()); | 437 | ui->sbAutoCenterCursor->setValue(KateViewConfig::global()->autoCenterLines()); | ||
435 | ui->chkScrollPastEnd->setChecked(KateViewConfig::global()->scrollPastEnd()); | 438 | ui->chkScrollPastEnd->setChecked(KateViewConfig::global()->scrollPastEnd()); | ||
439 | ui->chkBackspaceRemoveComposed->setChecked(KateViewConfig::global()->backspaceRemoveComposed()); | ||||
436 | } | 440 | } | ||
437 | 441 | | |||
438 | QString KateNavigationConfigTab::name() const | 442 | QString KateNavigationConfigTab::name() const | ||
439 | { | 443 | { | ||
440 | return i18n("Text Navigation"); | 444 | return i18n("Text Navigation"); | ||
441 | } | 445 | } | ||
442 | 446 | | |||
443 | //END KateNavigationConfigTab | 447 | //END KateNavigationConfigTab | ||
▲ Show 20 Lines • Show All 1016 Lines • Show Last 20 Lines |