Mercurial > hg > svapp
comparison framework/MainWindowBase.cpp @ 79:b1a68403714b
* Further model lifecycle fixes
author | Chris Cannam |
---|---|
date | Thu, 24 Jan 2008 11:03:59 +0000 |
parents | 58bfaaed07ed |
children | 40d0c964ad24 |
comparison
equal
deleted
inserted
replaced
78:58bfaaed07ed | 79:b1a68403714b |
---|---|
1086 << "): Failed to open file for reading" << std::endl; | 1086 << "): Failed to open file for reading" << std::endl; |
1087 return FileOpenFailed; | 1087 return FileOpenFailed; |
1088 } | 1088 } |
1089 | 1089 |
1090 SVFileReader reader(m_document, callback, source.getLocation()); | 1090 SVFileReader reader(m_document, callback, source.getLocation()); |
1091 connect | |
1092 (&reader, SIGNAL(modelRegenerationFailed(QString, QString, QString)), | |
1093 this, SLOT(modelRegenerationFailed(QString, QString, QString))); | |
1094 connect | |
1095 (&reader, SIGNAL(modelRegenerationWarning(QString, QString, QString)), | |
1096 this, SLOT(modelRegenerationWarning(QString, QString, QString))); | |
1091 reader.setCurrentPane(pane); | 1097 reader.setCurrentPane(pane); |
1092 | 1098 |
1093 QXmlInputSource inputSource(&file); | 1099 QXmlInputSource inputSource(&file); |
1094 reader.parse(inputSource); | 1100 reader.parse(inputSource); |
1095 | 1101 |
1220 | 1226 |
1221 PaneCallback callback(this); | 1227 PaneCallback callback(this); |
1222 m_viewManager->clearSelections(); | 1228 m_viewManager->clearSelections(); |
1223 | 1229 |
1224 SVFileReader reader(m_document, callback, source.getLocation()); | 1230 SVFileReader reader(m_document, callback, source.getLocation()); |
1231 connect | |
1232 (&reader, SIGNAL(modelRegenerationFailed(QString, QString, QString)), | |
1233 this, SLOT(modelRegenerationFailed(QString, QString, QString))); | |
1234 connect | |
1235 (&reader, SIGNAL(modelRegenerationWarning(QString, QString, QString)), | |
1236 this, SLOT(modelRegenerationWarning(QString, QString, QString))); | |
1225 QXmlInputSource inputSource(&bzFile); | 1237 QXmlInputSource inputSource(&bzFile); |
1226 reader.parse(inputSource); | 1238 reader.parse(inputSource); |
1227 | 1239 |
1228 if (!reader.isOK()) { | 1240 if (!reader.isOK()) { |
1229 error = tr("SV XML file read error:\n%1").arg(reader.getErrorString()); | 1241 error = tr("SV XML file read error:\n%1").arg(reader.getErrorString()); |