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