Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
6829e2ed
"oracle/translations/oracle_et.ts" did not exist on "f80e3199002a894c7787cb49d116128fcccdddd3"
Commit
6829e2ed
authored
May 08, 2010
by
Max-Wilhelm Bruker
Browse files
oracle importer changes
parent
40fc77c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
oracle/src/window_main.cpp
View file @
6829e2ed
...
...
@@ -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
()));
}
...
...
oracle/src/window_main.h
View file @
6829e2ed
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment