Commit 9d614d3f authored by Emmanuel Touzery's avatar Emmanuel Touzery Committed by Felix Riemann

Add new exif-display plugin

This plugin displays a few selected Exif tags in the sidebar.
Additonally an RGB histogram can be enabled as well.
Currently only works with the 2.26.x series of eog.
parent 83dea8ef
2009-06-12 Felix Riemann <friemann@svn.gnome.org>
* plugins/exif-display/Makefile.am:
* plugins/exif-display/eog-exif-display-plugin.c:
* plugins/exif-display/eog-exif-display-plugin.h:
* plugins/exif-display/exif-display-config.ui:
* plugins/exif-display/exif-display.eog-plugin.desktop.in:
* plugins/exif-display/exif-display.ui:
* configure.ac:
Add exif-display plugin by Emmanuel Touzery.
2009-05-05 Felix Riemann <friemann@svn.gnome.org>
* configure.ac: Make --with-plugins parameter appear nice with a list
......
......@@ -58,9 +58,9 @@ EOG_HAS_PYTHON=1
AC_MSG_CHECKING([which plugins to build])
ALL_PLUGINS="postr champlain fit-to-width"
USEFUL_PLUGINS="postr champlain fit-to-width"
DEFAULT_PLUGINS="postr champlain fit-to-width"
ALL_PLUGINS="postr champlain fit-to-width exif-display"
USEFUL_PLUGINS="postr champlain fit-to-width exif-display"
DEFAULT_PLUGINS="postr champlain fit-to-width exif-display"
PYTHON_ALL_PLUGINS="slideshowshuffle pythonconsole"
PYTHON_USEFUL_PLUGINS="slideshowshuffle pythonconsole"
......@@ -306,6 +306,26 @@ then
fi
fi
# ***********
# ExifDisplay
# ***********
plugin_defined exif-display
if test "$?" = 1
then
PKG_CHECK_MODULES(EXIFDISPLAY,
[ libexif >= 0.6.16,
eog < 2.27.1 ],
[],[have_exifdisplay=no])
AC_SUBST(EXIFDISPLAY_LIBS)
AC_SUBST(EXIFDISPLAY_CFLAGS)
if test "x$have_exifdisplay" = "xno"
then
undef_plugin exif-display "libexif was not found"
fi
fi
if test -z "$disabled_plugins"
then
disabled_plugins="none"
......@@ -328,6 +348,7 @@ Makefile
plugins/Makefile
plugins/champlain/Makefile
plugins/fit-to-width/Makefile
plugins/exif-display/Makefile
plugins/slideshowshuffle/Makefile
plugins/postr/Makefile
plugins/pythonconsole/Makefile
......
# ExifDisplay plugin
plugindir = $(libdir)/eog/plugins
INCLUDES = \
-I$(top_srcdir)/src \
$(EOG_CFLAGS) \
$(WARN_CFLAGS) \
$(EXIFDISPLAY_CFLAGS) \
-DEOG_LOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
-DEOG_PLUGINDIR=\""$(plugindir)"\"
plugin_LTLIBRARIES = libexif-display.la
libexif_display_la_SOURCES = \
eog-exif-display-plugin.h \
eog-exif-display-plugin.c
libexif_display_la_LDFLAGS = \
-avoid-version -module
libexif_display_la_LIBADD = $(EOG_LIBS) \
$(EXIFDISPLAY_LIBS)
# Plugin Info
plugin_in_files = exif-display.eog-plugin.desktop.in
UI_FILES = exif-display.ui exif-display-config.ui
ui_DATA = $(UI_FILES)
uidir = $(plugindir)
%.eog-plugin: %.eog-plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
plugin_DATA = $(plugin_in_files:.eog-plugin.desktop.in=.eog-plugin)
EXTRA_DIST = $(plugin_in_files) $(UI_FILES)
CLEANFILES = #$(plugin_DATA)
DISTCLEANFILES = $(plugin_DATA)
This diff is collapsed.
/* Exif-display -- display information about digital pictures
*
* Copyright (C) 2009 The Free Software Foundation
*
* Author: Emmanuel Touzery <emmanuel.touzery@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __EOG_EXIF_DISPLAY_PLUGIN_H__
#define __EOG_EXIF_DISPLAY_PLUGIN_H__
#include <glib.h>
#include <glib-object.h>
#include <eog/eog-plugin.h>
G_BEGIN_DECLS
/*
* Type checking and casting macros
*/
#define EOG_TYPE_EXIF_DISPLAY_PLUGIN (eog_fit_to_width_plugin_get_type ())
#define EOG_EXIF_DISPLAY_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EOG_TYPE_EXIF_DISPLAY_PLUGIN, EogStatusbarDatePlugin))
#define EOG_EXIF_DISPLAY_PLUGIN_CLASS(k) G_TYPE_CHECK_CLASS_CAST((k), EOG_TYPE_EXIF_DISPLAY_PLUGIN, EogStatusbarDatePluginClass))
#define EOG_IS_EXIF_DISPLAY_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EOG_TYPE_EXIF_DISPLAY_PLUGIN))
#define EOG_IS_EXIF_DISPLAY_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EOG_TYPE_EXIF_DISPLAY_PLUGIN))
#define EOG_EXIF_DISPLAY_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EOG_TYPE_EXIF_DISPLAY_PLUGIN, EogStatusbarDatePluginClass))
/* Private structure type */
typedef struct _EogExifDisplayPluginPrivate EogExifDisplayPluginPrivate;
/*
* Main object structure
*/
typedef struct _EogExifDisplayPlugin EogExifDisplayPlugin;
struct _EogExifDisplayPlugin
{
EogPlugin parent_instance;
};
/*
* Class definition
*/
typedef struct _EogExifDisplayPluginClass EogExifDisplayPluginClass;
struct _EogExifDisplayPluginClass
{
EogPluginClass parent_class;
};
/*
* Public methods
*/
GType eog_exif_display_plugin_get_type (void) G_GNUC_CONST;
/* All the plugins must implement this function */
G_MODULE_EXPORT GType register_eog_plugin (GTypeModule *module);
G_END_DECLS
#endif /* __EOG_EXIF_DISPLAY_PLUGIN_H__ */
<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="2.16"/>
<!-- interface-naming-policy project-wide -->
<object class="GtkDialog" id="config_dialog">
<property name="border_width">5</property>
<property name="type_hint">normal</property>
<property name="has_separator">False</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox1">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<property name="spacing">2</property>
<child>
<object class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Histogram&lt;/b&gt;</property>
<property name="use_markup">True</property>
</object>
<packing>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkHBox" id="hbox1">
<property name="visible">True</property>
<child>
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="label" translatable="yes"> </property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkVBox" id="vbox2">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkCheckButton" id="display_per_channel_histogram">
<property name="label" translatable="yes">Display per-channel histogram</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="display_rgb_histogram">
<property name="label" translatable="yes">Display RGB histogram</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;General&lt;/b&gt;</property>
<property name="use_markup">True</property>
</object>
<packing>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkVBox" id="vbox3">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkHBox" id="hbox2">
<property name="visible">True</property>
<child>
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
<property name="label" translatable="yes"> </property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="display_camerasettings_statusbar">
<property name="label" translatable="yes">Display camera settings in statusbar</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="position">0</property>
</packing>
</child>
</object>
<packing>
<property name="position">3</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="position">1</property>
</packing>
</child>
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area1">
<property name="visible">True</property>
<property name="layout_style">end</property>
<child>
<object class="GtkButton" id="close_button">
<property name="label" translatable="yes">gtk-close</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
</object>
</child>
<action-widgets>
<action-widget response="0">close_button</action-widget>
</action-widgets>
</object>
</interface>
[Eog Plugin]
Module=exif-display
IAge=2
_Name=Exif display
Icon=gtk-zoom-fit
_Description=Displays camera settings and histogram
Authors=Emmanuel Touzery
Copyright=Copyright © 2009 Emmanuel Touzery
Website=http://www.gnome.org/projects/eog
<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="2.16"/>
<!-- interface-naming-policy project-wide -->
<object class="GtkScrolledWindow" id="viewport1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">automatic</property>
<property name="vscrollbar_policy">automatic</property>
<child>
<object class="GtkViewport" id="viewport2">
<property name="visible">True</property>
<property name="resize_mode">queue</property>
<child>
<object class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="camera_model_label">
<property name="visible">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="padding">15</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="takenon_label">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="xpad">5</property>
<property name="ellipsize">end</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkTable" id="table1">
<property name="visible">True</property>
<property name="border_width">5</property>
<property name="n_rows">6</property>
<property name="n_columns">2</property>
<property name="column_spacing">7</property>
<property name="row_spacing">5</property>
<child>
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;ISO speed:&lt;/b&gt;</property>
<property name="use_markup">True</property>
</object>
</child>
<child>
<object class="GtkLabel" id="iso_label">
<property name="visible">True</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Expo. Time:&lt;/b&gt;</property>
<property name="use_markup">True</property>
</object>
<packing>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="exposure_time_label">
<property name="visible">True</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Aperture:&lt;/b&gt;</property>
<property name="use_markup">True</property>
</object>
<packing>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="aperture_label">
<property name="visible">True</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label5">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Zoom:&lt;/b&gt;</property>
<property name="use_markup">True</property>
</object>
<packing>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="focal_length_label">
<property name="visible">True</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Metering:&lt;/b&gt;</property>
<property name="use_markup">True</property>
</object>
<packing>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="metering_mode_label">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="ellipsize">end</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label6">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Expo. bias:&lt;/b&gt;</property>
<property name="use_markup">True</property>
</object>
<packing>
<property name="top_attach">5</property>
<property name="bottom_attach">6</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="exposure_bias_label">
<property name="visible">True</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">5</property>
<property name="bottom_attach">6</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="flash_label">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="yalign">0</property>
<property name="xpad">5</property>
<property name="ellipsize">end</property>
<property name="max_width_chars">10</property>
</object>
<packing>
<property name="expand">False</property>
<property name="padding">5</property>
<property name="position">3</property>
</packing>
</child>
<child>
<object class="GtkDrawingArea" id="drawingarea1">
<property name="height_request">60</property>
<property name="visible">True</property>
</object>
<packing>
<property name="position">4</property>
</packing>
</child>
</object>
</child>
</object>
</child>
</object>
</interface>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment