diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/GraphicObjects/AnalogMeter.cs | 9 | ||||
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 4 | ||||
| -rw-r--r-- | src/GraphicObjects/TemplatedContainer.cs | 4 | ||||
| -rw-r--r-- | src/GraphicObjects/TemplatedControl.cs | 4 |
4 files changed, 6 insertions, 15 deletions
diff --git a/src/GraphicObjects/AnalogMeter.cs b/src/GraphicObjects/AnalogMeter.cs index bf7f1c24..1be24c4f 100644 --- a/src/GraphicObjects/AnalogMeter.cs +++ b/src/GraphicObjects/AnalogMeter.cs @@ -17,15 +17,6 @@ namespace go } #endregion - #region implemented abstract members of TemplatedControl - - protected override void loadTemplate (GraphicObject template = null) - { - base.loadTemplate (template); - } - - #endregion - #region GraphicObject Overrides protected override void onDraw (Context gr) { diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 6a146c64..41720ed9 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -480,6 +480,8 @@ namespace go {
if (Parent==null)
return;
+
+ //Debug.WriteLine ("Layout change: " + this.ToString () + ":" + LastSlots.ToString() + "=>" + Slot.ToString ());
switch (layoutType) {
case LayoutingType.Width:
@@ -644,7 +646,7 @@ namespace go using (ImageSurface draw =
new ImageSurface(bmp, Format.Argb32, Slot.Width, Slot.Height, stride)) {
using (Context gr = new Context (draw)) {
- gr.Antialias = Antialias.Gray;
+ gr.Antialias = Antialias.Subpixel;
onDraw (gr);
}
draw.Flush ();
diff --git a/src/GraphicObjects/TemplatedContainer.cs b/src/GraphicObjects/TemplatedContainer.cs index 4d8eb832..a19f6c28 100644 --- a/src/GraphicObjects/TemplatedContainer.cs +++ b/src/GraphicObjects/TemplatedContainer.cs @@ -26,13 +26,13 @@ namespace go { public abstract class TemplatedContainer : TemplatedControl { - [XmlIgnore] - public abstract GraphicObject Content{ get; set;} + [XmlIgnore]public abstract GraphicObject Content{ get; set;} protected override void loadTemplate (GraphicObject template) { base.loadTemplate (template); } + public TemplatedContainer () : base() { } diff --git a/src/GraphicObjects/TemplatedControl.cs b/src/GraphicObjects/TemplatedControl.cs index ca3ed68c..87bbeb09 100644 --- a/src/GraphicObjects/TemplatedControl.cs +++ b/src/GraphicObjects/TemplatedControl.cs @@ -108,9 +108,7 @@ namespace go }else this.SetChild (template); } - - - + #region IXmlSerializable public override System.Xml.Schema.XmlSchema GetSchema(){ return null; } |