From 726914203f683f94afd5e72ee4dbbd139329c940 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Fri, 9 Nov 2018 09:18:30 +0100 Subject: Add README to src/ui/view --- src/ui/view/README | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/ui/view/README (limited to 'src') diff --git a/src/ui/view/README b/src/ui/view/README new file mode 100644 index 000000000..dad4e7242 --- /dev/null +++ b/src/ui/view/README @@ -0,0 +1,41 @@ + +This directory contains the class Inkscape::UI::View::View and related items. + +View is an abstract base class for all UI document views. Documents +can be displayed by more than one window, each having its own view +(e.g. zoom level, selection, etc.). + +View is the parent class for: + +* SPDocument +* SVGView + +SPViewWidget is the "parent" for: + +* SPDocumentWidget + +(It was also parent for SPSVGViewWidget but that has been replaced by +SVGViewWidget which is derived, rather uselessly, from Gtk::Scrollbar). + +SPViewWidget contains a GtkEventBox and holds a View. + +SPDesktopWidget contains a + VBox + HBox + GtkGrid + GtkPaned + GtkGrid + SPCanvas + Plus lots of other junk. + +SVGViewWidget contains a + GtkScrolledWindow + SPCanvas. + +To do: + +* Convert everything to C++. +* Evaluate moving SPDesktopWidget down the widget stack. + It doesn't use the EventBox of SPViewWidget! +* Get rid of SPViewWidget, integrating it directly into a + new C++ Desktop widget. -- cgit v1.2.3