Changeset View
Changeset View
Standalone View
Standalone View
src/view/kateview.cpp
Show First 20 Lines • Show All 1040 Lines • ▼ Show 20 Line(s) | 897 | { | |||
---|---|---|---|---|---|
1041 | a = ac->addAction(QStringLiteral("select_page_up")); | 1041 | a = ac->addAction(QStringLiteral("select_page_up")); | ||
1042 | a->setText(i18n("Select Page Up")); | 1042 | a->setText(i18n("Select Page Up")); | ||
1043 | ac->setDefaultShortcut(a, QKeySequence(Qt::SHIFT + Qt::Key_PageUp)); | 1043 | ac->setDefaultShortcut(a, QKeySequence(Qt::SHIFT + Qt::Key_PageUp)); | ||
1044 | connect(a, SIGNAL(triggered(bool)), SLOT(shiftPageUp())); | 1044 | connect(a, SIGNAL(triggered(bool)), SLOT(shiftPageUp())); | ||
1045 | m_editActions << a; | 1045 | m_editActions << a; | ||
1046 | 1046 | | |||
1047 | a = ac->addAction(QStringLiteral("move_top_of_view")); | 1047 | a = ac->addAction(QStringLiteral("move_top_of_view")); | ||
1048 | a->setText(i18n("Move to Top of View")); | 1048 | a->setText(i18n("Move to Top of View")); | ||
1049 | ac->setDefaultShortcut(a, QKeySequence(Qt::CTRL + Qt::Key_PageUp)); | 1049 | ac->setDefaultShortcut(a, QKeySequence(Qt::ALT + Qt::Key_Home)); | ||
1050 | connect(a, SIGNAL(triggered(bool)), SLOT(topOfView())); | 1050 | connect(a, SIGNAL(triggered(bool)), SLOT(topOfView())); | ||
1051 | m_editActions << a; | 1051 | m_editActions << a; | ||
1052 | 1052 | | |||
1053 | a = ac->addAction(QStringLiteral("select_top_of_view")); | 1053 | a = ac->addAction(QStringLiteral("select_top_of_view")); | ||
1054 | a->setText(i18n("Select to Top of View")); | 1054 | a->setText(i18n("Select to Top of View")); | ||
1055 | ac->setDefaultShortcut(a, QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_PageUp)); | 1055 | ac->setDefaultShortcut(a, QKeySequence(Qt::ALT + Qt::SHIFT + Qt::Key_Home)); | ||
1056 | connect(a, SIGNAL(triggered(bool)), SLOT(shiftTopOfView())); | 1056 | connect(a, SIGNAL(triggered(bool)), SLOT(shiftTopOfView())); | ||
1057 | m_editActions << a; | 1057 | m_editActions << a; | ||
1058 | 1058 | | |||
1059 | a = ac->addAction(QStringLiteral("scroll_page_down")); | 1059 | a = ac->addAction(QStringLiteral("scroll_page_down")); | ||
1060 | a->setText(i18n("Scroll Page Down")); | 1060 | a->setText(i18n("Scroll Page Down")); | ||
1061 | ac->setDefaultShortcuts(a, KStandardShortcut::next()); | 1061 | ac->setDefaultShortcuts(a, KStandardShortcut::next()); | ||
1062 | connect(a, SIGNAL(triggered(bool)), SLOT(pageDown())); | 1062 | connect(a, SIGNAL(triggered(bool)), SLOT(pageDown())); | ||
1063 | m_editActions << a; | 1063 | m_editActions << a; | ||
1064 | 1064 | | |||
1065 | a = ac->addAction(QStringLiteral("select_page_down")); | 1065 | a = ac->addAction(QStringLiteral("select_page_down")); | ||
1066 | a->setText(i18n("Select Page Down")); | 1066 | a->setText(i18n("Select Page Down")); | ||
1067 | ac->setDefaultShortcut(a, QKeySequence(Qt::SHIFT + Qt::Key_PageDown)); | 1067 | ac->setDefaultShortcut(a, QKeySequence(Qt::SHIFT + Qt::Key_PageDown)); | ||
1068 | connect(a, SIGNAL(triggered(bool)), SLOT(shiftPageDown())); | 1068 | connect(a, SIGNAL(triggered(bool)), SLOT(shiftPageDown())); | ||
1069 | m_editActions << a; | 1069 | m_editActions << a; | ||
1070 | 1070 | | |||
1071 | a = ac->addAction(QStringLiteral("move_bottom_of_view")); | 1071 | a = ac->addAction(QStringLiteral("move_bottom_of_view")); | ||
1072 | a->setText(i18n("Move to Bottom of View")); | 1072 | a->setText(i18n("Move to Bottom of View")); | ||
1073 | ac->setDefaultShortcut(a, QKeySequence(Qt::CTRL + Qt::Key_PageDown)); | 1073 | ac->setDefaultShortcut(a, QKeySequence(Qt::ALT + Qt::Key_End)); | ||
1074 | connect(a, SIGNAL(triggered(bool)), SLOT(bottomOfView())); | 1074 | connect(a, SIGNAL(triggered(bool)), SLOT(bottomOfView())); | ||
1075 | m_editActions << a; | 1075 | m_editActions << a; | ||
1076 | 1076 | | |||
1077 | a = ac->addAction(QStringLiteral("select_bottom_of_view")); | 1077 | a = ac->addAction(QStringLiteral("select_bottom_of_view")); | ||
1078 | a->setText(i18n("Select to Bottom of View")); | 1078 | a->setText(i18n("Select to Bottom of View")); | ||
1079 | ac->setDefaultShortcut(a, QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_PageDown)); | 1079 | ac->setDefaultShortcut(a, QKeySequence(Qt::ALT + Qt::SHIFT + Qt::Key_End)); | ||
1080 | connect(a, SIGNAL(triggered(bool)), SLOT(shiftBottomOfView())); | 1080 | connect(a, SIGNAL(triggered(bool)), SLOT(shiftBottomOfView())); | ||
1081 | m_editActions << a; | 1081 | m_editActions << a; | ||
1082 | 1082 | | |||
1083 | a = ac->addAction(QStringLiteral("to_matching_bracket")); | 1083 | a = ac->addAction(QStringLiteral("to_matching_bracket")); | ||
1084 | a->setText(i18n("Move to Matching Bracket")); | 1084 | a->setText(i18n("Move to Matching Bracket")); | ||
1085 | ac->setDefaultShortcut(a, QKeySequence(Qt::CTRL + Qt::Key_6)); | 1085 | ac->setDefaultShortcut(a, QKeySequence(Qt::CTRL + Qt::Key_6)); | ||
1086 | connect(a, SIGNAL(triggered(bool)), SLOT(toMatchingBracket())); | 1086 | connect(a, SIGNAL(triggered(bool)), SLOT(toMatchingBracket())); | ||
1087 | //m_editActions << a; | 1087 | //m_editActions << a; | ||
▲ Show 20 Lines • Show All 2786 Lines • Show Last 20 Lines |