Changeset View
Changeset View
Standalone View
Standalone View
src/view/kateview.cpp
Context not available. | |||||
670 | a->setWhatsThis(i18n("This command allows switching an existing selection between a block of text and a continuous (line-based) selection.")); | 670 | a->setWhatsThis(i18n("This command allows switching an existing selection between a block of text and a continuous (line-based) selection.")); | ||
---|---|---|---|---|---|
671 | connect(a, SIGNAL(triggered(bool)), SLOT(toggleBlockSelection())); | 671 | connect(a, SIGNAL(triggered(bool)), SLOT(toggleBlockSelection())); | ||
672 | 672 | | |||
673 | a = ac->addAction(QStringLiteral("selection_to_block"), this); | 673 | a = m_toggleToAlignedBlock = new KToggleAction(QStringLiteral("selection_to_block"), this); | ||
674 | ac->addAction(QStringLiteral("set_verticalSelect2"), a); | ||||
674 | a->setText(i18n("Selection to aligned block")); | 675 | a->setText(i18n("Selection to aligned block")); | ||
675 | ac->setDefaultShortcut(a, QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_B)); | 676 | ac->setDefaultShortcut(a, QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_B)); | ||
676 | a->setWhatsThis(i18n("Transforms a selection to an aligned selection block, filling up lines with space characters as needed.")); | 677 | a->setWhatsThis(i18n("Transforms a selection to an aligned selection block, filling up lines with space characters as needed.")); | ||
Context not available. | |||||
2288 | return false; | 2289 | return false; | ||
2289 | } | 2290 | } | ||
2290 | 2291 | | |||
2292 | bool KTextEditor::ViewPrivate::blockSelection2() const | ||||
2293 | { | ||||
2294 | return m_toggleToAlignedBlock->isChecked(); | ||||
2295 | } | ||||
2296 | | ||||
2291 | bool KTextEditor::ViewPrivate::setBlockSelection(bool /*on*/) | 2297 | bool KTextEditor::ViewPrivate::setBlockSelection(bool /*on*/) | ||
2292 | { | 2298 | { | ||
2293 | return toAlignedBlock(false); | 2299 | return toAlignedBlock(false); | ||
Context not available. |