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 }; |