Changeset View
Changeset View
Standalone View
Standalone View
src/dialogs/katedialogs.cpp
Show First 20 Lines • Show All 670 Lines • ▼ Show 20 Line(s) | 642 | { | |||
---|---|---|---|---|---|
671 | connect(textareaUi->chkShowTabs, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 671 | connect(textareaUi->chkShowTabs, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | ||
672 | connect(textareaUi->chkShowSpaces, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 672 | connect(textareaUi->chkShowSpaces, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | ||
673 | connect(textareaUi->chkShowIndentationLines, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 673 | connect(textareaUi->chkShowIndentationLines, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | ||
674 | connect(textareaUi->sliSetMarkerSize, SIGNAL(valueChanged(int)), this, SLOT(slotChanged())); | 674 | connect(textareaUi->sliSetMarkerSize, SIGNAL(valueChanged(int)), this, SLOT(slotChanged())); | ||
675 | connect(textareaUi->chkShowWholeBracketExpression, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 675 | connect(textareaUi->chkShowWholeBracketExpression, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | ||
676 | connect(textareaUi->chkAnimateBracketMatching, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 676 | connect(textareaUi->chkAnimateBracketMatching, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | ||
677 | connect(textareaUi->chkFoldFirstLine, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 677 | connect(textareaUi->chkFoldFirstLine, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | ||
678 | connect(textareaUi->chkShowWordCount, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 678 | connect(textareaUi->chkShowWordCount, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | ||
679 | connect(textareaUi->chkShowLinesCount, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 679 | connect(textareaUi->chkShowLineCount, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | ||
680 | 680 | | |||
681 | connect(bordersUi->chkIconBorder, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 681 | connect(bordersUi->chkIconBorder, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | ||
682 | connect(bordersUi->chkScrollbarMarks, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 682 | connect(bordersUi->chkScrollbarMarks, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | ||
683 | connect(bordersUi->chkScrollbarPreview, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 683 | connect(bordersUi->chkScrollbarPreview, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | ||
684 | connect(bordersUi->chkScrollbarMiniMap, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 684 | connect(bordersUi->chkScrollbarMiniMap, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | ||
685 | connect(bordersUi->chkScrollbarMiniMapAll, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 685 | connect(bordersUi->chkScrollbarMiniMapAll, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | ||
686 | bordersUi->chkScrollbarMiniMapAll->hide(); // this is temporary until the feature is done | 686 | bordersUi->chkScrollbarMiniMapAll->hide(); // this is temporary until the feature is done | ||
687 | connect(bordersUi->spBoxMiniMapWidth, SIGNAL(valueChanged(int)), this, SLOT(slotChanged())); | 687 | connect(bordersUi->spBoxMiniMapWidth, SIGNAL(valueChanged(int)), this, SLOT(slotChanged())); | ||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 704 | { | |||
730 | KateViewConfig::global()->setShowScrollbars(bordersUi->cmbShowScrollbars->currentIndex()); | 730 | KateViewConfig::global()->setShowScrollbars(bordersUi->cmbShowScrollbars->currentIndex()); | ||
731 | 731 | | |||
732 | KateViewConfig::global()->setBookmarkSort(bordersUi->rbSortBookmarksByPosition->isChecked() ? 0 : 1); | 732 | KateViewConfig::global()->setBookmarkSort(bordersUi->rbSortBookmarksByPosition->isChecked() ? 0 : 1); | ||
733 | KateRendererConfig::global()->setShowIndentationLines(textareaUi->chkShowIndentationLines->isChecked()); | 733 | KateRendererConfig::global()->setShowIndentationLines(textareaUi->chkShowIndentationLines->isChecked()); | ||
734 | KateRendererConfig::global()->setShowWholeBracketExpression(textareaUi->chkShowWholeBracketExpression->isChecked()); | 734 | KateRendererConfig::global()->setShowWholeBracketExpression(textareaUi->chkShowWholeBracketExpression->isChecked()); | ||
735 | KateRendererConfig::global()->setAnimateBracketMatching(textareaUi->chkAnimateBracketMatching->isChecked()); | 735 | KateRendererConfig::global()->setAnimateBracketMatching(textareaUi->chkAnimateBracketMatching->isChecked()); | ||
736 | KateViewConfig::global()->setFoldFirstLine(textareaUi->chkFoldFirstLine->isChecked()); | 736 | KateViewConfig::global()->setFoldFirstLine(textareaUi->chkFoldFirstLine->isChecked()); | ||
737 | KateViewConfig::global()->setShowWordCount(textareaUi->chkShowWordCount->isChecked()); | 737 | KateViewConfig::global()->setShowWordCount(textareaUi->chkShowWordCount->isChecked()); | ||
738 | KateViewConfig::global()->setShowLinesCount(textareaUi->chkShowLinesCount->isChecked()); | 738 | KateViewConfig::global()->setShowLineCount(textareaUi->chkShowLineCount->isChecked()); | ||
739 | 739 | | |||
740 | KateRendererConfig::global()->configEnd(); | 740 | KateRendererConfig::global()->configEnd(); | ||
741 | KateViewConfig::global()->configEnd(); | 741 | KateViewConfig::global()->configEnd(); | ||
742 | } | 742 | } | ||
743 | 743 | | |||
744 | void KateViewDefaultsConfig::reload() | 744 | void KateViewDefaultsConfig::reload() | ||
745 | { | 745 | { | ||
746 | textareaUi->gbWordWrap->setChecked(KateViewConfig::global()->dynWordWrap()); | 746 | textareaUi->gbWordWrap->setChecked(KateViewConfig::global()->dynWordWrap()); | ||
Show All 15 Lines | |||||
762 | bordersUi->rbSortBookmarksByPosition->setChecked(KateViewConfig::global()->bookmarkSort() == 0); | 762 | bordersUi->rbSortBookmarksByPosition->setChecked(KateViewConfig::global()->bookmarkSort() == 0); | ||
763 | bordersUi->rbSortBookmarksByCreation->setChecked(KateViewConfig::global()->bookmarkSort() == 1); | 763 | bordersUi->rbSortBookmarksByCreation->setChecked(KateViewConfig::global()->bookmarkSort() == 1); | ||
764 | bordersUi->cmbShowScrollbars->setCurrentIndex(KateViewConfig::global()->showScrollbars()); | 764 | bordersUi->cmbShowScrollbars->setCurrentIndex(KateViewConfig::global()->showScrollbars()); | ||
765 | textareaUi->chkShowIndentationLines->setChecked(KateRendererConfig::global()->showIndentationLines()); | 765 | textareaUi->chkShowIndentationLines->setChecked(KateRendererConfig::global()->showIndentationLines()); | ||
766 | textareaUi->chkShowWholeBracketExpression->setChecked(KateRendererConfig::global()->showWholeBracketExpression()); | 766 | textareaUi->chkShowWholeBracketExpression->setChecked(KateRendererConfig::global()->showWholeBracketExpression()); | ||
767 | textareaUi->chkAnimateBracketMatching->setChecked(KateRendererConfig::global()->animateBracketMatching()); | 767 | textareaUi->chkAnimateBracketMatching->setChecked(KateRendererConfig::global()->animateBracketMatching()); | ||
768 | textareaUi->chkFoldFirstLine->setChecked(KateViewConfig::global()->foldFirstLine()); | 768 | textareaUi->chkFoldFirstLine->setChecked(KateViewConfig::global()->foldFirstLine()); | ||
769 | textareaUi->chkShowWordCount->setChecked(KateViewConfig::global()->showWordCount()); | 769 | textareaUi->chkShowWordCount->setChecked(KateViewConfig::global()->showWordCount()); | ||
770 | textareaUi->chkShowLinesCount->setChecked(KateViewConfig::global()->showLinesCount()); | 770 | textareaUi->chkShowLineCount->setChecked(KateViewConfig::global()->showLineCount()); | ||
771 | } | 771 | } | ||
772 | 772 | | |||
773 | void KateViewDefaultsConfig::reset() | 773 | void KateViewDefaultsConfig::reset() | ||
774 | { | 774 | { | ||
775 | ; | 775 | ; | ||
776 | } | 776 | } | ||
777 | 777 | | |||
778 | void KateViewDefaultsConfig::defaults() | 778 | void KateViewDefaultsConfig::defaults() | ||
▲ Show 20 Lines • Show All 525 Lines • Show Last 20 Lines |