src/mainwindow.h

changeset 1159
6ad8cdcd88d9
parent 1157
1d6d244bdabd
child 1160
2cf16ba952bf
equal deleted inserted replaced
1158:35ceb74fe53e 1159:6ad8cdcd88d9
34 class Toolset; 34 class Toolset;
35 class Configuration; 35 class Configuration;
36 class PrimitiveManager; 36 class PrimitiveManager;
37 class Grid; 37 class Grid;
38 class MathFunctions; 38 class MathFunctions;
39 class DocumentManager;
40 class LDDocument;
39 41
40 class ColorToolbarItem 42 class ColorToolbarItem
41 { 43 {
42 public: 44 public:
43 ColorToolbarItem (LDColor color = LDColor{}, QToolButton* toolButton = nullptr); 45 ColorToolbarItem (LDColor color = LDColor{}, QToolButton* toolButton = nullptr);
116 void updateTitle(); 118 void updateTitle();
117 119
118 static QPixmap getIcon(QString iconName); 120 static QPixmap getIcon(QString iconName);
119 static class QSettings* makeSettings(QObject* parent = nullptr); 121 static class QSettings* makeSettings(QObject* parent = nullptr);
120 122
123 template<typename... Args>
124 void print(QString formatString, Args... args)
125 {
126 formatHelper(formatString, args...);
127 addMessage(formatString);
128 }
129
121 signals: 130 signals:
122 void gridChanged(); 131 void gridChanged();
123 132
124 public slots: 133 public slots:
125 void actionTriggered(); 134 void actionTriggered();

mercurial