"oracle/translations/oracle_et.ts" did not exist on "f80e3199002a894c7787cb49d116128fcccdddd3"
Commit 6829e2ed authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

oracle importer changes

parent 40fc77c6
......@@ -74,6 +74,10 @@ WindowMain::WindowMain(QWidget *parent)
setWindowTitle(tr("Oracle importer"));
setFixedSize(600, 500);
QStringList args = qApp->arguments();
if (args.contains("-dlsets"))
downloadSetsFile(defaultSetsUrl);
}
void WindowMain::updateSetList()
......@@ -108,6 +112,12 @@ void WindowMain::actLoadSetsFile()
void WindowMain::actDownloadSetsFile()
{
QString url = QInputDialog::getText(this, tr("Load sets from URL"), tr("Please enter the URL of the sets file:"), QLineEdit::Normal, defaultSetsUrl);
if (!url.isEmpty())
downloadSetsFile(url);
}
void WindowMain::downloadSetsFile(const QString &url)
{
QNetworkReply *reply = nam->get(QNetworkRequest(url));
connect(reply, SIGNAL(finished()), this, SLOT(setsDownloadFinished()));
}
......
......@@ -31,6 +31,8 @@ private:
QTextEdit *messageLog;
QVBoxLayout *checkBoxLayout;
QList<QCheckBox *> checkBoxList;
void downloadSetsFile(const QString &url);
private slots:
void updateTotalProgress(int cardsImported, int setIndex, const QString &nextSetName);
void updateFileProgress(int bytesRead, int totalBytes);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment