src/mainwindow.h

changeset 1159
6ad8cdcd88d9
parent 1157
1d6d244bdabd
child 1160
2cf16ba952bf
--- a/src/mainwindow.h	Thu Feb 23 20:06:22 2017 +0200
+++ b/src/mainwindow.h	Thu Feb 23 20:18:39 2017 +0200
@@ -36,6 +36,8 @@
 class PrimitiveManager;
 class Grid;
 class MathFunctions;
+class DocumentManager;
+class LDDocument;
 
 class ColorToolbarItem
 {
@@ -118,6 +120,13 @@
 	static QPixmap getIcon(QString iconName);
 	static class QSettings* makeSettings(QObject* parent = nullptr);
 
+	template<typename... Args>
+	void print(QString formatString, Args... args)
+	{
+		formatHelper(formatString, args...);
+		addMessage(formatString);
+	}
+
 signals:
 	void gridChanged();
 

mercurial