Changeset View
Changeset View
Standalone View
Standalone View
src/view/kateview.cpp
Show First 20 Lines • Show All 693 Lines • ▼ Show 20 Line(s) | 470 | { | |||
---|---|---|---|---|---|
694 | ac->addAction(QStringLiteral("set_insert"), a); | 694 | ac->addAction(QStringLiteral("set_insert"), a); | ||
695 | ac->setDefaultShortcut(a, QKeySequence(Qt::Key_Insert)); | 695 | ac->setDefaultShortcut(a, QKeySequence(Qt::Key_Insert)); | ||
696 | a->setWhatsThis(i18n("Choose whether you want the text you type to be inserted or to overwrite existing text.")); | 696 | a->setWhatsThis(i18n("Choose whether you want the text you type to be inserted or to overwrite existing text.")); | ||
697 | connect(a, SIGNAL(triggered(bool)), SLOT(toggleInsert())); | 697 | connect(a, SIGNAL(triggered(bool)), SLOT(toggleInsert())); | ||
698 | 698 | | |||
699 | KToggleAction *toggleAction; | 699 | KToggleAction *toggleAction; | ||
700 | a = m_toggleDynWrap = toggleAction = new KToggleAction(i18n("&Dynamic Word Wrap"), this); | 700 | a = m_toggleDynWrap = toggleAction = new KToggleAction(i18n("&Dynamic Word Wrap"), this); | ||
701 | ac->addAction(QStringLiteral("view_dynamic_word_wrap"), a); | 701 | ac->addAction(QStringLiteral("view_dynamic_word_wrap"), a); | ||
702 | ac->setDefaultShortcut(a, QKeySequence(Qt::Key_F10)); | 702 | ac->setDefaultShortcut(a, QKeySequence(Qt::Key_F10)); | ||
gregormi: todo: Remove F10 | |||||
703 | a->setWhatsThis(i18n("If this option is checked, the text lines will be wrapped at the view border on the screen.<br /><br />" | 703 | a->setWhatsThis(i18n("If this option is checked, the text lines will be wrapped at the view border on the screen.<br /><br />" | ||
704 | "This is only a view option, meaning the document will not changed.")); | 704 | "This is only a view option, meaning the document will not changed.")); | ||
705 | connect(a, SIGNAL(triggered(bool)), SLOT(toggleDynWordWrap())); | 705 | connect(a, SIGNAL(triggered(bool)), SLOT(toggleDynWordWrap())); | ||
706 | 706 | | |||
707 | a = m_setDynWrapIndicators = new KSelectAction(i18n("Dynamic Word Wrap Indicators"), this); | 707 | a = m_setDynWrapIndicators = new KSelectAction(i18n("Dynamic Word Wrap Indicators"), this); | ||
708 | ac->addAction(QStringLiteral("dynamic_word_wrap_indicators"), a); | 708 | ac->addAction(QStringLiteral("dynamic_word_wrap_indicators"), a); | ||
709 | a->setWhatsThis(i18n("Choose when the Dynamic Word Wrap Indicators should be displayed")); | 709 | a->setWhatsThis(i18n("Choose when the Dynamic Word Wrap Indicators should be displayed")); | ||
710 | connect(m_setDynWrapIndicators, SIGNAL(triggered(int)), this, SLOT(setDynWrapIndicators(int))); | 710 | connect(m_setDynWrapIndicators, SIGNAL(triggered(int)), this, SLOT(setDynWrapIndicators(int))); | ||
Show All 15 Lines | |||||
726 | a = toggleAction = m_toggleFoldingMarkers = new KToggleAction(i18n("Show Folding &Markers"), this); | 726 | a = toggleAction = m_toggleFoldingMarkers = new KToggleAction(i18n("Show Folding &Markers"), this); | ||
727 | ac->addAction(QStringLiteral("view_folding_markers"), a); | 727 | ac->addAction(QStringLiteral("view_folding_markers"), a); | ||
728 | ac->setDefaultShortcut(a, QKeySequence(Qt::Key_F9)); | 728 | ac->setDefaultShortcut(a, QKeySequence(Qt::Key_F9)); | ||
729 | a->setWhatsThis(i18n("You can choose if the codefolding marks should be shown, if codefolding is possible.")); | 729 | a->setWhatsThis(i18n("You can choose if the codefolding marks should be shown, if codefolding is possible.")); | ||
730 | connect(a, SIGNAL(triggered(bool)), SLOT(toggleFoldingMarkers())); | 730 | connect(a, SIGNAL(triggered(bool)), SLOT(toggleFoldingMarkers())); | ||
731 | 731 | | |||
732 | a = m_toggleIconBar = toggleAction = new KToggleAction(i18n("Show &Icon Border"), this); | 732 | a = m_toggleIconBar = toggleAction = new KToggleAction(i18n("Show &Icon Border"), this); | ||
733 | ac->addAction(QStringLiteral("view_border"), a); | 733 | ac->addAction(QStringLiteral("view_border"), a); | ||
734 | ac->setDefaultShortcut(a, QKeySequence(Qt::Key_F6)); | | |||
735 | a->setWhatsThis(i18n("Show/hide the icon border.<br /><br />The icon border shows bookmark symbols, for instance.")); | 734 | a->setWhatsThis(i18n("Show/hide the icon border.<br /><br />The icon border shows bookmark symbols, for instance.")); | ||
736 | connect(a, SIGNAL(triggered(bool)), SLOT(toggleIconBorder())); | 735 | connect(a, SIGNAL(triggered(bool)), SLOT(toggleIconBorder())); | ||
737 | 736 | | |||
738 | a = toggleAction = m_toggleLineNumbers = new KToggleAction(i18n("Show &Line Numbers"), this); | 737 | a = toggleAction = m_toggleLineNumbers = new KToggleAction(i18n("Show &Line Numbers"), this); | ||
739 | ac->addAction(QStringLiteral("view_line_numbers"), a); | 738 | ac->addAction(QStringLiteral("view_line_numbers"), a); | ||
740 | ac->setDefaultShortcut(a, QKeySequence(Qt::Key_F11)); | 739 | ac->setDefaultShortcut(a, QKeySequence(Qt::Key_F11)); | ||
gregormi: todo: remove F11 | |||||
741 | a->setWhatsThis(i18n("Show/hide the line numbers on the left hand side of the view.")); | 740 | a->setWhatsThis(i18n("Show/hide the line numbers on the left hand side of the view.")); | ||
742 | connect(a, SIGNAL(triggered(bool)), SLOT(toggleLineNumbersOn())); | 741 | connect(a, SIGNAL(triggered(bool)), SLOT(toggleLineNumbersOn())); | ||
743 | 742 | | |||
744 | a = m_toggleScrollBarMarks = toggleAction = new KToggleAction(i18n("Show Scroll&bar Marks"), this); | 743 | a = m_toggleScrollBarMarks = toggleAction = new KToggleAction(i18n("Show Scroll&bar Marks"), this); | ||
745 | ac->addAction(QStringLiteral("view_scrollbar_marks"), a); | 744 | ac->addAction(QStringLiteral("view_scrollbar_marks"), a); | ||
746 | a->setWhatsThis(i18n("Show/hide the marks on the vertical scrollbar.<br /><br />The marks show bookmarks, for instance.")); | 745 | a->setWhatsThis(i18n("Show/hide the marks on the vertical scrollbar.<br /><br />The marks show bookmarks, for instance.")); | ||
747 | connect(a, SIGNAL(triggered(bool)), SLOT(toggleScrollBarMarks())); | 746 | connect(a, SIGNAL(triggered(bool)), SLOT(toggleScrollBarMarks())); | ||
748 | 747 | | |||
▲ Show 20 Lines • Show All 3193 Lines • Show Last 20 Lines |
todo: Remove F10