diff -r a7f8ce5aa858 -r 9450ac3cd930 src/hierarchyelement.h --- a/src/hierarchyelement.h Tue Feb 16 16:28:44 2016 +0200 +++ b/src/hierarchyelement.h Tue Feb 16 19:59:43 2016 +0200 @@ -26,10 +26,11 @@ class LDDocument; class DocumentManager; class PrimitiveManager; +class Grid; // -// Objects that are to take part in the MainWindow's hierarchy multiple-inherit from this class to get a few useful -// pointer members. +// Objects that are to take part in the MainWindow's hierarchy multiple-inherit from this class to get a pointer back +// to the MainWindow class along with a few useful pointers and methods. // class HierarchyElement { @@ -40,6 +41,7 @@ LDDocument* currentDocument(); GuiUtilities* guiUtilities() const; PrimitiveManager* primitives(); + Grid* grid() const; protected: MainWindow* m_window;