Author: p.zurek
Date: Thu Sep 4 20:58:07 2008
New Revision: 427
Modified:
trunk/Psycho/src/Libraries/Teddy/Teddy.Core/Teddy.Core.Canvas/Canvas.cs
Log:
Fixed encoding again
Modified:
trunk/Psycho/src/Libraries/Teddy/Teddy.Core/Teddy.Core.Canvas/Canvas.cs
==============================================================================
--- trunk/Psycho/src/Libraries/Teddy/Teddy.Core/Teddy.Core.Canvas/Canvas.cs
(original)
+++ trunk/Psycho/src/Libraries/Teddy/Teddy.Core/Teddy.Core.Canvas/Canvas.cs
Thu Sep 4 20:58:07 2008
@@ -1 +1,132 @@
-//------10--------20--------30--------40--------50--------60--------70--------80
//
//
Canvas.cs
//
// Copyright (C) 2008 Piotr Zurek
p.z...@gmail.com
//
//
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 3 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, see <
http://www.gnu.org/licenses/>.
//
using
System;
using System.Collections;
using System.Collections.Generic;
using
Cairo;
using Gtk;
using Teddy.Core;
namespace Teddy.Core
{
public class
Canvas : DrawingArea, ICanvas
{
double width;
double height;
bool
isDirty;
IShapeList<IShape> shapes;
ILayerList<ILayer> layers;
IShapeList<IShape> selection;
public double Width {
get {
return width;
}
set {
width = value;
}
}
public double
Height {
get {
return height;
}
set {
height = value;
}
}
public bool IsDirty {
get {
return isDirty;
}
set {
isDirty = value;
}
}
public IShapeList<IShape> Shapes {
get {
return shapes;
}
set {
shapes = value;
}
}
public
IShapeList<IShape> Selection {
get {
return selection;
}
set
{
selection = value;
}
}
public ILayerList<ILayer> Layers {
get {
return layers;
}
set {
layers = value;
}
}
public Canvas()
{
}
public void AddShape (IShape new_shape)
{
Shapes.Add (new_shape);
}
public void MoveSelectedShapes (double x,
double y)
{
throw new NotImplementedException();
}
public void
DeleteSelectedShapes ()
{
if (Selection.Count > 0)
foreach (IShape
shape in Selection)
if (Shapes.Contains(shape))
Shapes.Remove(shape);
}
public void ClearSelection ()
{
Selection.Clear();
}
public IShape GetShapeAt (double x, double y)
{
throw new NotImplementedException();
}
public IList<IShape> GetShapesAt (double x, double y,
double width, double height)
{
throw new NotImplementedException();
}
}
}
\ No newline at end of file
+//------10--------20--------30--------40--------50--------60--------70--------80
+//
+// Canvas.cs
+//
+// Copyright (C) 2008 Piotr Zurek
p.z...@gmail.com
+//
+// 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 3 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, see <
http://www.gnu.org/licenses/>.
+//
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+using Cairo;
+using Gtk;
+
using Teddy.Core;
+
+namespace Teddy.Core
+{
+ public class Canvas : DrawingArea, ICanvas
+ {
+ double width;
+ double height;
+ bool isDirty;
+ IShapeList<IShape> shapes;
+ ILayerList<ILayer> layers;
+ IShapeList<IShape> selection;
+
+ public double Width {
+ get {
+ return width;
+ }
+ set {
+ width = value;
+ }
+ }
+
+ public double Height {
+ get {
+ return height;
+ }
+ set {
+ height = value;
+ }
+ }
+
+ public bool IsDirty {
+ get {
+ return isDirty;
+ }
+ set {
+ isDirty = value;
+ }
+ }
+
+ public IShapeList<IShape> Shapes {
+ get {
+ return shapes;
+ }
+ set {
+ shapes = value;
+ }
+ }
+
+ public IShapeList<IShape> Selection {
+ get {
+ return selection;
+ }
+ set {
+ selection = value;
+ }
+ }
+
+ public ILayerList<ILayer> Layers {
+ get {
+ return layers;
+ }
+ set {
+ layers = value;
+ }
+ }
+
+ public Canvas()
+ {
+ }
+
+ public void AddShape (IShape new_shape)
+ {
+ Shapes.Add (new_shape);
+ }
+
+ public void MoveSelectedShapes (double x, double y)
+ {
+ throw new NotImplementedException();
+ }
+
+ public void DeleteSelectedShapes ()
+ {
+ if (Selection.Count > 0)
+ foreach (IShape shape in Selection)
+ if (Shapes.Contains(shape))
+ Shapes.Remove(shape);
+ }
+
+ public void ClearSelection ()
+ {
+ Selection.Clear();
+ }
+
+ public IShape GetShapeAt (double x, double y)
+ {
+ throw new NotImplementedException();
+ }
+
+ public IList<IShape> GetShapesAt (double x, double y,
+ double width, double height)
+ {
+ throw new NotImplementedException();
+ }
+ }
+}