port from perforce
This commit is contained in:
6
hgplus/bliss/Tweaky/App.config
Normal file
6
hgplus/bliss/Tweaky/App.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
|
||||
</startup>
|
||||
</configuration>
|
||||
14
hgplus/bliss/Tweaky/App.xaml
Normal file
14
hgplus/bliss/Tweaky/App.xaml
Normal file
@@ -0,0 +1,14 @@
|
||||
<Application x:Class="Tweaky.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
StartupUri="MainWindow.xaml">
|
||||
<Application.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="Theme.xaml" />
|
||||
<ResourceDictionary Source="Resources.xaml" />
|
||||
<ResourceDictionary Source="EditorTemplates.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Application.Resources>
|
||||
</Application>
|
||||
59
hgplus/bliss/Tweaky/App.xaml.cs
Normal file
59
hgplus/bliss/Tweaky/App.xaml.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace Tweaky
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for App.xaml
|
||||
/// </summary>
|
||||
public partial class App : Application
|
||||
{
|
||||
public App()
|
||||
{
|
||||
this.DispatcherUnhandledException += App_DispatcherUnhandledException;
|
||||
AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionHandler;
|
||||
}
|
||||
|
||||
private void UnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
ShowException(e.ExceptionObject as Exception);
|
||||
this.Shutdown();
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
ShowException(e.Exception);
|
||||
this.Shutdown();
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
private static void ShowException(Exception exception)
|
||||
{
|
||||
var message = exception.Message + " at:\n" + exception.StackTrace + "\n\n";
|
||||
do
|
||||
{
|
||||
exception = exception.InnerException;
|
||||
if (exception != null)
|
||||
message += exception.Message + " at:\n" + exception.StackTrace + "\n\n";
|
||||
}
|
||||
while (exception != null);
|
||||
System.Windows.Forms.MessageBox.Show(message, "Unhandled exception");
|
||||
}
|
||||
}
|
||||
}
|
||||
468
hgplus/bliss/Tweaky/ColorEditorBase.cs
Normal file
468
hgplus/bliss/Tweaky/ColorEditorBase.cs
Normal file
@@ -0,0 +1,468 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using Tweaky.PropertyGrid;
|
||||
|
||||
namespace Tweaky
|
||||
{
|
||||
[TemplatePart(Name = "PART_PopupButton", Type = typeof(Button))]
|
||||
[TemplatePart(Name = "PART_Popup", Type = typeof(Popup))]
|
||||
[TemplatePart(Name = "PART_SatValImage", Type = typeof(Border))]
|
||||
[TemplatePart(Name = "PART_HueImage", Type = typeof(Image))]
|
||||
[TemplatePart(Name = "PART_OriginalColorBorder", Type = typeof(Border))]
|
||||
[TemplatePart(Name = "HGradientBorder", Type = typeof(Border))]
|
||||
public class ColorEditorBase : EditorBase<System.Drawing.Color>
|
||||
{
|
||||
public ColorEditorBase()
|
||||
{
|
||||
this.LayoutUpdated += ColorEditorBase_LayoutUpdated;
|
||||
}
|
||||
|
||||
void ColorEditorBase_LayoutUpdated(object sender, EventArgs e)
|
||||
{
|
||||
RaisePropertyChanged(null);
|
||||
}
|
||||
|
||||
static ColorEditorBase()
|
||||
{
|
||||
DefaultStyleKeyProperty.OverrideMetadata(typeof(ColorEditorBase), new FrameworkPropertyMetadata(typeof(ColorEditorBase)));
|
||||
}
|
||||
|
||||
protected ToggleButton PopupButton;
|
||||
protected Popup Popup;
|
||||
protected Border SatValImage;
|
||||
protected Image HueImage;
|
||||
protected Border OriginalColorBorder;
|
||||
protected Border HGradientBorder;
|
||||
|
||||
public override void OnApplyTemplate()
|
||||
{
|
||||
base.OnApplyTemplate();
|
||||
|
||||
this.OriginalColorBorder = this.Template.FindName("PART_OriginalColorBorder", this) as Border;
|
||||
this.PopupButton = this.Template.FindName("PART_PopupButton", this) as ToggleButton;
|
||||
this.SatValImage = this.Template.FindName("PART_SatValImage", this) as Border;
|
||||
this.HueImage = this.Template.FindName("PART_HueImage", this) as Image;
|
||||
this.HGradientBorder = this.Template.FindName("HGradientBorder", this) as Border;
|
||||
|
||||
RaisePropertyChanged(null);
|
||||
}
|
||||
}
|
||||
|
||||
public abstract class ColorEditorBase<T> : ColorEditorBase
|
||||
{
|
||||
static ColorEditorBase()
|
||||
{
|
||||
DefaultStyleKeyProperty.OverrideMetadata(typeof(ColorEditorBase<T>), new FrameworkPropertyMetadata(typeof(ColorEditorBase<T>)));
|
||||
}
|
||||
|
||||
public ColorEditorBase()
|
||||
{
|
||||
UseAlpha = true;
|
||||
}
|
||||
|
||||
public override void OnApplyTemplate()
|
||||
{
|
||||
base.OnApplyTemplate();
|
||||
|
||||
OriginalColorBorder.Cursor = new Cursor(Application.GetResourceStream(new Uri("pack://application:,,,/Tweaky;component/colorpicker.cur")).Stream);
|
||||
OriginalColorBorder.PreviewMouseDown += OriginalColorBorder_MouseDown;
|
||||
|
||||
SatValImage.MouseDown += SatVal_MouseDown;
|
||||
SatValImage.MouseMove += SatVal_MouseMove;
|
||||
SatValImage.MouseUp += SatVal_MouseUp;
|
||||
|
||||
HGradientBorder.MouseDown += Hue_MouseDown;
|
||||
HGradientBorder.MouseMove += Hue_MouseMove;
|
||||
HGradientBorder.MouseUp += Hue_MouseUp;
|
||||
|
||||
InitializeFromExternalColor();
|
||||
|
||||
this.LayoutUpdated += ColorEditorBase_LayoutUpdated;
|
||||
}
|
||||
|
||||
void ColorEditorBase_LayoutUpdated(object sender, EventArgs e)
|
||||
{
|
||||
RaisePropertyChanged("HueIndicatorPosition");
|
||||
}
|
||||
|
||||
public CustomPopupPlacement[] placePopup(Size popupSize, Size targetSize, Point offset)
|
||||
{
|
||||
CustomPopupPlacement placement1 = new CustomPopupPlacement(new Point(targetSize.Width - popupSize.Width, targetSize.Height), PopupPrimaryAxis.Horizontal);
|
||||
CustomPopupPlacement placement2 = new CustomPopupPlacement(new Point(0, targetSize.Height), PopupPrimaryAxis.Horizontal);
|
||||
CustomPopupPlacement[] ttplaces = new CustomPopupPlacement[] { placement1, placement2 };
|
||||
return ttplaces;
|
||||
}
|
||||
|
||||
public abstract T Red { get; set; }
|
||||
public abstract T Green { get; set; }
|
||||
public abstract T Blue { get; set; }
|
||||
public abstract T Alpha { get; set; }
|
||||
|
||||
protected double hue;
|
||||
public double Hue
|
||||
{
|
||||
get
|
||||
{
|
||||
return hue;
|
||||
}
|
||||
set
|
||||
{
|
||||
hue = value;
|
||||
UpdateColorFromHSV(hue, sat, val);
|
||||
}
|
||||
}
|
||||
|
||||
protected double sat;
|
||||
public double Sat
|
||||
{
|
||||
get
|
||||
{
|
||||
return sat;
|
||||
}
|
||||
set
|
||||
{
|
||||
sat = value;
|
||||
UpdateColorFromHSV(hue, sat, val);
|
||||
}
|
||||
}
|
||||
|
||||
protected double val;
|
||||
public double Val
|
||||
{
|
||||
get
|
||||
{
|
||||
return val;
|
||||
}
|
||||
set
|
||||
{
|
||||
val = value;
|
||||
UpdateColorFromHSV(hue, sat, val);
|
||||
}
|
||||
}
|
||||
|
||||
public Brush BackgroundBrush
|
||||
{
|
||||
get;
|
||||
protected set;
|
||||
}
|
||||
|
||||
protected abstract void UpdateColorFromHSV(double hue, double sat, double val);
|
||||
protected abstract void UpdateColorFromRGB(T red, T green, T blue);
|
||||
protected abstract void UpdateColor(System.Drawing.Color color);
|
||||
|
||||
public Brush ExternalBackgroundBrush
|
||||
{
|
||||
get;
|
||||
protected set;
|
||||
}
|
||||
|
||||
public Brush HueBrush
|
||||
{
|
||||
get;
|
||||
protected set;
|
||||
}
|
||||
|
||||
public T[] Values
|
||||
{
|
||||
get
|
||||
{
|
||||
return new T[]
|
||||
{
|
||||
Alpha,
|
||||
Red,
|
||||
Green,
|
||||
Blue
|
||||
};
|
||||
}
|
||||
set
|
||||
{
|
||||
Value = GetColorFromValues(value);
|
||||
}
|
||||
}
|
||||
|
||||
protected abstract System.Drawing.Color GetColorFromValues(T[] value);
|
||||
|
||||
protected static System.Drawing.Color ColorFromHex(string value)
|
||||
{
|
||||
var converter = new System.Drawing.ColorConverter();
|
||||
if (value == null)
|
||||
return System.Drawing.Color.White;
|
||||
return (System.Drawing.Color)converter.ConvertFromString(null, System.Globalization.CultureInfo.InvariantCulture, value);
|
||||
}
|
||||
|
||||
public string Hex
|
||||
{
|
||||
get
|
||||
{
|
||||
return ColorToHex(Value);
|
||||
}
|
||||
set
|
||||
{
|
||||
try
|
||||
{
|
||||
Value = ColorFromHex(value);
|
||||
UpdateColor(Value);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override System.Drawing.Color Value
|
||||
{
|
||||
get
|
||||
{
|
||||
return GetColorFromValue();
|
||||
}
|
||||
set
|
||||
{
|
||||
SetColorFromValue(value);
|
||||
|
||||
OnValueChanged();
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void SetColorFromValue(System.Drawing.Color value)
|
||||
{
|
||||
(this.DataContext as PropertyItem).Value = value;
|
||||
}
|
||||
|
||||
protected virtual System.Drawing.Color GetColorFromValue()
|
||||
{
|
||||
if (!(this.DataContext is PropertyItem))
|
||||
return System.Drawing.Color.White;
|
||||
|
||||
if ((this.DataContext as PropertyItem).Value == null)
|
||||
return System.Drawing.Color.White;
|
||||
|
||||
if ((this.DataContext as PropertyItem).Value is System.Drawing.Color)
|
||||
return (System.Drawing.Color)(this.DataContext as PropertyItem).Value;
|
||||
|
||||
return System.Drawing.Color.White;
|
||||
}
|
||||
|
||||
public override void OnValueChanged()
|
||||
{
|
||||
base.OnValueChanged();
|
||||
|
||||
RaisePropertyChanged(null);
|
||||
}
|
||||
|
||||
protected string ColorToHex(System.Drawing.Color value)
|
||||
{
|
||||
var values = new byte[] { value.A, value.R, value.G, value.B };
|
||||
return "#" + BitConverter.ToString(values).Replace("-", string.Empty);
|
||||
}
|
||||
|
||||
protected bool useAlpha;
|
||||
public bool UseAlpha
|
||||
{
|
||||
get
|
||||
{
|
||||
return useAlpha;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (useAlpha == value)
|
||||
return;
|
||||
|
||||
useAlpha = value;
|
||||
RaisePropertyChanged("UseAlpha");
|
||||
RaisePropertyChanged("AlphaGuiVisibility");
|
||||
}
|
||||
}
|
||||
|
||||
public Visibility AlphaGuiVisibility
|
||||
{
|
||||
get
|
||||
{
|
||||
return useAlpha ? Visibility.Visible : Visibility.Collapsed;
|
||||
}
|
||||
}
|
||||
|
||||
protected double[] RGBtoHSV(double r, double g, double b)
|
||||
{
|
||||
double h, s, v;
|
||||
double min, max, delta;
|
||||
min = Math.Min(r, Math.Min(g, b));
|
||||
max = Math.Max(r, Math.Max(g, b));
|
||||
v = max;
|
||||
delta = max - min;
|
||||
if (max == 0 || delta == 0)
|
||||
{
|
||||
s = 0;
|
||||
h = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
s = delta / max;
|
||||
if (r == max)
|
||||
h = (g - b) / delta;
|
||||
else if (g == max)
|
||||
h = 2 + (b - r) / delta;
|
||||
else
|
||||
h = 4 + (r - g) / delta;
|
||||
h *= 60;
|
||||
if (h < 0)
|
||||
h += 360;
|
||||
}
|
||||
|
||||
return new double[] { h, s, v };
|
||||
}
|
||||
|
||||
protected double[] HSVtoRGB(double h, double s, double v)
|
||||
{
|
||||
int i;
|
||||
double r, g, b;
|
||||
double f, p, q, t;
|
||||
if (s == 0)
|
||||
{
|
||||
r = g = b = v;
|
||||
}
|
||||
else
|
||||
{
|
||||
h /= 60;
|
||||
i = (int)Math.Floor(h);
|
||||
f = h - i;
|
||||
p = v * (1 - s);
|
||||
q = v * (1 - s * f);
|
||||
t = v * (1 - s * (1 - f));
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
r = v;
|
||||
g = t;
|
||||
b = p;
|
||||
break;
|
||||
case 1:
|
||||
r = q;
|
||||
g = v;
|
||||
b = p;
|
||||
break;
|
||||
case 2:
|
||||
r = p;
|
||||
g = v;
|
||||
b = t;
|
||||
break;
|
||||
case 3:
|
||||
r = p;
|
||||
g = q;
|
||||
b = v;
|
||||
break;
|
||||
case 4:
|
||||
r = t;
|
||||
g = p;
|
||||
b = v;
|
||||
break;
|
||||
default: // case 5:
|
||||
r = v;
|
||||
g = p;
|
||||
b = q;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return new double[] { r, g, b };
|
||||
}
|
||||
|
||||
protected void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Popup.IsOpen = true;
|
||||
}
|
||||
|
||||
protected bool hueDown = false;
|
||||
protected bool satValDown = false;
|
||||
|
||||
protected void Hue_MouseDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
HGradientBorder.CaptureMouse();
|
||||
hueDown = true;
|
||||
UpdateHue(e.GetPosition(HGradientBorder));
|
||||
}
|
||||
|
||||
protected void UpdateHue(Point point)
|
||||
{
|
||||
if (!hueDown)
|
||||
return;
|
||||
|
||||
Hue = Math.Max(0, Math.Min(360.0, 360.0 * (point.X / HGradientBorder.ActualWidth)));
|
||||
}
|
||||
|
||||
protected void Hue_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
UpdateHue(e.GetPosition(HGradientBorder));
|
||||
}
|
||||
|
||||
protected void Hue_MouseUp(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
hueDown = false;
|
||||
HGradientBorder.ReleaseMouseCapture();
|
||||
}
|
||||
|
||||
protected void SatVal_MouseDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
SatValImage.CaptureMouse();
|
||||
satValDown = true;
|
||||
UpdateSatVal(e.GetPosition(SatValImage));
|
||||
}
|
||||
|
||||
protected void UpdateSatVal(Point point)
|
||||
{
|
||||
if (!satValDown)
|
||||
return;
|
||||
|
||||
Sat = Math.Max(0, Math.Min(1, point.X / SatValImage.ActualWidth));
|
||||
Val = Math.Max(0, Math.Min(1, 1.0 - (point.Y / SatValImage.ActualHeight)));
|
||||
}
|
||||
|
||||
protected void SatVal_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
UpdateSatVal(e.GetPosition(SatValImage));
|
||||
}
|
||||
|
||||
protected void SatVal_MouseUp(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
satValDown = false;
|
||||
SatValImage.ReleaseMouseCapture();
|
||||
}
|
||||
|
||||
public double HueIndicatorPosition
|
||||
{
|
||||
get
|
||||
{
|
||||
return Hue * (HueImage == null ? 1 : HueImage.ActualWidth) / 360.0;
|
||||
}
|
||||
}
|
||||
|
||||
public double SatIndicatorPosition
|
||||
{
|
||||
get
|
||||
{
|
||||
return Sat * (SatValImage == null ? 1 : SatValImage.ActualWidth);
|
||||
}
|
||||
}
|
||||
|
||||
public double ValIndicatorPosition
|
||||
{
|
||||
get
|
||||
{
|
||||
return (1.0 - Val) * (SatValImage == null ? 1 : SatValImage.ActualHeight);
|
||||
}
|
||||
}
|
||||
|
||||
protected abstract void InitializeFromExternalColor();
|
||||
|
||||
protected void OriginalColorBorder_MouseDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
InitializeFromExternalColor();
|
||||
}
|
||||
}
|
||||
}
|
||||
318
hgplus/bliss/Tweaky/DataViewModel.cs
Normal file
318
hgplus/bliss/Tweaky/DataViewModel.cs
Normal file
@@ -0,0 +1,318 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Timers;
|
||||
|
||||
namespace Tweaky
|
||||
{
|
||||
public struct float3
|
||||
{
|
||||
public float x, y, z;
|
||||
};
|
||||
|
||||
public struct float4
|
||||
{
|
||||
public float4(float x, float y, float z, float w)
|
||||
{
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
this.w = w;
|
||||
}
|
||||
|
||||
public float x, y, z, w;
|
||||
};
|
||||
|
||||
public struct TweakBufferType
|
||||
{
|
||||
public float4
|
||||
_fN, // _f Night
|
||||
_fD, // _f Day
|
||||
_r1N, // grade Lift Night
|
||||
_r1D, // grade Lift Day
|
||||
_r2N, // grade Gamma Night
|
||||
_r2D, // grade Gamma Day
|
||||
_r3N, // grade Gain Night
|
||||
_r3D, // grade Gain Day
|
||||
_lN, // _f Night
|
||||
_lD; // _f Day
|
||||
};
|
||||
|
||||
public class DataViewModel : ViewModelBase, IDisposable
|
||||
{
|
||||
Timer timer;
|
||||
string path;
|
||||
|
||||
unsafe public DataViewModel(string path)
|
||||
{
|
||||
this.path = path;
|
||||
mem = new SharedMemory<TweakBufferType>(path, Marshal.SizeOf(typeof(TweakBufferType)));
|
||||
mem.Open();
|
||||
|
||||
using (var stream = new FileStream(path + ".bin", FileMode.Open))
|
||||
{
|
||||
var buffer = new byte[Marshal.SizeOf(typeof(TweakBufferType))];
|
||||
stream.Read(buffer, 0, buffer.Length);
|
||||
fixed (byte* ptr = &buffer[0])
|
||||
{
|
||||
TweakBufferType* tweakBuffer = (TweakBufferType*)ptr;
|
||||
mem.Data = tweakBuffer[0];
|
||||
}
|
||||
}
|
||||
|
||||
timer = new Timer();
|
||||
timer.Interval = 1000;
|
||||
timer.Elapsed += timer_Elapsed;
|
||||
timer.Start();
|
||||
}
|
||||
|
||||
void timer_Elapsed(object sender, ElapsedEventArgs e)
|
||||
{
|
||||
if (dirty)
|
||||
{
|
||||
dirty = false;
|
||||
Save();
|
||||
}
|
||||
}
|
||||
|
||||
[Category("Night")]
|
||||
public Color FogNight
|
||||
{
|
||||
get
|
||||
{
|
||||
var data = mem.Data;
|
||||
return CreateColor(data._fN);
|
||||
}
|
||||
set
|
||||
{
|
||||
var data = mem.Data;
|
||||
data._fN = ConvertColor(value);
|
||||
mem.Data = data;
|
||||
}
|
||||
}
|
||||
|
||||
[Category("Day")]
|
||||
public Color FogDay
|
||||
{
|
||||
get
|
||||
{
|
||||
var data = mem.Data;
|
||||
return CreateColor(data._fD);
|
||||
}
|
||||
set
|
||||
{
|
||||
var data = mem.Data;
|
||||
data._fD = ConvertColor(value);
|
||||
mem.Data = data;
|
||||
}
|
||||
}
|
||||
|
||||
[Category("Night")]
|
||||
[DisplayName("Color Grading: Lift")]
|
||||
public Color GradeLiftNight
|
||||
{
|
||||
get
|
||||
{
|
||||
var data = mem.Data;
|
||||
return CreateColor(data._r1N);
|
||||
}
|
||||
[ExecuteAfter("MarkDirty")]
|
||||
set
|
||||
{
|
||||
var data = mem.Data;
|
||||
data._r1N = ConvertColor(value);
|
||||
mem.Data = data;
|
||||
}
|
||||
}
|
||||
|
||||
[Category("Day")]
|
||||
[DisplayName("Color Grading: Lift")]
|
||||
public Color GradeLiftDay
|
||||
{
|
||||
get
|
||||
{
|
||||
var data = mem.Data;
|
||||
return CreateColor(data._r1D);
|
||||
}
|
||||
[ExecuteAfter("MarkDirty")]
|
||||
set
|
||||
{
|
||||
var data = mem.Data;
|
||||
data._r1D = ConvertColor(value);
|
||||
mem.Data = data;
|
||||
}
|
||||
}
|
||||
|
||||
[Category("Night")]
|
||||
[DisplayName("Color Grading: Gamma")]
|
||||
public Color GradeGammaNight
|
||||
{
|
||||
get
|
||||
{
|
||||
var data = mem.Data;
|
||||
return CreateColor(data._r2N);
|
||||
}
|
||||
[ExecuteAfter("MarkDirty")]
|
||||
set
|
||||
{
|
||||
var data = mem.Data;
|
||||
data._r2N = ConvertColor(value);
|
||||
mem.Data = data;
|
||||
}
|
||||
}
|
||||
|
||||
[Category("Day")]
|
||||
[DisplayName("Color Grading: Gamma")]
|
||||
public Color GradeGammaDay
|
||||
{
|
||||
get
|
||||
{
|
||||
var data = mem.Data;
|
||||
return CreateColor(data._r2D);
|
||||
}
|
||||
[ExecuteAfter("MarkDirty")]
|
||||
set
|
||||
{
|
||||
var data = mem.Data;
|
||||
data._r2D = ConvertColor(value);
|
||||
mem.Data = data;
|
||||
}
|
||||
}
|
||||
|
||||
[Category("Night")]
|
||||
[DisplayName("Color Grading: Gain")]
|
||||
public Color GradeGainNight
|
||||
{
|
||||
get
|
||||
{
|
||||
var data = mem.Data;
|
||||
return CreateColor(data._r3N);
|
||||
}
|
||||
[ExecuteAfter("MarkDirty")]
|
||||
set
|
||||
{
|
||||
var data = mem.Data;
|
||||
data._r3N = ConvertColor(value);
|
||||
mem.Data = data;
|
||||
}
|
||||
}
|
||||
|
||||
[Category("Day")]
|
||||
[DisplayName("Color Grading: Gain")]
|
||||
public Color GradeGainDay
|
||||
{
|
||||
get
|
||||
{
|
||||
var data = mem.Data;
|
||||
return CreateColor(data._r3D);
|
||||
}
|
||||
[ExecuteAfter("MarkDirty")]
|
||||
set
|
||||
{
|
||||
var data = mem.Data;
|
||||
data._r3D = ConvertColor(value);
|
||||
mem.Data = data;
|
||||
}
|
||||
}
|
||||
|
||||
[Category("Night")]
|
||||
[DisplayName("Light direction")]
|
||||
[Range(-1, 1, 0.1f)]
|
||||
public float4 LightDirectionNight
|
||||
{
|
||||
get
|
||||
{
|
||||
var data = mem.Data;
|
||||
return data._lN;
|
||||
}
|
||||
[ExecuteAfter("MarkDirty")]
|
||||
set
|
||||
{
|
||||
var data = mem.Data;
|
||||
data._lN = value;
|
||||
mem.Data = data;
|
||||
}
|
||||
}
|
||||
|
||||
[Category("Day")]
|
||||
[DisplayName("Light direction")]
|
||||
[Range(-1, 1, 0.1f)]
|
||||
public float4 LightDirectionDay
|
||||
{
|
||||
get
|
||||
{
|
||||
var data = mem.Data;
|
||||
return data._lD;
|
||||
}
|
||||
[ExecuteAfter("MarkDirty")]
|
||||
set
|
||||
{
|
||||
var data = mem.Data;
|
||||
data._lD = value;
|
||||
mem.Data = data;
|
||||
}
|
||||
}
|
||||
|
||||
private static Color CreateColor(float4 val)
|
||||
{
|
||||
return Color.FromArgb((int)(val.w * 255), (int)(val.x * 255), (int)(val.y * 255), (int)(val.z * 255));
|
||||
}
|
||||
|
||||
private static float4 ConvertColor(Color val)
|
||||
{
|
||||
return new float4() { x = val.R / 255.0f, y = val.G / 255.0f, z = val.B / 255.0f, w = val.A / 255.0f };
|
||||
}
|
||||
|
||||
private SharedMemory<TweakBufferType> mem;
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Save();
|
||||
|
||||
mem.Close();
|
||||
}
|
||||
|
||||
private bool dirty = false;
|
||||
public void MarkDirty()
|
||||
{
|
||||
this.dirty = true;
|
||||
}
|
||||
|
||||
unsafe private void Save()
|
||||
{
|
||||
var buffer = new byte[Marshal.SizeOf(typeof(TweakBufferType))];
|
||||
|
||||
using (var stream = new FileStream(path + ".bin", FileMode.Create))
|
||||
{
|
||||
fixed (byte* ptr = &buffer[0])
|
||||
{
|
||||
TweakBufferType* tweakBuffer = (TweakBufferType*)ptr;
|
||||
tweakBuffer[0] = mem.Data;
|
||||
}
|
||||
stream.Write(buffer, 0, buffer.Length);
|
||||
}
|
||||
|
||||
using (var stream = new FileStream(path + ".h", FileMode.Create))
|
||||
{
|
||||
using (var writer = new StreamWriter(stream))
|
||||
{
|
||||
writer.Write("#pragma once\n\n");
|
||||
writer.Write("#define " + path.ToUpper() + "_SIZE " + buffer.Length + "\n\n");
|
||||
writer.Write("#pragma data_seg(\"." + path + "\")\n");
|
||||
writer.Write("static unsigned char " + path + "[] = {\n\t");
|
||||
foreach (var b in buffer)
|
||||
{
|
||||
writer.Write("" + b + ", ");
|
||||
}
|
||||
writer.Write("\n};\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
27
hgplus/bliss/Tweaky/DefaultEditor.cs
Normal file
27
hgplus/bliss/Tweaky/DefaultEditor.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace Tweaky
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for DefaultEditor.xaml
|
||||
/// </summary>
|
||||
public class DefaultEditor : EditorBase<object>
|
||||
{
|
||||
static DefaultEditor()
|
||||
{
|
||||
DefaultStyleKeyProperty.OverrideMetadata(typeof(DefaultEditor), new FrameworkPropertyMetadata(typeof(DefaultEditor)));
|
||||
}
|
||||
}
|
||||
}
|
||||
82
hgplus/bliss/Tweaky/EditorBase.cs
Normal file
82
hgplus/bliss/Tweaky/EditorBase.cs
Normal file
@@ -0,0 +1,82 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using Tweaky.PropertyGrid;
|
||||
|
||||
namespace Tweaky
|
||||
{
|
||||
public class EditorBase<T> : Control, INotifyPropertyChanged
|
||||
{
|
||||
static EditorBase()
|
||||
{
|
||||
DefaultStyleKeyProperty.OverrideMetadata(typeof(EditorBase<T>), new FrameworkPropertyMetadata(typeof(EditorBase<T>)));
|
||||
}
|
||||
|
||||
public EditorBase()
|
||||
{
|
||||
this.DataContextChanged += EditorBase_DataContextChanged;
|
||||
}
|
||||
|
||||
void EditorBase_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
if (e.OldValue != null && e.OldValue is PropertyItem)
|
||||
(e.OldValue as PropertyItem).PropertyChanged -= EditorBase_PropertyChanged;
|
||||
|
||||
if (e.NewValue != null && e.NewValue is PropertyItem)
|
||||
{
|
||||
(e.NewValue as PropertyItem).PropertyChanged -= EditorBase_PropertyChanged;
|
||||
(e.NewValue as PropertyItem).PropertyChanged += EditorBase_PropertyChanged;
|
||||
}
|
||||
}
|
||||
|
||||
void EditorBase_PropertyChanged(object sender, PropertyChangedEventArgs e)
|
||||
{
|
||||
if (e.PropertyName == "Value")
|
||||
OnValueChanged();
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
public void RaisePropertyChanged(string propertyName)
|
||||
{
|
||||
if (PropertyChanged != null)
|
||||
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
|
||||
public virtual void OnValueChanged()
|
||||
{
|
||||
RaisePropertyChanged(null);
|
||||
}
|
||||
|
||||
public float Step
|
||||
{
|
||||
get
|
||||
{
|
||||
return 1.0f;
|
||||
}
|
||||
}
|
||||
|
||||
public virtual T Value
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.DataContext is PropertyItem)
|
||||
return (T)(this.DataContext as PropertyItem).Value;
|
||||
|
||||
return default(T);
|
||||
}
|
||||
set
|
||||
{
|
||||
if (this.DataContext is PropertyItem)
|
||||
{
|
||||
(this.DataContext as PropertyItem).Value = value;
|
||||
OnValueChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
246
hgplus/bliss/Tweaky/EditorTemplates.xaml
Normal file
246
hgplus/bliss/Tweaky/EditorTemplates.xaml
Normal file
@@ -0,0 +1,246 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:c="clr-namespace:Tweaky"
|
||||
xmlns:e="clr-namespace:Tweaky">
|
||||
|
||||
<Style x:Key="{x:Type e:Float4Editor}" TargetType="{x:Type Control}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Control}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Column="0" Margin="2,0,2,1" VerticalAlignment="Center">X:</TextBlock>
|
||||
<TextBlock Grid.Column="3" Margin="2,0,2,1" VerticalAlignment="Center">Y:</TextBlock>
|
||||
<TextBlock Grid.Column="6" Margin="2,0,2,1" VerticalAlignment="Center">Z:</TextBlock>
|
||||
<TextBlock Grid.Column="9" Margin="2,0,2,1" VerticalAlignment="Center">W:</TextBlock>
|
||||
<Slider SmallChange="{Binding Step, RelativeSource={RelativeSource TemplatedParent}}" Minimum="{Binding Minimum, RelativeSource={RelativeSource TemplatedParent}}" Maximum="{Binding Maximum, RelativeSource={RelativeSource TemplatedParent}}" Grid.Column="1" VerticalAlignment="Stretch" IsEnabled="{Binding IsEnabled, RelativeSource={RelativeSource TemplatedParent}}" Value="{Binding X, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" />
|
||||
<Slider SmallChange="{Binding Step, RelativeSource={RelativeSource TemplatedParent}}" Minimum="{Binding Minimum, RelativeSource={RelativeSource TemplatedParent}}" Maximum="{Binding Maximum, RelativeSource={RelativeSource TemplatedParent}}" Grid.Column="4" VerticalAlignment="Stretch" IsEnabled="{Binding IsEnabled, RelativeSource={RelativeSource TemplatedParent}}" Value="{Binding Y, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" />
|
||||
<Slider SmallChange="{Binding Step, RelativeSource={RelativeSource TemplatedParent}}" Minimum="{Binding Minimum, RelativeSource={RelativeSource TemplatedParent}}" Maximum="{Binding Maximum, RelativeSource={RelativeSource TemplatedParent}}" Grid.Column="7" VerticalAlignment="Stretch" IsEnabled="{Binding IsEnabled, RelativeSource={RelativeSource TemplatedParent}}" Value="{Binding Z, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" />
|
||||
<Slider SmallChange="{Binding Step, RelativeSource={RelativeSource TemplatedParent}}" Minimum="{Binding Minimum, RelativeSource={RelativeSource TemplatedParent}}" Maximum="{Binding Maximum, RelativeSource={RelativeSource TemplatedParent}}" Grid.Column="10" VerticalAlignment="Stretch" IsEnabled="{Binding IsEnabled, RelativeSource={RelativeSource TemplatedParent}}" Value="{Binding W, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Column="2" IsEnabled="{Binding IsEnabled, RelativeSource={RelativeSource TemplatedParent}}" Text="{Binding X, RelativeSource={RelativeSource TemplatedParent}, StringFormat=N2}" />
|
||||
<TextBlock Grid.Column="5" IsEnabled="{Binding IsEnabled, RelativeSource={RelativeSource TemplatedParent}}" Text="{Binding Y, RelativeSource={RelativeSource TemplatedParent}, StringFormat=N2}" />
|
||||
<TextBlock Grid.Column="8" IsEnabled="{Binding IsEnabled, RelativeSource={RelativeSource TemplatedParent}}" Text="{Binding Z, RelativeSource={RelativeSource TemplatedParent}, StringFormat=N2}" />
|
||||
<TextBlock Grid.Column="11" IsEnabled="{Binding IsEnabled, RelativeSource={RelativeSource TemplatedParent}}" Text="{Binding W, RelativeSource={RelativeSource TemplatedParent}, StringFormat=N2}" />
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="{x:Type e:ColorEditorBase}" TargetType="{x:Type e:ColorEditorBase}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type e:ColorEditorBase}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border x:Name="SVGradientBorder" Margin="5" BorderThickness="1" CornerRadius="2" Height="64" Width="64">
|
||||
<Border.BorderBrush>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#FFFFFFFF" Offset="0" />
|
||||
<GradientStop Color="#80FFFFFF" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</Border.BorderBrush>
|
||||
<Grid>
|
||||
<Border x:Name="PART_SatValImage" Background="{Binding HueBrush, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
<Border IsHitTestVisible="False">
|
||||
<Border.Background>
|
||||
<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
|
||||
<GradientStop Color="White" Offset="0" />
|
||||
<GradientStop Color="Transparent" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</Border.Background>
|
||||
</Border>
|
||||
<Border IsHitTestVisible="False">
|
||||
<Border.Background>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#00000000" Offset="0" />
|
||||
<GradientStop Color="Black" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</Border.Background>
|
||||
</Border>
|
||||
<Border CornerRadius="1" BorderThickness="1" IsHitTestVisible="False">
|
||||
<Border.BorderBrush>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#80000000" Offset="0" />
|
||||
<GradientStop Color="#40000000" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</Border.BorderBrush>
|
||||
</Border>
|
||||
<Canvas IsHitTestVisible="False" Margin="-3">
|
||||
<Path Canvas.Left="{Binding SatIndicatorPosition, RelativeSource={RelativeSource TemplatedParent}}" Canvas.Top="{Binding ValIndicatorPosition, RelativeSource={RelativeSource TemplatedParent}}" x:Name="SatValIndicator" Data="M0,3 L3,0 L6,3 L3,6 Z" Stroke="{DynamicResource Foreground}" Fill="{DynamicResource DarkBackground}">
|
||||
<Path.Effect>
|
||||
<DropShadowEffect ShadowDepth="1" BlurRadius="1" Opacity="0.5" />
|
||||
</Path.Effect>
|
||||
</Path>
|
||||
</Canvas>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<Grid Grid.Column="1" Margin="0,5,5,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid Grid.ColumnSpan="8">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border x:Name="HGradientBorder" BorderThickness="1" Height="30" Margin="0,0,10,0" Background="{DynamicResource PseudoTransparent}" CornerRadius="2">
|
||||
<Border.BorderBrush>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#FFFFFFFF" Offset="0" />
|
||||
<GradientStop Color="#80FFFFFF" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</Border.BorderBrush>
|
||||
|
||||
<Grid>
|
||||
<Image x:Name="PART_HueImage" Stretch="Fill" Source="/Tweaky;component/hue.png" Height="8" />
|
||||
<Canvas IsHitTestVisible="False" Margin="-3">
|
||||
<Path Canvas.Left="{Binding HueIndicatorPosition, RelativeSource={RelativeSource TemplatedParent}}" x:Name="HueIndicator" Data="M0,0 L6,0 L3,3 Z M3,3 L3,31 M3,31 L0,34 L6,34 Z" Stroke="{DynamicResource Foreground}" Fill="{DynamicResource DarkBackground}">
|
||||
<Path.Effect>
|
||||
<DropShadowEffect ShadowDepth="1" BlurRadius="1" Opacity="0.5" Color="White" />
|
||||
</Path.Effect>
|
||||
</Path>
|
||||
</Canvas>
|
||||
<Border CornerRadius="1" BorderThickness="1" IsHitTestVisible="False">
|
||||
<Border.BorderBrush>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#80000000" Offset="0" />
|
||||
<GradientStop Color="#40000000" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</Border.BorderBrush>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
<Border x:Name="ColorPreviewBorder" BorderThickness="1" Width="200" Height="30" Grid.Column="1" CornerRadius="2">
|
||||
<Border.BorderBrush>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#FFFFFFFF" Offset="0" />
|
||||
<GradientStop Color="#80FFFFFF" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</Border.BorderBrush>
|
||||
<Border CornerRadius="1" BorderThickness="1">
|
||||
<Border.BorderBrush>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#80000000" Offset="0" />
|
||||
<GradientStop Color="#40000000" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</Border.BorderBrush>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border Background="White" Grid.Row="0" Grid.Column="0" />
|
||||
<Border Background="Silver" Grid.Row="1" Grid.Column="0" />
|
||||
<Border Background="Silver" Grid.Row="0" Grid.Column="1" />
|
||||
<Border Background="White" Grid.Row="1" Grid.Column="1" />
|
||||
<Border Background="White" Grid.Row="0" Grid.Column="2" />
|
||||
<Border Background="Silver" Grid.Row="1" Grid.Column="2" />
|
||||
<Border Background="Silver" Grid.Row="0" Grid.Column="3" />
|
||||
<Border Background="White" Grid.Row="1" Grid.Column="3" />
|
||||
<Border Background="White" Grid.Row="0" Grid.Column="4" />
|
||||
<Border Background="Silver" Grid.Row="1" Grid.Column="4" />
|
||||
<Border Background="Silver" Grid.Row="0" Grid.Column="5" />
|
||||
<Border Background="White" Grid.Row="1" Grid.Column="5" />
|
||||
<Border Background="White" Grid.Row="0" Grid.Column="6" />
|
||||
<Border Background="Silver" Grid.Row="1" Grid.Column="6" />
|
||||
<Border Background="Silver" Grid.Row="0" Grid.Column="7" />
|
||||
<Border Background="White" Grid.Row="1" Grid.Column="7" />
|
||||
<Border Background="White" Grid.Row="0" Grid.Column="8" />
|
||||
<Border Background="Silver" Grid.Row="1" Grid.Column="8" />
|
||||
<Border Background="Silver" Grid.Row="0" Grid.Column="9" />
|
||||
<Border Background="White" Grid.Row="1" Grid.Column="9" />
|
||||
<Border Background="White" Grid.Row="0" Grid.Column="10" />
|
||||
<Border Background="Silver" Grid.Row="1" Grid.Column="10" />
|
||||
<Border Background="Silver" Grid.Row="0" Grid.Column="11" />
|
||||
<Border Background="White" Grid.Row="1" Grid.Column="11" />
|
||||
<Border Background="White" Grid.Row="0" Grid.Column="12" />
|
||||
<Border Background="Silver" Grid.Row="1" Grid.Column="12" />
|
||||
<Border Background="Silver" Grid.Row="0" Grid.Column="13" />
|
||||
<Border Background="White" Grid.Row="1" Grid.Column="13" />
|
||||
<Border Grid.RowSpan="2" Grid.ColumnSpan="7" Background="{Binding ExternalBackgroundBrush, RelativeSource={RelativeSource TemplatedParent}}" Cursor="UpArrow" x:Name="PART_OriginalColorBorder" />
|
||||
<Border Grid.RowSpan="2" Grid.Column="7" Grid.ColumnSpan="7" Background="{Binding BackgroundBrush, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</Border>
|
||||
</Grid>
|
||||
<Border Grid.Row="1" Height="10" />
|
||||
<TextBlock Grid.Row="3" Margin="2" VerticalAlignment="Center">Red:</TextBlock>
|
||||
<Slider Grid.Row="3" Margin="2" Value="{Binding Red, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" Maximum="1" Grid.Column="1" />
|
||||
<TextBlock Grid.Row="3" Margin="2" Grid.Column="2" VerticalAlignment="Center" Text="{Binding Red, StringFormat=N2, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
<TextBlock Grid.Row="3" Margin="2" Grid.Column="3" VerticalAlignment="Center">Green:</TextBlock>
|
||||
<Slider Grid.Row="3" Margin="2" Value="{Binding Green, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" Maximum="1" Grid.Column="4" />
|
||||
<TextBlock Grid.Row="3" Margin="2" Grid.Column="5" VerticalAlignment="Center" Text="{Binding Green, StringFormat=N2, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
<TextBlock Grid.Row="3" Margin="2" Grid.Column="6" VerticalAlignment="Center">Blue:</TextBlock>
|
||||
<Slider Grid.Row="3" Margin="2" Value="{Binding Blue, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" Maximum="1" Grid.Column="7" />
|
||||
<TextBlock Grid.Row="3" Margin="2" Grid.Column="8" VerticalAlignment="Center" Text="{Binding Blue, StringFormat=N2, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
<TextBlock Visibility="{Binding AlphaGuiVisibility, RelativeSource={RelativeSource TemplatedParent}}" Grid.Row="3" Margin="2" Grid.Column="9" VerticalAlignment="Center">Alpha:</TextBlock>
|
||||
<Slider Visibility="{Binding AlphaGuiVisibility, RelativeSource={RelativeSource TemplatedParent}}" Grid.Row="3" Margin="2" Maximum="1" Value="{Binding Alpha, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" Grid.Column="10" />
|
||||
<TextBlock Grid.Row="3" Margin="2" Grid.Column="11" VerticalAlignment="Center" Text="{Binding Alpha, StringFormat=N2, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Setter Property="Slider.Maximum" Value="255" />
|
||||
<Setter Property="Slider.LargeChange" Value="16" />
|
||||
<Setter Property="Slider.SmallChange" Value="1" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="{x:Type e:FloatArrayColorEditor}" TargetType="{x:Type e:FloatArrayColorEditor}" BasedOn="{StaticResource {x:Type e:ColorEditorBase}}">
|
||||
<Setter Property="Slider.Maximum" Value="1" />
|
||||
<Setter Property="Slider.LargeChange" Value="0.1" />
|
||||
<Setter Property="Slider.SmallChange" Value="0.01" />
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
40
hgplus/bliss/Tweaky/EnumEditor.cs
Normal file
40
hgplus/bliss/Tweaky/EnumEditor.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using Tweaky.PropertyGrid;
|
||||
|
||||
namespace Tweaky
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for EnumEditor.xaml
|
||||
/// </summary>
|
||||
public class EnumEditor : EditorBase<System.Enum>
|
||||
{
|
||||
static EnumEditor()
|
||||
{
|
||||
DefaultStyleKeyProperty.OverrideMetadata(typeof(EnumEditor), new FrameworkPropertyMetadata(typeof(EnumEditor)));
|
||||
}
|
||||
|
||||
public virtual Array Items
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.DataContext == null)
|
||||
return new object[0];
|
||||
|
||||
var pi = this.DataContext as PropertyItem;
|
||||
return Enum.GetValues(pi.PropertyDescriptor.PropertyType);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
58
hgplus/bliss/Tweaky/ExecuteAfterAspect.cs
Normal file
58
hgplus/bliss/Tweaky/ExecuteAfterAspect.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
using PostSharp.Aspects;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace Tweaky
|
||||
{
|
||||
[Serializable]
|
||||
[global::System.AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
|
||||
public sealed class ExecuteAfterAttribute : OnMethodBoundaryAspect
|
||||
{
|
||||
public ExecuteAfterAttribute(string methodName)
|
||||
{
|
||||
this.methodName = methodName;
|
||||
}
|
||||
|
||||
private string methodName;
|
||||
private Type className;
|
||||
private MethodInfo method;
|
||||
|
||||
public override void RuntimeInitialize(System.Reflection.MethodBase method)
|
||||
{
|
||||
className = method.DeclaringType;
|
||||
try
|
||||
{
|
||||
var methods = className.GetMethods();
|
||||
foreach (var m in methods)
|
||||
{
|
||||
if (m.Name == methodName)
|
||||
{
|
||||
this.method = m;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Application.Current != null && Application.Current.MainWindow != null && !DesignerProperties.GetIsInDesignMode(Application.Current.MainWindow))
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnExit(MethodExecutionArgs args)
|
||||
{
|
||||
if (args == null)
|
||||
return;
|
||||
|
||||
if (null != method)
|
||||
{
|
||||
method.Invoke(args.Instance, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
91
hgplus/bliss/Tweaky/Float4Editor.cs
Normal file
91
hgplus/bliss/Tweaky/Float4Editor.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using Tweaky.PropertyGrid;
|
||||
|
||||
namespace Tweaky
|
||||
{
|
||||
public class Float4Editor : EditorBase<float4>
|
||||
{
|
||||
static Float4Editor()
|
||||
{
|
||||
DefaultStyleKeyProperty.OverrideMetadata(typeof(Float4Editor), new FrameworkPropertyMetadata(typeof(Float4Editor)));
|
||||
}
|
||||
|
||||
public override void OnValueChanged()
|
||||
{
|
||||
base.OnValueChanged();
|
||||
|
||||
RaisePropertyChanged("X");
|
||||
RaisePropertyChanged("Y");
|
||||
RaisePropertyChanged("Z");
|
||||
RaisePropertyChanged("W");
|
||||
}
|
||||
|
||||
public float Minimum
|
||||
{
|
||||
get
|
||||
{
|
||||
var pi = this.DataContext as PropertyItem;
|
||||
var rangeAttribute = pi.PropertyDescriptor.Attributes.OfType<RangeAttribute>().FirstOrDefault();
|
||||
if (rangeAttribute == null)
|
||||
return 0.0f;
|
||||
|
||||
return rangeAttribute.Minimum;
|
||||
}
|
||||
}
|
||||
|
||||
public float Maximum
|
||||
{
|
||||
get
|
||||
{
|
||||
var pi = this.DataContext as PropertyItem;
|
||||
var rangeAttribute = pi.PropertyDescriptor.Attributes.OfType<RangeAttribute>().FirstOrDefault();
|
||||
if (rangeAttribute == null)
|
||||
return 1.0f;
|
||||
|
||||
return rangeAttribute.Maximum;
|
||||
}
|
||||
}
|
||||
|
||||
public float StepHint
|
||||
{
|
||||
get
|
||||
{
|
||||
var pi = this.DataContext as PropertyItem;
|
||||
var rangeAttribute = pi.PropertyDescriptor.Attributes.OfType<RangeAttribute>().FirstOrDefault();
|
||||
if (rangeAttribute == null)
|
||||
return 0.1f;
|
||||
|
||||
return rangeAttribute.StepHint;
|
||||
}
|
||||
}
|
||||
|
||||
public float X
|
||||
{
|
||||
get { return Value.x; }
|
||||
set { Value = new float4(value, Value.y, Value.z, Value.w); }
|
||||
}
|
||||
|
||||
public float Y
|
||||
{
|
||||
get { return Value.y; }
|
||||
set { Value = new float4(Value.x, value, Value.z, Value.w); }
|
||||
}
|
||||
|
||||
public float Z
|
||||
{
|
||||
get { return Value.z; }
|
||||
set { Value = new float4(Value.x, Value.y, value, Value.w); }
|
||||
}
|
||||
|
||||
public float W
|
||||
{
|
||||
get { return Value.w; }
|
||||
set { Value = new float4(Value.x, Value.y, Value.z, value); }
|
||||
}
|
||||
}
|
||||
}
|
||||
123
hgplus/bliss/Tweaky/FloatArrayColorEditor.cs
Normal file
123
hgplus/bliss/Tweaky/FloatArrayColorEditor.cs
Normal file
@@ -0,0 +1,123 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
using System.Windows.Media;
|
||||
using Tweaky.PropertyGrid;
|
||||
|
||||
namespace Tweaky
|
||||
{
|
||||
public class FloatArrayColorEditor : ColorEditorBase<float>
|
||||
{
|
||||
static FloatArrayColorEditor()
|
||||
{
|
||||
}
|
||||
|
||||
public override float Red
|
||||
{
|
||||
get
|
||||
{
|
||||
return Value.R / 255.0f;
|
||||
}
|
||||
set
|
||||
{
|
||||
UpdateColorFromRGB(value, Green, Blue);
|
||||
}
|
||||
}
|
||||
|
||||
public override float Green
|
||||
{
|
||||
get
|
||||
{
|
||||
return Value.G / 255.0f;
|
||||
}
|
||||
set
|
||||
{
|
||||
UpdateColorFromRGB(Red, value, Blue);
|
||||
}
|
||||
}
|
||||
|
||||
public override float Blue
|
||||
{
|
||||
get
|
||||
{
|
||||
return Value.B / 255.0f;
|
||||
}
|
||||
set
|
||||
{
|
||||
UpdateColorFromRGB(Red, Green, value);
|
||||
}
|
||||
}
|
||||
|
||||
public override float Alpha
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!UseAlpha)
|
||||
return 0.0f;
|
||||
|
||||
return Value.A / 255.0f;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (!UseAlpha)
|
||||
return;
|
||||
|
||||
Values = new float[]
|
||||
{
|
||||
value,
|
||||
Red,
|
||||
Green,
|
||||
Blue
|
||||
};
|
||||
UpdateColorFromHSV(hue, sat, val);
|
||||
}
|
||||
}
|
||||
|
||||
private bool colorInitialized;
|
||||
protected override void UpdateColorFromHSV(double hue, double sat, double val)
|
||||
{
|
||||
var rgb = HSVtoRGB(hue, sat, val);
|
||||
Values = new float[] { Alpha, (float)rgb[0], (float)rgb[1], (float)rgb[2] };
|
||||
BackgroundBrush = new SolidColorBrush(Color.FromArgb(Value.A, Value.R, Value.G, Value.B));
|
||||
if (!colorInitialized)
|
||||
{
|
||||
colorInitialized = true;
|
||||
ExternalBackgroundBrush = new SolidColorBrush(Color.FromArgb(Value.A, Value.R, Value.G, Value.B));
|
||||
}
|
||||
rgb = HSVtoRGB(hue, 1.0, 1.0);
|
||||
HueBrush = new SolidColorBrush(Color.FromArgb(255, (byte)(255 * rgb[0]), (byte)(255 * rgb[1]), (byte)(255 * rgb[2])));
|
||||
RaisePropertyChanged(null);
|
||||
}
|
||||
|
||||
protected override void UpdateColorFromRGB(float red, float green, float blue)
|
||||
{
|
||||
var hsv = RGBtoHSV(red, green, blue);
|
||||
hue = hsv[0];
|
||||
sat = hsv[1];
|
||||
val = hsv[2];
|
||||
UpdateColorFromHSV(hue, sat, val);
|
||||
}
|
||||
|
||||
protected override void UpdateColor(System.Drawing.Color color)
|
||||
{
|
||||
UpdateColorFromRGB(color.R / 255.0f, color.G / 255.0f, color.B / 255.0f);
|
||||
}
|
||||
|
||||
protected override void InitializeFromExternalColor()
|
||||
{
|
||||
var hsv = RGBtoHSV(Red, Green, Blue);
|
||||
hue = hsv[0];
|
||||
sat = hsv[1];
|
||||
val = hsv[2];
|
||||
UpdateColorFromHSV(hue, sat, val);
|
||||
}
|
||||
|
||||
protected override System.Drawing.Color GetColorFromValues(float[] values)
|
||||
{
|
||||
return System.Drawing.Color.FromArgb((int)(values[0] * 255.0f), (int)(values[1] * 255.0f), (int)(values[2] * 255.0f), (int)(values[3] * 255.0f));
|
||||
}
|
||||
}
|
||||
}
|
||||
10
hgplus/bliss/Tweaky/MainWindow.xaml
Normal file
10
hgplus/bliss/Tweaky/MainWindow.xaml
Normal file
@@ -0,0 +1,10 @@
|
||||
<Window x:Class="Tweaky.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:pg="clr-namespace:Tweaky.PropertyGrid"
|
||||
xmlns:l="clr-namespace:Tweaky"
|
||||
Title="Tweaky" Height="1000" Width="600" Left="0" Top="0">
|
||||
<Grid>
|
||||
<pg:PropertyGrid Background="{DynamicResource GeneralBackground}" Foreground="{DynamicResource Foreground}" BorderBrush="Transparent" BorderThickness="0" ItemsSource="{Binding Data}" ItemsSourceName="Tweaky" ItemsSourceType="for intro variables" />
|
||||
</Grid>
|
||||
</Window>
|
||||
45
hgplus/bliss/Tweaky/MainWindow.xaml.cs
Normal file
45
hgplus/bliss/Tweaky/MainWindow.xaml.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace Tweaky
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for MainWindow.xaml
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.Loaded += MainWindow_Loaded;
|
||||
this.Closed += MainWindow_Closed;
|
||||
}
|
||||
|
||||
void MainWindow_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.DataContext = this;
|
||||
this.Data = new DataViewModel("tweakValues");
|
||||
}
|
||||
|
||||
void MainWindow_Closed(object sender, EventArgs e)
|
||||
{
|
||||
if (this.Data != null)
|
||||
this.Data.Dispose();
|
||||
}
|
||||
|
||||
public DataViewModel Data { get; set; }
|
||||
}
|
||||
}
|
||||
92
hgplus/bliss/Tweaky/NotifyAspect.cs
Normal file
92
hgplus/bliss/Tweaky/NotifyAspect.cs
Normal file
@@ -0,0 +1,92 @@
|
||||
using PostSharp.Aspects;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace Tweaky
|
||||
{
|
||||
[Serializable]
|
||||
[global::System.AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
|
||||
public sealed class NotifyAttribute : OnMethodBoundaryAspect
|
||||
{
|
||||
private List<string> additionalProperties = new List<string>();
|
||||
public NotifyAttribute()
|
||||
{
|
||||
}
|
||||
|
||||
public NotifyAttribute(string additionalProperties)
|
||||
{
|
||||
if (additionalProperties != null)
|
||||
{
|
||||
var properties = additionalProperties.Split(',');
|
||||
this.additionalProperties.AddRange(properties);
|
||||
}
|
||||
}
|
||||
|
||||
private string methodName;
|
||||
private Type className;
|
||||
private MethodInfo method;
|
||||
private MethodInfo getter;
|
||||
|
||||
public override void RuntimeInitialize(System.Reflection.MethodBase method)
|
||||
{
|
||||
methodName = method.Name;
|
||||
className = method.DeclaringType;
|
||||
try
|
||||
{
|
||||
var methods = className.GetMethods();
|
||||
foreach (var m in methods)
|
||||
{
|
||||
if (m.Name == "RaisePropertyChanged")
|
||||
{
|
||||
this.method = m;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Application.Current != null && Application.Current.MainWindow != null && !DesignerProperties.GetIsInDesignMode(Application.Current.MainWindow))
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
private object oldValue;
|
||||
public override void OnEntry(MethodExecutionArgs args)
|
||||
{
|
||||
if (args == null)
|
||||
return;
|
||||
|
||||
if (null != getter)
|
||||
getter = args.Instance.GetType().GetMethod("get_" + methodName.Substring(4));
|
||||
|
||||
if (null != getter)
|
||||
oldValue = getter.Invoke(args.Instance, null);
|
||||
}
|
||||
|
||||
public override void OnExit(MethodExecutionArgs args)
|
||||
{
|
||||
if (args == null)
|
||||
return;
|
||||
|
||||
if (null != method)
|
||||
{
|
||||
if (null != getter)
|
||||
{
|
||||
var newValue = getter.Invoke(args.Instance, null);
|
||||
if (newValue == null && oldValue == null || (newValue != null && newValue.Equals(oldValue)))
|
||||
return;
|
||||
}
|
||||
|
||||
method.Invoke(args.Instance, new object[] { methodName.Substring(4) });
|
||||
|
||||
foreach (var prop in additionalProperties)
|
||||
method.Invoke(args.Instance, new object[] { prop });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
66
hgplus/bliss/Tweaky/ObservableCollectionEx.cs
Normal file
66
hgplus/bliss/Tweaky/ObservableCollectionEx.cs
Normal file
@@ -0,0 +1,66 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Collections.Specialized;
|
||||
|
||||
namespace Tweaky
|
||||
{
|
||||
public class ObservableCollectionEx<T> : ObservableCollection<T>
|
||||
{
|
||||
public virtual void NotifyCollectionChanged()
|
||||
{
|
||||
this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
|
||||
}
|
||||
|
||||
protected bool preventCollectionChangedEvents = false;
|
||||
protected override void OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
|
||||
{
|
||||
if (!preventCollectionChangedEvents)
|
||||
base.OnCollectionChanged(e);
|
||||
}
|
||||
|
||||
public void AddRange(IEnumerable<T> range)
|
||||
{
|
||||
foreach (var item in range)
|
||||
base.Add(item);
|
||||
}
|
||||
|
||||
public void Replace(IEnumerable<T> range, bool useResetEvent = true)
|
||||
{
|
||||
preventCollectionChangedEvents = true;
|
||||
|
||||
List<T> oldItems = null;
|
||||
List<T> newItems = null;
|
||||
|
||||
if (!useResetEvent)
|
||||
{
|
||||
oldItems = this.Except(range).ToList();
|
||||
newItems = range.Except(this).ToList();
|
||||
}
|
||||
|
||||
base.Clear();
|
||||
foreach (var item in range)
|
||||
base.Add(item);
|
||||
|
||||
preventCollectionChangedEvents = false;
|
||||
|
||||
if (useResetEvent)
|
||||
{
|
||||
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (var oldItem in oldItems)
|
||||
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, oldItem));
|
||||
foreach (var newItem in newItems)
|
||||
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, newItem));
|
||||
}
|
||||
}
|
||||
|
||||
public void RemoveAll(IEnumerable<T> range)
|
||||
{
|
||||
foreach (var item in range)
|
||||
base.Remove(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
55
hgplus/bliss/Tweaky/Properties/AssemblyInfo.cs
Normal file
55
hgplus/bliss/Tweaky/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
using System.Reflection;
|
||||
using System.Resources;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Tweaky")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Tweaky")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2014")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
//In order to begin building localizable applications, set
|
||||
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
|
||||
//inside a <PropertyGroup>. For example, if you are using US english
|
||||
//in your source files, set the <UICulture> to en-US. Then uncomment
|
||||
//the NeutralResourceLanguage attribute below. Update the "en-US" in
|
||||
//the line below to match the UICulture setting in the project file.
|
||||
|
||||
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
|
||||
|
||||
|
||||
[assembly: ThemeInfo(
|
||||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||
//(used if a resource is not found in the page,
|
||||
// or application resource dictionaries)
|
||||
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
||||
//(used if a resource is not found in the page,
|
||||
// app, or any theme specific resource dictionaries)
|
||||
)]
|
||||
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
63
hgplus/bliss/Tweaky/Properties/Resources.Designer.cs
generated
Normal file
63
hgplus/bliss/Tweaky/Properties/Resources.Designer.cs
generated
Normal file
@@ -0,0 +1,63 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34011
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Tweaky.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Tweaky.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
117
hgplus/bliss/Tweaky/Properties/Resources.resx
Normal file
117
hgplus/bliss/Tweaky/Properties/Resources.resx
Normal file
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
26
hgplus/bliss/Tweaky/Properties/Settings.Designer.cs
generated
Normal file
26
hgplus/bliss/Tweaky/Properties/Settings.Designer.cs
generated
Normal file
@@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34011
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Tweaky.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
7
hgplus/bliss/Tweaky/Properties/Settings.settings
Normal file
7
hgplus/bliss/Tweaky/Properties/Settings.settings
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
56
hgplus/bliss/Tweaky/PropertyGrid/EditorTemplateSelector.cs
Normal file
56
hgplus/bliss/Tweaky/PropertyGrid/EditorTemplateSelector.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Reflection;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
|
||||
namespace Tweaky.PropertyGrid
|
||||
{
|
||||
public class EditorTemplateSelector : DataTemplateSelector
|
||||
{
|
||||
public EditorTemplateSelector()
|
||||
{
|
||||
defaultDataTemplate = new DataTemplate() { VisualTree = new FrameworkElementFactory(typeof(DefaultEditor)) };
|
||||
}
|
||||
|
||||
private DataTemplate defaultDataTemplate;
|
||||
public override DataTemplate SelectTemplate(object item, System.Windows.DependencyObject container)
|
||||
{
|
||||
if (item == null)
|
||||
return defaultDataTemplate;
|
||||
|
||||
if (!(item is PropertyItem))
|
||||
return defaultDataTemplate;
|
||||
|
||||
var pd = (item as PropertyItem).PropertyDescriptor;
|
||||
var editorAttribute = pd.Attributes.OfType<EditorAttribute>().LastOrDefault();
|
||||
|
||||
if (editorAttribute != null)
|
||||
{
|
||||
var editorType = Type.GetType(editorAttribute.EditorTypeName);
|
||||
if (typeof(FrameworkElement).IsAssignableFrom(editorType))
|
||||
return new DataTemplate() { VisualTree = new FrameworkElementFactory(editorType) };
|
||||
}
|
||||
|
||||
if (pd.PropertyType.IsEnum)
|
||||
{
|
||||
return new DataTemplate() { VisualTree = new FrameworkElementFactory(typeof(EnumEditor)) };
|
||||
}
|
||||
else if (pd.PropertyType == typeof(System.Drawing.Color))
|
||||
{
|
||||
return new DataTemplate() { VisualTree = new FrameworkElementFactory(typeof(FloatArrayColorEditor)) };
|
||||
}
|
||||
else if (pd.PropertyType == typeof(float4))
|
||||
{
|
||||
return new DataTemplate() { VisualTree = new FrameworkElementFactory(typeof(Float4Editor)) };
|
||||
}
|
||||
|
||||
return defaultDataTemplate;
|
||||
}
|
||||
}
|
||||
}
|
||||
158
hgplus/bliss/Tweaky/PropertyGrid/PropertyGrid.xaml
Normal file
158
hgplus/bliss/Tweaky/PropertyGrid/PropertyGrid.xaml
Normal file
@@ -0,0 +1,158 @@
|
||||
<UserControl x:Class="Tweaky.PropertyGrid.PropertyGrid"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:pg="clr-namespace:Tweaky.PropertyGrid"
|
||||
xmlns:t="clr-namespace:Tweaky"
|
||||
xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase"
|
||||
mc:Ignorable="d"
|
||||
x:Name="Me"
|
||||
d:DesignHeight="300" d:DesignWidth="300" d:DataContext="{d:DesignInstance Type={x:Type t:DataViewModel}}" >
|
||||
|
||||
<UserControl.Resources>
|
||||
<pg:EditorTemplateSelector x:Key="EditorTemplateSelector" />
|
||||
<Style x:Key="ClearFilterButtonStyle" TargetType="{x:Type Button}">
|
||||
<Setter Property="Foreground" Value="{DynamicResource ForegroundGradient}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Grid Background="{DynamicResource PseudoTransparent}">
|
||||
<Border x:Name="hoverBorder" CornerRadius="2" BorderBrush="{DynamicResource SeparatingBorder}" BorderThickness="1" Background="{DynamicResource ForegroundGradient}" Visibility="Collapsed" />
|
||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="hoverBorder" Property="Visibility" Value="Visible" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="True">
|
||||
<Setter TargetName="hoverBorder" Property="Background" Value="{DynamicResource BrightGradient}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<CollectionViewSource Source="{Binding PropertyItems, ElementName=Me}" x:Key="collectionView" Filter="CollectionViewSource_Filter" CollectionViewType="ListCollectionView">
|
||||
<CollectionViewSource.SortDescriptions>
|
||||
<scm:SortDescription PropertyName="Category" Direction="Ascending" />
|
||||
<scm:SortDescription PropertyName="Index" Direction="Ascending" />
|
||||
</CollectionViewSource.SortDescriptions>
|
||||
<CollectionViewSource.GroupDescriptions>
|
||||
<PropertyGroupDescription PropertyName="Category" />
|
||||
</CollectionViewSource.GroupDescriptions>
|
||||
</CollectionViewSource>
|
||||
</UserControl.Resources>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Border Grid.RowSpan="2" Background="{DynamicResource BarGradient}" />
|
||||
<StackPanel Orientation="Horizontal" Margin="13,0,0,2">
|
||||
<TextBlock Foreground="{DynamicResource Foreground}" Text="{Binding ItemsSourceName, ElementName=Me}" MinWidth="50" Margin="0,1,0,0" TextBlock.FontWeight="Bold" VerticalAlignment="Center" />
|
||||
<TextBlock Foreground="{DynamicResource Foreground}" Text="{Binding ItemsSourceType, ElementName=Me}" Margin="5,1,0,0" VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
|
||||
<Border Name="searchBoxContainer" Grid.Row="1" Margin="4" BorderThickness="1">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Search:" VerticalAlignment="Center" Margin="3,0" Foreground="{DynamicResource Foreground}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding Filter, ElementName=Me, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ScrollViewer ScrollViewer.VerticalScrollBarVisibility="Auto" Grid.Row="2" CanContentScroll="False">
|
||||
<ItemsControl x:Name="PART_PropertyItemsControl" IsTabStop="False" Focusable="False" VerticalAlignment="Top" ItemsSource="{Binding Source={StaticResource collectionView}}">
|
||||
<ItemsControl.Resources>
|
||||
<Style TargetType="{x:Type ScrollViewer}" BasedOn="{StaticResource {x:Type ScrollViewer}}">
|
||||
<Setter Property="HorizontalScrollBarVisibility" Value="Hidden" />
|
||||
<Setter Property="VerticalScrollBarVisibility" Value="Hidden" />
|
||||
<Setter Property="CanContentScroll" Value="False" />
|
||||
</Style>
|
||||
</ItemsControl.Resources>
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<VirtualizingStackPanel />
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.GroupStyle>
|
||||
<GroupStyle>
|
||||
<GroupStyle.ContainerStyle>
|
||||
<Style TargetType="{x:Type GroupItem}">
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Border>
|
||||
<Expander IsExpanded="True">
|
||||
<Expander.Header>
|
||||
<TextBlock Foreground="{DynamicResource Foreground}" Text="{Binding Name}" />
|
||||
</Expander.Header>
|
||||
<ItemsPresenter Margin="10,0,0,0" />
|
||||
</Expander>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</GroupStyle.ContainerStyle>
|
||||
</GroupStyle>
|
||||
</ItemsControl.GroupStyle>
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate DataType="{x:Type pg:PropertyItem}">
|
||||
<Border x:Name="MainBorder" ContextMenuService.Placement="Bottom" SnapsToDevicePixels="True" UseLayoutRounding="False" Background="{DynamicResource PseudoTransparent}" PreviewMouseDown="PropertyItem_PreviewMouseDown">
|
||||
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Border Name="PART_Name" VerticalAlignment="Stretch" Margin="0,0,0,1">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="10" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
|
||||
<TextBlock VerticalAlignment="Center" Text="{Binding Name}" Foreground="{DynamicResource Foreground}" />
|
||||
<TextBlock VerticalAlignment="Center" Text=":" Foreground="{DynamicResource Foreground}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
<Border Name="PART_Editor" Grid.Row="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="10,0,1,0">
|
||||
<ContentPresenter ContentTemplateSelector="{StaticResource EditorTemplateSelector}" Content="{Binding}" SnapsToDevicePixels="True" UseLayoutRounding="False" />
|
||||
<!--<TextBox Name="PART_ValueContainer" MaxLines="1" PreviewMouseWheel="PART_ValueContainer_PreviewMouseWheel" Text="{Binding Value, Mode=TwoWay}" Focusable="False" IsTabStop="False" IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvBooleanToVisibilityConverter}}" TextOptions.TextFormattingMode="Display" />-->
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<DataTemplate.Triggers>
|
||||
<Trigger Property="UIElement.IsMouseOver" Value="True">
|
||||
<Setter TargetName="MainBorder" Property="Border.Background" Value="{DynamicResource LightGradient}" />
|
||||
</Trigger>
|
||||
<DataTrigger Binding="{Binding IsSelected}" Value="True">
|
||||
<Setter TargetName="MainBorder" Property="Border.Background" Value="{DynamicResource BrightGradient}" />
|
||||
</DataTrigger>
|
||||
<!--<Trigger Property="UIElement.IsEnabled" Value="False">
|
||||
<Setter TargetName="PART_ValueContainer" Value="{DynamicResource DisabledForegroundBrush}" Property="Control.Foreground" />
|
||||
</Trigger>-->
|
||||
<Trigger Property="Validation.HasError" Value="True">
|
||||
<Setter Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=(Validation.Errors).CurrentItem.ErrorContent}" Property="FrameworkElement.ToolTip" />
|
||||
</Trigger>
|
||||
</DataTemplate.Triggers>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
</ScrollViewer>
|
||||
<GridSplitter Grid.Row="3" Height="5" ResizeBehavior="PreviousAndNext" HorizontalAlignment="Stretch" Background="{DynamicResource PseudoTransparent}" ResizeDirection="Rows" />
|
||||
<StackPanel Grid.Row="4" Margin="0,0,0,5">
|
||||
<TextBlock Foreground="{DynamicResource Foreground}" Padding="2 2 2 0" TextBlock.FontWeight="Bold" Text="{Binding SelectedPropertyItem.Name, ElementName=Me}" />
|
||||
<TextBlock Foreground="{DynamicResource Foreground}" Padding="5 2 2 0" TextWrapping="WrapWithOverflow" Text="{Binding SelectedPropertyItem.Description, ElementName=Me}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
172
hgplus/bliss/Tweaky/PropertyGrid/PropertyGrid.xaml.cs
Normal file
172
hgplus/bliss/Tweaky/PropertyGrid/PropertyGrid.xaml.cs
Normal file
@@ -0,0 +1,172 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace Tweaky.PropertyGrid
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for PropertyGrid.xaml
|
||||
/// </summary>
|
||||
public partial class PropertyGrid : UserControl, INotifyPropertyChanged
|
||||
{
|
||||
public PropertyGrid()
|
||||
{
|
||||
InitializeComponent();
|
||||
PropertyItems = new ObservableCollection<PropertyItem>();
|
||||
LeftColumn = new GridLength(150, GridUnitType.Pixel);
|
||||
RightColumn = new GridLength(1, GridUnitType.Star);
|
||||
}
|
||||
|
||||
public ObservableCollection<PropertyItem> PropertyItems
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public GridLength LeftColumn
|
||||
{
|
||||
get;
|
||||
[Notify]
|
||||
set;
|
||||
}
|
||||
|
||||
public GridLength RightColumn
|
||||
{
|
||||
get;
|
||||
[Notify]
|
||||
set;
|
||||
}
|
||||
|
||||
private string filter;
|
||||
public string Filter
|
||||
{
|
||||
get
|
||||
{
|
||||
return filter;
|
||||
}
|
||||
[Notify]
|
||||
set
|
||||
{
|
||||
filter = value;
|
||||
(this.Resources["collectionView"] as CollectionViewSource).View.Refresh();
|
||||
}
|
||||
}
|
||||
|
||||
public PropertyItem SelectedPropertyItem
|
||||
{
|
||||
get { return (PropertyItem)this.GetValue(SelectedPropertyItemProperty); }
|
||||
[Notify]
|
||||
set { this.SetValue(SelectedPropertyItemProperty, value); }
|
||||
}
|
||||
public static readonly DependencyProperty SelectedPropertyItemProperty = DependencyProperty.Register("SelectedPropertyItem", typeof(PropertyItem), typeof(PropertyGrid), new FrameworkPropertyMetadata(null));
|
||||
|
||||
public string ItemsSourceType
|
||||
{
|
||||
get { return (string)this.GetValue(ItemsSourceTypeProperty); }
|
||||
[Notify]
|
||||
set { this.SetValue(ItemsSourceTypeProperty, value); }
|
||||
}
|
||||
public static readonly DependencyProperty ItemsSourceTypeProperty = DependencyProperty.Register("ItemsSourceType", typeof(string), typeof(PropertyGrid), new FrameworkPropertyMetadata(null));
|
||||
|
||||
public string ItemsSourceName
|
||||
{
|
||||
get { return (string)this.GetValue(ItemsSourceNameProperty); }
|
||||
[Notify]
|
||||
set { this.SetValue(ItemsSourceNameProperty, value); }
|
||||
}
|
||||
public static readonly DependencyProperty ItemsSourceNameProperty = DependencyProperty.Register("ItemsSourceName", typeof(string), typeof(PropertyGrid), new FrameworkPropertyMetadata(null));
|
||||
|
||||
public object ItemsSource
|
||||
{
|
||||
get { return this.GetValue(ItemsSourceProperty); }
|
||||
[Notify]
|
||||
set { this.SetValue(ItemsSourceProperty, value); }
|
||||
}
|
||||
public static readonly DependencyProperty ItemsSourceProperty = DependencyProperty.Register("ItemsSource", typeof(object), typeof(PropertyGrid), new FrameworkPropertyMetadata(null, OnItemsSourceChanged));
|
||||
|
||||
private static void OnItemsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
var me = d as PropertyGrid;
|
||||
if (me != null)
|
||||
{
|
||||
if (e.OldValue != null && e.OldValue is INotifyPropertyChanged)
|
||||
(e.OldValue as INotifyPropertyChanged).PropertyChanged -= me.PropertyGrid_PropertyChanged;
|
||||
|
||||
UpdatePropertyItems(me.ItemsSource, me.PropertyItems);
|
||||
me.RaisePropertyChanged(null);
|
||||
|
||||
if (e.NewValue != null && e.NewValue is INotifyPropertyChanged)
|
||||
(e.NewValue as INotifyPropertyChanged).PropertyChanged += me.PropertyGrid_PropertyChanged;
|
||||
}
|
||||
}
|
||||
|
||||
void PropertyGrid_PropertyChanged(object sender, PropertyChangedEventArgs e)
|
||||
{
|
||||
if (e.PropertyName == "Properties")
|
||||
{
|
||||
UpdatePropertyItems(ItemsSource, PropertyItems);
|
||||
RaisePropertyChanged(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static void UpdatePropertyItems(object itemsSource, IList<PropertyItem> propertyItems)
|
||||
{
|
||||
propertyItems.Clear();
|
||||
int index = 0;
|
||||
if (itemsSource != null)
|
||||
{
|
||||
var properties = (itemsSource is ICustomTypeDescriptor) ? (itemsSource as ICustomTypeDescriptor).GetProperties() : TypeDescriptor.GetProperties(itemsSource);
|
||||
foreach (PropertyDescriptor pd in properties.Cast<PropertyDescriptor>())
|
||||
{
|
||||
var browsableAttribute = pd.Attributes.OfType<BrowsableAttribute>().FirstOrDefault();
|
||||
if (browsableAttribute != null && !browsableAttribute.Browsable)
|
||||
continue;
|
||||
|
||||
propertyItems.Add(new PropertyItem(itemsSource, index++, pd));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
public void RaisePropertyChanged(string propertyName)
|
||||
{
|
||||
if (PropertyChanged != null)
|
||||
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
|
||||
private void CollectionViewSource_Filter(object sender, FilterEventArgs e)
|
||||
{
|
||||
e.Accepted = string.IsNullOrEmpty(this.Filter) || (e.Item as PropertyItem).Name.ToLower().Contains(this.Filter.ToLower());
|
||||
}
|
||||
|
||||
public void PropertyItem_PreviewMouseDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
var pi = (sender as FrameworkElement).DataContext as PropertyItem;
|
||||
if (this.SelectedPropertyItem == pi)
|
||||
return;
|
||||
|
||||
if (pi != null)
|
||||
{
|
||||
if (this.SelectedPropertyItem != null)
|
||||
this.SelectedPropertyItem.IsSelected = false;
|
||||
|
||||
pi.IsSelected = true;
|
||||
this.SelectedPropertyItem = pi;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
148
hgplus/bliss/Tweaky/PropertyGrid/PropertyItem.cs
Normal file
148
hgplus/bliss/Tweaky/PropertyGrid/PropertyItem.cs
Normal file
@@ -0,0 +1,148 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
|
||||
namespace Tweaky.PropertyGrid
|
||||
{
|
||||
public class PropertyItem : DependencyObject, INotifyPropertyChanged
|
||||
{
|
||||
public PropertyItem(object source, int index, PropertyDescriptor pd)
|
||||
{
|
||||
this.PropertyDescriptor = pd;
|
||||
this.Instance = source;
|
||||
this.Index = index;
|
||||
this.PropertyItems = new ObservableCollectionEx<PropertyItem>();
|
||||
if (source is INotifyPropertyChanged)
|
||||
(source as INotifyPropertyChanged).PropertyChanged += Source_PropertyChanged;
|
||||
|
||||
var categoryAttribute = pd.Attributes.OfType<CategoryAttribute>().FirstOrDefault();
|
||||
var descriptionAttribute = pd.Attributes.OfType<DescriptionAttribute>().FirstOrDefault();
|
||||
var displayNameAttribute = pd.Attributes.OfType<DisplayNameAttribute>().FirstOrDefault();
|
||||
var readOnlyAttribute = pd.Attributes.OfType<ReadOnlyAttribute>().FirstOrDefault();
|
||||
Category = categoryAttribute == null ? "Misc" : categoryAttribute.Category;
|
||||
Description = descriptionAttribute == null ? "" : descriptionAttribute.Description;
|
||||
Name = displayNameAttribute == null ? pd.Name : displayNameAttribute.DisplayName;
|
||||
if (!pd.IsReadOnly && (readOnlyAttribute == null || !readOnlyAttribute.IsReadOnly))
|
||||
{
|
||||
IsReadOnly = false;
|
||||
BindingOperations.SetBinding(this, ValueProperty, new Binding() { Source = source, Path = new PropertyPath(pd.Name) });
|
||||
}
|
||||
else
|
||||
{
|
||||
IsReadOnly = true;
|
||||
BindingOperations.SetBinding(this, ValueProperty, new Binding() { Source = source, Path = new PropertyPath(pd.Name), Mode = BindingMode.OneWay });
|
||||
}
|
||||
}
|
||||
|
||||
void Source_PropertyChanged(object sender, PropertyChangedEventArgs e)
|
||||
{
|
||||
if (e.PropertyName == this.PropertyDescriptor.Name || string.IsNullOrEmpty(e.PropertyName))
|
||||
RaisePropertyChanged("Value");
|
||||
}
|
||||
|
||||
public int Index
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public PropertyItem Parent
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public object Instance
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public PropertyDescriptor PropertyDescriptor
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public string Category
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public string Description
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public bool IsReadOnly
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public bool IsEditable
|
||||
{
|
||||
get
|
||||
{
|
||||
return !IsReadOnly;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsExpanded
|
||||
{
|
||||
get;
|
||||
[Notify]
|
||||
set;
|
||||
}
|
||||
|
||||
public bool IsSelected
|
||||
{
|
||||
get;
|
||||
[Notify]
|
||||
set;
|
||||
}
|
||||
|
||||
public object Value
|
||||
{
|
||||
get { return this.GetValue(ValueProperty); }
|
||||
[Notify]
|
||||
set { this.SetValue(ValueProperty, value); }
|
||||
}
|
||||
public static readonly DependencyProperty ValueProperty = DependencyProperty.Register("Value", typeof(object), typeof(PropertyItem), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnValueChanged));
|
||||
|
||||
private static void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
var pi = (d as PropertyItem);
|
||||
pi.RaisePropertyChanged("Value");
|
||||
(pi.Instance as ViewModelBase).RaisePropertyChanged("Name");
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
public void RaisePropertyChanged(string propertyName)
|
||||
{
|
||||
if (PropertyChanged != null)
|
||||
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
|
||||
public ObservableCollectionEx<PropertyItem> PropertyItems
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
}
|
||||
}
|
||||
22
hgplus/bliss/Tweaky/RangeAttribute.cs
Normal file
22
hgplus/bliss/Tweaky/RangeAttribute.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Tweaky
|
||||
{
|
||||
public class RangeAttribute : Attribute
|
||||
{
|
||||
public RangeAttribute(float minimum, float maximum, float stepHint)
|
||||
{
|
||||
this.Minimum = minimum;
|
||||
this.Maximum = maximum;
|
||||
this.StepHint = stepHint;
|
||||
}
|
||||
|
||||
public float Minimum { get; private set; }
|
||||
public float Maximum { get; private set; }
|
||||
public float StepHint { get; private set; }
|
||||
}
|
||||
}
|
||||
78
hgplus/bliss/Tweaky/Resources.xaml
Normal file
78
hgplus/bliss/Tweaky/Resources.xaml
Normal file
@@ -0,0 +1,78 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
|
||||
|
||||
<Style x:Key="{x:Type ButtonBase}" TargetType="{x:Type ButtonBase}">
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource ForegroundGradient}" />
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ButtonBase}">
|
||||
<Grid Background="{DynamicResource PseudoTransparent}">
|
||||
<Border x:Name="checkedBorder" CornerRadius="2" BorderBrush="{DynamicResource SunkenBorder}" BorderThickness="1" Background="{DynamicResource SunkenGradient}" Visibility="Collapsed" />
|
||||
<Border x:Name="hoverBorder" CornerRadius="2" BorderBrush="{DynamicResource DimSeparatingBorder}" BorderThickness="1" Background="{DynamicResource LightGradient}" />
|
||||
<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="{TemplateBinding Padding}" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="hoverBorder" Property="Background" Value="{DynamicResource BrightGradient}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="True">
|
||||
<Setter TargetName="hoverBorder" Property="Background" Value="{DynamicResource NormalGradient}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter TargetName="contentPresenter" Property="Opacity" Value="0.5" />
|
||||
</Trigger>
|
||||
<Trigger Property="ToggleButton.IsChecked" Value="True">
|
||||
<Setter TargetName="checkedBorder" Property="Visibility" Value="Visible" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter Property="Foreground" Value="{DynamicResource HighlightGradient}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="True">
|
||||
<Setter Property="Foreground" Value="{DynamicResource ForegroundGradient}" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="{x:Type Button}" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type ButtonBase}}" />
|
||||
<Style x:Key="{x:Type TextBlock}" TargetType="{x:Type TextBlock}">
|
||||
<Setter Property="Foreground" Value="{DynamicResource Foreground}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="ToolButton" TargetType="{x:Type ButtonBase}" BasedOn="{StaticResource {x:Type ButtonBase}}">
|
||||
<Setter Property="Width" Value="20" />
|
||||
<Setter Property="Height" Value="20" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ButtonBase}">
|
||||
<Grid Background="{DynamicResource PseudoTransparent}">
|
||||
<Border x:Name="checkedBorder" CornerRadius="2" BorderBrush="{DynamicResource SunkenBorder}" BorderThickness="1" Background="{DynamicResource SunkenGradient}" Visibility="Collapsed" />
|
||||
<Border x:Name="hoverBorder" CornerRadius="2" BorderBrush="{DynamicResource DimSeparatingBorder}" BorderThickness="1" Background="{DynamicResource BrightGradient}" Visibility="Collapsed" />
|
||||
<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="hoverBorder" Property="Visibility" Value="Visible" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="True">
|
||||
<Setter TargetName="hoverBorder" Property="Background" Value="{DynamicResource NormalGradient}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter TargetName="contentPresenter" Property="Opacity" Value="0.5" />
|
||||
</Trigger>
|
||||
<Trigger Property="ToggleButton.IsChecked" Value="True">
|
||||
<Setter TargetName="checkedBorder" Property="Visibility" Value="Visible" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
74
hgplus/bliss/Tweaky/SharedMemory.cs
Normal file
74
hgplus/bliss/Tweaky/SharedMemory.cs
Normal file
@@ -0,0 +1,74 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO.MemoryMappedFiles;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Tweaky
|
||||
{
|
||||
public class SharedMemory<T> where T : struct
|
||||
{
|
||||
// Constructor
|
||||
public SharedMemory(string name, int size)
|
||||
{
|
||||
smName = name;
|
||||
smSize = size;
|
||||
}
|
||||
|
||||
// Methods
|
||||
public bool Open()
|
||||
{
|
||||
try
|
||||
{
|
||||
// Create named MMF
|
||||
mmf = MemoryMappedFile.CreateOrOpen(smName, smSize);
|
||||
|
||||
// Create accessors to MMF
|
||||
accessor = mmf.CreateViewAccessor(0, smSize,
|
||||
MemoryMappedFileAccess.ReadWrite);
|
||||
|
||||
// Create lock
|
||||
smLock = new Mutex(true, "SM_LOCK", out locked);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Close()
|
||||
{
|
||||
accessor.Dispose();
|
||||
mmf.Dispose();
|
||||
smLock.Close();
|
||||
}
|
||||
|
||||
public T Data
|
||||
{
|
||||
get
|
||||
{
|
||||
T dataStruct;
|
||||
accessor.Read<T>(0, out dataStruct);
|
||||
return dataStruct;
|
||||
}
|
||||
set
|
||||
{
|
||||
smLock.WaitOne();
|
||||
accessor.Write<T>(0, ref value);
|
||||
smLock.ReleaseMutex();
|
||||
}
|
||||
}
|
||||
|
||||
// Data
|
||||
private string smName;
|
||||
private Mutex smLock;
|
||||
private int smSize;
|
||||
private bool locked;
|
||||
private MemoryMappedFile mmf;
|
||||
private MemoryMappedViewAccessor accessor;
|
||||
}
|
||||
}
|
||||
87
hgplus/bliss/Tweaky/Theme.xaml
Normal file
87
hgplus/bliss/Tweaky/Theme.xaml
Normal file
@@ -0,0 +1,87 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
|
||||
|
||||
<Color x:Key="TextShadowColor">Black</Color>
|
||||
<Color x:Key="DarkBackgroundColor">#3B3B3B</Color>
|
||||
<Color x:Key="LightBackgroundColor">#444444</Color>
|
||||
<SolidColorBrush x:Key="GroupBackground" Color="#4A4A4A" />
|
||||
<SolidColorBrush x:Key="LightBackground" Color="{StaticResource LightBackgroundColor}" />
|
||||
<SolidColorBrush x:Key="GeneralBackground" Color="#404040" />
|
||||
<SolidColorBrush x:Key="DarkBackground" Color="{StaticResource DarkBackgroundColor}" />
|
||||
<SolidColorBrush x:Key="Highlight" Color="#B8B8B8" />
|
||||
<SolidColorBrush x:Key="Foreground" Color="#D8D8D8" />
|
||||
<SolidColorBrush x:Key="GroupText" Color="#C8C8C8" />
|
||||
<SolidColorBrush x:Key="DimForeground" Color="#909090" />
|
||||
<SolidColorBrush x:Key="LightSeparatingBorder" Color="#505050" />
|
||||
<SolidColorBrush x:Key="SeparatingBorder" Color="#3A3A3A" />
|
||||
<SolidColorBrush x:Key="DimSeparatingBorder" Color="#2D2D2D" />
|
||||
<SolidColorBrush x:Key="DarkSeparatingBorder" Color="#111111" />
|
||||
<SolidColorBrush x:Key="DisabledForegroundBrush" Color="#2D2D2D" />
|
||||
<SolidColorBrush x:Key="SnapGuide" Color="#80A0A0A0" />
|
||||
<SolidColorBrush x:Key="PlayPositionGuide" Color="Red" />
|
||||
<SolidColorBrush x:Key="MenuBorder" Color="#707070" />
|
||||
<SolidColorBrush x:Key="MenuBackground" Color="#606060" />
|
||||
<SolidColorBrush x:Key="SeparatorHighlight" Color="#707070" />
|
||||
<SolidColorBrush x:Key="SeparatorShadow" Color="#505050" />
|
||||
|
||||
<LinearGradientBrush x:Key="HighlightGradient" EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#D8D8D8" Offset="0" />
|
||||
<GradientStop Color="#C8C8C8" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<LinearGradientBrush x:Key="ForegroundGradient" EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#B5B5B5" Offset="0" />
|
||||
<GradientStop Color="#949494" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<LinearGradientBrush x:Key="BrightGradient" EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#707070" Offset="0" />
|
||||
<GradientStop Color="#606060" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<LinearGradientBrush x:Key="LightGradient" EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#606060" Offset="0" />
|
||||
<GradientStop Color="#505050" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<LinearGradientBrush x:Key="NormalGradient" EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#505050" Offset="0" />
|
||||
<GradientStop Color="#484848" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<LinearGradientBrush x:Key="BarGradient" EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#4B4B4B" Offset="0" />
|
||||
<GradientStop Color="#3C3C3C" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<LinearGradientBrush x:Key="SunkenGradient" EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#3C3C3C" Offset="0" />
|
||||
<GradientStop Color="#4B4B4B" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<LinearGradientBrush x:Key="SunkenBorder" EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#2D2D2D" Offset="0" />
|
||||
<GradientStop Color="#606060" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<LinearGradientBrush x:Key="ScrollbarGradient" EndPoint="1,0.5" StartPoint="0,0.5">
|
||||
<GradientStop Color="#353535" Offset="0" />
|
||||
<GradientStop Color="#3B3B3B" Offset="0.135" />
|
||||
<GradientStop Color="#3B3B3B" Offset="0.865" />
|
||||
<GradientStop Color="#353535" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<SolidColorBrush x:Key="PseudoTransparent" Color="#01808080" />
|
||||
|
||||
<SolidColorBrush x:Key="TimelineItemForeground" Color="White" />
|
||||
<LinearGradientBrush x:Key="TimelineItemGradient" EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#40000000" Offset="0" />
|
||||
<GradientStop Color="#80000000" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<SolidColorBrush x:Key="ToggleHBackgroundBright" Color="#E8E8E8" />
|
||||
<SolidColorBrush x:Key="ToggleHForegroundBright" Color="#000000" />
|
||||
|
||||
<SolidColorBrush x:Key="ToggleHBackgroundDark" Color="#808080" />
|
||||
<SolidColorBrush x:Key="ToggleHForegroundDark" Color="#606060" />
|
||||
|
||||
</ResourceDictionary>
|
||||
168
hgplus/bliss/Tweaky/Tweaky.csproj
Normal file
168
hgplus/bliss/Tweaky/Tweaky.csproj
Normal file
@@ -0,0 +1,168 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{2C4744F2-FEAC-450E-B5C1-195F8F4E3B8E}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Tweaky</RootNamespace>
|
||||
<AssemblyName>Tweaky</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DontImportPostSharp>True</DontImportPostSharp>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<UseVSHostingProcess>true</UseVSHostingProcess>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="PostSharp">
|
||||
<HintPath>..\packages\PostSharp.3.1.28\lib\net20\PostSharp.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="System.Xaml">
|
||||
<RequiredTargetFramework>4.0</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="WindowsBase" />
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="PresentationFramework" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Include="App.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</ApplicationDefinition>
|
||||
<Compile Include="ColorEditorBase.cs" />
|
||||
<Compile Include="DataViewModel.cs" />
|
||||
<Compile Include="DefaultEditor.cs" />
|
||||
<Compile Include="EditorBase.cs" />
|
||||
<Compile Include="EnumEditor.cs" />
|
||||
<Compile Include="ExecuteAfterAspect.cs" />
|
||||
<Compile Include="Float4Editor.cs" />
|
||||
<Compile Include="FloatArrayColorEditor.cs" />
|
||||
<Compile Include="ObservableCollectionEx.cs" />
|
||||
<Compile Include="PropertyGrid\EditorTemplateSelector.cs" />
|
||||
<Compile Include="PropertyGrid\PropertyGrid.xaml.cs">
|
||||
<DependentUpon>PropertyGrid.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PropertyGrid\PropertyItem.cs" />
|
||||
<Compile Include="RangeAttribute.cs" />
|
||||
<Compile Include="SharedMemory.cs" />
|
||||
<Compile Include="UserControl1.xaml.cs">
|
||||
<DependentUpon>UserControl1.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ViewModelBase.cs" />
|
||||
<Page Include="EditorTemplates.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="MainWindow.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="MainWindow.xaml.cs">
|
||||
<DependentUpon>MainWindow.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Page Include="PropertyGrid\PropertyGrid.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="Resources.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="Theme.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="UserControl1.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="NotifyAspect.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<AppDesigner Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="hue.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="colorpicker.cur" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="..\packages\PostSharp.3.1.28\tools\PostSharp.targets" Condition="Exists('..\packages\PostSharp.3.1.28\tools\PostSharp.targets')" />
|
||||
<Target Name="EnsurePostSharpImported" BeforeTargets="BeforeBuild" Condition="'$(PostSharp30Imported)' == ''">
|
||||
<Error Condition="!Exists('..\packages\PostSharp.3.1.28\tools\PostSharp.targets')" Text="This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://www.postsharp.net/links/nuget-restore." />
|
||||
<Error Condition="Exists('..\packages\PostSharp.3.1.28\tools\PostSharp.targets')" Text="The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see http://www.postsharp.net/links/nuget-restore." />
|
||||
</Target>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
9
hgplus/bliss/Tweaky/Tweaky.csproj.user
Normal file
9
hgplus/bliss/Tweaky/Tweaky.csproj.user
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
||||
<StartWorkingDirectory>E:\dx11intro\Engine\Engine\</StartWorkingDirectory>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
185
hgplus/bliss/Tweaky/UserControl1.xaml
Normal file
185
hgplus/bliss/Tweaky/UserControl1.xaml
Normal file
@@ -0,0 +1,185 @@
|
||||
<UserControl x:Class="Tweaky.UserControl1"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="74" d:DesignWidth="500">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border x:Name="SVGradientBorder" Margin="5" BorderThickness="1" CornerRadius="2" Height="64" Width="64">
|
||||
<Border.BorderBrush>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#FFFFFFFF" Offset="0" />
|
||||
<GradientStop Color="#80FFFFFF" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</Border.BorderBrush>
|
||||
<Grid>
|
||||
<Border x:Name="PART_SatValImage" Background="{Binding HueBrush, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
<Border IsHitTestVisible="False">
|
||||
<Border.Background>
|
||||
<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
|
||||
<GradientStop Color="White" Offset="0" />
|
||||
<GradientStop Color="Transparent" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</Border.Background>
|
||||
</Border>
|
||||
<Border IsHitTestVisible="False">
|
||||
<Border.Background>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#00000000" Offset="0" />
|
||||
<GradientStop Color="Black" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</Border.Background>
|
||||
</Border>
|
||||
<Border CornerRadius="1" BorderThickness="1" IsHitTestVisible="False">
|
||||
<Border.BorderBrush>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#80000000" Offset="0" />
|
||||
<GradientStop Color="#40000000" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</Border.BorderBrush>
|
||||
</Border>
|
||||
<Canvas IsHitTestVisible="False" Margin="-3">
|
||||
<Path Canvas.Left="{Binding SatIndicatorPosition, RelativeSource={RelativeSource TemplatedParent}}" Canvas.Top="{Binding ValIndicatorPosition, RelativeSource={RelativeSource TemplatedParent}}" x:Name="SatValIndicator" Data="M0,3 L3,0 L6,3 L3,6 Z" Stroke="{DynamicResource Foreground}" Fill="{DynamicResource DarkBackground}">
|
||||
<Path.Effect>
|
||||
<DropShadowEffect ShadowDepth="1" BlurRadius="1" Opacity="0.5" />
|
||||
</Path.Effect>
|
||||
</Path>
|
||||
</Canvas>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<Grid Grid.Column="1" Margin="0,5,5,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid Grid.ColumnSpan="8">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border x:Name="HGradientBorder" BorderThickness="1" Height="30" Margin="0,0,10,0" CornerRadius="2">
|
||||
<Border.BorderBrush>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#FFFFFFFF" Offset="0" />
|
||||
<GradientStop Color="#80FFFFFF" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</Border.BorderBrush>
|
||||
|
||||
<Grid>
|
||||
<Image x:Name="PART_HueImage" Stretch="Fill" Source="/Tweaky;component/hue.png" Height="8" />
|
||||
<Canvas IsHitTestVisible="False" Margin="-3">
|
||||
<Path Canvas.Left="{Binding HueIndicatorPosition, RelativeSource={RelativeSource TemplatedParent}}" x:Name="HueIndicator" Data="M0,0 L6,0 L3,3 Z M3,3 L3,31 M3,31 L0,34 L6,34 Z" Stroke="{DynamicResource Foreground}" Fill="{DynamicResource DarkBackground}">
|
||||
<Path.Effect>
|
||||
<DropShadowEffect ShadowDepth="1" BlurRadius="1" Opacity="0.5" Color="White" />
|
||||
</Path.Effect>
|
||||
</Path>
|
||||
</Canvas>
|
||||
<Border CornerRadius="1" BorderThickness="1" IsHitTestVisible="False">
|
||||
<Border.BorderBrush>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#80000000" Offset="0" />
|
||||
<GradientStop Color="#40000000" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</Border.BorderBrush>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
<Border x:Name="ColorPreviewBorder" BorderThickness="1" Width="200" Height="30" Grid.Column="1" CornerRadius="2">
|
||||
<Border.BorderBrush>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#FFFFFFFF" Offset="0" />
|
||||
<GradientStop Color="#80FFFFFF" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</Border.BorderBrush>
|
||||
<Border CornerRadius="1" BorderThickness="1">
|
||||
<Border.BorderBrush>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#80000000" Offset="0" />
|
||||
<GradientStop Color="#40000000" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</Border.BorderBrush>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border Background="White" Grid.Row="0" Grid.Column="0" />
|
||||
<Border Background="Silver" Grid.Row="1" Grid.Column="0" />
|
||||
<Border Background="Silver" Grid.Row="0" Grid.Column="1" />
|
||||
<Border Background="White" Grid.Row="1" Grid.Column="1" />
|
||||
<Border Background="White" Grid.Row="0" Grid.Column="2" />
|
||||
<Border Background="Silver" Grid.Row="1" Grid.Column="2" />
|
||||
<Border Background="Silver" Grid.Row="0" Grid.Column="3" />
|
||||
<Border Background="White" Grid.Row="1" Grid.Column="3" />
|
||||
<Border Background="White" Grid.Row="0" Grid.Column="4" />
|
||||
<Border Background="Silver" Grid.Row="1" Grid.Column="4" />
|
||||
<Border Background="Silver" Grid.Row="0" Grid.Column="5" />
|
||||
<Border Background="White" Grid.Row="1" Grid.Column="5" />
|
||||
<Border Background="White" Grid.Row="0" Grid.Column="6" />
|
||||
<Border Background="Silver" Grid.Row="1" Grid.Column="6" />
|
||||
<Border Background="Silver" Grid.Row="0" Grid.Column="7" />
|
||||
<Border Background="White" Grid.Row="1" Grid.Column="7" />
|
||||
<Border Background="White" Grid.Row="0" Grid.Column="8" />
|
||||
<Border Background="Silver" Grid.Row="1" Grid.Column="8" />
|
||||
<Border Background="Silver" Grid.Row="0" Grid.Column="9" />
|
||||
<Border Background="White" Grid.Row="1" Grid.Column="9" />
|
||||
<Border Background="White" Grid.Row="0" Grid.Column="10" />
|
||||
<Border Background="Silver" Grid.Row="1" Grid.Column="10" />
|
||||
<Border Background="Silver" Grid.Row="0" Grid.Column="11" />
|
||||
<Border Background="White" Grid.Row="1" Grid.Column="11" />
|
||||
<Border Background="White" Grid.Row="0" Grid.Column="12" />
|
||||
<Border Background="Silver" Grid.Row="1" Grid.Column="12" />
|
||||
<Border Background="Silver" Grid.Row="0" Grid.Column="13" />
|
||||
<Border Background="White" Grid.Row="1" Grid.Column="13" />
|
||||
<Border Grid.RowSpan="2" Grid.ColumnSpan="7" Background="{Binding ExternalBackgroundBrush, RelativeSource={RelativeSource TemplatedParent}}" Cursor="UpArrow" x:Name="PART_OriginalColorBorder" />
|
||||
<Border Grid.RowSpan="2" Grid.Column="7" Grid.ColumnSpan="7" Background="{Binding BackgroundBrush, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</Border>
|
||||
</Grid>
|
||||
<Border Grid.Row="1" Height="10" />
|
||||
<TextBlock Grid.Row="3" Margin="2" VerticalAlignment="Center">Red:</TextBlock>
|
||||
<Slider Grid.Row="3" Margin="2" Value="{Binding Red, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" Grid.Column="1" />
|
||||
<TextBlock Grid.Row="3" Margin="2" Grid.Column="2" VerticalAlignment="Center">Green:</TextBlock>
|
||||
<Slider Grid.Row="3" Margin="2" Value="{Binding Green, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" Grid.Column="3" />
|
||||
<TextBlock Grid.Row="3" Margin="2" Grid.Column="4" VerticalAlignment="Center">Blue:</TextBlock>
|
||||
<Slider Grid.Row="3" Margin="2" Value="{Binding Blue, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" Grid.Column="5" />
|
||||
<TextBlock Visibility="{Binding AlphaGuiVisibility, RelativeSource={RelativeSource TemplatedParent}}" Grid.Row="3" Margin="2" Grid.Column="6" VerticalAlignment="Center">Alpha:</TextBlock>
|
||||
<Slider Visibility="{Binding AlphaGuiVisibility, RelativeSource={RelativeSource TemplatedParent}}" Grid.Row="3" Margin="2" Value="{Binding Alpha, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" Grid.Column="7" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
28
hgplus/bliss/Tweaky/UserControl1.xaml.cs
Normal file
28
hgplus/bliss/Tweaky/UserControl1.xaml.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace Tweaky
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for UserControl1.xaml
|
||||
/// </summary>
|
||||
public partial class UserControl1 : UserControl
|
||||
{
|
||||
public UserControl1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
24
hgplus/bliss/Tweaky/ViewModelBase.cs
Normal file
24
hgplus/bliss/Tweaky/ViewModelBase.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Tweaky
|
||||
{
|
||||
public class ViewModelBase : INotifyPropertyChanged
|
||||
{
|
||||
public ViewModelBase()
|
||||
{
|
||||
}
|
||||
|
||||
public void RaisePropertyChanged(string propertyName)
|
||||
{
|
||||
if (PropertyChanged != null)
|
||||
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
}
|
||||
}
|
||||
BIN
hgplus/bliss/Tweaky/bin/Debug/PostSharp.dll
Normal file
BIN
hgplus/bliss/Tweaky/bin/Debug/PostSharp.dll
Normal file
Binary file not shown.
7846
hgplus/bliss/Tweaky/bin/Debug/PostSharp.xml
Normal file
7846
hgplus/bliss/Tweaky/bin/Debug/PostSharp.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
hgplus/bliss/Tweaky/bin/Debug/Tweaky.exe
Normal file
BIN
hgplus/bliss/Tweaky/bin/Debug/Tweaky.exe
Normal file
Binary file not shown.
6
hgplus/bliss/Tweaky/bin/Debug/Tweaky.exe.config
Normal file
6
hgplus/bliss/Tweaky/bin/Debug/Tweaky.exe.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
|
||||
</startup>
|
||||
</configuration>
|
||||
BIN
hgplus/bliss/Tweaky/bin/Debug/Tweaky.pdb
Normal file
BIN
hgplus/bliss/Tweaky/bin/Debug/Tweaky.pdb
Normal file
Binary file not shown.
97
hgplus/bliss/Tweaky/bin/Debug/Tweaky.pssym
Normal file
97
hgplus/bliss/Tweaky/bin/Debug/Tweaky.pssym
Normal file
@@ -0,0 +1,97 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Symbols xmlns="http://schemas.postsharp.org/2.0/symbols">
|
||||
<Class Class="#1=T:[Tweaky]Tweaky.ExecuteAfterAttribute">
|
||||
<Instance Declaration="#2=M:[Tweaky]Tweaky.DataViewModel::set_GradeLiftNight(System.Drawing.Color)" Id="9454d4e0e8ca5d9e">
|
||||
<Target>
|
||||
<JoinPoint Description="#3=Wrapped by advice(s) OnEntry, OnSuccess, OnException, OnExit" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#4=M:[Tweaky]Tweaky.DataViewModel::set_GradeLiftDay(System.Drawing.Color)" Id="9454d4e028e24abb">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#5=M:[Tweaky]Tweaky.DataViewModel::set_GradeGammaNight(System.Drawing.Color)" Id="9454d4e0cf934913">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#6=M:[Tweaky]Tweaky.DataViewModel::set_GradeGammaDay(System.Drawing.Color)" Id="9454d4e07bb44e6f">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#7=M:[Tweaky]Tweaky.DataViewModel::set_GradeGainNight(System.Drawing.Color)" Id="9454d4e00415d7d6">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#8=M:[Tweaky]Tweaky.DataViewModel::set_GradeGainDay(System.Drawing.Color)" Id="9454d4e0f17be537">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#9=M:[Tweaky]Tweaky.DataViewModel::set_LightDirectionNight([Tweaky]Tweaky.float4)" Id="9454d4e0689002ad">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#10=M:[Tweaky]Tweaky.DataViewModel::set_LightDirectionDay([Tweaky]Tweaky.float4)" Id="9454d4e00aae442d">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
</Class>
|
||||
<Class Class="#11=T:[Tweaky]Tweaky.NotifyAttribute">
|
||||
<Instance Declaration="#12=M:[Tweaky]Tweaky.PropertyGrid.PropertyGrid::set_LeftColumn(System.Windows.GridLength)" Id="9454d4e045d328cd">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#13=M:[Tweaky]Tweaky.PropertyGrid.PropertyGrid::set_RightColumn(System.Windows.GridLength)" Id="9454d4e073f16b93">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#14=M:[Tweaky]Tweaky.PropertyGrid.PropertyGrid::set_Filter(System.String)" Id="9454d4e07291c10f">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#15=M:[Tweaky]Tweaky.PropertyGrid.PropertyGrid::set_SelectedPropertyItem([Tweaky]Tweaky.PropertyGrid.PropertyItem)" Id="9454d4e05a18d8f5">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#16=M:[Tweaky]Tweaky.PropertyGrid.PropertyGrid::set_ItemsSourceType(System.String)" Id="9454d4e02ebac58a">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#17=M:[Tweaky]Tweaky.PropertyGrid.PropertyGrid::set_ItemsSourceName(System.String)" Id="9454d4e0a0b60ade">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#18=M:[Tweaky]Tweaky.PropertyGrid.PropertyGrid::set_ItemsSource(System.Object)" Id="9454d4e099c2f885">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#19=M:[Tweaky]Tweaky.PropertyGrid.PropertyItem::set_IsExpanded(System.Boolean)" Id="9454d4e09ac19454">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#20=M:[Tweaky]Tweaky.PropertyGrid.PropertyItem::set_IsSelected(System.Boolean)" Id="9454d4e00bfac54c">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#21=M:[Tweaky]Tweaky.PropertyGrid.PropertyItem::set_Value(System.Object)" Id="9454d4e0d7371a91">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
</Class>
|
||||
</Symbols>
|
||||
BIN
hgplus/bliss/Tweaky/bin/Release/PostSharp.dll
Normal file
BIN
hgplus/bliss/Tweaky/bin/Release/PostSharp.dll
Normal file
Binary file not shown.
7846
hgplus/bliss/Tweaky/bin/Release/PostSharp.xml
Normal file
7846
hgplus/bliss/Tweaky/bin/Release/PostSharp.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
hgplus/bliss/Tweaky/bin/Release/Tweaky.exe
Normal file
BIN
hgplus/bliss/Tweaky/bin/Release/Tweaky.exe
Normal file
Binary file not shown.
6
hgplus/bliss/Tweaky/bin/Release/Tweaky.exe.config
Normal file
6
hgplus/bliss/Tweaky/bin/Release/Tweaky.exe.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
|
||||
</startup>
|
||||
</configuration>
|
||||
BIN
hgplus/bliss/Tweaky/bin/Release/Tweaky.pdb
Normal file
BIN
hgplus/bliss/Tweaky/bin/Release/Tweaky.pdb
Normal file
Binary file not shown.
97
hgplus/bliss/Tweaky/bin/Release/Tweaky.pssym
Normal file
97
hgplus/bliss/Tweaky/bin/Release/Tweaky.pssym
Normal file
@@ -0,0 +1,97 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Symbols xmlns="http://schemas.postsharp.org/2.0/symbols">
|
||||
<Class Class="#1=T:[Tweaky]Tweaky.ExecuteAfterAttribute">
|
||||
<Instance Declaration="#2=M:[Tweaky]Tweaky.DataViewModel::set_GradeLiftNight(System.Drawing.Color)" Id="9454d4e071ad6405">
|
||||
<Target>
|
||||
<JoinPoint Description="#3=Wrapped by advice(s) OnEntry, OnSuccess, OnException, OnExit" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#4=M:[Tweaky]Tweaky.DataViewModel::set_GradeLiftDay(System.Drawing.Color)" Id="9454d4e02d54b2e8">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#5=M:[Tweaky]Tweaky.DataViewModel::set_GradeGammaNight(System.Drawing.Color)" Id="9454d4e02c244807">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#6=M:[Tweaky]Tweaky.DataViewModel::set_GradeGammaDay(System.Drawing.Color)" Id="9454d4e05cfc1f6c">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#7=M:[Tweaky]Tweaky.DataViewModel::set_GradeGainNight(System.Drawing.Color)" Id="9454d4e01d87c26e">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#8=M:[Tweaky]Tweaky.DataViewModel::set_GradeGainDay(System.Drawing.Color)" Id="9454d4e097ee3b7a">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#9=M:[Tweaky]Tweaky.DataViewModel::set_LightDirectionNight([Tweaky]Tweaky.float4)" Id="9454d4e0a5345c79">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#10=M:[Tweaky]Tweaky.DataViewModel::set_LightDirectionDay([Tweaky]Tweaky.float4)" Id="9454d4e0b47f4733">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
</Class>
|
||||
<Class Class="#11=T:[Tweaky]Tweaky.NotifyAttribute">
|
||||
<Instance Declaration="#12=M:[Tweaky]Tweaky.PropertyGrid.PropertyGrid::set_LeftColumn(System.Windows.GridLength)" Id="9454d4e0543ea47d">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#13=M:[Tweaky]Tweaky.PropertyGrid.PropertyGrid::set_RightColumn(System.Windows.GridLength)" Id="9454d4e0abe0be62">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#14=M:[Tweaky]Tweaky.PropertyGrid.PropertyGrid::set_Filter(System.String)" Id="9454d4e0fc43f925">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#15=M:[Tweaky]Tweaky.PropertyGrid.PropertyGrid::set_SelectedPropertyItem([Tweaky]Tweaky.PropertyGrid.PropertyItem)" Id="9454d4e001b62646">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#16=M:[Tweaky]Tweaky.PropertyGrid.PropertyGrid::set_ItemsSourceType(System.String)" Id="9454d4e053ec692d">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#17=M:[Tweaky]Tweaky.PropertyGrid.PropertyGrid::set_ItemsSourceName(System.String)" Id="9454d4e08716f342">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#18=M:[Tweaky]Tweaky.PropertyGrid.PropertyGrid::set_ItemsSource(System.Object)" Id="9454d4e09d73c8cf">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#19=M:[Tweaky]Tweaky.PropertyGrid.PropertyItem::set_IsExpanded(System.Boolean)" Id="9454d4e068bcc869">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#20=M:[Tweaky]Tweaky.PropertyGrid.PropertyItem::set_IsSelected(System.Boolean)" Id="9454d4e01e288cf5">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
<Instance Declaration="#21=M:[Tweaky]Tweaky.PropertyGrid.PropertyItem::set_Value(System.Object)" Id="9454d4e097dea4d1">
|
||||
<Target>
|
||||
<JoinPoint Description="#3" />
|
||||
</Target>
|
||||
</Instance>
|
||||
</Class>
|
||||
</Symbols>
|
||||
BIN
hgplus/bliss/Tweaky/colorpicker.cur
Normal file
BIN
hgplus/bliss/Tweaky/colorpicker.cur
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 326 B |
BIN
hgplus/bliss/Tweaky/hue.png
Normal file
BIN
hgplus/bliss/Tweaky/hue.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 759 B |
BIN
hgplus/bliss/Tweaky/obj/Debug/App.baml
Normal file
BIN
hgplus/bliss/Tweaky/obj/Debug/App.baml
Normal file
Binary file not shown.
82
hgplus/bliss/Tweaky/obj/Debug/App.g.cs
Normal file
82
hgplus/bliss/Tweaky/obj/Debug/App.g.cs
Normal file
@@ -0,0 +1,82 @@
|
||||
#pragma checksum "..\..\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "F95B18027291F43DE74DAFCFA7BCEAB6"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34011
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
|
||||
|
||||
namespace Tweaky {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// App
|
||||
/// </summary>
|
||||
public partial class App : System.Windows.Application {
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
|
||||
#line 4 "..\..\App.xaml"
|
||||
this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
System.Uri resourceLocater = new System.Uri("/Tweaky;component/app.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\App.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Application Entry Point.
|
||||
/// </summary>
|
||||
[System.STAThreadAttribute()]
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public static void Main() {
|
||||
Tweaky.App app = new Tweaky.App();
|
||||
app.InitializeComponent();
|
||||
app.Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
82
hgplus/bliss/Tweaky/obj/Debug/App.g.i.cs
Normal file
82
hgplus/bliss/Tweaky/obj/Debug/App.g.i.cs
Normal file
@@ -0,0 +1,82 @@
|
||||
#pragma checksum "..\..\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "F95B18027291F43DE74DAFCFA7BCEAB6"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
|
||||
|
||||
namespace Tweaky {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// App
|
||||
/// </summary>
|
||||
public partial class App : System.Windows.Application {
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
|
||||
#line 4 "..\..\App.xaml"
|
||||
this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
System.Uri resourceLocater = new System.Uri("/Tweaky;component/app.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\App.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Application Entry Point.
|
||||
/// </summary>
|
||||
[System.STAThreadAttribute()]
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public static void Main() {
|
||||
Tweaky.App app = new Tweaky.App();
|
||||
app.InitializeComponent();
|
||||
app.Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BIN
hgplus/bliss/Tweaky/obj/Debug/Before-PostSharp/Tweaky.exe
Normal file
BIN
hgplus/bliss/Tweaky/obj/Debug/Before-PostSharp/Tweaky.exe
Normal file
Binary file not shown.
BIN
hgplus/bliss/Tweaky/obj/Debug/Before-PostSharp/Tweaky.pdb
Normal file
BIN
hgplus/bliss/Tweaky/obj/Debug/Before-PostSharp/Tweaky.pdb
Normal file
Binary file not shown.
Binary file not shown.
BIN
hgplus/bliss/Tweaky/obj/Debug/EditorTemplates.baml
Normal file
BIN
hgplus/bliss/Tweaky/obj/Debug/EditorTemplates.baml
Normal file
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace XamlGeneratedNamespace {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// GeneratedInternalTypeHelper
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public sealed class GeneratedInternalTypeHelper : System.Windows.Markup.InternalTypeHelper {
|
||||
|
||||
/// <summary>
|
||||
/// CreateInstance
|
||||
/// </summary>
|
||||
protected override object CreateInstance(System.Type type, System.Globalization.CultureInfo culture) {
|
||||
return System.Activator.CreateInstance(type, ((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic)
|
||||
| (System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.CreateInstance)), null, null, culture);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// GetPropertyValue
|
||||
/// </summary>
|
||||
protected override object GetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, System.Globalization.CultureInfo culture) {
|
||||
return propertyInfo.GetValue(target, System.Reflection.BindingFlags.Default, null, null, culture);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// SetPropertyValue
|
||||
/// </summary>
|
||||
protected override void SetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, object value, System.Globalization.CultureInfo culture) {
|
||||
propertyInfo.SetValue(target, value, System.Reflection.BindingFlags.Default, null, null, culture);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// CreateDelegate
|
||||
/// </summary>
|
||||
protected override System.Delegate CreateDelegate(System.Type delegateType, object target, string handler) {
|
||||
return ((System.Delegate)(target.GetType().InvokeMember("_CreateDelegate", (System.Reflection.BindingFlags.InvokeMethod
|
||||
| (System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)), null, target, new object[] {
|
||||
delegateType,
|
||||
handler}, null)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// AddEventHandler
|
||||
/// </summary>
|
||||
protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) {
|
||||
eventInfo.AddEventHandler(target, handler);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BIN
hgplus/bliss/Tweaky/obj/Debug/MainWindow.baml
Normal file
BIN
hgplus/bliss/Tweaky/obj/Debug/MainWindow.baml
Normal file
Binary file not shown.
83
hgplus/bliss/Tweaky/obj/Debug/MainWindow.g.cs
Normal file
83
hgplus/bliss/Tweaky/obj/Debug/MainWindow.g.cs
Normal file
@@ -0,0 +1,83 @@
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "4369C5A7BD1E59D74251C7D9A7248C75"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34011
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
using Tweaky;
|
||||
using Tweaky.PropertyGrid;
|
||||
|
||||
|
||||
namespace Tweaky {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// MainWindow
|
||||
/// </summary>
|
||||
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/Tweaky;component/mainwindow.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\MainWindow.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal System.Delegate _CreateDelegate(System.Type delegateType, string handler) {
|
||||
return System.Delegate.CreateDelegate(delegateType, this, handler);
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
83
hgplus/bliss/Tweaky/obj/Debug/MainWindow.g.i.cs
Normal file
83
hgplus/bliss/Tweaky/obj/Debug/MainWindow.g.i.cs
Normal file
@@ -0,0 +1,83 @@
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "4369C5A7BD1E59D74251C7D9A7248C75"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
using Tweaky;
|
||||
using Tweaky.PropertyGrid;
|
||||
|
||||
|
||||
namespace Tweaky {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// MainWindow
|
||||
/// </summary>
|
||||
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/Tweaky;component/mainwindow.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\MainWindow.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal System.Delegate _CreateDelegate(System.Type delegateType, string handler) {
|
||||
return System.Delegate.CreateDelegate(delegateType, this, handler);
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BIN
hgplus/bliss/Tweaky/obj/Debug/PropertyGrid/PropertyGrid.baml
Normal file
BIN
hgplus/bliss/Tweaky/obj/Debug/PropertyGrid/PropertyGrid.baml
Normal file
Binary file not shown.
141
hgplus/bliss/Tweaky/obj/Debug/PropertyGrid/PropertyGrid.g.cs
Normal file
141
hgplus/bliss/Tweaky/obj/Debug/PropertyGrid/PropertyGrid.g.cs
Normal file
@@ -0,0 +1,141 @@
|
||||
#pragma checksum "..\..\..\PropertyGrid\PropertyGrid.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "04826C78020757639279498F433B8C86"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34011
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
using Tweaky;
|
||||
using Tweaky.PropertyGrid;
|
||||
|
||||
|
||||
namespace Tweaky.PropertyGrid {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PropertyGrid
|
||||
/// </summary>
|
||||
public partial class PropertyGrid : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector {
|
||||
|
||||
|
||||
#line 10 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Tweaky.PropertyGrid.PropertyGrid Me;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 61 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Border searchBoxContainer;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 72 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.ItemsControl PART_PropertyItemsControl;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/Tweaky;component/propertygrid/propertygrid.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
this.Me = ((Tweaky.PropertyGrid.PropertyGrid)(target));
|
||||
return;
|
||||
case 2:
|
||||
|
||||
#line 36 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
((System.Windows.Data.CollectionViewSource)(target)).Filter += new System.Windows.Data.FilterEventHandler(this.CollectionViewSource_Filter);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 3:
|
||||
this.searchBoxContainer = ((System.Windows.Controls.Border)(target));
|
||||
return;
|
||||
case 4:
|
||||
this.PART_PropertyItemsControl = ((System.Windows.Controls.ItemsControl)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
void System.Windows.Markup.IStyleConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 5:
|
||||
|
||||
#line 109 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
((System.Windows.Controls.Border)(target)).PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.PropertyItem_PreviewMouseDown);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
141
hgplus/bliss/Tweaky/obj/Debug/PropertyGrid/PropertyGrid.g.i.cs
Normal file
141
hgplus/bliss/Tweaky/obj/Debug/PropertyGrid/PropertyGrid.g.i.cs
Normal file
@@ -0,0 +1,141 @@
|
||||
#pragma checksum "..\..\..\PropertyGrid\PropertyGrid.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "04826C78020757639279498F433B8C86"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
using Tweaky;
|
||||
using Tweaky.PropertyGrid;
|
||||
|
||||
|
||||
namespace Tweaky.PropertyGrid {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PropertyGrid
|
||||
/// </summary>
|
||||
public partial class PropertyGrid : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector {
|
||||
|
||||
|
||||
#line 10 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Tweaky.PropertyGrid.PropertyGrid Me;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 61 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Border searchBoxContainer;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 72 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.ItemsControl PART_PropertyItemsControl;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/Tweaky;component/propertygrid/propertygrid.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
this.Me = ((Tweaky.PropertyGrid.PropertyGrid)(target));
|
||||
return;
|
||||
case 2:
|
||||
|
||||
#line 36 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
((System.Windows.Data.CollectionViewSource)(target)).Filter += new System.Windows.Data.FilterEventHandler(this.CollectionViewSource_Filter);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 3:
|
||||
this.searchBoxContainer = ((System.Windows.Controls.Border)(target));
|
||||
return;
|
||||
case 4:
|
||||
this.PART_PropertyItemsControl = ((System.Windows.Controls.ItemsControl)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
void System.Windows.Markup.IStyleConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 5:
|
||||
|
||||
#line 109 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
((System.Windows.Controls.Border)(target)).PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.PropertyItem_PreviewMouseDown);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BIN
hgplus/bliss/Tweaky/obj/Debug/Resources.baml
Normal file
BIN
hgplus/bliss/Tweaky/obj/Debug/Resources.baml
Normal file
Binary file not shown.
Binary file not shown.
BIN
hgplus/bliss/Tweaky/obj/Debug/Theme.baml
Normal file
BIN
hgplus/bliss/Tweaky/obj/Debug/Theme.baml
Normal file
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,27 @@
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\bin\Debug\Tweaky.exe.config
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\bin\Debug\Tweaky.exe
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\bin\Debug\Tweaky.pdb
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\bin\Debug\PostSharp.dll
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\bin\Debug\PostSharp.xml
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\bin\Debug\Tweaky.pssym
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\Tweaky.csprojResolveAssemblyReference.cache
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\Resources.baml
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\Theme.baml
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\UserControl1.baml
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\App.baml
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\MainWindow.g.cs
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\PropertyGrid\PropertyGrid.g.cs
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\UserControl1.g.cs
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\App.g.cs
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\GeneratedInternalTypeHelper.g.cs
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\Tweaky_MarkupCompile.cache
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\Tweaky_MarkupCompile.lref
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\EditorTemplates.baml
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\MainWindow.baml
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\PropertyGrid\PropertyGrid.baml
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\Tweaky.g.resources
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\Tweaky.Properties.Resources.resources
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\Tweaky.csproj.GenerateResource.Cache
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\Tweaky.exe
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\Tweaky.pdb
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\Tweaky.exe.postsharp
|
||||
Binary file not shown.
Binary file not shown.
BIN
hgplus/bliss/Tweaky/obj/Debug/Tweaky.exe
Normal file
BIN
hgplus/bliss/Tweaky/obj/Debug/Tweaky.exe
Normal file
Binary file not shown.
0
hgplus/bliss/Tweaky/obj/Debug/Tweaky.exe.postsharp
Normal file
0
hgplus/bliss/Tweaky/obj/Debug/Tweaky.exe.postsharp
Normal file
BIN
hgplus/bliss/Tweaky/obj/Debug/Tweaky.g.resources
Normal file
BIN
hgplus/bliss/Tweaky/obj/Debug/Tweaky.g.resources
Normal file
Binary file not shown.
BIN
hgplus/bliss/Tweaky/obj/Debug/Tweaky.pdb
Normal file
BIN
hgplus/bliss/Tweaky/obj/Debug/Tweaky.pdb
Normal file
Binary file not shown.
20
hgplus/bliss/Tweaky/obj/Debug/Tweaky_MarkupCompile.cache
Normal file
20
hgplus/bliss/Tweaky/obj/Debug/Tweaky_MarkupCompile.cache
Normal file
@@ -0,0 +1,20 @@
|
||||
Tweaky
|
||||
|
||||
|
||||
winexe
|
||||
C#
|
||||
.cs
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\
|
||||
Tweaky
|
||||
none
|
||||
false
|
||||
DEBUG;TRACE;POSTSHARP_CONSTRAINTS
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\App.xaml
|
||||
6-1007312691
|
||||
|
||||
22-75195456
|
||||
15942773599
|
||||
EditorTemplates.xaml;MainWindow.xaml;PropertyGrid\PropertyGrid.xaml;Resources.xaml;Theme.xaml;UserControl1.xaml;
|
||||
|
||||
False
|
||||
|
||||
20
hgplus/bliss/Tweaky/obj/Debug/Tweaky_MarkupCompile.i.cache
Normal file
20
hgplus/bliss/Tweaky/obj/Debug/Tweaky_MarkupCompile.i.cache
Normal file
@@ -0,0 +1,20 @@
|
||||
Tweaky
|
||||
|
||||
|
||||
winexe
|
||||
C#
|
||||
.cs
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\
|
||||
Tweaky
|
||||
none
|
||||
false
|
||||
DEBUG;TRACE;POSTSHARP_CONSTRAINTS
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\App.xaml
|
||||
6-1007312691
|
||||
|
||||
23-1035970799
|
||||
15942773599
|
||||
EditorTemplates.xaml;MainWindow.xaml;PropertyGrid\PropertyGrid.xaml;Resources.xaml;Theme.xaml;UserControl1.xaml;
|
||||
|
||||
False
|
||||
|
||||
6
hgplus/bliss/Tweaky/obj/Debug/Tweaky_MarkupCompile.lref
Normal file
6
hgplus/bliss/Tweaky/obj/Debug/Tweaky_MarkupCompile.lref
Normal file
@@ -0,0 +1,6 @@
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Debug\GeneratedInternalTypeHelper.g.cs
|
||||
|
||||
FE:\blu-flame.org\hgplus\bliss\Tweaky\EditorTemplates.xaml;;
|
||||
FE:\blu-flame.org\hgplus\bliss\Tweaky\MainWindow.xaml;;
|
||||
FE:\blu-flame.org\hgplus\bliss\Tweaky\PropertyGrid\PropertyGrid.xaml;;
|
||||
|
||||
BIN
hgplus/bliss/Tweaky/obj/Debug/UserControl1.baml
Normal file
BIN
hgplus/bliss/Tweaky/obj/Debug/UserControl1.baml
Normal file
Binary file not shown.
165
hgplus/bliss/Tweaky/obj/Debug/UserControl1.g.cs
Normal file
165
hgplus/bliss/Tweaky/obj/Debug/UserControl1.g.cs
Normal file
@@ -0,0 +1,165 @@
|
||||
#pragma checksum "..\..\UserControl1.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "CAAC2220E1FB98485349FD0B1840564A"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34011
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
|
||||
|
||||
namespace Tweaky {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// UserControl1
|
||||
/// </summary>
|
||||
public partial class UserControl1 : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 13 "..\..\UserControl1.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Border SVGradientBorder;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 21 "..\..\UserControl1.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Border PART_SatValImage;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 47 "..\..\UserControl1.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Path SatValIndicator;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 78 "..\..\UserControl1.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Border HGradientBorder;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 87 "..\..\UserControl1.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Image PART_HueImage;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 89 "..\..\UserControl1.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Path HueIndicator;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 105 "..\..\UserControl1.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Border ColorPreviewBorder;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 168 "..\..\UserControl1.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Border PART_OriginalColorBorder;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/Tweaky;component/usercontrol1.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\UserControl1.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
this.SVGradientBorder = ((System.Windows.Controls.Border)(target));
|
||||
return;
|
||||
case 2:
|
||||
this.PART_SatValImage = ((System.Windows.Controls.Border)(target));
|
||||
return;
|
||||
case 3:
|
||||
this.SatValIndicator = ((System.Windows.Shapes.Path)(target));
|
||||
return;
|
||||
case 4:
|
||||
this.HGradientBorder = ((System.Windows.Controls.Border)(target));
|
||||
return;
|
||||
case 5:
|
||||
this.PART_HueImage = ((System.Windows.Controls.Image)(target));
|
||||
return;
|
||||
case 6:
|
||||
this.HueIndicator = ((System.Windows.Shapes.Path)(target));
|
||||
return;
|
||||
case 7:
|
||||
this.ColorPreviewBorder = ((System.Windows.Controls.Border)(target));
|
||||
return;
|
||||
case 8:
|
||||
this.PART_OriginalColorBorder = ((System.Windows.Controls.Border)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
165
hgplus/bliss/Tweaky/obj/Debug/UserControl1.g.i.cs
Normal file
165
hgplus/bliss/Tweaky/obj/Debug/UserControl1.g.i.cs
Normal file
@@ -0,0 +1,165 @@
|
||||
#pragma checksum "..\..\UserControl1.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "CAAC2220E1FB98485349FD0B1840564A"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
|
||||
|
||||
namespace Tweaky {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// UserControl1
|
||||
/// </summary>
|
||||
public partial class UserControl1 : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 13 "..\..\UserControl1.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Border SVGradientBorder;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 21 "..\..\UserControl1.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Border PART_SatValImage;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 47 "..\..\UserControl1.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Path SatValIndicator;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 78 "..\..\UserControl1.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Border HGradientBorder;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 87 "..\..\UserControl1.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Image PART_HueImage;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 89 "..\..\UserControl1.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Path HueIndicator;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 105 "..\..\UserControl1.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Border ColorPreviewBorder;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 168 "..\..\UserControl1.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Border PART_OriginalColorBorder;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/Tweaky;component/usercontrol1.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\UserControl1.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
this.SVGradientBorder = ((System.Windows.Controls.Border)(target));
|
||||
return;
|
||||
case 2:
|
||||
this.PART_SatValImage = ((System.Windows.Controls.Border)(target));
|
||||
return;
|
||||
case 3:
|
||||
this.SatValIndicator = ((System.Windows.Shapes.Path)(target));
|
||||
return;
|
||||
case 4:
|
||||
this.HGradientBorder = ((System.Windows.Controls.Border)(target));
|
||||
return;
|
||||
case 5:
|
||||
this.PART_HueImage = ((System.Windows.Controls.Image)(target));
|
||||
return;
|
||||
case 6:
|
||||
this.HueIndicator = ((System.Windows.Shapes.Path)(target));
|
||||
return;
|
||||
case 7:
|
||||
this.ColorPreviewBorder = ((System.Windows.Controls.Border)(target));
|
||||
return;
|
||||
case 8:
|
||||
this.PART_OriginalColorBorder = ((System.Windows.Controls.Border)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BIN
hgplus/bliss/Tweaky/obj/Release/App.baml
Normal file
BIN
hgplus/bliss/Tweaky/obj/Release/App.baml
Normal file
Binary file not shown.
82
hgplus/bliss/Tweaky/obj/Release/App.g.cs
Normal file
82
hgplus/bliss/Tweaky/obj/Release/App.g.cs
Normal file
@@ -0,0 +1,82 @@
|
||||
#pragma checksum "..\..\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "F95B18027291F43DE74DAFCFA7BCEAB6"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34011
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
|
||||
|
||||
namespace Tweaky {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// App
|
||||
/// </summary>
|
||||
public partial class App : System.Windows.Application {
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
|
||||
#line 4 "..\..\App.xaml"
|
||||
this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
System.Uri resourceLocater = new System.Uri("/Tweaky;component/app.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\App.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Application Entry Point.
|
||||
/// </summary>
|
||||
[System.STAThreadAttribute()]
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public static void Main() {
|
||||
Tweaky.App app = new Tweaky.App();
|
||||
app.InitializeComponent();
|
||||
app.Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
82
hgplus/bliss/Tweaky/obj/Release/App.g.i.cs
Normal file
82
hgplus/bliss/Tweaky/obj/Release/App.g.i.cs
Normal file
@@ -0,0 +1,82 @@
|
||||
#pragma checksum "..\..\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "F95B18027291F43DE74DAFCFA7BCEAB6"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34011
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
|
||||
|
||||
namespace Tweaky {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// App
|
||||
/// </summary>
|
||||
public partial class App : System.Windows.Application {
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
|
||||
#line 4 "..\..\App.xaml"
|
||||
this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
System.Uri resourceLocater = new System.Uri("/Tweaky;component/app.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\App.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Application Entry Point.
|
||||
/// </summary>
|
||||
[System.STAThreadAttribute()]
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public static void Main() {
|
||||
Tweaky.App app = new Tweaky.App();
|
||||
app.InitializeComponent();
|
||||
app.Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BIN
hgplus/bliss/Tweaky/obj/Release/Before-PostSharp/Tweaky.exe
Normal file
BIN
hgplus/bliss/Tweaky/obj/Release/Before-PostSharp/Tweaky.exe
Normal file
Binary file not shown.
BIN
hgplus/bliss/Tweaky/obj/Release/Before-PostSharp/Tweaky.pdb
Normal file
BIN
hgplus/bliss/Tweaky/obj/Release/Before-PostSharp/Tweaky.pdb
Normal file
Binary file not shown.
Binary file not shown.
BIN
hgplus/bliss/Tweaky/obj/Release/EditorTemplates.baml
Normal file
BIN
hgplus/bliss/Tweaky/obj/Release/EditorTemplates.baml
Normal file
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34011
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace XamlGeneratedNamespace {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// GeneratedInternalTypeHelper
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public sealed class GeneratedInternalTypeHelper : System.Windows.Markup.InternalTypeHelper {
|
||||
|
||||
/// <summary>
|
||||
/// CreateInstance
|
||||
/// </summary>
|
||||
protected override object CreateInstance(System.Type type, System.Globalization.CultureInfo culture) {
|
||||
return System.Activator.CreateInstance(type, ((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic)
|
||||
| (System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.CreateInstance)), null, null, culture);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// GetPropertyValue
|
||||
/// </summary>
|
||||
protected override object GetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, System.Globalization.CultureInfo culture) {
|
||||
return propertyInfo.GetValue(target, System.Reflection.BindingFlags.Default, null, null, culture);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// SetPropertyValue
|
||||
/// </summary>
|
||||
protected override void SetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, object value, System.Globalization.CultureInfo culture) {
|
||||
propertyInfo.SetValue(target, value, System.Reflection.BindingFlags.Default, null, null, culture);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// CreateDelegate
|
||||
/// </summary>
|
||||
protected override System.Delegate CreateDelegate(System.Type delegateType, object target, string handler) {
|
||||
return ((System.Delegate)(target.GetType().InvokeMember("_CreateDelegate", (System.Reflection.BindingFlags.InvokeMethod
|
||||
| (System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)), null, target, new object[] {
|
||||
delegateType,
|
||||
handler}, null)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// AddEventHandler
|
||||
/// </summary>
|
||||
protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) {
|
||||
eventInfo.AddEventHandler(target, handler);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BIN
hgplus/bliss/Tweaky/obj/Release/MainWindow.baml
Normal file
BIN
hgplus/bliss/Tweaky/obj/Release/MainWindow.baml
Normal file
Binary file not shown.
83
hgplus/bliss/Tweaky/obj/Release/MainWindow.g.cs
Normal file
83
hgplus/bliss/Tweaky/obj/Release/MainWindow.g.cs
Normal file
@@ -0,0 +1,83 @@
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "4369C5A7BD1E59D74251C7D9A7248C75"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34011
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
using Tweaky;
|
||||
using Tweaky.PropertyGrid;
|
||||
|
||||
|
||||
namespace Tweaky {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// MainWindow
|
||||
/// </summary>
|
||||
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/Tweaky;component/mainwindow.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\MainWindow.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal System.Delegate _CreateDelegate(System.Type delegateType, string handler) {
|
||||
return System.Delegate.CreateDelegate(delegateType, this, handler);
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
83
hgplus/bliss/Tweaky/obj/Release/MainWindow.g.i.cs
Normal file
83
hgplus/bliss/Tweaky/obj/Release/MainWindow.g.i.cs
Normal file
@@ -0,0 +1,83 @@
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "4369C5A7BD1E59D74251C7D9A7248C75"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34011
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
using Tweaky;
|
||||
using Tweaky.PropertyGrid;
|
||||
|
||||
|
||||
namespace Tweaky {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// MainWindow
|
||||
/// </summary>
|
||||
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/Tweaky;component/mainwindow.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\MainWindow.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal System.Delegate _CreateDelegate(System.Type delegateType, string handler) {
|
||||
return System.Delegate.CreateDelegate(delegateType, this, handler);
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BIN
hgplus/bliss/Tweaky/obj/Release/PropertyGrid/PropertyGrid.baml
Normal file
BIN
hgplus/bliss/Tweaky/obj/Release/PropertyGrid/PropertyGrid.baml
Normal file
Binary file not shown.
141
hgplus/bliss/Tweaky/obj/Release/PropertyGrid/PropertyGrid.g.cs
Normal file
141
hgplus/bliss/Tweaky/obj/Release/PropertyGrid/PropertyGrid.g.cs
Normal file
@@ -0,0 +1,141 @@
|
||||
#pragma checksum "..\..\..\PropertyGrid\PropertyGrid.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "04826C78020757639279498F433B8C86"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34011
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
using Tweaky;
|
||||
using Tweaky.PropertyGrid;
|
||||
|
||||
|
||||
namespace Tweaky.PropertyGrid {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PropertyGrid
|
||||
/// </summary>
|
||||
public partial class PropertyGrid : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector {
|
||||
|
||||
|
||||
#line 10 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Tweaky.PropertyGrid.PropertyGrid Me;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 61 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Border searchBoxContainer;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 72 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.ItemsControl PART_PropertyItemsControl;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/Tweaky;component/propertygrid/propertygrid.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
this.Me = ((Tweaky.PropertyGrid.PropertyGrid)(target));
|
||||
return;
|
||||
case 2:
|
||||
|
||||
#line 36 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
((System.Windows.Data.CollectionViewSource)(target)).Filter += new System.Windows.Data.FilterEventHandler(this.CollectionViewSource_Filter);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 3:
|
||||
this.searchBoxContainer = ((System.Windows.Controls.Border)(target));
|
||||
return;
|
||||
case 4:
|
||||
this.PART_PropertyItemsControl = ((System.Windows.Controls.ItemsControl)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
void System.Windows.Markup.IStyleConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 5:
|
||||
|
||||
#line 109 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
((System.Windows.Controls.Border)(target)).PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.PropertyItem_PreviewMouseDown);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
141
hgplus/bliss/Tweaky/obj/Release/PropertyGrid/PropertyGrid.g.i.cs
Normal file
141
hgplus/bliss/Tweaky/obj/Release/PropertyGrid/PropertyGrid.g.i.cs
Normal file
@@ -0,0 +1,141 @@
|
||||
#pragma checksum "..\..\..\PropertyGrid\PropertyGrid.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "04826C78020757639279498F433B8C86"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34011
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Effects;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Media3D;
|
||||
using System.Windows.Media.TextFormatting;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
using Tweaky;
|
||||
using Tweaky.PropertyGrid;
|
||||
|
||||
|
||||
namespace Tweaky.PropertyGrid {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PropertyGrid
|
||||
/// </summary>
|
||||
public partial class PropertyGrid : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector {
|
||||
|
||||
|
||||
#line 10 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Tweaky.PropertyGrid.PropertyGrid Me;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 61 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Border searchBoxContainer;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 72 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.ItemsControl PART_PropertyItemsControl;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/Tweaky;component/propertygrid/propertygrid.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
this.Me = ((Tweaky.PropertyGrid.PropertyGrid)(target));
|
||||
return;
|
||||
case 2:
|
||||
|
||||
#line 36 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
((System.Windows.Data.CollectionViewSource)(target)).Filter += new System.Windows.Data.FilterEventHandler(this.CollectionViewSource_Filter);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 3:
|
||||
this.searchBoxContainer = ((System.Windows.Controls.Border)(target));
|
||||
return;
|
||||
case 4:
|
||||
this.PART_PropertyItemsControl = ((System.Windows.Controls.ItemsControl)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
void System.Windows.Markup.IStyleConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 5:
|
||||
|
||||
#line 109 "..\..\..\PropertyGrid\PropertyGrid.xaml"
|
||||
((System.Windows.Controls.Border)(target)).PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.PropertyItem_PreviewMouseDown);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BIN
hgplus/bliss/Tweaky/obj/Release/Resources.baml
Normal file
BIN
hgplus/bliss/Tweaky/obj/Release/Resources.baml
Normal file
Binary file not shown.
Binary file not shown.
BIN
hgplus/bliss/Tweaky/obj/Release/Theme.baml
Normal file
BIN
hgplus/bliss/Tweaky/obj/Release/Theme.baml
Normal file
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,27 @@
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\bin\Release\Tweaky.exe.config
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\bin\Release\Tweaky.exe
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\bin\Release\Tweaky.pdb
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\bin\Release\PostSharp.dll
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\bin\Release\PostSharp.xml
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\bin\Release\Tweaky.pssym
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\Tweaky.csprojResolveAssemblyReference.cache
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\Resources.baml
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\Theme.baml
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\UserControl1.baml
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\App.baml
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\MainWindow.g.cs
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\PropertyGrid\PropertyGrid.g.cs
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\UserControl1.g.cs
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\App.g.cs
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\GeneratedInternalTypeHelper.g.cs
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\Tweaky_MarkupCompile.cache
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\Tweaky_MarkupCompile.lref
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\EditorTemplates.baml
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\MainWindow.baml
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\PropertyGrid\PropertyGrid.baml
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\Tweaky.g.resources
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\Tweaky.Properties.Resources.resources
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\Tweaky.csproj.GenerateResource.Cache
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\Tweaky.exe
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\Tweaky.pdb
|
||||
E:\blu-flame.org\hgplus\bliss\Tweaky\obj\Release\Tweaky.exe.postsharp
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user