Summary: | JJ: make zoom to page persistent | ||
---|---|---|---|
Product: | kword | Reporter: | Thomas Zander <zander> |
Component: | general | Assignee: | Thomas Zander <zander> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
new zoom mode class
second try third try. hopely the last. |
Description
Thomas Zander
2005-11-29 12:48:03 UTC
On Tuesday 29 November 2005 12:48, Thomas Zander wrote:
> Not sure where its being saved to the config.
KWDocument.cpp:435
config->writeEntry( "Zoom", m_zoom );
I guess we need to save two things: zoom type and zoom value.
Created attachment 13929 [details]
new zoom mode class
so, attached a patch which fixes the issue in kword. created a global class KoZoomMode which is in lib and can be used by all programs. it manages zoom modes like "Fit to Page" and converts between these names and enum values like ZOOM_PAGE. so far only kword uses it. patch is attached above Created attachment 13930 [details]
second try
Created attachment 13931 [details]
third try. hopely the last.
(For anyone looking at this BR: I was commenting the patches on IRC between every iteration. Last one looks fine, except for the inlined method calling i18n()). I have suggested to Johannes to get a SVN account so that he can commit his patch. David. zoom to page/width is saved correctly now |