cloose / CuteMarkEd

Qt Markdown Editor
http://cloose.github.io/CuteMarkEd
Other
1.48k stars 319 forks source link

remember paper size and orientation on PDF export dialog during session #298

Closed dbelyaev closed 8 years ago

dbelyaev commented 8 years ago

During working session (from starting application and closing it down) every time call to "Export to PDF" will show dialog window with changes done last time it was executed (orientation and paper size will be the same as in previous execution).

dbelyaev commented 8 years ago

it implements functionality requested in issue #217

cloose commented 8 years ago

Hi @dbelyaev,

Thank you as always! But I guess #217 asks for a more permanent solution. I mean CuteMarkEd should remember the setup across application launches.

My idea was to store and retrieve the settings from the Option class. Or since this class is getting rather big already, maybe we should introduce a separate export to pdf option class.

The ExportPdfDialog would then use this option class to read or store the settings on open and close.

What do you think?

Christian

dbelyaev commented 8 years ago

I am closing this pull request because functionality (save\load paper size&orientation between sessions as @cloose suggested) is implemented in PR #330, making this PR obsolete.