<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <DefineConstants>DEBUG_UPDATE0;DEBUG_FOCUS0;DEBUG_LAYOUTING0;TRACE0;DEBUG0;__linux__;MEASURE_TIME0;DEBUG_LOAD0;DEBUG_BINDING0;DEBUG_CLIP_RECTANGLE0</DefineConstants>
+ <DefineConstants>DEBUG_UPDATE0;DEBUG_FOCUS0;DEBUG_LAYOUTING0;TRACE0;DEBUG;__linux__;MEASURE_TIME0;DEBUG_LOAD0;DEBUG_BINDING0;DEBUG_CLIP_RECTANGLE0</DefineConstants>
<Optimize>false</Optimize>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
}
Icon {
Margin=1;
- Width=12;
- Height=12;
+ Width=16;
+ Height=16;
}
Control {
Margin=0;
GraphicObject obj = Load (testFiles[idx]);
obj.DataSource = this;
} catch (Exception ex) {
- Debug.WriteLine (ex.Message + ex.InnerException);
+ Console.WriteLine (ex.Message + ex.InnerException);
}
}
// void Tv_SelectedItemChanged (object sender, SelectionChangeEventArgs e)
// try {
// i = Instantiator.CreateFromImlFragment (e.Text);
// } catch (Exception ex) {
-// Debug.WriteLine (ex);
+// Console.WriteLine (ex);
// return;
// }
// lock (ifaceControl.CrowInterface.UpdateMutex) {
NotifyValueChanged ("PropertyLessBinding", test);
}
void onNew(object sender, EventArgs e){
- Debug.WriteLine ("menu new clicked");
+ Console.WriteLine ("menu new clicked");
}
}
}
}
public void onMouseDown(object sender, MouseButtonEventArgs e)
{
- Debug.WriteLine (sender.ToString ());
+ Console.WriteLine (sender.ToString ());
}
void OnSelectedItemChanged (object sender, SelectionChangeEventArgs e)
{
GL.GetProgramInfoLog(pgmId, out info);
if (!string.IsNullOrEmpty (info)) {
- Debug.WriteLine ("Linkage:");
- Debug.WriteLine (info);
+ Console.WriteLine ("Linkage:");
+ Console.WriteLine (info);
}
info = null;
GL.ValidateProgram(pgmId);
GL.GetProgramInfoLog(pgmId, out info);
if (!string.IsNullOrEmpty (info)) {
- Debug.WriteLine ("Validation:");
- Debug.WriteLine (info);
+ Console.WriteLine ("Validation:");
+ Console.WriteLine (info);
}
GL.UseProgram (pgmId);
string info;
GL.GetShaderInfoLog(shader, out info);
- Debug.WriteLine(info);
+ Console.WriteLine(info);
int compileResult;
GL.GetShader(shader, ShaderParameter.CompileStatus, out compileResult);
if (compileResult != 1)
{
- Debug.WriteLine("Compile Error!");
- Debug.WriteLine(source);
+ Console.WriteLine("Compile Error!");
+ Console.WriteLine(source);
}
}
public override string ToString ()
GL.GenerateMipmap (GenerateMipmapTarget.Texture2D);
} catch (Exception ex) {
- Debug.WriteLine ("Error loading texture: " + Map + ":" + ex.Message);
+ Console.WriteLine ("Error loading texture: " + Map + ":" + ex.Message);
}
}
}
g.DataSource = this;
}
} catch (Exception ex) {
- System.Diagnostics.Debug.WriteLine (ex.ToString ());
+ System.Diagnostics.Console.WriteLine (ex.ToString ());
showError (ex);
}
}
}
public static void DrawRoundedRectangle(Cairo.Context gr, double x, double y, double width, double height, double radius)
{
- gr.Save();
-
if ((radius > height / 2) || (radius > width / 2))
radius = min(height / 2, width / 2);
gr.LineTo(x + radius, y + height);
gr.Arc(x + radius, y + height - radius, radius, Math.PI / 2, Math.PI);
gr.ClosePath();
- gr.Restore();
}
public static void StrokeRaisedRectangle(Cairo.Context gr, Rectangle r, double width = 1)
{
RegisterForRedraw ();
}
}
- [XmlAttributeAttribute()][DefaultValue("sans,10")]
+ [XmlAttributeAttribute()][DefaultValue("sans,12")]
public virtual Font Font {
get { return font; }
set {