A bit more compact and much more clear shooting info
This commit is contained in:
@@ -458,12 +458,21 @@ void EditorPanel::info_toggled () {
|
|||||||
|
|
||||||
const rtengine::ImageMetaData* idata = ipc->getInitialImage()->getMetaData();
|
const rtengine::ImageMetaData* idata = ipc->getInitialImage()->getMetaData();
|
||||||
if (idata && idata->hasExif())
|
if (idata && idata->hasExif())
|
||||||
infoString = Glib::ustring::compose ("%1 %2\nF/%3 %4 sec\n%5: %6\n%7: %8 mm\n",
|
// infoString = Glib::ustring::compose ("%1 %2\nF/%3 %4 sec\n%5: %6\n%7: %8 mm\n",
|
||||||
Glib::ustring(idata->getMake()), Glib::ustring(idata->getModel()),
|
// Glib::ustring(idata->getMake()), Glib::ustring(idata->getModel()),
|
||||||
Glib::ustring(idata->apertureToString(idata->getFNumber())), Glib::ustring(idata->shutterToString(idata->getShutterSpeed())),
|
// Glib::ustring(idata->apertureToString(idata->getFNumber())), Glib::ustring(idata->shutterToString(idata->getShutterSpeed())),
|
||||||
|
// M("QINFO_ISO"), idata->getISOSpeed(),
|
||||||
|
// M("QINFO_FOCALLENGTH"), idata->getFocalLen())
|
||||||
|
// + Glib::ustring::compose ("%1: %2", M("QINFO_LENS"), Glib::ustring(idata->getLens()));
|
||||||
|
infoString = Glib::ustring::compose (
|
||||||
|
"%1 + %2\n<span size=\"xx-large\">%3</span>s f/<span size=\"xx-large\">%4</span> %5<span size=\"xx-large\">%6</span> f=<span size=\"xx-large\">%7</span>mm",
|
||||||
|
Glib::ustring(idata->getModel()),
|
||||||
|
Glib::ustring(idata->getLens()),
|
||||||
|
Glib::ustring(idata->shutterToString(idata->getShutterSpeed())),
|
||||||
|
Glib::ustring(idata->apertureToString(idata->getFNumber())),
|
||||||
M("QINFO_ISO"), idata->getISOSpeed(),
|
M("QINFO_ISO"), idata->getISOSpeed(),
|
||||||
M("QINFO_FOCALLENGTH"), idata->getFocalLen())
|
idata->getFocalLen()
|
||||||
+ Glib::ustring::compose ("%1: %2", M("QINFO_LENS"), Glib::ustring(idata->getLens()));
|
);
|
||||||
else
|
else
|
||||||
infoString = M("QINFO_NOEXIF");
|
infoString = M("QINFO_NOEXIF");
|
||||||
|
|
||||||
|
@@ -111,7 +111,8 @@ void ImageArea::setInfoText (Glib::ustring text) {
|
|||||||
fontd.set_weight (Pango::WEIGHT_BOLD);
|
fontd.set_weight (Pango::WEIGHT_BOLD);
|
||||||
fontd.set_size (12*Pango::SCALE);
|
fontd.set_size (12*Pango::SCALE);
|
||||||
context->set_font_description (fontd);
|
context->set_font_description (fontd);
|
||||||
ilayout = create_pango_layout(text);
|
ilayout = create_pango_layout("");
|
||||||
|
ilayout->set_markup(text);
|
||||||
int iw, ih;
|
int iw, ih;
|
||||||
ilayout->get_pixel_size (iw, ih);
|
ilayout->get_pixel_size (iw, ih);
|
||||||
ipixbuf = Gdk::Pixbuf::create (Gdk::COLORSPACE_RGB, true, 8, iw+8, ih+8);
|
ipixbuf = Gdk::Pixbuf::create (Gdk::COLORSPACE_RGB, true, 8, iw+8, ih+8);
|
||||||
|
Reference in New Issue
Block a user