kate:kate.git
8 years agounwrapLine implemented cursor moving, more complex than I would like it, this needs...
Christoph Cullmann [Sat, 27 Feb 2010 12:40:27 +0000 (13:40 +0100)]
unwrapLine implemented cursor moving, more complex than I would like it, this needs some more thoughts
how to break this up

8 years agoadd QVERIFY to assert right cursor movement in unit tests
Christoph Cullmann [Sat, 27 Feb 2010 12:11:26 +0000 (13:11 +0100)]
add QVERIFY to assert right cursor movement in unit tests

8 years agosupport wrapLine, simple too, only unwrapLine will be more complex, due to the moveme...
Christoph Cullmann [Sat, 27 Feb 2010 12:07:35 +0000 (13:07 +0100)]
support wrapLine, simple too, only unwrapLine will be more complex, due to the movement of cursors from on block to an other

8 years agofirst stuff to allow moving cursors, allow insertText and removeText to move cursors...
Christoph Cullmann [Sat, 27 Feb 2010 12:00:02 +0000 (13:00 +0100)]
first stuff to allow moving cursors, allow insertText and removeText to move cursors, looks like a charm

8 years agofix invalidation of ranges on clear, easy :P
Christoph Cullmann [Fri, 26 Feb 2010 18:35:45 +0000 (19:35 +0100)]
fix invalidation of ranges on clear, easy :P

8 years agoguard more stuff with asserts
Christoph Cullmann [Fri, 26 Feb 2010 18:29:24 +0000 (19:29 +0100)]
guard more stuff with asserts
cursors and ranges should now be deleted more safely :P

8 years agodelete ranges and invalid cursors, too
Christoph Cullmann [Fri, 26 Feb 2010 18:23:47 +0000 (19:23 +0100)]
delete ranges and invalid cursors, too

8 years agostarting to handle clear and deletion of buffer correct in respect to ranges and...
Christoph Cullmann [Fri, 26 Feb 2010 18:22:24 +0000 (19:22 +0100)]
starting to handle clear and deletion of buffer correct in respect to ranges and cursors

8 years agoforgot to clear cursors, bad...
Christoph Cullmann [Fri, 26 Feb 2010 18:00:37 +0000 (19:00 +0100)]
forgot to clear cursors, bad...

8 years agomove the code to merge and split blocks to the textblock itself, this is better struc...
Christoph Cullmann [Fri, 26 Feb 2010 17:56:55 +0000 (18:56 +0100)]
move the code to merge and split blocks to the textblock itself, this is better structured

8 years agoallow shrinking of blocks, too, now the blocks should only grow and shrink roughly...
Christoph Cullmann [Fri, 26 Feb 2010 17:29:43 +0000 (18:29 +0100)]
allow shrinking of blocks, too, now the blocks should only grow and shrink roughly between 1/2 and 2.5, I guess
nice
unit tests still not crash
what now is missing is moving cursors and the range stuff

8 years agofirst part of buffer balancing, split too large blocks, easy :)
Christoph Cullmann [Fri, 26 Feb 2010 17:19:17 +0000 (18:19 +0100)]
first part of buffer balancing, split too large blocks, easy :)

8 years agobefore I will try to do the whole cursor/range magic, the buffer must learn to balanc...
Christoph Cullmann [Thu, 25 Feb 2010 20:17:01 +0000 (21:17 +0100)]
before I will try to do the whole cursor/range magic, the buffer must learn to balance it's blocks
I aim to have some "not more than 2*wantedSize and not < 1/4*wantedSize algo

8 years agodesign decision: clever textranges aren't allowed to be empty, this would have intere...
Christoph Cullmann [Thu, 25 Feb 2010 11:04:10 +0000 (12:04 +0100)]
design decision: clever textranges aren't allowed to be empty, this would have interesting effects of ranges coming up out of the nowhere
on typing and text insertion
as soon as a range shrinks to size zero, it will be marked invalid, just like it would happen if you assign an invalid range to it.
both internal textcursors will then be marked invalid, too

8 years agoeven more range API
Christoph Cullmann [Thu, 25 Feb 2010 10:57:43 +0000 (11:57 +0100)]
even more range API
still need to think about how to handle the range in a correct way
cursors will stay valid even after clear, why shouldn't they.
but ranges should get invalid if they vanish, lets see how to handle that best

8 years agoensure a cursor is either associated with a range or not, it can't change after const...
Christoph Cullmann [Thu, 25 Feb 2010 10:46:41 +0000 (11:46 +0100)]
ensure a cursor is either associated with a range or not, it can't change after construction

