comparison main/MainWindow.cpp @ 87:8944f3005a15

* Cancel when downloading file * Handle status codes (404 etc) * Add RemoteFile::isAvailable * Start on FileFinder for looking up files referred to in distant sessions
author Chris Cannam
date Wed, 10 Jan 2007 17:26:39 +0000
parents 6113fdda2737
children 51be0daa1386
comparison
equal deleted inserted replaced
86:6113fdda2737 87:8944f3005a15
2251 << location.toStdString() 2251 << location.toStdString()
2252 << "): Failed to open file for reading" << std::endl; 2252 << "): Failed to open file for reading" << std::endl;
2253 return FileOpenFailed; 2253 return FileOpenFailed;
2254 } 2254 }
2255 2255
2256 SVFileReader reader(m_document, callback); 2256 SVFileReader reader(m_document, callback, location);
2257 reader.setCurrentPane(pane); 2257 reader.setCurrentPane(pane);
2258 2258
2259 QXmlInputSource inputSource(&file); 2259 QXmlInputSource inputSource(&file);
2260 reader.parse(inputSource); 2260 reader.parse(inputSource);
2261 2261
2803 createDocument(); 2803 createDocument();
2804 2804
2805 PaneCallback callback(this); 2805 PaneCallback callback(this);
2806 m_viewManager->clearSelections(); 2806 m_viewManager->clearSelections();
2807 2807
2808 SVFileReader reader(m_document, callback); 2808 SVFileReader reader(m_document, callback, location);
2809 QXmlInputSource inputSource(&bzFile); 2809 QXmlInputSource inputSource(&bzFile);
2810 reader.parse(inputSource); 2810 reader.parse(inputSource);
2811 2811
2812 if (!reader.isOK()) { 2812 if (!reader.isOK()) {
2813 error = tr("SV XML file read error:\n%1").arg(reader.getErrorString()); 2813 error = tr("SV XML file read error:\n%1").arg(reader.getErrorString());