70 : KPageDialog(parent)
72{
75
76
77 {
79
80 {
81
84
85 Q_ASSERT(schema);
86
90 GET_DC_VALUE(date, date, &QDateTimeEdit::editingFinished);
92 GET_DC_VALUE(description, plainText, &QTextEdit::textChanged);
93 }
94
95 wdg->date->setDisplayFormat(QLocale().dateFormat());
96
97 KPageWidgetItem *page = new KPageWidgetItem(wdg, i18n("Dublin Core"));
99 addPage(page);
100 }
101
102
103 {
105
106 {
107
110
111 Q_ASSERT(schema);
112
113
117 GET_EXIF_VALUE(ExposureMode, currentIndex, QOverload<int>::of(&QComboBox::activated));
118 GET_EXIF_VALUE(ExposureProgram, currentIndex, QOverload<int>::of(&QComboBox::activated));
124
128
129 GET_EXIF_VALUE(MeteringMode, currentIndex, QOverload<int>::of(&QComboBox::activated));
131 GET_EXIF_VALUE(SubjectDistanceRange, currentIndex, QOverload<int>::of(&QComboBox::activated));
132
139
140 GET_EXIF_VALUE(GainControl, currentIndex, QOverload<int>::of(&QComboBox::activated));
141 GET_EXIF_VALUE(LightSource, currentIndex, QOverload<int>::of(&QComboBox::activated));
142 GET_EXIF_VALUE(Sharpness, currentIndex, QOverload<int>::of(&QComboBox::activated));
143 GET_EXIF_VALUE(Contrast, currentIndex, QOverload<int>::of(&QComboBox::activated));
144 GET_EXIF_VALUE(WhiteBalance, currentIndex, QOverload<int>::of(&QComboBox::activated));
145
146 GET_EXIF_VALUE(SceneCaptureType, currentIndex, QOverload<int>::of(&QComboBox::activated));
147 GET_EXIF_VALUE(SensingMethod, currentIndex, QOverload<int>::of(&QComboBox::activated));
148 }
149
150 {
151
154
155 Q_ASSERT(schema);
156
157
160 }
161
162 KPageWidgetItem *page = new KPageWidgetItem(wdg, i18n("Exif"));
164 addPage(page);
165 }
166
167 {
168
169 QTableView *tableView = new QTableView;
171 tableView->setModel(model);
172 tableView->verticalHeader()->setVisible(false);
173 tableView->resizeColumnsToContents();
174 KPageWidgetItem *page = new KPageWidgetItem(tableView, i18n("List"));
176 addPage(page);
177 }
178}
float value(const T *src, size_t ch)
QIcon loadIcon(const QString &name)