diff -r 4a89dd47535f -r 271d1da66b7e src/gui_actions.cpp --- a/src/gui_actions.cpp Sat Jul 13 17:35:38 2013 +0300 +++ b/src/gui_actions.cpp Sat Jul 13 19:02:48 2013 +0300 @@ -56,27 +56,27 @@ newFile(); - const LDBFC::Type BFCType = - ui.rb_bfc_ccw->isChecked() ? LDBFC::CertifyCCW : - ui.rb_bfc_cw->isChecked() ? LDBFC::CertifyCW : - LDBFC::NoCertify; + const LDBFCObject::Type BFCType = + ui.rb_bfc_ccw->isChecked() ? LDBFCObject::CertifyCCW : + ui.rb_bfc_cw->isChecked() ? LDBFCObject::CertifyCW : + LDBFCObject::NoCertify; const str license = ui.rb_license_ca->isChecked() ? CALicense : ui.rb_license_nonca->isChecked() ? NonCALicense : ""; - *g_curfile << new LDComment (ui.le_title->text()); - *g_curfile << new LDComment ("Name: .dat" ); - *g_curfile << new LDComment (fmt ("Author: %1", ui.le_author->text())); - *g_curfile << new LDComment (fmt ("!LDRAW_ORG Unofficial_Part")); + *g_curfile << new LDCommentObject (ui.le_title->text()); + *g_curfile << new LDCommentObject ("Name: .dat" ); + *g_curfile << new LDCommentObject (fmt ("Author: %1", ui.le_author->text())); + *g_curfile << new LDCommentObject (fmt ("!LDRAW_ORG Unofficial_Part")); if (license != "") - *g_curfile << new LDComment (license); + *g_curfile << new LDCommentObject (license); - *g_curfile << new LDEmpty; - *g_curfile << new LDBFC (BFCType); - *g_curfile << new LDEmpty; + *g_curfile << new LDEmptyObject; + *g_curfile << new LDBFCObject (BFCType); + *g_curfile << new LDEmptyObject; g_win->fullRefresh(); } @@ -244,10 +244,10 @@ str refName; if (type == LDObject::Subfile) { - refName = static_cast (g_win->sel()[0])->fileInfo()->name(); + refName = static_cast (g_win->sel()[0])->fileInfo()->name(); for (LDObject* obj : g_win->sel()) - if (static_cast (obj)->fileInfo()->name() != refName) + if (static_cast (obj)->fileInfo()->name() != refName) return; } @@ -256,7 +256,7 @@ if (obj->getType() != type) continue; - if (type == LDObject::Subfile && static_cast (obj)->fileInfo()->name() != refName) + if (type == LDObject::Subfile && static_cast (obj)->fileInfo()->name() != refName) continue; g_win->sel() << obj;