Andreas Kling
|
f40d11f06d
LibGUI+WindowServer: Implement drag-to-select behavior in GTextEditor.
|
6 years ago |
Andreas Kling
|
6d172725c0
GTextEditor: Fix text_position_at() behavior when passed negative values.
|
6 years ago |
Andreas Kling
|
c4937f01d8
GTextEditor: Simplify delete_selection().
|
6 years ago |
Andreas Kling
|
5602f3be6c
GTextEditor: Ctrl+A should select the entire document.
|
6 years ago |
Andreas Kling
|
220c7b5f75
GTextEditor: Replace selection on input or Backspace/Delete.
|
6 years ago |
Andreas Kling
|
48d48679b0
GTextEditor: Work on cut/copy/paste operations.
|
6 years ago |
Andreas Kling
|
6576ac8332
GTextEditor: Add selected_text() function.
|
6 years ago |
Andreas Kling
|
b5521e1b0d
GTextEditor: Add basic selection support.
|
6 years ago |
Andreas Kling
|
27b0aab13e
GTextEditor: Unbreak forward merge with Delete.
|
6 years ago |
Andreas Kling
|
9867fe1025
GTextEditor: Add a ruler column that always shows the line numbers.
|
6 years ago |
Andreas Kling
|
f13c62f225
GTextEditor: Fix double effect of backspace/delete in some cases.
|
6 years ago |
Andreas Kling
|
f8b72ab3ab
GTextEditor: Add basic PageUp/PageDown navigation support.
|
6 years ago |
Andreas Kling
|
187d7cb400
GTextEditor: Add write_to_file(String path) :^)
|
6 years ago |
Andreas Kling
|
a5bc20c733
GTextEditor: Support starting with an empty document.
|
6 years ago |
Andreas Kling
|
43d56b6f3a
GTextEditor: Support splitting lines at the cursor with the Return key.
|
6 years ago |
Andreas Kling
|
a64b71fb3d
GTextEditor: Support forward delete/merge with the Delete key.
|
6 years ago |
Andreas Kling
|
38662f884d
GTextEditor: Merge with previous line if backspacing at column 0.
|
6 years ago |
Andreas Kling
|
6094f592a9
GTextEditor: More work on basic line editing. Insert/remove characters.
|
6 years ago |
Andreas Kling
|
8425ea971a
GTextEditor: Start working on editing, starting with inserting newlines.
|
6 years ago |
Andreas Kling
|
b4df33e453
GTextEditor: Only paint lines inside the dirty rect.
|
6 years ago |
Andreas Kling
|
ce35cddb1b
GTextEditor: Let's use a Vector for the line backing store.
|
6 years ago |
Andreas Kling
|
a21ecd440a
GTextEditor: Allow moving the cursor by clicking.
|
6 years ago |
Andreas Kling
|
9997992907
GTextEditor: Make the cursor invalidation work with the padding().
|
6 years ago |
Andreas Kling
|
60c1ab5fbe
GTextEditor: Scroll the cursor into view before updating it.
|
6 years ago |
Andreas Kling
|
9591acc212
GTextEditor: Remove some debug spam.
|
6 years ago |
Andreas Kling
|
77198ef735
GTextEditor: Simplify update_cursor().
|
6 years ago |
Andreas Kling
|
6a6bcc5daf
GTextEditor: Add Home/End and Ctrl+Home/Ctrl+End navigation shortcuts.
|
6 years ago |
Andreas Kling
|
1ac71d1fb1
GTextEditor: Improvements to cursor rendering.
|
6 years ago |
Andreas Kling
|
dff57909a7
GTextEditor: Only draw the cursor line background shade when focused.
|
6 years ago |
Andreas Kling
|
6db132069f
GTextEditor: Draw the cursor line in a slightly darker shade.
|
6 years ago |