src/hierarchyelement.h

changeset 1199
613a981223a6
parent 1198
f7151e4cd90f
equal deleted inserted replaced
1198:f7151e4cd90f 1199:613a981223a6
24 #include "mainwindow.h" 24 #include "mainwindow.h"
25 25
26 class LDDocument; 26 class LDDocument;
27 class DocumentManager; 27 class DocumentManager;
28 class PrimitiveManager; 28 class PrimitiveManager;
29 class Grid;
30 class MainWindow; 29 class MainWindow;
31 30
32 // 31 //
33 // Objects that are to take part in the MainWindow's hierarchy multiple-inherit from this class to get a pointer back 32 // Objects that are to take part in the MainWindow's hierarchy multiple-inherit from this class to get a pointer back
34 // to the MainWindow class along with a few useful pointers and methods. 33 // to the MainWindow class along with a few useful pointers and methods.
39 HierarchyElement (QObject* parent); 38 HierarchyElement (QObject* parent);
40 39
41 const QSet<LDObject*>& selectedObjects(); 40 const QSet<LDObject*>& selectedObjects();
42 LDDocument* currentDocument(); 41 LDDocument* currentDocument();
43 PrimitiveManager* primitives(); 42 PrimitiveManager* primitives();
44 Grid* grid() const;
45 43
46 // Format and print the given args to the message log. 44 // Format and print the given args to the message log.
47 template<typename... Args> 45 template<typename... Args>
48 void print(QString formatString, Args... args) 46 void print(QString formatString, Args... args)
49 { 47 {

mercurial