19 #include <QApplication> |
19 #include <QApplication> |
20 #include "crashCatcher.h" |
20 #include "crashCatcher.h" |
21 #include "documentmanager.h" |
21 #include "documentmanager.h" |
22 #include "mainwindow.h" |
22 #include "mainwindow.h" |
23 #include "generics/reverse.h" |
23 #include "generics/reverse.h" |
|
24 #include "widgets/patterneditor.h" |
24 |
25 |
25 int main (int argc, char* argv[]) |
26 int main (int argc, char* argv[]) |
26 { |
27 { |
27 QApplication app (argc, argv); |
28 QApplication app (argc, argv); |
28 app.setOrganizationName (APPNAME); |
29 app.setOrganizationName (APPNAME); |
33 qRegisterMetaTypeStreamOperators<Libraries>("Libraries"); |
34 qRegisterMetaTypeStreamOperators<Libraries>("Libraries"); |
34 qRegisterMetaType<Vertex>("Vertex"); |
35 qRegisterMetaType<Vertex>("Vertex"); |
35 qRegisterMetaTypeStreamOperators<Vertex>("Vertex"); |
36 qRegisterMetaTypeStreamOperators<Vertex>("Vertex"); |
36 initializeCrashHandler(); |
37 initializeCrashHandler(); |
37 LDColor::initColors(); |
38 LDColor::initColors(); |
|
39 |
|
40 Pattern pattern {{200, 100}}; |
|
41 PatternEditor* editor = new PatternEditor {pattern, nullptr}; |
|
42 editor->setMinimumSize({320, 200}); |
|
43 editor->show(); |
|
44 return app.exec(); |
|
45 |
38 MainWindow* mainWindow = new MainWindow; |
46 MainWindow* mainWindow = new MainWindow; |
39 mainWindow->show(); |
47 mainWindow->show(); |
40 |
48 |
41 // Process the command line |
49 // Process the command line |
42 for (int arg = 1; arg < argc; ++arg) |
50 for (int arg = 1; arg < argc; ++arg) |