aboutsummaryrefslogtreecommitdiff
path: root/src/sc_editor.c
AgeCommit message (Collapse)Author
2018-03-12Get rid of Paragraph->openThomas White
2018-03-11Rename some functions to make them uniqueThomas White
Makes things less confusing. Ulterior motive: makes Meson unity builds work.
2018-03-11Avoid crash when deleting in a non-text paragraphThomas White
Still need to implement it, though
2018-03-11Avoid creating extra ImageStoresThomas White
2018-03-11Fail cleanly if background pixbuf can't be loadedThomas White
2018-03-10Add Meson build systemThomas White
2018-03-07Remove len_bytes from add_runThomas White
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-23Add SCBlocks into editor at right levelThomas White
Another fix due to 6dedc1eb
2018-02-23Complain if frame can't be createdThomas White
2018-02-23Create frame at the right SC levelThomas White
Fix needed because of 6dedc1eb
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-29Fix incorrect handling when first frame is deletedThomas 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
2018-01-05GUI slide title addingThomas White
2018-01-04Copy and paste entire framesThomas White
2017-12-06Handle typing into other non-text paragraph typesThomas White
2017-12-04Go directly to PangoContextThomas White
2017-12-03Type "into" slide thumbnail without full rerenderThomas White
2017-11-30No text selection in paragraph highlight modeThomas White
2017-11-30SCEditor scaled view fixesThomas White
2017-11-29Scale the slide in the slide windowThomas White
2017-11-26Use config file for image store pathnameThomas White
2017-11-23Get rid of image size stuffThomas White
A completely unnecessary mechanism.
2017-11-19Remove unnecessary newline stuffThomas White
2017-11-19Don't try to split in a NULL frameThomas White
2017-11-19Set selection to NULL after importing image, because we just did full_rerender()Thomas White
2017-11-19Unset selection before creating a new frameThomas White
2017-11-19Dragging fixesThomas White
2017-11-12Debug stuff (revert me later)Thomas White
2017-10-23Ensure initialisation of cursor positionThomas White
2017-10-22Hold shift to create, resize or moveThomas White
2017-10-22Don't rewrap if paragraph is NULLThomas White
2017-10-22Rewrap the paragraph range in the correct frame (!)Thomas White
2017-10-17Fix button modifier masksThomas White
2017-10-08Delete text when inserting with block selectedThomas White
2017-09-24Avoid looking up cursor position in non-text paragraphThomas White
2017-09-24draw_caret(): Use pos_trail_to_offset()Thomas White
2017-09-09Remove fix_scblock_offsets, fix subsequent paragraphs straight awayThomas White
2017-08-13Only unset selection if it is activeThomas White
2017-08-13Move debugging routines upThomas White
2017-08-10Initial work on debuggerThomas White
2017-07-07WIPThomas White
2017-05-21Fix character offsetsThomas White
2017-05-20Set cursor position after block deleteThomas White
2017-03-27Delete selected textThomas White
2017-03-05Track whether selection is active or notThomas White