~ubuntu-branches/debian/experimental/smplayer/experimental

« back to all changes in this revision

Viewing changes to src/infofile.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Maia Kozheva
  • Date: 2009-03-31 23:05:43 UTC
  • mfrom: (1.1.9 upstream) (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090331230543-1ned1omblgt4qiak
* New upstream release. (Closes: #523791)
  - Reworked subtitle font preferences. (Closes: #503295)
  - No longer installs qt_fr.qm. (Closes: #486314)
* debian/control:
  - Bumped Standards-Version to 3.8.1.
  - Changed maintainer name (still the same person and GPG key).
  - Changed section to video.
  - Build-depend on zlib1g-dev for findsubtitles.
  - Require Qt >= 4.3 per readme.
  - Added ${misc:Depends}.
  - Make smplayer-translations depend on smplayer and smplayer recommend
    smplayer-translations, not the other way round. (Closes: #489375)
* debian/copyright:
  - Significantly expanded per-file with new upstream authors.
* debian/rules:
  - Make make use correct uic in install.
  - Clean svn_revision.
  - Removed get-orig-source - not needed with uscan --repack.
* debian/patches/01_gl_translation.patch:
  - Added patch to fix lrelease error on smplayer_gl.ts.
* Added debian/README.source for simple-patchsys.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*  smplayer, GUI front-end for mplayer.
2
 
    Copyright (C) 2006-2008 Ricardo Villalba <rvm@escomposlinux.org>
 
2
    Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org>
3
3
 
4
4
    This program is free software; you can redistribute it and/or modify
5
5
    it under the terms of the GNU General Public License as published by
19
19
#include "infofile.h"
20
20
#include <QFileInfo>
21
21
#include <QCoreApplication>
22
 
#include "helper.h"
 
22
#include "discname.h"
23
23
#include "constants.h"
 
24
#include "images.h"
24
25
 
25
26
 
26
27
InfoFile::InfoFile() {
49
50
                case TYPE_STREAM :      icon = "type_url.png"; break;
50
51
                default                 :       icon = "type_unknown.png";
51
52
        }
52
 
        icon = "<img src=\":/icons-png/" + icon + "\"> ";
 
53
        icon = "<img src=\"" + Images::file(icon) + "\"> ";
53
54
 
54
55
        if (md.type == TYPE_DVD) {
55
 
                s += title( icon + "dvd://" + QString::number(Helper::dvdSplitTitle(md.filename) ) );
 
56
                DiscData disc_data = DiscName::split(md.filename);
 
57
                s += title( icon + disc_data.protocol + "://" + QString::number(disc_data.title) );
56
58
        } else {
57
59
                s += title( icon + md.displayName() );
58
60
        }
176
178
                s += closePar();
177
179
        }
178
180
 
179
 
        return s;
 
181
        return "<html><body bgcolor=\"white\"><font color=\"black\">"+ s + "</font></body></html>";
180
182
}
181
183
 
182
184
QString InfoFile::title(QString text) {
195
197
 
196
198
QString InfoFile::openItem() {
197
199
        if (row % 2 == 1)
198
 
                return "<tr bgcolor=\"#c4daf4\">";
 
200
                return "<tr bgcolor=\"lavender\">";
199
201
        else
200
 
                return "<tr bgcolor=\"#ffffc6\">";
 
202
                return "<tr bgcolor=\"powderblue\">";
201
203
}
202
204
 
203
205
QString InfoFile::closeItem() {