Added 'Delete Line' menu entry in Kate. This resolves bug 1907.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 10 years ago
parent 592bebb509
commit b6fa8d4f2a

@ -1,5 +1,5 @@
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="KatePartView" version="40">
<kpartgui name="KatePartView" version="41">
<MenuBar>
<Menu name="file" noMerge="1"><text>&amp;File</text>
<Action name="file_save_as" group="save_merge" />
@ -68,6 +68,7 @@
<Action name="tools_lowercase" group="tools_operations" />
<Action name="tools_capitalize" group="tools_operations" />
<Separator group="tools_operations" />
<Action name="tools_delete_line" group="tools_operations" />
<Action name="tools_join_lines" group="tools_operations" />
<Action name="tools_apply_wordwrap" group="tools_operations" />
</Menu>

@ -1,5 +1,5 @@
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="KatePartView" version="40">
<kpartgui name="KatePartView" version="41">
<MenuBar>
<Menu name="file" noMerge="1"><text>&amp;File</text>
<Action name="file_save" group="save_merge" />
@ -83,6 +83,7 @@
<Action name="tools_lowercase" group="tools_operations" />
<Action name="tools_capitalize" group="tools_operations" />
<Separator group="tools_operations" />
<Action name="tools_delete_line" group="tools_operations" />
<Action name="tools_join_lines" group="tools_operations" />
<Action name="tools_apply_wordwrap" group="tools_operations" />
</Menu>

@ -284,8 +284,13 @@ void KateView::setupActions()
a->setWhatsThis( i18n("Capitalize the selection, or the word under the "
"cursor if no text is selected.") );
a = new TDEAction( i18n("Delete Line"), 0, TQT_TQOBJECT(this),
TQT_SLOT( killLine() ), ac, "tools_delete_line");
a->setWhatsThis(i18n("Use this to delete the current line."));
a = new TDEAction( i18n("Join Lines"), CTRL + Qt::Key_J, TQT_TQOBJECT(this),
TQT_SLOT( joinLines() ), ac, "tools_join_lines" );
a->setWhatsThis(i18n("Use this to join lines together."));
}
else
{
@ -756,8 +761,8 @@ void KateView::slotReadWriteChanged ()
l << "edit_replace" << "set_insert" << "tools_spelling" << "tools_indent"
<< "tools_unindent" << "tools_cleanIndent" << "tools_align" << "tools_comment"
<< "tools_uncomment" << "tools_uppercase" << "tools_lowercase"
<< "tools_capitalize" << "tools_join_lines" << "tools_apply_wordwrap"
<< "edit_undo" << "edit_redo" << "tools_spelling_from_cursor"
<< "tools_capitalize" << "tools_delete_line" << "tools_join_lines"
<< "tools_apply_wordwrap" << "edit_undo" << "edit_redo" << "tools_spelling_from_cursor"
<< "tools_spelling_selection";
TDEAction *a = 0;

Loading…
Cancel
Save