bool CVX_Sim::LoadVXAFile(std::string filename, std::string* pRetMsg) { CXML_Rip XML; if (!XML.LoadFile(filename, pRetMsg)) return false; ReadVXA(&XML, pRetMsg); return true; }
bool CDM_FEA::LoadFile(std::string filename) { CXML_Rip XML; if (!XML.LoadFile(filename)) return false; ReadXML(&XML); return true; }
void VoxCad::Paste(void) { if (CurViewMode == VM_EDITLAYER){ CVXC_Structure Layer; CXML_Rip LocXML; QClipboard *clipboard = QApplication::clipboard(); std::string Text = clipboard->text().toStdString(); LocXML.fromXMLText(&Text); Layer.ReadXML(&LocXML); MainObj.ImposeLayerCur(&Layer); ReqGLUpdateAll(); } }
void VoxCad::Copy(void) { if (CurViewMode == VM_EDITLAYER){ CVXC_Structure Layer; MainObj.ExtractCurLayer(&Layer); CXML_Rip LocXML; Layer.WriteXML(&LocXML); std::string Text; LocXML.toXMLText(&Text); QClipboard *clipboard = QApplication::clipboard(); clipboard->setText(Text.c_str()); } }
void CDM_FEA::SaveFile(std::string filename) { CXML_Rip XML; WriteXML(&XML); XML.SaveFile(filename); }
void CVX_SimGA::SaveResultFile(std::string filename) { CXML_Rip XML; WriteResultFile(&XML); XML.SaveFile(filename); }
void CVX_Sim::SaveVXAFile(std::string filename) { CXML_Rip XML; WriteVXA(&XML); XML.SaveFile(filename); }