src/Main.cc

changeset 684
8a56b1d4d44d
parent 682
c382df477b0c
child 685
2e74d99ee7ec
equal deleted inserted replaced
683:b7460d693f63 684:8a56b1d4d44d
70 initColors(); 70 initColors();
71 MainWindow* win = new MainWindow; 71 MainWindow* win = new MainWindow;
72 newFile(); 72 newFile();
73 win->show(); 73 win->show();
74 74
75 /*
76 LDDocument* box = getDocument ("box.dat");
77 LDSubfile* ref = new LDSubfile;
78 ref->setFileInfo (box);
79 ref->setPosition (g_origin);
80 ref->setTransform (g_identity);
81 ref->setColor (maincolor);
82 assert (box != null);
83
84 for (int i = 0; i < 500; ++i)
85 {
86 QTime t0 = QTime::currentTime();
87 LDObjectList objs = ref->inlineContents (LDSubfile::DeepCacheInline | LDSubfile::RendererInline);
88 LDObject::Type type = static_cast<LDObject*> (ref)->getType();
89 dlog ("%1: %2ms (%3 objs)\n", i, t0.msecsTo (QTime::currentTime()), objs.size());
90
91 for (LDObject* obj : objs)
92 obj->deleteSelf();
93 }
94
95 ref->deleteSelf();
96 delete box;
97 */
98
99 // If this is the first start, get the user to configuration. Especially point 75 // If this is the first start, get the user to configuration. Especially point
100 // them to the profile tab, it's the most important form to fill in. 76 // them to the profile tab, it's the most important form to fill in.
101 if (firststart) 77 if (firststart)
102 { 78 {
103 (new ConfigDialog (ConfigDialog::ProfileTab))->exec(); 79 (new ConfigDialog (ConfigDialog::ProfileTab))->exec();

mercurial