MpcImportWindow.cpp   MpcImportWindow.cpp 
skipping to change at line 713 skipping to change at line 713
queryProgressBar->setRange(0, 0); queryProgressBar->setRange(0, 0);
queryProgressBar->setFormat("Searching..."); queryProgressBar->setFormat("Searching...");
//TODO: Better handling of the interface //TODO: Better handling of the interface
enableInterface(false); enableInterface(false);
ui->labelQueryMessage->setVisible(false); ui->labelQueryMessage->setVisible(false);
startCountdown(); startCountdown();
ui->pushButtonAbortQuery->setVisible(true); ui->pushButtonAbortQuery->setVisible(true);
sendQueryToUrl(QUrl("http://stellarium.org/mpc-mpeph")); //sendQueryToUrl(QUrl("http://stellarium.org/mpc-mpeph"));
//sendQueryToUrl(QUrl("http://scully.cfa.harvard.edu/cgi-bin/mpeph2. cgi")); //sendQueryToUrl(QUrl("http://scully.cfa.harvard.edu/cgi-bin/mpeph2. cgi"));
// MPC requirements now :(
sendQueryToUrl(QUrl("http://www.minorplanetcenter.net/cgi-bin/mpeph2
.cgi"));
} }
void MpcImportWindow::sendQueryToUrl(QUrl url) void MpcImportWindow::sendQueryToUrl(QUrl url)
{ {
QUrlQuery q(url); QUrlQuery q(url);
q.addQueryItem("ty","e");//Type: ephemerides q.addQueryItem("ty","e");//Type: ephemerides
q.addQueryItem("TextArea", query);//Object name query q.addQueryItem("TextArea", query);//Object name query
q.addQueryItem("e", "-1");//Elements format: MPC 1-line q.addQueryItem("e", "-1");//Elements format: MPC 1-line
//Switch to MPC 1-line format --AW //Switch to MPC 1-line format --AW
//XEphem's format is used instead because it doesn't truncate object names. //XEphem's format is used instead because it doesn't truncate object names.
 End of changes. 2 change blocks. 
1 lines changed or deleted 4 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/