8 years agomore code for clever text ranges, still no moving of neither ranges nor cursors imple...
Christoph Cullmann [Thu, 25 Feb 2010 10:39:46 +0000 (11:39 +0100)]
more code for clever text ranges, still no moving of neither ranges nor cursors implemented
need to think about how to handle deletion best

8 years agofix api, use reference to buffer, there can be no cursors or ranges without a buffer
Christoph Cullmann [Thu, 25 Feb 2010 10:21:57 +0000 (11:21 +0100)]
fix api, use reference to buffer, there can be no cursors or ranges without a buffer

8 years agobetter api documentation, rename cursor to toCursor
Christoph Cullmann [Thu, 25 Feb 2010 10:16:17 +0000 (11:16 +0100)]
better api documentation, rename cursor to toCursor

8 years agoremove one major design fault of the smartcursor: they should not inherit KTextEditor...
Christoph Cullmann [Wed, 24 Feb 2010 17:52:09 +0000 (18:52 +0100)]
remove one major design fault of the smartcursor: they should not inherit KTextEditor::Cursor, as they don't behave like normal cursors
otherwise you can pass a reference to a smartcursor to a function not coping with the fact that line/column can change on the fly!

8 years agoadd some cursor testing, nothing real atm
Christoph Cullmann [Wed, 24 Feb 2010 17:33:35 +0000 (18:33 +0100)]
add some cursor testing, nothing real atm

8 years agostart to implement the textcursor, add constructor + setPosition stuff
Christoph Cullmann [Wed, 24 Feb 2010 17:25:26 +0000 (18:25 +0100)]
start to implement the textcursor, add constructor + setPosition stuff
this is based on old smartcursor, therefor add rodda's copyright!

8 years agostorage for cursors and ranges
Christoph Cullmann [Wed, 24 Feb 2010 10:52:29 +0000 (11:52 +0100)]
storage for cursors and ranges
ranges will be just stored in the buffer
cursors are stored in buffer itself, if invalid, else in their belonging block

8 years agotest for unwrap of lines with text
Christoph Cullmann [Wed, 24 Feb 2010 09:45:46 +0000 (10:45 +0100)]
test for unwrap of lines with text

8 years agoMerge branch 'cullmann'
Christoph Cullmann [Wed, 24 Feb 2010 09:14:27 +0000 (10:14 +0100)]
Merge branch 'cullmann'

Conflicts:
playground/katetextbuffer.h
tests/CMakeLists.txt
tests/katetextbuffertest.cpp

8 years agofix wrapLine, add unit test
Christoph Cullmann [Wed, 24 Feb 2010 08:34:25 +0000 (09:34 +0100)]
fix wrapLine, add unit test

8 years agoadd api to get a real text line
Christoph Cullmann [Tue, 23 Feb 2010 23:19:42 +0000 (00:19 +0100)]
add api to get a real text line
still this needs some more thoughts, seems like text() is not accessible, bad

8 years agoinsertText + removeText do some stuff, seem to work :)
Christoph Cullmann [Tue, 23 Feb 2010 23:01:07 +0000 (00:01 +0100)]
insertText + removeText do some stuff, seem to work :)

8 years agowrap/unwrap kind of work
Christoph Cullmann [Tue, 23 Feb 2010 22:48:02 +0000 (23:48 +0100)]
wrap/unwrap kind of work

8 years agoaccessor to get full text of buffer, this will allow nice unit tests with asserts...
Christoph Cullmann [Tue, 23 Feb 2010 22:46:27 +0000 (23:46 +0100)]
accessor to get full text of buffer, this will allow nice unit tests with asserts for the the text that should be inside the buffer after editing actions happened

8 years agowrapLine does something
Christoph Cullmann [Tue, 23 Feb 2010 22:45:22 +0000 (23:45 +0100)]
wrapLine does something

8 years agohandle wrap/unwrap in buffer bit more, allow debug output of whole buffer
Christoph Cullmann [Tue, 23 Feb 2010 22:43:42 +0000 (23:43 +0100)]
handle wrap/unwrap in buffer bit more, allow debug output of whole buffer

8 years agomore api to pass editing down to the blocks
Christoph Cullmann [Tue, 23 Feb 2010 22:41:55 +0000 (23:41 +0100)]
more api to pass editing down to the blocks

