Changeset View
Changeset View
Standalone View
Standalone View
Exif/InfoDialog.cpp
Show All 32 Lines | |||||
33 | #include "ImageManager/ImageRequest.h" | 33 | #include "ImageManager/ImageRequest.h" | ||
34 | #include "Settings/SettingsData.h" | 34 | #include "Settings/SettingsData.h" | ||
35 | #include "Grid.h" | 35 | #include "Grid.h" | ||
36 | 36 | | |||
37 | using Utilities::StringSet; | 37 | using Utilities::StringSet; | ||
38 | 38 | | |||
39 | Exif::InfoDialog::InfoDialog(const DB::FileName& fileName, QWidget* parent) : QDialog(parent) | 39 | Exif::InfoDialog::InfoDialog(const DB::FileName& fileName, QWidget* parent) : QDialog(parent) | ||
40 | { | 40 | { | ||
41 | setWindowTitle( i18n("EXIF Information") ); | 41 | setWindowTitle(i18nc("@title:window", "Exif Information")); | ||
42 | 42 | | |||
43 | setAttribute(Qt::WA_DeleteOnClose); | 43 | setAttribute(Qt::WA_DeleteOnClose); | ||
44 | QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close); | 44 | QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close); | ||
45 | buttonBox->button(QDialogButtonBox::Close)->setShortcut(Qt::CTRL | Qt::Key_Return); | 45 | buttonBox->button(QDialogButtonBox::Close)->setShortcut(Qt::CTRL | Qt::Key_Return); | ||
46 | connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject); | 46 | connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject); | ||
47 | 47 | | |||
48 | QWidget* top = new QWidget(this); | 48 | QWidget* top = new QWidget(this); | ||
49 | QVBoxLayout* vlay = new QVBoxLayout( top ); | 49 | QVBoxLayout* vlay = new QVBoxLayout( top ); | ||
Show All 17 Lines | |||||
67 | // -------------------------------------------------- Exif Grid | 67 | // -------------------------------------------------- Exif Grid | ||
68 | m_grid = new Exif::Grid( top ); | 68 | m_grid = new Exif::Grid( top ); | ||
69 | vlay->addWidget( m_grid ); | 69 | vlay->addWidget( m_grid ); | ||
70 | 70 | | |||
71 | // -------------------------------------------------- Current Search | 71 | // -------------------------------------------------- Current Search | ||
72 | hlay = new QHBoxLayout; | 72 | hlay = new QHBoxLayout; | ||
73 | vlay->addLayout(hlay); | 73 | vlay->addLayout(hlay); | ||
74 | 74 | | |||
75 | QLabel* searchLabel = new QLabel( i18n( "EXIF Label Search: "), top ); | 75 | QLabel* searchLabel = new QLabel( i18n( "Exif label search: "), top ); | ||
76 | hlay->addWidget( searchLabel ); | 76 | hlay->addWidget( searchLabel ); | ||
77 | m_searchBox = new QLineEdit( top ); | 77 | m_searchBox = new QLineEdit( top ); | ||
78 | hlay->addWidget( m_searchBox ); | 78 | hlay->addWidget( m_searchBox ); | ||
79 | hlay->addStretch( 1 ); | 79 | hlay->addStretch( 1 ); | ||
80 | 80 | | |||
81 | QLabel* iptcLabel = new QLabel( i18n("IPTC character set:"), top ); | 81 | QLabel* iptcLabel = new QLabel( i18n("IPTC character set:"), top ); | ||
82 | m_iptcCharset = new QComboBox( top ); | 82 | m_iptcCharset = new QComboBox( top ); | ||
83 | QStringList charsets; | 83 | QStringList charsets; | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |