aboutsummaryrefslogtreecommitdiff
path: root/src/sc_editor.c
AgeCommit message (Collapse)Author
2019-02-19WIPThomas White
2018-11-10Mark debugging messages as non-translatableThomas White
2018-11-04Restore \slidenumberThomas White
2018-10-30Fix style warnings from static analyserThomas White
2018-10-20Remove legacy API cruftThomas White
2018-10-19Get rid of remaining rscblock/rbl/mrb stuffThomas White
Good riddance.
2018-10-17Switch to new Stylesheet typeThomas White
2018-05-01Get rid of stylesheet lists and add stylesheet change signalThomas White
We no longer have a need for more than one (since the callback stuff changed, see 61394e51), and removing it makes it much easier to hook up the stylesheet update code for the stylesheet editor.
2018-04-16Cut and paste stuffThomas White
Still a work in progress, but this is already more stable than before.
2018-04-15Internationalise all strings in source codeThomas White
2018-03-31Use GResource for sky.pngThomas White
2018-03-31Ensure cursor is somewhere before adding slideThomas White
2018-03-31Extra debuggingThomas White
2018-03-30Do all rendering one level higherThomas White
All rendering functions now render the contents of the given block, not the block itself. This makes everything consistent again with respect to where the frame SCBlock pointers point, even for the top frame.
2018-03-29Don't try to insert text if cursor_frame=NULLThomas White
2018-03-28Set frame->scblocks one level higher for top frame in SCEditorThomas White
This makes it behave the same as when a new frame is created by \f
2018-03-28Rearrange editability checks when inserting textThomas White
Makes "insert into non-text paragraph" work again
2018-03-27Avoid creating an empty run when importing an imageThomas White
2018-03-26Ensure no empty paragraphs before deletingThomas White
2018-03-25Shift+F7 show ONLY blocks in frameThomas White
Not the ones after it.
2018-03-22Shift+F7 show blocks in frame (not top of editor)Thomas 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-12Use edit_pos instead of cursor_{para,pos,trail}Thomas White
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