src/hierarchyelement.h

changeset 1380
bc799b965418
parent 1328
d68d1ce89d05
child 1435
b8dc3620e5db
equal deleted inserted replaced
1379:35811339ea72 1380:bc799b965418
18 18
19 #pragma once 19 #pragma once
20 #include <QObject> 20 #include <QObject>
21 #include "main.h" 21 #include "main.h"
22 #include "configuration.h" 22 #include "configuration.h"
23 #include "messageLog.h"
24 #include "mainwindow.h" 23 #include "mainwindow.h"
25 24
26 class GuiUtilities; 25 class GuiUtilities;
27 class LDDocument; 26 class LDDocument;
28 class DocumentManager; 27 class DocumentManager;
46 Grid* grid() const; 45 Grid* grid() const;
47 46
48 // Utility functions 47 // Utility functions
49 QString preferredLicenseText() const; 48 QString preferredLicenseText() const;
50 49
51 // Format and print the given args to the message log.
52 template<typename... Args>
53 void print(QString formatString, Args... args)
54 {
55 formatHelper(formatString, args...);
56 m_window->addMessage(formatString);
57 }
58
59 protected: 50 protected:
60 MainWindow* m_window; 51 MainWindow* m_window;
61 DocumentManager* m_documents; 52 DocumentManager* m_documents;
62 }; 53 };

mercurial