xmpedit

GTK+ editor for XMP metadata embedded in images
git clone https://code.djc.id.au/git/xmpedit/
commit 756b5bc756577244b551dbec38fd506919471793
parent d61727f62fccc090d83881061fba28060942ecdb
Author: Dan Callaghan <djc@djc.id.au>
Date:   Sat, 29 May 2010 15:55:48 +1000

converted tabs to spaces (ugh)

Diffstat:
MMainWindow.cpp | 14+++++++-------
MMainWindow.h | 12++++++------
MMetadataTreeModel.cpp | 34+++++++++++++++++-----------------
MMetadataTreeModel.h | 24++++++++++++------------
4 files changed, 42 insertions(+), 42 deletions(-)
diff --git a/MainWindow.cpp b/MainWindow.cpp
@@ -3,8 +3,8 @@
 #include "MainWindow.h"
 
 MainWindow::MainWindow(const std::string& path) :
-	image_preview(Gdk::Pixbuf::create_from_file(path, 320, 320)),
-	model(MetadataTreeModel::create(path)) {
+    image_preview(Gdk::Pixbuf::create_from_file(path, 320, 320)),
+    model(MetadataTreeModel::create(path)) {
 
     {
         Glib::RefPtr<Gio::File> file(Gio::File::create_for_path(path));
@@ -15,14 +15,14 @@ MainWindow::MainWindow(const std::string& path) :
 
     vbox.pack_start(image_preview, Gtk::PACK_SHRINK, 10);
 
-	tree_view.set_model(model);
-	tree_view.append_column("Predicate", model->columns.pred_column);
-	tree_view.append_column("Value", model->columns.value_column);
-	scrolled.add(tree_view);
+    tree_view.set_model(model);
+    tree_view.append_column("Predicate", model->columns.pred_column);
+    tree_view.append_column("Value", model->columns.value_column);
+    scrolled.add(tree_view);
     scrolled.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
     vbox.pack_start(scrolled, Gtk::PACK_EXPAND_WIDGET);
 
-	show_all_children();
+    show_all_children();
 
 }
 
diff --git a/MainWindow.h b/MainWindow.h
@@ -11,15 +11,15 @@
 class MainWindow : public Gtk::Window {
 
 public:
-	MainWindow(const std::string& path);
-	virtual ~MainWindow();
+    MainWindow(const std::string& path);
+    virtual ~MainWindow();
 
 private:
-	Gtk::VBox vbox;
-	Gtk::Image image_preview;
+    Gtk::VBox vbox;
+    Gtk::Image image_preview;
     Gtk::ScrolledWindow scrolled;
-	Glib::RefPtr<MetadataTreeModel> model;
-	Gtk::TreeView tree_view;
+    Glib::RefPtr<MetadataTreeModel> model;
+    Gtk::TreeView tree_view;
 
 };
 
diff --git a/MetadataTreeModel.cpp b/MetadataTreeModel.cpp
@@ -3,29 +3,29 @@
 #include <exiv2/convert.hpp>
 
 MetadataTreeModel::MetadataTreeModel(const std::string& path) {
-	set_column_types(columns);
+    set_column_types(columns);
 
-	Exiv2::Image::AutoPtr image(Exiv2::ImageFactory::open(path));
-	image->readMetadata();
-	Exiv2::XmpData data = image->xmpData();
+    Exiv2::Image::AutoPtr image(Exiv2::ImageFactory::open(path));
+    image->readMetadata();
+    Exiv2::XmpData data = image->xmpData();
 
-	for (Exiv2::XmpData::const_iterator i = data.begin(); i != data.end(); ++ i) {
-		Row row(*append());
-		Glib::ustring pred(i->groupName());
-		pred += ":";
-		pred += i->tagName();
-		row[columns.pred_column] = pred;
-		Glib::ustring value(i->value().toString());
-		value += " [";
-		value += i->typeName();
-		value += "]";
-		row[columns.value_column] = value;
-	}
+    for (Exiv2::XmpData::const_iterator i = data.begin(); i != data.end(); ++ i) {
+        Row row(*append());
+        Glib::ustring pred(i->groupName());
+        pred += ":";
+        pred += i->tagName();
+        row[columns.pred_column] = pred;
+        Glib::ustring value(i->value().toString());
+        value += " [";
+        value += i->typeName();
+        value += "]";
+        row[columns.value_column] = value;
+    }
 }
 
 MetadataTreeModel::~MetadataTreeModel(void) {
 }
 
 Glib::RefPtr<MetadataTreeModel> MetadataTreeModel::create(const std::string& path) {
-	return Glib::RefPtr<MetadataTreeModel>(new MetadataTreeModel(path));
+    return Glib::RefPtr<MetadataTreeModel>(new MetadataTreeModel(path));
 }
diff --git a/MetadataTreeModel.h b/MetadataTreeModel.h
@@ -9,22 +9,22 @@
 class MetadataTreeModel : public Gtk::ListStore {
 
 public:
-	MetadataTreeModel(const std::string& path);
-	virtual ~MetadataTreeModel(void);
-	static Glib::RefPtr<MetadataTreeModel> create(const std::string& path);
+    MetadataTreeModel(const std::string& path);
+    virtual ~MetadataTreeModel(void);
+    static Glib::RefPtr<MetadataTreeModel> create(const std::string& path);
 
 private:
-	struct ModelColumns : public Gtk::TreeModel::ColumnRecord {
-		Gtk::TreeModelColumn<Glib::ustring> pred_column;
-		Gtk::TreeModelColumn<Glib::ustring> value_column;
-		ModelColumns(void) {
-			add(pred_column);
-			add(value_column);
-		}
-	};
+    struct ModelColumns : public Gtk::TreeModel::ColumnRecord {
+        Gtk::TreeModelColumn<Glib::ustring> pred_column;
+        Gtk::TreeModelColumn<Glib::ustring> value_column;
+        ModelColumns(void) {
+            add(pred_column);
+            add(value_column);
+        }
+    };
 
 public:
-	ModelColumns columns;
+    ModelColumns columns;
 
 };