gui.cpp

changeset 4
758302636564
parent 3
2b78cf8634c3
child 5
727e02d6b87a
equal deleted inserted replaced
3:2b78cf8634c3 4:758302636564
164 closeModel (); 164 closeModel ();
165 newModel (); 165 newModel ();
166 } 166 }
167 167
168 void LDForgeWindow::slot_open () { 168 void LDForgeWindow::slot_open () {
169 str name = QFileDialog::getOpenFileName (this, "Open file", 169 str name = QFileDialog::getOpenFileName (this, "Open File",
170 "", "LDraw files (*.dat *.ldr)").toStdString().c_str(); 170 "", "LDraw files (*.dat *.ldr)").toStdString().c_str();
171 171
172 if (g_LoadedFiles.size()) 172 if (g_LoadedFiles.size())
173 closeModel (); 173 closeModel ();
174 174
175 IO_ParseLDFile (name); 175 IO_OpenLDrawFile (name);
176 } 176 }
177 177
178 void LDForgeWindow::slot_save () { 178 void LDForgeWindow::slot_save () {
179 printf ("save file\n"); 179 printf ("save file\n");
180 } 180 }

mercurial