Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slide position tracking for Reveal.js and refactor scrollbar synchronization #184

Merged
merged 9 commits into from Oct 22, 2014

Conversation

cloose
Copy link
Owner

@cloose cloose commented Oct 6, 2014

Some refactoring ideas for PR #181.

arBmind and others added 9 commits October 2, 2014 22:30
prevents too many slide switches
Moved the logic for the line to slide mapping from the MainWindow into the separate SlideLineMapping class and refactored the code to be more "Qt-like".

Refactoring of #181
Add lineForSlide() method that returns the line number for the passed
slide and use it in MainWindow.

In template_presentation.html we setup the slide separator to be
surrounded by empty lines. The logic in SlideLineMapping is adapted
accordingly and new unit test were added.
Add slideForLine() method to the SlideLineMapping class. It returns the
slide for the passed line number.
A ViewSynchronizer implementation is responsible to keep the Markdown editor and the HTML preview in
sync regarding its position. Currently there is just the RevealViewSynchronizer implementation for this base class.

Refactor the MainWindow class and move all code regarding the view synchronization to the RevealViewSynchronizer class.
Add implementation of ViewSynchronizer class that synchronizes the
Markdown editor with the HTML preview and move the code from MainWindow
class to HtmlViewSynchronizer class.
@cloose cloose changed the title WIP: Refactoring ideas for slide position tracking feature Slide position tracking for Reveal.js and refactor scrollbar synchronization Oct 12, 2014
@cloose cloose added this to the v0.11.0 milestone Oct 12, 2014
@cloose cloose self-assigned this Oct 12, 2014
@cloose cloose merged commit 3549e4c into develop Oct 22, 2014
@cloose cloose deleted the feature/slide_position_tracking branch October 22, 2014 09:41
@cloose cloose removed the ready label Oct 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants