diff options
author | Maia Kozheva <sikon@ubuntu.com> | 2010-05-09 21:22:23 +0700 |
---|---|---|
committer | Maia Kozheva <sikon@ubuntu.com> | 2010-05-09 21:22:23 +0700 |
commit | 99b53d44a60e3e934fc664152c115ae0d6e19920 (patch) | |
tree | e38698c486f6b4044125fa0d0bf33475d92e8f3a /src/findsubtitles | |
parent | 263b32f108c15cd1c55a8f4eb4704fac6553f1ac (diff) |
Imported Upstream version 0.6.9
Diffstat (limited to 'src/findsubtitles')
-rw-r--r-- | src/findsubtitles/filedownloader/filedownloader.cpp | 2 | ||||
-rw-r--r-- | src/findsubtitles/filedownloader/filedownloader.h | 2 | ||||
-rw-r--r-- | src/findsubtitles/findsubtitlesconfigdialog.cpp | 2 | ||||
-rw-r--r-- | src/findsubtitles/findsubtitlesconfigdialog.h | 2 | ||||
-rw-r--r-- | src/findsubtitles/findsubtitleswindow.cpp | 18 | ||||
-rw-r--r-- | src/findsubtitles/findsubtitleswindow.h | 2 | ||||
-rw-r--r-- | src/findsubtitles/main.cpp | 2 | ||||
-rw-r--r-- | src/findsubtitles/osparser.cpp | 5 | ||||
-rw-r--r-- | src/findsubtitles/osparser.h | 2 | ||||
-rw-r--r-- | src/findsubtitles/simplehttp.cpp | 2 | ||||
-rw-r--r-- | src/findsubtitles/simplehttp.h | 2 | ||||
-rw-r--r-- | src/findsubtitles/subchooserdialog.cpp | 2 | ||||
-rw-r--r-- | src/findsubtitles/subchooserdialog.h | 2 |
13 files changed, 30 insertions, 15 deletions
diff --git a/src/findsubtitles/filedownloader/filedownloader.cpp b/src/findsubtitles/filedownloader/filedownloader.cpp index ca3e435..8a0bec8 100644 --- a/src/findsubtitles/filedownloader/filedownloader.cpp +++ b/src/findsubtitles/filedownloader/filedownloader.cpp @@ -1,5 +1,5 @@ /* smplayer, GUI front-end for mplayer. - Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org> + Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/src/findsubtitles/filedownloader/filedownloader.h b/src/findsubtitles/filedownloader/filedownloader.h index 2399bc7..5386e3e 100644 --- a/src/findsubtitles/filedownloader/filedownloader.h +++ b/src/findsubtitles/filedownloader/filedownloader.h @@ -1,5 +1,5 @@ /* smplayer, GUI front-end for mplayer. - Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org> + Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/src/findsubtitles/findsubtitlesconfigdialog.cpp b/src/findsubtitles/findsubtitlesconfigdialog.cpp index f50d265..9b438b7 100644 --- a/src/findsubtitles/findsubtitlesconfigdialog.cpp +++ b/src/findsubtitles/findsubtitlesconfigdialog.cpp @@ -1,5 +1,5 @@ /* smplayer, GUI front-end for mplayer. - Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org> + Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/src/findsubtitles/findsubtitlesconfigdialog.h b/src/findsubtitles/findsubtitlesconfigdialog.h index 8e95aab..d7dcb8e 100644 --- a/src/findsubtitles/findsubtitlesconfigdialog.h +++ b/src/findsubtitles/findsubtitlesconfigdialog.h @@ -1,5 +1,5 @@ /* smplayer, GUI front-end for mplayer. - Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org> + Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/src/findsubtitles/findsubtitleswindow.cpp b/src/findsubtitles/findsubtitleswindow.cpp index f1cd5b5..6d1d2c7 100644 --- a/src/findsubtitles/findsubtitleswindow.cpp +++ b/src/findsubtitles/findsubtitleswindow.cpp @@ -1,5 +1,5 @@ /* smplayer, GUI front-end for mplayer. - Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org> + Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -42,6 +42,12 @@ #include <QBuffer> #endif +//#define NO_SMPLAYER_SUPPORT + +#ifndef NO_SMPLAYER_SUPPORT +#include "images.h" +#endif + #define COL_LANG 0 #define COL_NAME 1 #define COL_FORMAT 2 @@ -212,6 +218,16 @@ void FindSubtitlesWindow::retranslateStrings() { // Actions downloadAct->setText( tr("&Download") ); copyLinkAct->setText( tr("&Copy link to clipboard") ); + + // Icons +#ifndef NO_SMPLAYER_SUPPORT + download_button->setIcon( Images::icon("download") ); + configure_button->setIcon( Images::icon("prefs") ); + refresh_button->setIcon( Images::icon("refresh") ); + + downloadAct->setIcon( Images::icon("download") ); + copyLinkAct->setIcon( Images::icon("copy") ); +#endif } void FindSubtitlesWindow::setMovie(QString filename) { diff --git a/src/findsubtitles/findsubtitleswindow.h b/src/findsubtitles/findsubtitleswindow.h index 375a691..362146b 100644 --- a/src/findsubtitles/findsubtitleswindow.h +++ b/src/findsubtitles/findsubtitleswindow.h @@ -1,5 +1,5 @@ /* smplayer, GUI front-end for mplayer. - Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org> + Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/src/findsubtitles/main.cpp b/src/findsubtitles/main.cpp index 2b836d7..97def70 100644 --- a/src/findsubtitles/main.cpp +++ b/src/findsubtitles/main.cpp @@ -1,5 +1,5 @@ /* smplayer, GUI front-end for mplayer. - Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org> + Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/src/findsubtitles/osparser.cpp b/src/findsubtitles/osparser.cpp index 50c2909..fbe974e 100644 --- a/src/findsubtitles/osparser.cpp +++ b/src/findsubtitles/osparser.cpp @@ -1,5 +1,5 @@ /* smplayer, GUI front-end for mplayer. - Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org> + Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -99,8 +99,7 @@ QString OSParser::calculateHash(QString filename) { in >> a ; hash += a; }; - QString hexhash(""); - hexhash.setNum(hash,16); + QString hexhash = QString("%1").arg(hash, 16, 16, QChar('0')); return hexhash; } diff --git a/src/findsubtitles/osparser.h b/src/findsubtitles/osparser.h index 72be34d..e2237f1 100644 --- a/src/findsubtitles/osparser.h +++ b/src/findsubtitles/osparser.h @@ -1,5 +1,5 @@ /* smplayer, GUI front-end for mplayer. - Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org> + Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/src/findsubtitles/simplehttp.cpp b/src/findsubtitles/simplehttp.cpp index 8528b14..9f44ccd 100644 --- a/src/findsubtitles/simplehttp.cpp +++ b/src/findsubtitles/simplehttp.cpp @@ -1,5 +1,5 @@ /* smplayer, GUI front-end for mplayer. - Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org> + Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/src/findsubtitles/simplehttp.h b/src/findsubtitles/simplehttp.h index e3a07ee..6fb989c 100644 --- a/src/findsubtitles/simplehttp.h +++ b/src/findsubtitles/simplehttp.h @@ -1,5 +1,5 @@ /* smplayer, GUI front-end for mplayer. - Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org> + Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/src/findsubtitles/subchooserdialog.cpp b/src/findsubtitles/subchooserdialog.cpp index b0523a7..770583f 100644 --- a/src/findsubtitles/subchooserdialog.cpp +++ b/src/findsubtitles/subchooserdialog.cpp @@ -1,5 +1,5 @@ /* smplayer, GUI front-end for mplayer. - Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org> + Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/src/findsubtitles/subchooserdialog.h b/src/findsubtitles/subchooserdialog.h index 1939664..a31adaf 100644 --- a/src/findsubtitles/subchooserdialog.h +++ b/src/findsubtitles/subchooserdialog.h @@ -1,5 +1,5 @@ /* smplayer, GUI front-end for mplayer. - Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org> + Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by |