Warning, /graphics/gwenview/devdoc/OVERVIEW.md is written in an unsupported language. File is not indexed.

0001 # "Model"
0002 
0003 ## Document
0004 
0005 A document can hold either a raster image, an svg image or a video.
0006 
0007 The DocumentKind enum represents what kind of document it is.
0008 
0009 Holds the data, responsible for loading and saving.
0010 
0011 ## DocumentFactory
0012 
0013 Creates Document instances. Can cache them.
0014 
0015 # "View"
0016 
0017 ## DocumentView
0018 
0019 Can display a document. Depending on the document kind, the DocumentView will
0020 use a different adapter (see AbstractDocumentViewAdapter)
0021 
0022 ## DocumentViewContainer
0023 
0024 DocumentViewContainer is responsible for creating and deleting DocumentViews.
0025 
0026 Every time a new document is visible, a new DocumentView is created. When it is
0027 no longer visible the document view is deleted. This means when user goes from
0028 1.jpg to 2.jpg, the DocumentView displaying 1.jpg is deleted and a new one is
0029 created for 2.jpg.
0030 
0031 DocumentViewContainer is also responsible for laying out the different views
0032 when comparing them.