Changeset View
Changeset View
Standalone View
Standalone View
MainWindow/FeatureDialog.cpp
Show All 33 Lines | |||||
34 | 34 | | |||
35 | #include "Exif/Database.h" | 35 | #include "Exif/Database.h" | ||
36 | 36 | | |||
37 | using namespace MainWindow; | 37 | using namespace MainWindow; | ||
38 | 38 | | |||
39 | FeatureDialog::FeatureDialog( QWidget* parent ) | 39 | FeatureDialog::FeatureDialog( QWidget* parent ) | ||
40 | :QDialog( parent ) | 40 | :QDialog( parent ) | ||
41 | { | 41 | { | ||
42 | setWindowTitle( i18n("KPhotoAlbum Feature Status") ); | 42 | setWindowTitle( i18nc("@title:window", "Feature Status") ); | ||
pino: extra whitespace changes | |||||
43 | 43 | | |||
44 | QTextBrowser* browser = new QTextBrowser( this ); | 44 | QTextBrowser* browser = new QTextBrowser( this ); | ||
45 | 45 | | |||
46 | QString text = i18n("<h1>Overview</h1>" | 46 | QString text = i18n("<h1>Overview</h1>" | ||
47 | "<p>Below you may see the list of compile- and runtime features KPhotoAlbum has, and their status:</p>" | 47 | "<p>Below you may see the list of compile- and runtime features KPhotoAlbum has, and their status:</p>" | ||
48 | "%1", featureString() ); | 48 | "%1", featureString() ); | ||
49 | text += i18n( "<h1>What can I do if I miss a feature?</h1>" | 49 | text += i18n( "<h1>What can I do if I miss a feature?</h1>" | ||
50 | 50 | | |||
Show All 20 Lines | 66 | "<p>KPhotoAlbum has a plug-in system with lots of extensions. You may among other things find plug-ins for:" | |||
71 | "<li>Uploading your images to flickr</li>" | 71 | "<li>Uploading your images to flickr</li>" | ||
72 | "<li>Upload your images to facebook</li>" | 72 | "<li>Upload your images to facebook</li>" | ||
73 | "</ul></p>" | 73 | "</ul></p>" | ||
74 | 74 | | |||
75 | "<p>The plug-in library is called KIPI, and may be downloaded from the " | 75 | "<p>The plug-in library is called KIPI, and may be downloaded from the " | ||
76 | "<a href=\"http://userbase.kde.org/KIPI\">KDE Userbase Wiki</a></p>" ); | 76 | "<a href=\"http://userbase.kde.org/KIPI\">KDE Userbase Wiki</a></p>" ); | ||
77 | 77 | | |||
78 | text += i18n( "<h1><a name=\"database\">SQLite database support</a></h1>" | 78 | text += i18n( "<h1><a name=\"database\">SQLite database support</a></h1>" | ||
79 | "<p>KPhotoAlbum allows you to search using a certain number of EXIF tags. For this KPhotoAlbum " | 79 | "<p>KPhotoAlbum allows you to search using a certain number of Exif tags. For this KPhotoAlbum " | ||
80 | "needs an Sqlite database. " | 80 | "needs an SQLite database. " | ||
81 | "In addition the qt package for sqlite (e.g.qt-sql-sqlite) must be installed.</p>"); | 81 | "In addition the Qt package for SQLite (e.g. qt-sql-sqlite) must be installed.</p>"); | ||
82 | 82 | | |||
83 | text += i18n("<h1><a name=\"geomap\">Map view for geotagged images</a></h1>" | 83 | text += i18n("<h1><a name=\"geomap\">Map view for geotagged images</a></h1>" | ||
84 | "<p>If KPhotoAlbum has been built with support for libkgeomap, " | 84 | "<p>If KPhotoAlbum has been built with support for libkgeomap, " | ||
85 | "KPhotoAlbum can show images with GPS information on a map." | 85 | "KPhotoAlbum can show images with GPS information on a map." | ||
86 | "</p>"); | 86 | "</p>"); | ||
87 | 87 | | |||
88 | text += i18n("<h1><a name=\"video\">Video support</a></h1>" | 88 | text += i18n("<h1><a name=\"video\">Video support</a></h1>" | ||
89 | "<p>KPhotoAlbum relies on Qt's Phonon architecture for displaying videos; this in turn relies on GStreamer. " | 89 | "<p>KPhotoAlbum relies on Qt's Phonon architecture for displaying videos; this in turn relies on GStreamer. " | ||
▲ Show 20 Lines • Show All 118 Lines • ▼ Show 20 Line(s) | 203 | { | |||
208 | QString tag; | 208 | QString tag; | ||
209 | bool featureFound; | 209 | bool featureFound; | ||
210 | }; | 210 | }; | ||
211 | 211 | | |||
212 | QString MainWindow::FeatureDialog::featureString() | 212 | QString MainWindow::FeatureDialog::featureString() | ||
213 | { | 213 | { | ||
214 | QList<Data> features; | 214 | QList<Data> features; | ||
215 | features << Data( i18n("Plug-ins available"), QString::fromLatin1("#kipi"), hasKIPISupport() ); | 215 | features << Data( i18n("Plug-ins available"), QString::fromLatin1("#kipi"), hasKIPISupport() ); | ||
216 | features << Data( i18n( "Sqlite database support (used for EXIF searches)" ), QString::fromLatin1("#database"), hasEXIV2DBSupport() ); | 216 | features << Data( i18n( "SQLite database support (used for Exif searches)" ), QString::fromLatin1("#database"), hasEXIV2DBSupport() ); | ||
pino: "SQLite" | |||||
217 | features << Data( i18n( "Map view for geotagged images." ), QString::fromLatin1("#geomap"), hasGeoMapSupport() ); | 217 | features << Data( i18n( "Map view for geotagged images." ), QString::fromLatin1("#geomap"), hasGeoMapSupport() ); | ||
218 | features << Data( i18n( "Video support" ), QString::fromLatin1("#video"), !supportedVideoMimeTypes().isEmpty() ); | 218 | features << Data( i18n( "Video support" ), QString::fromLatin1("#video"), !supportedVideoMimeTypes().isEmpty() ); | ||
219 | 219 | | |||
220 | QString result = QString::fromLatin1("<p><table>"); | 220 | QString result = QString::fromLatin1("<p><table>"); | ||
221 | const QString red = QString::fromLatin1("<font color=\"red\">%1</font>"); | 221 | const QString red = QString::fromLatin1("<font color=\"red\">%1</font>"); | ||
222 | const QString yellow = QString::fromLatin1("<font color=\"yellow\">%1</font>"); | 222 | const QString yellow = QString::fromLatin1("<font color=\"yellow\">%1</font>"); | ||
223 | const QString yes = i18nc("Feature available","Yes"); | 223 | const QString yes = i18nc("Feature available","Yes"); | ||
224 | const QString no = red.arg( i18nc("Feature not available","No") ); | 224 | const QString no = red.arg( i18nc("Feature not available","No") ); | ||
225 | const QString formatString = QString::fromLatin1( "<tr><td><a href=\"%1\">%2</a></td><td><b>%3</b></td></tr>" ); | 225 | const QString formatString = QString::fromLatin1( "<tr><td><a href=\"%1\">%2</a></td><td><b>%3</b></td></tr>" ); | ||
pino: extra whitespace changes | |||||
226 | for( QList<Data>::ConstIterator featureIt = features.constBegin(); featureIt != features.constEnd(); ++featureIt ) { | 226 | for( QList<Data>::ConstIterator featureIt = features.constBegin(); featureIt != features.constEnd(); ++featureIt ) { | ||
227 | result += formatString | 227 | result += formatString | ||
228 | .arg( (*featureIt).tag ).arg( (*featureIt).title ).arg( (*featureIt).featureFound ? yes : no ); | 228 | .arg( (*featureIt).tag ).arg( (*featureIt).title ).arg( (*featureIt).featureFound ? yes : no ); | ||
229 | } | 229 | } | ||
230 | 230 | | |||
231 | QString thumbnailSupport = hasVideoThumbnailer() ? ( !ffmpegBinary().isEmpty() || isMplayer2() ? yes : yellow.arg(i18n("Only with MPlayer1"))) : no ; | 231 | QString thumbnailSupport = hasVideoThumbnailer() ? ( !ffmpegBinary().isEmpty() || isMplayer2() ? yes : yellow.arg(i18n("Only with MPlayer1"))) : no ; | ||
232 | result += formatString.arg(QString::fromLatin1("#videoPreview")).arg(i18n("Video thumbnail support")).arg(thumbnailSupport); | 232 | result += formatString.arg(QString::fromLatin1("#videoPreview")).arg(i18n("Video thumbnail support")).arg(thumbnailSupport); | ||
233 | 233 | | |||
Show All 13 Lines |
extra whitespace changes