Andreas Kling
00a91bb02c
LibGUI: Consolidate and simplify commands used for insertion/removal
...
This patch adds InsertTextCommand and RemoveTextCommand.
These two commands are used to ... insert and remove text :^)
The bulk of the logic is moved into GTextDocument, and we now use the
command's redo() virtual to perform the action. Or in other words, when
you type into the text editor, we create an InsertTextCommand, push it
onto the undo stack, and call redo() on it immediately. That's how the
text gets inserted.
This makes it quite easy to implement more commands, as there is no
distinction between a redo() and the initial application.
2019-11-30 16:54:05 +01:00
..
2019-09-22 00:25:25 +02:00
2019-09-29 20:37:02 +02:00
2019-09-21 18:13:17 +02:00
2019-09-22 00:31:54 +02:00
2019-10-22 21:38:04 +02:00
2019-10-22 21:38:04 +02:00
2019-10-08 21:45:29 +02:00
2019-10-06 22:00:04 +02:00
2019-07-09 22:10:03 +02:00
2019-07-09 22:10:03 +02:00
2019-11-08 11:40:25 +01:00
2019-10-25 15:29:19 +02:00
2019-11-29 15:46:38 +01:00
2019-09-21 19:37:38 +02:00
2019-07-18 10:18:16 +02:00
2019-09-21 18:58:48 +02:00
2019-11-08 11:40:25 +01:00
2019-09-14 09:19:05 +02:00
2019-09-21 19:28:28 +02:00
2019-09-22 00:31:54 +02:00
2019-11-30 15:36:17 +01:00
2019-11-30 15:36:17 +01:00
2019-11-08 11:40:25 +01:00
2019-09-06 15:36:54 +02:00
2019-09-22 20:50:39 +02:00
2019-09-22 20:50:39 +02:00
2019-11-20 23:23:57 +01:00
2019-11-20 23:23:57 +01:00
2019-07-28 10:24:58 +02:00
2019-10-26 21:42:34 +02:00
2019-10-26 21:42:34 +02:00
2019-09-17 09:26:10 +02:00
2019-09-17 09:26:10 +02:00
2019-08-29 19:30:48 +02:00
2019-09-06 15:36:54 +02:00
2019-07-18 10:18:16 +02:00
2019-09-21 19:21:36 +02:00
2019-07-18 10:18:16 +02:00
2019-09-21 16:13:33 +02:00
2019-07-11 15:49:47 +02:00
2019-07-18 10:18:16 +02:00
2019-09-22 00:25:25 +02:00
2019-09-22 00:31:54 +02:00
2019-09-15 15:47:26 +02:00
2019-09-21 15:47:58 +02:00
2019-10-29 16:36:50 +01:00
2019-08-14 20:30:18 +02:00
2019-09-16 07:49:43 +02:00
2019-09-21 15:25:08 +02:00
2019-11-05 20:41:27 +01:00
2019-11-05 20:41:27 +01:00
2019-10-02 20:24:29 +02:00
2019-10-02 20:24:29 +02:00
2019-10-22 21:38:04 +02:00
2019-08-05 18:32:04 +02:00
2019-11-08 11:40:25 +01:00
2019-09-13 21:29:47 +02:00
2019-11-08 11:40:25 +01:00
2019-07-24 09:13:06 +02:00
2019-11-08 11:40:25 +01:00
2019-09-06 15:36:54 +02:00
2019-09-22 00:31:54 +02:00
2019-09-30 17:20:53 +02:00
2019-09-07 21:39:44 +02:00
2019-10-22 21:38:04 +02:00
2019-09-22 00:31:54 +02:00
2019-11-09 11:56:28 +01:00
2019-09-07 19:33:58 +02:00
2019-09-17 09:26:10 +02:00
2019-07-18 10:18:16 +02:00
2019-08-14 20:31:46 +02:00
2019-09-21 16:31:12 +02:00
2019-11-10 12:57:37 +01:00
2019-11-10 12:57:37 +01:00
2019-07-20 22:39:24 +02:00
2019-09-21 15:46:47 +02:00
2019-10-09 21:16:49 +02:00
2019-10-09 21:16:49 +02:00
2019-11-10 12:57:37 +01:00
2019-11-10 12:57:37 +01:00
2019-09-06 15:36:54 +02:00
2019-11-10 12:57:37 +01:00
2019-11-10 12:57:37 +01:00
2019-11-27 19:04:35 +01:00
2019-08-11 18:11:25 +02:00
2019-09-21 19:28:28 +02:00
2019-09-22 00:31:54 +02:00
2019-09-04 18:53:46 +02:00
2019-09-21 16:11:02 +02:00
2019-09-22 00:31:54 +02:00
2019-10-24 09:57:27 +02:00
2019-10-24 09:57:27 +02:00
2019-11-20 22:27:12 +01:00
2019-11-20 22:19:30 +01:00
2019-10-23 19:51:09 +02:00
2019-09-22 00:31:54 +02:00
2019-10-28 19:08:48 +01:00
2019-11-30 16:54:05 +01:00
2019-11-30 16:54:05 +01:00
2019-11-30 16:54:05 +01:00
2019-11-30 16:54:05 +01:00
2019-11-03 09:57:14 +01:00
2019-11-03 09:57:14 +01:00
2019-11-10 22:49:02 +01:00
2019-11-09 00:41:00 +01:00
2019-11-11 22:20:02 +01:00
2019-09-21 16:06:43 +02:00
2019-11-30 15:36:17 +01:00
2019-11-30 15:36:17 +01:00
2019-10-29 16:36:50 +01:00
2019-10-22 21:37:11 +02:00
2019-11-11 22:20:02 +01:00
2019-11-11 22:20:02 +01:00
2019-11-08 11:40:25 +01:00
2019-10-26 12:28:54 +02:00
2019-11-08 11:40:25 +01:00
2019-11-26 19:58:25 +01:00
2019-11-11 13:13:08 +01:00
2019-11-03 09:26:22 +01:00
2019-11-30 15:36:17 +01:00