Changeset View
Changeset View
Standalone View
Standalone View
src/view/kateview.h
Show First 20 Lines • Show All 439 Lines • ▼ Show 20 Line(s) | 432 | public Q_SLOTS: | |||
---|---|---|---|---|---|
440 | void killLine(); | 440 | void killLine(); | ||
441 | 441 | | |||
442 | /** | 442 | /** | ||
443 | * Sets the cursor to the previous editing position in this document | 443 | * Sets the cursor to the previous editing position in this document | ||
444 | */ | 444 | */ | ||
445 | void goToPreviousEditingPosition(); | 445 | void goToPreviousEditingPosition(); | ||
446 | 446 | | |||
447 | /** | 447 | /** | ||
448 | * Sets the cursor to the next editing position in this document | 448 | * Sets the cursor to the next editing position in this document. | ||
449 | */ | 449 | */ | ||
450 | void goToNextEditingPosition(); | 450 | void goToNextEditingPosition(); | ||
451 | 451 | | |||
452 | /** | 452 | /** | ||
453 | Uppercases selected text, or an alphabetic character next to the cursor. | 453 | * Uppercases selected text, or an alphabetic character next to the cursor. | ||
454 | */ | 454 | */ | ||
455 | void uppercase(); | 455 | void uppercase(); | ||
456 | | ||||
456 | /** | 457 | /** | ||
457 | Lowercases selected text, or an alphabetic character next to the cursor. | 458 | * Lowercases selected text, or an alphabetic character next to the cursor. | ||
458 | */ | 459 | */ | ||
459 | void lowercase(); | 460 | void lowercase(); | ||
461 | | ||||
460 | /** | 462 | /** | ||
461 | Capitalizes the selection (makes each word start with an uppercase) or | 463 | * Capitalizes the selection (makes each word start with an uppercase) or | ||
462 | the word under the cursor. | 464 | * the word under the cursor. | ||
463 | */ | 465 | */ | ||
464 | void capitalize(); | 466 | void capitalize(); | ||
467 | | ||||
465 | /** | 468 | /** | ||
466 | Joins lines touched by the selection | 469 | * Joins lines touched by the selection. | ||
467 | */ | 470 | */ | ||
468 | void joinLines(); | 471 | void joinLines(); | ||
469 | 472 | | |||
470 | // Note - the following functions simply forward to KateViewInternal | 473 | /** | ||
474 | * Performs a line break (insert a new line char) at current cursor position | ||||
475 | * and indent the new line. | ||||
476 | * | ||||
477 | * Most work is done by @c KTextEditor::DocumentPrivate::newLine and | ||||
478 | * @c KateAutoIndent::userTypedChar | ||||
479 | * @see KTextEditor::DocumentPrivate::newLine, KateAutoIndent | ||||
480 | */ | ||||
471 | void keyReturn(); | 481 | void keyReturn(); | ||
482 | | ||||
483 | /** | ||||
484 | * Performs a line break (insert a new line char) at current cursor position | ||||
485 | * but keep all leading non word char as indent for the new line. | ||||
486 | */ | ||||
472 | void smartNewline(); | 487 | void smartNewline(); | ||
488 | | ||||
489 | /** | ||||
490 | * Insert a tabulator char at current cursor position. | ||||
491 | */ | ||||
473 | void backspace(); | 492 | void backspace(); | ||
493 | | ||||
494 | /** | ||||
495 | * Remove the word left from the current cursor position including all leading | ||||
496 | * space. | ||||
497 | * @see KateViewInternal::wordPrev | ||||
498 | */ | ||||
474 | void deleteWordLeft(); | 499 | void deleteWordLeft(); | ||
500 | | ||||
501 | /** | ||||
502 | * Remove the current selection. When nothing is selected the char right | ||||
503 | * from the current cursor position is removed. | ||||
504 | * @see KTextEditor::DocumentPrivate::del | ||||
505 | */ | ||||
475 | void keyDelete(); | 506 | void keyDelete(); | ||
507 | | ||||
508 | /** | ||||
509 | * When the char right from the current cursor position is a space is all | ||||
510 | * space to the right removed. Otherwise is the word to the right including | ||||
511 | * all trialling space removed. | ||||
512 | * @see KateViewInternal::wordNext | ||||
513 | */ | ||||
476 | void deleteWordRight(); | 514 | void deleteWordRight(); | ||
515 | | ||||
516 | /** | ||||
517 | * Transpose the characters left and right from the current cursor position | ||||
518 | * and move the cursor one position to the right. If the char right to the | ||||
519 | * current cursor position is a new line char, nothing is done. | ||||
520 | * @see KTextEditor::DocumentPrivate::transpose | ||||
521 | */ | ||||
477 | void transpose(); | 522 | void transpose(); | ||
478 | void cursorLeft(); | 523 | void cursorLeft(); | ||
479 | void shiftCursorLeft(); | 524 | void shiftCursorLeft(); | ||
480 | void cursorRight(); | 525 | void cursorRight(); | ||
481 | void shiftCursorRight(); | 526 | void shiftCursorRight(); | ||
482 | void wordLeft(); | 527 | void wordLeft(); | ||
483 | void shiftWordLeft(); | 528 | void shiftWordLeft(); | ||
484 | void wordRight(); | 529 | void wordRight(); | ||
Show All 19 Lines | |||||
504 | void top(); | 549 | void top(); | ||
505 | void shiftTop(); | 550 | void shiftTop(); | ||
506 | void bottom(); | 551 | void bottom(); | ||
507 | void shiftBottom(); | 552 | void shiftBottom(); | ||
508 | void toMatchingBracket(); | 553 | void toMatchingBracket(); | ||
509 | void shiftToMatchingBracket(); | 554 | void shiftToMatchingBracket(); | ||
510 | void toPrevModifiedLine(); | 555 | void toPrevModifiedLine(); | ||
511 | void toNextModifiedLine(); | 556 | void toNextModifiedLine(); | ||
557 | /** | ||||
558 | * Insert a tabulator char at current cursor position. | ||||
559 | */ | ||||
512 | void insertTab(); | 560 | void insertTab(); | ||
513 | 561 | | |||
514 | void gotoLine(); | 562 | void gotoLine(); | ||
515 | 563 | | |||
516 | // config file / session management functions | 564 | // config file / session management functions | ||
517 | public: | 565 | public: | ||
518 | /** | 566 | /** | ||
519 | * Read session settings from the given \p config. | 567 | * Read session settings from the given \p config. | ||
▲ Show 20 Lines • Show All 505 Lines • Show Last 20 Lines |