Changeset View
Changeset View
Standalone View
Standalone View
src/dialogs/katedialogs.cpp
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 488 | { | |||
---|---|---|---|---|---|
496 | KateDocumentConfig::global()->configStart(); | 496 | KateDocumentConfig::global()->configStart(); | ||
497 | 497 | | |||
498 | KateDocumentConfig::global()->setWordWrapAt(ui->sbWordWrap->value()); | 498 | KateDocumentConfig::global()->setWordWrapAt(ui->sbWordWrap->value()); | ||
499 | KateDocumentConfig::global()->setWordWrap(ui->chkStaticWordWrap->isChecked()); | 499 | KateDocumentConfig::global()->setWordWrap(ui->chkStaticWordWrap->isChecked()); | ||
500 | 500 | | |||
501 | KateRendererConfig::global()->setWordWrapMarker(ui->chkShowStaticWordWrapMarker->isChecked()); | 501 | KateRendererConfig::global()->setWordWrapMarker(ui->chkShowStaticWordWrapMarker->isChecked()); | ||
502 | 502 | | |||
503 | KateViewConfig::global()->setAutoBrackets(ui->chkAutoBrackets->isChecked()); | 503 | KateViewConfig::global()->setAutoBrackets(ui->chkAutoBrackets->isChecked()); | ||
504 | // TODO Add QLineEdit or similar to the config page, with this dummy you have "true" or "false" as chars set :-) | ||||
505 | KateViewConfig::global()->setValue(KateViewConfig::CharsToEncloseSelection, ui->chkAutoBrackets->isChecked()); | ||||
504 | KateViewConfig::global()->setSmartCopyCut(ui->chkSmartCopyCut->isChecked()); | 506 | KateViewConfig::global()->setSmartCopyCut(ui->chkSmartCopyCut->isChecked()); | ||
505 | KateViewConfig::global()->setMousePasteAtCursorPosition(ui->chkMousePasteAtCursorPosition->isChecked()); | 507 | KateViewConfig::global()->setMousePasteAtCursorPosition(ui->chkMousePasteAtCursorPosition->isChecked()); | ||
506 | 508 | | |||
507 | KateViewConfig::global()->setInputModeRaw(ui->cmbInputMode->currentData().toInt()); | 509 | KateViewConfig::global()->setInputModeRaw(ui->cmbInputMode->currentData().toInt()); | ||
508 | 510 | | |||
509 | KateDocumentConfig::global()->configEnd(); | 511 | KateDocumentConfig::global()->configEnd(); | ||
510 | KateViewConfig::global()->configEnd(); | 512 | KateViewConfig::global()->configEnd(); | ||
511 | } | 513 | } | ||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |