24 class MainWindow; |
24 class MainWindow; |
25 class GuiUtilities; |
25 class GuiUtilities; |
26 class LDDocument; |
26 class LDDocument; |
27 class DocumentManager; |
27 class DocumentManager; |
28 class PrimitiveManager; |
28 class PrimitiveManager; |
|
29 class Grid; |
29 |
30 |
30 // |
31 // |
31 // Objects that are to take part in the MainWindow's hierarchy multiple-inherit from this class to get a few useful |
32 // Objects that are to take part in the MainWindow's hierarchy multiple-inherit from this class to get a pointer back |
32 // pointer members. |
33 // to the MainWindow class along with a few useful pointers and methods. |
33 // |
34 // |
34 class HierarchyElement |
35 class HierarchyElement |
35 { |
36 { |
36 public: |
37 public: |
37 HierarchyElement (QObject* parent); |
38 HierarchyElement (QObject* parent); |
38 |
39 |
39 const LDObjectList& selectedObjects(); |
40 const LDObjectList& selectedObjects(); |
40 LDDocument* currentDocument(); |
41 LDDocument* currentDocument(); |
41 GuiUtilities* guiUtilities() const; |
42 GuiUtilities* guiUtilities() const; |
42 PrimitiveManager* primitives(); |
43 PrimitiveManager* primitives(); |
|
44 Grid* grid() const; |
43 |
45 |
44 protected: |
46 protected: |
45 MainWindow* m_window; |
47 MainWindow* m_window; |
46 DocumentManager* m_documents; |
48 DocumentManager* m_documents; |
47 Configuration* m_config; |
49 Configuration* m_config; |