--- 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();