After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 767270 - preview: Rename to EvinceView
preview: Rename to EvinceView
Status: RESOLVED FIXED
Product: gnome-documents
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: GNOME documents maintainer(s)
GNOME documents maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-06-05 17:25 UTC by Bastien Nocera
Modified: 2016-06-06 18:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
preview: Rename to EvinceView (9.96 KB, patch)
2016-06-05 17:25 UTC, Bastien Nocera
committed Details | Review
windowMode: Rename PREVIEW window mode to PREVIEW_EV (11.70 KB, patch)
2016-06-05 17:44 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2016-06-05 17:25:34 UTC
.
Comment 1 Bastien Nocera 2016-06-05 17:25:39 UTC
Created attachment 329157 [details] [review]
preview: Rename to EvinceView

This makes it clearer that this view is type-specific, similarly to the
LOKView for LibreOffice.
Comment 2 Bastien Nocera 2016-06-05 17:28:21 UTC
The goal would be to push view (and type) specific queries into each view. For example, whether we can print, the default setup of the view widget, etc.
Comment 3 Bastien Nocera 2016-06-05 17:44:21 UTC
Created attachment 329159 [details] [review]
windowMode: Rename PREVIEW window mode to PREVIEW_EV
Comment 4 Bastien Nocera 2016-06-05 17:55:37 UTC
I can't find how to sort out the load-started/load-finished mechanism so that it's not as evince specific.

We might also want to have a genericview with a specific interface that the different views can implement.

(we managed to do a bit of cleanup when we added the lokview, but with the epub view, we'd get up to 3 views, and with similar requirements as the ev view, such as bookmarks, remembering the current progress, maybe printing)
Comment 5 Cosimo Cecchi 2016-06-06 17:36:13 UTC
Review of attachment 329157 [details] [review]:

Makes sense, thanks.
Comment 6 Cosimo Cecchi 2016-06-06 17:36:49 UTC
Review of attachment 329159 [details] [review]:

Yep
Comment 7 Cosimo Cecchi 2016-06-06 17:39:59 UTC
(In reply to Bastien Nocera from comment #4)
> I can't find how to sort out the load-started/load-finished mechanism so
> that it's not as evince specific.
> 
> We might also want to have a genericview with a specific interface that the
> different views can implement.

Yeah, IIRC the loader gives back an EvDocModel. I would need to take a look a bit more at the details of it, but a view abstraction would sounds good to me.
It would also give us the opportunity to deduplicate/cleanup the preview controls and toolbar code.
Comment 8 Bastien Nocera 2016-06-06 18:29:17 UTC
Attachment 329157 [details] pushed as 29c4a9f - preview: Rename to EvinceView
Attachment 329159 [details] pushed as e7b9159 - windowMode: Rename PREVIEW window mode to PREVIEW_EV