f-spot r4597 - trunk/src
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4597 - trunk/src
- Date: Tue, 18 Nov 2008 15:48:13 +0000 (UTC)
Author: sdelcroix
Date: Tue Nov 18 15:48:13 2008
New Revision: 4597
URL: http://svn.gnome.org/viewvc/f-spot?rev=4597&view=rev
Log:
changing abstract Operation class to IOperation interface
Added:
trunk/src/IOperation.cs
Removed:
trunk/src/Operation.cs
Modified:
trunk/src/Makefile.am
trunk/src/RotateCommand.cs
Added: trunk/src/IOperation.cs
==============================================================================
--- (empty file)
+++ trunk/src/IOperation.cs Tue Nov 18 15:48:13 2008
@@ -0,0 +1,15 @@
+/*
+ * FSpot.IOperation.cs
+ *
+ * Author(s):
+ * Larry Ewing <lewing novell com>
+ *
+ * This is free software. See COPYING for details.
+ */
+
+namespace FSpot {
+ public interface IOperation {
+ bool Step ();
+ }
+}
+
Modified: trunk/src/Makefile.am
==============================================================================
--- trunk/src/Makefile.am (original)
+++ trunk/src/Makefile.am Tue Nov 18 15:48:13 2008
@@ -180,6 +180,7 @@
$(srcdir)/Imaging/X3fFile.cs \
$(srcdir)/Imaging/XmpFile.cs \
$(srcdir)/Imaging/Tiff.cs \
+ $(srcdir)/IOperation.cs \
$(srcdir)/JobStore.cs \
$(srcdir)/Jobs/SyncMetadataJob.cs \
$(srcdir)/Jobs/CalculateHashJob.cs \
@@ -188,7 +189,6 @@
$(srcdir)/MemorySurface.cs \
$(srcdir)/MetaStore.cs \
$(srcdir)/MetadataStore.cs \
- $(srcdir)/Operation.cs \
$(srcdir)/PhotoEventArgs.cs \
$(srcdir)/PhotoImageView.cs \
$(srcdir)/PhotoLoader.cs \
Modified: trunk/src/RotateCommand.cs
==============================================================================
--- trunk/src/RotateCommand.cs (original)
+++ trunk/src/RotateCommand.cs Tue Nov 18 15:48:13 2008
@@ -42,7 +42,7 @@
Counterclockwise,
}
- public class RotateOperation : Operation {
+ public class RotateOperation : IOperation {
IBrowsableItem item;
RotateDirection direction;
bool done;
@@ -116,7 +116,7 @@
RotateOrientation (original_path, dir);
}
- public override bool Step () {
+ public bool Step () {
string original_path;
if (done)
@@ -139,7 +139,7 @@
}
}
- public class RotateMultiple : Operation {
+ public class RotateMultiple : IOperation {
RotateDirection direction;
IBrowsableItem [] items;
int index;
@@ -160,7 +160,7 @@
index = 0;
}
- public override bool Step ()
+ public bool Step ()
{
if (index >= items.Length)
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]