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
53de2db8
Commit
53de2db8
authored
Jun 21, 2014
by
Fabio Bas
Browse files
Clean up code leftovers
parent
8d283a5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
oracle/src/oracleimporter.cpp
View file @
53de2db8
...
...
@@ -205,25 +205,7 @@ int OracleImporter::importTextSpoiler(CardSet *set, const QVariant &data)
return
cards
;
}
/*
QString OracleImporter::getPictureUrl(QString url, int cardId, QString name, const QString &setName) const
{
if ((name == "Island") || (name == "Swamp") || (name == "Mountain") || (name == "Plains") || (name == "Forest"))
name.append("1");
return url.replace("!cardid!", QString::number(cardId)).replace("!set!", setName).replace("!name!", name
.replace("ö", "o")
// .remove('\'')
.remove(" // ")
// .remove(',')
// .remove(':')
// .remove('.')
.remove(QRegExp("\\(.*\\)"))
.simplified()
// .replace(' ', '_')
// .replace('-', '_')
);
}
*/
int
OracleImporter
::
startImport
()
{
clear
();
...
...
oracle/src/oraclewizard.cpp
View file @
53de2db8
...
...
@@ -19,10 +19,6 @@ OracleWizard::OracleWizard(QWidget *parent)
addPage
(
new
ChooseSetsPage
);
addPage
(
new
SaveSetsPage
);
/*
setPixmap(QWizard::BannerPixmap, QPixmap(":/images/banner.png"));
setPixmap(QWizard::BackgroundPixmap, QPixmap(":/images/background.png"));
*/
setWindowTitle
(
tr
(
"Oracle Importer"
));
}
...
...
@@ -47,7 +43,6 @@ IntroPage::IntroPage(QWidget *parent)
:
OracleWizardPage
(
parent
)
{
setTitle
(
tr
(
"Introduction"
));
//setPixmap(QWizard::WatermarkPixmap, QPixmap(":/images/watermark1.png"));
label
=
new
QLabel
(
tr
(
"This wizard will import the list of sets and cards "
"that will be used by Cockatrice. You will need to "
...
...
@@ -69,7 +64,6 @@ LoadSetsPage::LoadSetsPage(QWidget *parent)
setSubTitle
(
tr
(
"Please specify a source for the list of sets and cards. "
"You can specify an url address that will be download or "
"use an existing file from your computer."
));
//setPixmap(QWizard::LogoPixmap, QPixmap(":/images/logo1.png"));
urlRadioButton
=
new
QRadioButton
(
tr
(
"Download url:"
),
this
);
fileRadioButton
=
new
QRadioButton
(
tr
(
"Local file:"
),
this
);
...
...
@@ -327,8 +321,6 @@ SaveSetsPage::SaveSetsPage(QWidget *parent)
setSubTitle
(
tr
(
"The following sets has been imported. "
"Press
\"
Done
\"
to save the imported cards to the Cockatrice database."
));
// setPixmap(QWizard::LogoPixmap, QPixmap(":/images/logo3.png"));
messageLog
=
new
QTextEdit
(
this
);
messageLog
->
setReadOnly
(
true
);
...
...
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