aboutsummaryrefslogtreecommitdiff
path: root/src/frame.h
AgeCommit message (Collapse)Author
2018-03-25Remove merge_paragraphThomas White
Not needed any more
2018-03-23Add \ralignThomas White
2018-03-18Create a run when placing cursor in an empty paragraphThomas White
2018-03-18Disallow insertion and deletion unless scblock==rscblockThomas White
2018-03-18Set scblock/rscblock even for text paragraphsThomas White
It's needed as a hook if there are no runs
2018-03-12Use edit_pos instead of cursor_{para,pos,trail}Thomas White
2018-03-12Get rid of Paragraph->openThomas White
2018-03-12Add rscblocks for image and callback paragraphsThomas White
2018-03-10Show rscblocks in debuggerThomas White
2018-03-07Remove len_bytes from add_runThomas White
2018-03-07Don't create runs for \newparaThomas White
Removes a load more special cases
2018-03-03Remove text_run offsets and lengthsThomas White
Keeping these up to date was becoming a gigantic headache. So instead of storing the values, routines which are interested in these lengths and offsets can calculate them themselves.
2018-03-03Remove macro_real_block and friends, and delete text based on SCBlocks ↵Thomas White
instead of runs macro_real_block was a pain because it meant we needed to look somewhere else every time we needed the SCBlock for something. The new way is to have two SCBlocks for each run, one which is the block from the flow of the actual document (i.e. for blocks within macros, this is the macro_real_block, otherwise it's the same as before). The second block ("rscblock") is whichever run actually contains the text for the run. It might be from the document, within the macro definition or within the macro's "\contents".
2018-02-19Remove text run SCBlock offsetThomas White
The \newpara change (commit 7f2d0abd) removed the only situation when the start of a run might not coincide with the start of an SCBlock, or vice-versa (although not all SCBlocks correspond to text runs, obviously). Therefore, the offset is always zero and can be removed, simplifying the code.
2018-02-16Record whether or not macro is editableThomas White
2018-01-18Mass update of copyright datesThomas White
2018-01-18Store macro contents block in text runThomas White
We need it in order to find where to delete from, e.g. when paragraphs get united inside a slide title
2017-12-03Type "into" slide thumbnail without full rerenderThomas White
2017-11-27Use ImageStore to get image sizeThomas White
2017-11-23Get rid of image size stuffThomas White
A completely unnecessary mechanism.
2017-10-22Add show_edit_pos()Thomas White
2017-10-19Track the newlines at ends of paragraphs directlyThomas White
No more messing around searching for \n characters
2017-10-17Track newlines at end of paragraphsThomas White
2017-09-09Remove fix_scblock_offsets, fix subsequent paragraphs straight awayThomas White
2017-08-10Implement debuggerThomas White
2017-07-07WIPThomas White
2017-05-21Fix character offsetsThomas White
2017-03-27Delete selected textThomas White
2017-03-05Track whether selection is active or notThomas White
2017-01-25Implement text selectionThomas White
2017-01-13Add a load of debug magic keysThomas White
2016-11-13Refuse to edit inside macro blocksThomas White
2016-09-21Fix abuse of cursor_trailThomas White
cursor_pos is a byte offset, but cursor_trail is a number of characters. Therefore, adding them together is always wrong. This fixes problems when inserting multi-byte characters.
2016-07-07Allow typing into non-text paragraphsThomas White
2016-05-22Merge paragraphs (needs fixing)Thomas White
2016-05-17Advance slide from narrative windowThomas White
2016-05-02Paragraph spacingThomas White
2016-04-26Paste slideThomas White
2016-04-26Copy slideThomas White
2016-04-22Slide adding worksThomas White
2016-04-22Add SCBlock to image and callback paragraphsThomas White
2016-04-21More WIP on slide addingThomas White
2016-04-19WIP on slide addingThomas White
2016-04-19Clarify that cursor_pos is BYTE offset (not character)Thomas White
2016-03-31Make backspace work (pretty minimally)Thomas White
2016-03-29Enable text insertionThomas White
2016-03-29Highlight the current paragraphThomas White
Has the nice effect of showing which slide is selected.
2016-03-28Restore callback clicksThomas White
2016-03-28Cursor stuffThomas White
2016-03-28Restore imagesThomas White