8 years agomore handling for the editing actions implemented
Christoph Cullmann [Tue, 23 Feb 2010 22:40:15 +0000 (23:40 +0100)]
more handling for the editing actions implemented

8 years agomore api for buffer + block, introduce startLines + search function for block and...
Christoph Cullmann [Tue, 23 Feb 2010 22:37:22 +0000 (23:37 +0100)]
more api for buffer + block, introduce startLines + search function for block and fixup for block and fixup functions, spick them with asserts

8 years agoadding ignore file for editor backup files
Christoph Cullmann [Tue, 23 Feb 2010 22:35:23 +0000 (23:35 +0100)]
adding ignore file for editor backup files

8 years agoAdd wrapLineTest and insertRemoveTextTest
Dominik Haumann [Tue, 23 Feb 2010 00:42:18 +0000 (01:42 +0100)]
Add wrapLineTest and insertRemoveTextTest

- wrapLineTest() fails, as wrapping text is not implemented
- insert/remove test not implemented
- commented Kate::TextLine::text(), as the compiler chooses it over const overload

8 years agouse QTestLib for TextBufer Test
Dominik Haumann [Mon, 22 Feb 2010 23:47:54 +0000 (00:47 +0100)]
use QTestLib for TextBufer Test

8 years agominor api changes
Christoph Cullmann [Mon, 22 Feb 2010 22:16:56 +0000 (23:16 +0100)]
minor api changes

8 years agomore API
Christoph Cullmann [Mon, 22 Feb 2010 21:51:01 +0000 (22:51 +0100)]
more API

8 years agoadd textline, this time do it right, hide them in smartpointers per default => Kate...
Christoph Cullmann [Mon, 22 Feb 2010 21:38:29 +0000 (22:38 +0100)]
add textline, this time do it right, hide them in smartpointers per default => Kate::TextLine is already smart pointer of Kate::TextLineData

8 years agomore api idea, still no ideal
Christoph Cullmann [Mon, 22 Feb 2010 21:19:24 +0000 (22:19 +0100)]
more api idea, still no ideal

8 years agofix test compile
Christoph Cullmann [Mon, 22 Feb 2010 20:58:46 +0000 (21:58 +0100)]
fix test compile

8 years agomove api away from pointers, refs don't allow copying
Christoph Cullmann [Mon, 22 Feb 2010 20:53:52 +0000 (21:53 +0100)]
move api away from pointers, refs don't allow copying

8 years agostart to add api
Christoph Cullmann [Mon, 22 Feb 2010 20:30:31 +0000 (21:30 +0100)]
start to add api

8 years agoenforce test building
Christoph Cullmann [Mon, 22 Feb 2010 18:17:46 +0000 (19:17 +0100)]
enforce test building

8 years agorename from testing => playground, to avoid clash with Testing dir
Christoph Cullmann [Mon, 22 Feb 2010 18:14:57 +0000 (19:14 +0100)]
rename from testing => playground, to avoid clash with Testing dir

8 years agoconstruct buffer in test
Christoph Cullmann [Mon, 22 Feb 2010 18:10:57 +0000 (19:10 +0100)]
construct buffer in test

8 years agoadd simple unit test cmakefile.txt
Christoph Cullmann [Mon, 22 Feb 2010 18:08:34 +0000 (19:08 +0100)]
add simple unit test cmakefile.txt

8 years agoadd text range and cursor, subclasses of ktexteditor::cursor/range
Christoph Cullmann [Mon, 22 Feb 2010 17:57:46 +0000 (18:57 +0100)]
add text range and cursor, subclasses of ktexteditor::cursor/range

8 years agoadd dummy kate::textblock and initial .cpp files
Christoph Cullmann [Mon, 22 Feb 2010 17:39:16 +0000 (18:39 +0100)]
add dummy kate::textblock and initial .cpp files

8 years agocommiting empty kate::textbuffer + CMakelists.txt
Christoph Cullmann [Mon, 22 Feb 2010 17:20:45 +0000 (18:20 +0100)]
commiting empty kate::textbuffer + CMakelists.txt
playing with git :)

8 years agoAdd some changes, comments.
Christoph Cullmann [Mon, 22 Feb 2010 17:01:58 +0000 (18:01 +0100)]
Add some changes, comments.

8 years agoInitial CMakeLists.txt for later united Kate git repository.
Christoph Cullmann [Mon, 22 Feb 2010 17:01:17 +0000 (18:01 +0100)]
Initial CMakeLists.txt for later united Kate git repository.