preview overlay which shows window title for now
preivew zoom on hover option
This commit is contained in:
		
							
								
								
									
										6
									
								
								Preview.Designer.cs
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								Preview.Designer.cs
									
									
									
										generated
									
									
									
								
							@@ -27,7 +27,8 @@ namespace PreviewToy
 | 
				
			|||||||
            this.render_area.Location = new System.Drawing.Point(0, 0);
 | 
					            this.render_area.Location = new System.Drawing.Point(0, 0);
 | 
				
			||||||
            this.render_area.Margin = new System.Windows.Forms.Padding(0);
 | 
					            this.render_area.Margin = new System.Windows.Forms.Padding(0);
 | 
				
			||||||
            this.render_area.Name = "render_area";
 | 
					            this.render_area.Name = "render_area";
 | 
				
			||||||
            this.render_area.Size = new System.Drawing.Size(48, 30);
 | 
					            this.render_area.Size = new System.Drawing.Size(153, 89);
 | 
				
			||||||
 | 
					            this.render_area.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
 | 
				
			||||||
            this.render_area.TabIndex = 0;
 | 
					            this.render_area.TabIndex = 0;
 | 
				
			||||||
            this.render_area.TabStop = false;
 | 
					            this.render_area.TabStop = false;
 | 
				
			||||||
            this.render_area.Click += new System.EventHandler(this.render_area_Click);
 | 
					            this.render_area.Click += new System.EventHandler(this.render_area_Click);
 | 
				
			||||||
@@ -36,7 +37,7 @@ namespace PreviewToy
 | 
				
			|||||||
            // 
 | 
					            // 
 | 
				
			||||||
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
 | 
					            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
 | 
				
			||||||
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
 | 
					            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
 | 
				
			||||||
            this.ClientSize = new System.Drawing.Size(48, 30);
 | 
					            this.ClientSize = new System.Drawing.Size(153, 89);
 | 
				
			||||||
            this.ControlBox = false;
 | 
					            this.ControlBox = false;
 | 
				
			||||||
            this.Controls.Add(this.render_area);
 | 
					            this.Controls.Add(this.render_area);
 | 
				
			||||||
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
 | 
					            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
 | 
				
			||||||
@@ -51,6 +52,7 @@ namespace PreviewToy
 | 
				
			|||||||
            this.Load += new System.EventHandler(this.Preview_Load);
 | 
					            this.Load += new System.EventHandler(this.Preview_Load);
 | 
				
			||||||
            ((System.ComponentModel.ISupportInitialize)(this.render_area)).EndInit();
 | 
					            ((System.ComponentModel.ISupportInitialize)(this.render_area)).EndInit();
 | 
				
			||||||
            this.ResumeLayout(false);
 | 
					            this.ResumeLayout(false);
 | 
				
			||||||
 | 
					            this.PerformLayout();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										96
									
								
								Preview.cs
									
									
									
									
									
								
							
							
						
						
									
										96
									
								
								Preview.cs
									
									
									
									
									
								
							@@ -5,17 +5,27 @@ using System.Drawing;
 | 
				
			|||||||
using System.Text;
 | 
					using System.Text;
 | 
				
			||||||
using System.Windows.Forms;
 | 
					using System.Windows.Forms;
 | 
				
			||||||
using System.Runtime.InteropServices;
 | 
					using System.Runtime.InteropServices;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace PreviewToy
 | 
					namespace PreviewToy
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    public partial class Preview : Form
 | 
					    public partial class Preview : Form
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					        public bool show_overlay = true;
 | 
				
			||||||
 | 
					        public bool hover_zoom = true;
 | 
				
			||||||
 | 
					        public float hover_zoom_factor = 3.0f;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        private bool mouse_over_lock = false;
 | 
				
			||||||
 | 
					        private Size old_size;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        private IntPtr m_hThumbnail;
 | 
					        private IntPtr m_hThumbnail;
 | 
				
			||||||
        public IntPtr sourceWindow;
 | 
					        public IntPtr sourceWindow;
 | 
				
			||||||
        private DwmApi.DWM_THUMBNAIL_PROPERTIES m_ThumbnailProperties;
 | 
					        private DwmApi.DWM_THUMBNAIL_PROPERTIES m_ThumbnailProperties;
 | 
				
			||||||
        private bool has_been_set_up = false;
 | 
					        private bool has_been_set_up = false;
 | 
				
			||||||
        private PreviewToyHandler spawner;
 | 
					        private PreviewToyHandler spawner;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public PreviewOverlay overlay;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public Preview(IntPtr sourceWindow, String title, PreviewToyHandler spawner, Size size) 
 | 
					        public Preview(IntPtr sourceWindow, String title, PreviewToyHandler spawner, Size size) 
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            has_been_set_up = false;
 | 
					            has_been_set_up = false;
 | 
				
			||||||
@@ -28,10 +38,54 @@ namespace PreviewToy
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            this.Text = title;
 | 
					            this.Text = title;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            this.overlay = new PreviewOverlay(this);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            this.MouseHover += new System.EventHandler(this.preview_MouseHover);
 | 
				
			||||||
 | 
					            this.render_area.MouseHover += new System.EventHandler(this.preview_MouseHover);
 | 
				
			||||||
 | 
					            this.overlay.MouseHover += new System.EventHandler(this.preview_MouseHover);
 | 
				
			||||||
 | 
					            this.overlay.overlay_area.MouseHover += new System.EventHandler(this.preview_MouseHover);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            this.MouseLeave += new System.EventHandler(this.preview_MouseLeave);
 | 
				
			||||||
 | 
					            this.render_area.MouseLeave += new System.EventHandler(this.preview_MouseLeave);
 | 
				
			||||||
 | 
					            this.overlay.MouseLeave += new System.EventHandler(this.preview_MouseLeave);
 | 
				
			||||||
 | 
					            this.overlay.overlay_area.MouseLeave += new System.EventHandler(this.preview_MouseLeave);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            old_size = this.Size;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            has_been_set_up = true;
 | 
					            has_been_set_up = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public void preview_MouseHover(object sender, System.EventArgs e)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            if (!mouse_over_lock)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                if (hover_zoom)
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    old_size = Size;
 | 
				
			||||||
 | 
					                    Size = new Size((int)(hover_zoom_factor * (float)Size.Width),
 | 
				
			||||||
 | 
					                                    (int)(hover_zoom_factor * (float)Size.Height));
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                TopMost = true;
 | 
				
			||||||
 | 
					                overlay.TopMost = true;
 | 
				
			||||||
 | 
					                mouse_over_lock = true;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            RefreshPreview();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public void preview_MouseLeave(object sender, System.EventArgs e)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            if (mouse_over_lock)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                if (hover_zoom)
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    Size = old_size;
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                mouse_over_lock = false;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            RefreshPreview();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        protected override void OnResize(EventArgs e)
 | 
					        protected override void OnResize(EventArgs e)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            RefreshPreview();
 | 
					            RefreshPreview();
 | 
				
			||||||
@@ -46,17 +100,55 @@ namespace PreviewToy
 | 
				
			|||||||
        {
 | 
					        {
 | 
				
			||||||
            base.OnMove(e);
 | 
					            base.OnMove(e);
 | 
				
			||||||
            this.spawner.register_preview_position(this.Text, this.Location);
 | 
					            this.spawner.register_preview_position(this.Text, this.Location);
 | 
				
			||||||
 | 
					            RefreshPreview();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        protected void RefreshPreview()
 | 
					        public void SetLabel(String label)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            this.Text = "-> " + label + " <-";
 | 
				
			||||||
 | 
					            this.overlay.client_label.Text = label;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public void RefreshPreview()
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            if (has_been_set_up)
 | 
					            if (has_been_set_up)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                m_ThumbnailProperties.rcDestination = new DwmApi.RECT(0, 0, ClientRectangle.Right, ClientRectangle.Bottom);
 | 
					                m_ThumbnailProperties.rcDestination = new DwmApi.RECT(0, 0, ClientRectangle.Right, ClientRectangle.Bottom);
 | 
				
			||||||
                DwmApi.DwmUpdateThumbnailProperties(m_hThumbnail, m_ThumbnailProperties);
 | 
					                DwmApi.DwmUpdateThumbnailProperties(m_hThumbnail, m_ThumbnailProperties);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                Size overlay_size = this.render_area.Size;
 | 
				
			||||||
 | 
					                overlay_size.Width -= 2*5;
 | 
				
			||||||
 | 
					                overlay_size.Height -= 2*5;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                Point overlay_location = this.Location;
 | 
				
			||||||
 | 
					                overlay_location.X += 5 + (this.Size.Width - this.render_area.Size.Width)/2;
 | 
				
			||||||
 | 
					                overlay_location.Y += 5 + (this.Size.Height - this.render_area.Size.Height) - (this.Size.Width - this.render_area.Size.Width)/2;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                this.overlay.Size = overlay_size;
 | 
				
			||||||
 | 
					                this.overlay.Location = overlay_location;
 | 
				
			||||||
 | 
					                this.overlay.TopMost = this.TopMost;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public void Show()
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            base.Show();
 | 
				
			||||||
 | 
					            if (show_overlay)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                this.overlay.Show();
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            else
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                this.overlay.Hide();
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public void Hide()
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            base.Hide();
 | 
				
			||||||
 | 
					            this.overlay.Hide();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public void SetUp()
 | 
					        public void SetUp()
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            m_hThumbnail = DwmApi.DwmRegisterThumbnail(this.Handle, sourceWindow);
 | 
					            m_hThumbnail = DwmApi.DwmRegisterThumbnail(this.Handle, sourceWindow);
 | 
				
			||||||
@@ -94,7 +186,7 @@ namespace PreviewToy
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        private void render_area_Click(object sender, EventArgs e)
 | 
					        public void render_area_Click(object sender, EventArgs e)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            bring_client_to_foreground();
 | 
					            bring_client_to_foreground();
 | 
				
			||||||
            spawner.preview_did_switch();
 | 
					            spawner.preview_did_switch();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -112,9 +112,9 @@
 | 
				
			|||||||
    <value>2.0</value>
 | 
					    <value>2.0</value>
 | 
				
			||||||
  </resheader>
 | 
					  </resheader>
 | 
				
			||||||
  <resheader name="reader">
 | 
					  <resheader name="reader">
 | 
				
			||||||
    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
 | 
					    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
 | 
				
			||||||
  </resheader>
 | 
					  </resheader>
 | 
				
			||||||
  <resheader name="writer">
 | 
					  <resheader name="writer">
 | 
				
			||||||
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
 | 
					    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
 | 
				
			||||||
  </resheader>
 | 
					  </resheader>
 | 
				
			||||||
</root>
 | 
					</root>
 | 
				
			||||||
							
								
								
									
										34
									
								
								PreviewHandler.Designer.cs
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										34
									
								
								PreviewHandler.Designer.cs
									
									
									
										generated
									
									
									
								
							@@ -48,6 +48,8 @@ namespace PreviewToy
 | 
				
			|||||||
            this.previewToyMainBindingSource = new System.Windows.Forms.BindingSource(this.components);
 | 
					            this.previewToyMainBindingSource = new System.Windows.Forms.BindingSource(this.components);
 | 
				
			||||||
            this.option_sync_size_x = new System.Windows.Forms.TextBox();
 | 
					            this.option_sync_size_x = new System.Windows.Forms.TextBox();
 | 
				
			||||||
            this.option_sync_size_y = new System.Windows.Forms.TextBox();
 | 
					            this.option_sync_size_y = new System.Windows.Forms.TextBox();
 | 
				
			||||||
 | 
					            this.option_zoom_on_hover = new System.Windows.Forms.CheckBox();
 | 
				
			||||||
 | 
					            this.option_show_overlay = new System.Windows.Forms.CheckBox();
 | 
				
			||||||
            ((System.ComponentModel.ISupportInitialize)(this.previewToyMainBindingSource)).BeginInit();
 | 
					            ((System.ComponentModel.ISupportInitialize)(this.previewToyMainBindingSource)).BeginInit();
 | 
				
			||||||
            this.SuspendLayout();
 | 
					            this.SuspendLayout();
 | 
				
			||||||
            // 
 | 
					            // 
 | 
				
			||||||
@@ -163,11 +165,41 @@ namespace PreviewToy
 | 
				
			|||||||
            this.option_sync_size_y.TabIndex = 12;
 | 
					            this.option_sync_size_y.TabIndex = 12;
 | 
				
			||||||
            this.option_sync_size_y.TextChanged += new System.EventHandler(this.option_sync_size_y_TextChanged);
 | 
					            this.option_sync_size_y.TextChanged += new System.EventHandler(this.option_sync_size_y_TextChanged);
 | 
				
			||||||
            // 
 | 
					            // 
 | 
				
			||||||
 | 
					            // option_zoom_on_hover
 | 
				
			||||||
 | 
					            // 
 | 
				
			||||||
 | 
					            this.option_zoom_on_hover.AutoSize = true;
 | 
				
			||||||
 | 
					            this.option_zoom_on_hover.Checked = true;
 | 
				
			||||||
 | 
					            this.option_zoom_on_hover.CheckState = System.Windows.Forms.CheckState.Checked;
 | 
				
			||||||
 | 
					            this.option_zoom_on_hover.Location = new System.Drawing.Point(12, 150);
 | 
				
			||||||
 | 
					            this.option_zoom_on_hover.Name = "option_zoom_on_hover";
 | 
				
			||||||
 | 
					            this.option_zoom_on_hover.RightToLeft = System.Windows.Forms.RightToLeft.No;
 | 
				
			||||||
 | 
					            this.option_zoom_on_hover.Size = new System.Drawing.Size(98, 17);
 | 
				
			||||||
 | 
					            this.option_zoom_on_hover.TabIndex = 13;
 | 
				
			||||||
 | 
					            this.option_zoom_on_hover.Text = "Zoom on hover";
 | 
				
			||||||
 | 
					            this.option_zoom_on_hover.UseVisualStyleBackColor = true;
 | 
				
			||||||
 | 
					            this.option_zoom_on_hover.CheckedChanged += new System.EventHandler(this.option_zoom_on_hover_CheckedChanged);
 | 
				
			||||||
 | 
					            // 
 | 
				
			||||||
 | 
					            // option_show_overlay
 | 
				
			||||||
 | 
					            // 
 | 
				
			||||||
 | 
					            this.option_show_overlay.AutoSize = true;
 | 
				
			||||||
 | 
					            this.option_show_overlay.Checked = true;
 | 
				
			||||||
 | 
					            this.option_show_overlay.CheckState = System.Windows.Forms.CheckState.Checked;
 | 
				
			||||||
 | 
					            this.option_show_overlay.Location = new System.Drawing.Point(12, 173);
 | 
				
			||||||
 | 
					            this.option_show_overlay.Name = "option_show_overlay";
 | 
				
			||||||
 | 
					            this.option_show_overlay.RightToLeft = System.Windows.Forms.RightToLeft.No;
 | 
				
			||||||
 | 
					            this.option_show_overlay.Size = new System.Drawing.Size(90, 17);
 | 
				
			||||||
 | 
					            this.option_show_overlay.TabIndex = 14;
 | 
				
			||||||
 | 
					            this.option_show_overlay.Text = "Show overlay";
 | 
				
			||||||
 | 
					            this.option_show_overlay.UseVisualStyleBackColor = true;
 | 
				
			||||||
 | 
					            this.option_show_overlay.CheckedChanged += new System.EventHandler(this.option_show_overlay_CheckedChanged);
 | 
				
			||||||
 | 
					            // 
 | 
				
			||||||
            // PreviewToyHandler
 | 
					            // PreviewToyHandler
 | 
				
			||||||
            // 
 | 
					            // 
 | 
				
			||||||
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
 | 
					            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
 | 
				
			||||||
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
 | 
					            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
 | 
				
			||||||
            this.ClientSize = new System.Drawing.Size(246, 232);
 | 
					            this.ClientSize = new System.Drawing.Size(246, 232);
 | 
				
			||||||
 | 
					            this.Controls.Add(this.option_show_overlay);
 | 
				
			||||||
 | 
					            this.Controls.Add(this.option_zoom_on_hover);
 | 
				
			||||||
            this.Controls.Add(this.option_sync_size_y);
 | 
					            this.Controls.Add(this.option_sync_size_y);
 | 
				
			||||||
            this.Controls.Add(this.option_sync_size_x);
 | 
					            this.Controls.Add(this.option_sync_size_x);
 | 
				
			||||||
            this.Controls.Add(this.forum_url);
 | 
					            this.Controls.Add(this.forum_url);
 | 
				
			||||||
@@ -204,6 +236,8 @@ namespace PreviewToy
 | 
				
			|||||||
        private LinkLabel forum_url;
 | 
					        private LinkLabel forum_url;
 | 
				
			||||||
        private TextBox option_sync_size_x;
 | 
					        private TextBox option_sync_size_x;
 | 
				
			||||||
        private TextBox option_sync_size_y;
 | 
					        private TextBox option_sync_size_y;
 | 
				
			||||||
 | 
					        private CheckBox option_zoom_on_hover;
 | 
				
			||||||
 | 
					        private CheckBox option_show_overlay;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -27,7 +27,7 @@ namespace PreviewToy
 | 
				
			|||||||
        private bool is_initialized;
 | 
					        private bool is_initialized;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        private Stopwatch ignoring_size_sync;
 | 
					        private Stopwatch ignoring_size_sync;
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
        public PreviewToyHandler()
 | 
					        public PreviewToyHandler()
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            is_initialized = false;
 | 
					            is_initialized = false;
 | 
				
			||||||
@@ -68,6 +68,8 @@ namespace PreviewToy
 | 
				
			|||||||
            option_sync_size_x.Text = Properties.Settings.Default.sync_resize_x.ToString();
 | 
					            option_sync_size_x.Text = Properties.Settings.Default.sync_resize_x.ToString();
 | 
				
			||||||
            option_sync_size_y.Text = Properties.Settings.Default.sync_resize_y.ToString();
 | 
					            option_sync_size_y.Text = Properties.Settings.Default.sync_resize_y.ToString();
 | 
				
			||||||
            option_show_thumbnail_frames.Checked = Properties.Settings.Default.show_thumb_frames;
 | 
					            option_show_thumbnail_frames.Checked = Properties.Settings.Default.show_thumb_frames;
 | 
				
			||||||
 | 
					            option_zoom_on_hover.Checked = Properties.Settings.Default.zoom_on_hover;
 | 
				
			||||||
 | 
					            option_show_overlay.Checked = Properties.Settings.Default.show_overlay;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            load_layout();
 | 
					            load_layout();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@@ -103,7 +105,7 @@ namespace PreviewToy
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
                else if (previews.ContainsKey(process.MainWindowHandle)) //or update the preview titles
 | 
					                else if (previews.ContainsKey(process.MainWindowHandle)) //or update the preview titles
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    previews[process.MainWindowHandle].Text = "-> " + process.MainWindowTitle + " <-";
 | 
					                    previews[process.MainWindowHandle].SetLabel(process.MainWindowTitle);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if (process.MainWindowHandle == DwmApi.GetForegroundWindow())
 | 
					                if (process.MainWindowHandle == DwmApi.GetForegroundWindow())
 | 
				
			||||||
@@ -229,7 +231,7 @@ namespace PreviewToy
 | 
				
			|||||||
            bool active_window_is_right_type = false;
 | 
					            bool active_window_is_right_type = false;
 | 
				
			||||||
            foreach (KeyValuePair<IntPtr, Preview> entry in previews)
 | 
					            foreach (KeyValuePair<IntPtr, Preview> entry in previews)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                if (entry.Key == window || entry.Value.Handle == window || this.Handle == window)
 | 
					                if (entry.Key == window || entry.Value.Handle == window || this.Handle == window || entry.Value.overlay.Handle == window)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    active_window_is_right_type = true;
 | 
					                    active_window_is_right_type = true;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
@@ -259,6 +261,9 @@ namespace PreviewToy
 | 
				
			|||||||
                    entry.Value.Show();
 | 
					                    entry.Value.Show();
 | 
				
			||||||
                    handle_unique_layout(entry.Value, active_client_title);
 | 
					                    handle_unique_layout(entry.Value, active_client_title);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                entry.Value.hover_zoom = Properties.Settings.Default.zoom_on_hover;
 | 
				
			||||||
 | 
					                entry.Value.show_overlay = Properties.Settings.Default.show_overlay;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -440,6 +445,20 @@ namespace PreviewToy
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        private void option_zoom_on_hover_CheckedChanged(object sender, EventArgs e)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            Properties.Settings.Default.zoom_on_hover = option_zoom_on_hover.Checked;
 | 
				
			||||||
 | 
					            Properties.Settings.Default.Save();
 | 
				
			||||||
 | 
					            refresh_thumbnails();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        private void option_show_overlay_CheckedChanged(object sender, EventArgs e)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            Properties.Settings.Default.show_overlay = option_show_overlay.Checked;
 | 
				
			||||||
 | 
					            Properties.Settings.Default.Save();
 | 
				
			||||||
 | 
					            refresh_thumbnails();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -112,15 +112,15 @@
 | 
				
			|||||||
    <value>2.0</value>
 | 
					    <value>2.0</value>
 | 
				
			||||||
  </resheader>
 | 
					  </resheader>
 | 
				
			||||||
  <resheader name="reader">
 | 
					  <resheader name="reader">
 | 
				
			||||||
    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
 | 
					    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
 | 
				
			||||||
  </resheader>
 | 
					  </resheader>
 | 
				
			||||||
  <resheader name="writer">
 | 
					  <resheader name="writer">
 | 
				
			||||||
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
 | 
					    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
 | 
				
			||||||
  </resheader>
 | 
					  </resheader>
 | 
				
			||||||
  <metadata name="previewToyMainBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
 | 
					  <metadata name="previewToyMainBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
 | 
				
			||||||
    <value>17, 17</value>
 | 
					    <value>17, 17</value>
 | 
				
			||||||
  </metadata>
 | 
					  </metadata>
 | 
				
			||||||
  <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
 | 
					  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
 | 
				
			||||||
  <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
 | 
					  <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
 | 
				
			||||||
    <value>
 | 
					    <value>
 | 
				
			||||||
        AAABAAUAEBAAAAAAIABoBAAAVgAAABgYAAAAACAAiAkAAL4EAAAgIAAAAAAgAKgQAABGDgAAMDAAAAAA
 | 
					        AAABAAUAEBAAAAAAIABoBAAAVgAAABgYAAAAACAAiAkAAL4EAAAgIAAAAAAgAKgQAABGDgAAMDAAAAAA
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										92
									
								
								PreviewOverlay.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										92
									
								
								PreviewOverlay.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							@@ -0,0 +1,92 @@
 | 
				
			|||||||
 | 
					namespace PreviewToy
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    partial class PreviewOverlay
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        /// <summary>
 | 
				
			||||||
 | 
					        /// Required designer variable.
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        private System.ComponentModel.IContainer components = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        /// <summary>
 | 
				
			||||||
 | 
					        /// Clean up any resources being used.
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 | 
				
			||||||
 | 
					        protected override void Dispose(bool disposing)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            if (disposing && (components != null))
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                components.Dispose();
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            base.Dispose(disposing);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        #region Windows Form Designer generated code
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        /// <summary>
 | 
				
			||||||
 | 
					        /// Required method for Designer support - do not modify
 | 
				
			||||||
 | 
					        /// the contents of this method with the code editor.
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        private void InitializeComponent()
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            this.overlay_area = new System.Windows.Forms.PictureBox();
 | 
				
			||||||
 | 
					            this.client_label = new System.Windows.Forms.Label();
 | 
				
			||||||
 | 
					            ((System.ComponentModel.ISupportInitialize)(this.overlay_area)).BeginInit();
 | 
				
			||||||
 | 
					            this.SuspendLayout();
 | 
				
			||||||
 | 
					            // 
 | 
				
			||||||
 | 
					            // overlay_area
 | 
				
			||||||
 | 
					            // 
 | 
				
			||||||
 | 
					            this.overlay_area.Cursor = System.Windows.Forms.Cursors.Hand;
 | 
				
			||||||
 | 
					            this.overlay_area.Dock = System.Windows.Forms.DockStyle.Fill;
 | 
				
			||||||
 | 
					            this.overlay_area.Location = new System.Drawing.Point(0, 0);
 | 
				
			||||||
 | 
					            this.overlay_area.Name = "overlay_area";
 | 
				
			||||||
 | 
					            this.overlay_area.Size = new System.Drawing.Size(284, 262);
 | 
				
			||||||
 | 
					            this.overlay_area.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
 | 
				
			||||||
 | 
					            this.overlay_area.TabIndex = 0;
 | 
				
			||||||
 | 
					            this.overlay_area.TabStop = false;
 | 
				
			||||||
 | 
					            this.overlay_area.Click += new System.EventHandler(this.pictureBox1_Click);
 | 
				
			||||||
 | 
					            // 
 | 
				
			||||||
 | 
					            // client_label
 | 
				
			||||||
 | 
					            // 
 | 
				
			||||||
 | 
					            this.client_label.AutoSize = true;
 | 
				
			||||||
 | 
					            this.client_label.Dock = System.Windows.Forms.DockStyle.Top;
 | 
				
			||||||
 | 
					            this.client_label.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
 | 
				
			||||||
 | 
					            this.client_label.ForeColor = System.Drawing.Color.DarkGray;
 | 
				
			||||||
 | 
					            this.client_label.Location = new System.Drawing.Point(0, 0);
 | 
				
			||||||
 | 
					            this.client_label.Name = "client_label";
 | 
				
			||||||
 | 
					            this.client_label.Size = new System.Drawing.Size(25, 13);
 | 
				
			||||||
 | 
					            this.client_label.TabIndex = 1;
 | 
				
			||||||
 | 
					            this.client_label.Text = "...";
 | 
				
			||||||
 | 
					            this.client_label.Click += new System.EventHandler(this.client_label_Click);
 | 
				
			||||||
 | 
					            // 
 | 
				
			||||||
 | 
					            // PreviewOverlay
 | 
				
			||||||
 | 
					            // 
 | 
				
			||||||
 | 
					            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
 | 
				
			||||||
 | 
					            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
 | 
				
			||||||
 | 
					            this.BackColor = System.Drawing.Color.Black;
 | 
				
			||||||
 | 
					            this.ClientSize = new System.Drawing.Size(284, 262);
 | 
				
			||||||
 | 
					            this.ControlBox = false;
 | 
				
			||||||
 | 
					            this.Controls.Add(this.client_label);
 | 
				
			||||||
 | 
					            this.Controls.Add(this.overlay_area);
 | 
				
			||||||
 | 
					            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
 | 
				
			||||||
 | 
					            this.MaximizeBox = false;
 | 
				
			||||||
 | 
					            this.MinimizeBox = false;
 | 
				
			||||||
 | 
					            this.Name = "PreviewOverlay";
 | 
				
			||||||
 | 
					            this.ShowIcon = false;
 | 
				
			||||||
 | 
					            this.ShowInTaskbar = false;
 | 
				
			||||||
 | 
					            this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
 | 
				
			||||||
 | 
					            this.Text = "PreviewOverlay";
 | 
				
			||||||
 | 
					            this.TransparencyKey = System.Drawing.Color.Black;
 | 
				
			||||||
 | 
					            this.Load += new System.EventHandler(this.PreviewOverlay_Load);
 | 
				
			||||||
 | 
					            ((System.ComponentModel.ISupportInitialize)(this.overlay_area)).EndInit();
 | 
				
			||||||
 | 
					            this.ResumeLayout(false);
 | 
				
			||||||
 | 
					            this.PerformLayout();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        #endregion
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public System.Windows.Forms.PictureBox overlay_area;
 | 
				
			||||||
 | 
					        public System.Windows.Forms.Label client_label;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										39
									
								
								PreviewOverlay.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								PreviewOverlay.cs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,39 @@
 | 
				
			|||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Collections.Generic;
 | 
				
			||||||
 | 
					using System.ComponentModel;
 | 
				
			||||||
 | 
					using System.Data;
 | 
				
			||||||
 | 
					using System.Drawing;
 | 
				
			||||||
 | 
					using System.Linq;
 | 
				
			||||||
 | 
					using System.Text;
 | 
				
			||||||
 | 
					using System.Threading.Tasks;
 | 
				
			||||||
 | 
					using System.Windows.Forms;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace PreviewToy
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    public partial class PreviewOverlay : Form
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        private Preview parent;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public PreviewOverlay(Preview parent)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            this.parent = parent;
 | 
				
			||||||
 | 
					            InitializeComponent();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        private void PreviewOverlay_Load(object sender, EventArgs e)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        private void pictureBox1_Click(object sender, EventArgs e)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            this.parent.render_area_Click(sender, e);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        private void client_label_Click(object sender, EventArgs e)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										120
									
								
								PreviewOverlay.resx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										120
									
								
								PreviewOverlay.resx
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,120 @@
 | 
				
			|||||||
 | 
					<?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.Runtime.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:import namespace="http://www.w3.org/XML/1998/namespace" />
 | 
				
			||||||
 | 
					    <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" use="required" type="xsd:string" />
 | 
				
			||||||
 | 
					              <xsd:attribute name="type" type="xsd:string" />
 | 
				
			||||||
 | 
					              <xsd:attribute name="mimetype" type="xsd:string" />
 | 
				
			||||||
 | 
					              <xsd:attribute ref="xml:space" />
 | 
				
			||||||
 | 
					            </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" use="required" msdata:Ordinal="1" />
 | 
				
			||||||
 | 
					              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
 | 
				
			||||||
 | 
					              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
 | 
				
			||||||
 | 
					              <xsd:attribute ref="xml:space" />
 | 
				
			||||||
 | 
					            </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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
 | 
				
			||||||
 | 
					  </resheader>
 | 
				
			||||||
 | 
					  <resheader name="writer">
 | 
				
			||||||
 | 
					    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
 | 
				
			||||||
 | 
					  </resheader>
 | 
				
			||||||
 | 
					</root>
 | 
				
			||||||
							
								
								
									
										36
									
								
								Properties/Settings.Designer.cs
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										36
									
								
								Properties/Settings.Designer.cs
									
									
									
										generated
									
									
									
								
							@@ -130,5 +130,41 @@ namespace PreviewToy.Properties {
 | 
				
			|||||||
                this["sync_resize_y"] = value;
 | 
					                this["sync_resize_y"] = value;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        [global::System.Configuration.UserScopedSettingAttribute()]
 | 
				
			||||||
 | 
					        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
 | 
				
			||||||
 | 
					        [global::System.Configuration.DefaultSettingValueAttribute("False")]
 | 
				
			||||||
 | 
					        public bool show_overlay {
 | 
				
			||||||
 | 
					            get {
 | 
				
			||||||
 | 
					                return ((bool)(this["show_overlay"]));
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            set {
 | 
				
			||||||
 | 
					                this["show_overlay"] = value;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        [global::System.Configuration.UserScopedSettingAttribute()]
 | 
				
			||||||
 | 
					        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
 | 
				
			||||||
 | 
					        [global::System.Configuration.DefaultSettingValueAttribute("False")]
 | 
				
			||||||
 | 
					        public bool zoom_on_hover {
 | 
				
			||||||
 | 
					            get {
 | 
				
			||||||
 | 
					                return ((bool)(this["zoom_on_hover"]));
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            set {
 | 
				
			||||||
 | 
					                this["zoom_on_hover"] = value;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        [global::System.Configuration.UserScopedSettingAttribute()]
 | 
				
			||||||
 | 
					        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
 | 
				
			||||||
 | 
					        [global::System.Configuration.DefaultSettingValueAttribute("3")]
 | 
				
			||||||
 | 
					        public float zoom_amount {
 | 
				
			||||||
 | 
					            get {
 | 
				
			||||||
 | 
					                return ((float)(this["zoom_amount"]));
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            set {
 | 
				
			||||||
 | 
					                this["zoom_amount"] = value;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,5 +29,14 @@
 | 
				
			|||||||
    <Setting Name="sync_resize_y" Type="System.UInt32" Scope="User">
 | 
					    <Setting Name="sync_resize_y" Type="System.UInt32" Scope="User">
 | 
				
			||||||
      <Value Profile="(Default)">128</Value>
 | 
					      <Value Profile="(Default)">128</Value>
 | 
				
			||||||
    </Setting>
 | 
					    </Setting>
 | 
				
			||||||
 | 
					    <Setting Name="show_overlay" Type="System.Boolean" Scope="User">
 | 
				
			||||||
 | 
					      <Value Profile="(Default)">False</Value>
 | 
				
			||||||
 | 
					    </Setting>
 | 
				
			||||||
 | 
					    <Setting Name="zoom_on_hover" Type="System.Boolean" Scope="User">
 | 
				
			||||||
 | 
					      <Value Profile="(Default)">False</Value>
 | 
				
			||||||
 | 
					    </Setting>
 | 
				
			||||||
 | 
					    <Setting Name="zoom_amount" Type="System.Single" Scope="User">
 | 
				
			||||||
 | 
					      <Value Profile="(Default)">3</Value>
 | 
				
			||||||
 | 
					    </Setting>
 | 
				
			||||||
  </Settings>
 | 
					  </Settings>
 | 
				
			||||||
</SettingsFile>
 | 
					</SettingsFile>
 | 
				
			||||||
@@ -34,6 +34,15 @@
 | 
				
			|||||||
            <setting name="sync_resize_y" serializeAs="String">
 | 
					            <setting name="sync_resize_y" serializeAs="String">
 | 
				
			||||||
                <value>128</value>
 | 
					                <value>128</value>
 | 
				
			||||||
            </setting>
 | 
					            </setting>
 | 
				
			||||||
 | 
					            <setting name="show_overlay" serializeAs="String">
 | 
				
			||||||
 | 
					                <value>False</value>
 | 
				
			||||||
 | 
					            </setting>
 | 
				
			||||||
 | 
					            <setting name="zoom_on_hover" serializeAs="String">
 | 
				
			||||||
 | 
					                <value>False</value>
 | 
				
			||||||
 | 
					            </setting>
 | 
				
			||||||
 | 
					            <setting name="zoom_amount" serializeAs="String">
 | 
				
			||||||
 | 
					                <value>3</value>
 | 
				
			||||||
 | 
					            </setting>
 | 
				
			||||||
        </PreviewToy.Properties.Settings>
 | 
					        </PreviewToy.Properties.Settings>
 | 
				
			||||||
    </userSettings>
 | 
					    </userSettings>
 | 
				
			||||||
</configuration>
 | 
					</configuration>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,7 +28,7 @@
 | 
				
			|||||||
    <UpdateRequired>false</UpdateRequired>
 | 
					    <UpdateRequired>false</UpdateRequired>
 | 
				
			||||||
    <MapFileExtensions>true</MapFileExtensions>
 | 
					    <MapFileExtensions>true</MapFileExtensions>
 | 
				
			||||||
    <ApplicationRevision>0</ApplicationRevision>
 | 
					    <ApplicationRevision>0</ApplicationRevision>
 | 
				
			||||||
    <ApplicationVersion>1.6.0.0</ApplicationVersion>
 | 
					    <ApplicationVersion>1.7.0.0</ApplicationVersion>
 | 
				
			||||||
    <UseApplicationTrust>false</UseApplicationTrust>
 | 
					    <UseApplicationTrust>false</UseApplicationTrust>
 | 
				
			||||||
    <PublishWizardCompleted>true</PublishWizardCompleted>
 | 
					    <PublishWizardCompleted>true</PublishWizardCompleted>
 | 
				
			||||||
    <BootstrapperEnabled>true</BootstrapperEnabled>
 | 
					    <BootstrapperEnabled>true</BootstrapperEnabled>
 | 
				
			||||||
@@ -83,6 +83,7 @@
 | 
				
			|||||||
    <Reference Include="PresentationCore" />
 | 
					    <Reference Include="PresentationCore" />
 | 
				
			||||||
    <Reference Include="PresentationFramework" />
 | 
					    <Reference Include="PresentationFramework" />
 | 
				
			||||||
    <Reference Include="System" />
 | 
					    <Reference Include="System" />
 | 
				
			||||||
 | 
					    <Reference Include="System.Data" />
 | 
				
			||||||
    <Reference Include="System.Deployment" />
 | 
					    <Reference Include="System.Deployment" />
 | 
				
			||||||
    <Reference Include="System.Drawing" />
 | 
					    <Reference Include="System.Drawing" />
 | 
				
			||||||
    <Reference Include="System.Windows.Forms" />
 | 
					    <Reference Include="System.Windows.Forms" />
 | 
				
			||||||
@@ -99,12 +100,21 @@
 | 
				
			|||||||
    <Compile Include="PreviewHandler.Designer.cs">
 | 
					    <Compile Include="PreviewHandler.Designer.cs">
 | 
				
			||||||
      <DependentUpon>PreviewHandler.cs</DependentUpon>
 | 
					      <DependentUpon>PreviewHandler.cs</DependentUpon>
 | 
				
			||||||
    </Compile>
 | 
					    </Compile>
 | 
				
			||||||
 | 
					    <Compile Include="PreviewOverlay.cs">
 | 
				
			||||||
 | 
					      <SubType>Form</SubType>
 | 
				
			||||||
 | 
					    </Compile>
 | 
				
			||||||
 | 
					    <Compile Include="PreviewOverlay.Designer.cs">
 | 
				
			||||||
 | 
					      <DependentUpon>PreviewOverlay.cs</DependentUpon>
 | 
				
			||||||
 | 
					    </Compile>
 | 
				
			||||||
    <Compile Include="Program.cs" />
 | 
					    <Compile Include="Program.cs" />
 | 
				
			||||||
    <Compile Include="Properties\AssemblyInfo.cs" />
 | 
					    <Compile Include="Properties\AssemblyInfo.cs" />
 | 
				
			||||||
    <EmbeddedResource Include="PreviewHandler.resx">
 | 
					    <EmbeddedResource Include="PreviewHandler.resx">
 | 
				
			||||||
      <SubType>Designer</SubType>
 | 
					      <SubType>Designer</SubType>
 | 
				
			||||||
      <DependentUpon>PreviewHandler.cs</DependentUpon>
 | 
					      <DependentUpon>PreviewHandler.cs</DependentUpon>
 | 
				
			||||||
    </EmbeddedResource>
 | 
					    </EmbeddedResource>
 | 
				
			||||||
 | 
					    <EmbeddedResource Include="PreviewOverlay.resx">
 | 
				
			||||||
 | 
					      <DependentUpon>PreviewOverlay.cs</DependentUpon>
 | 
				
			||||||
 | 
					    </EmbeddedResource>
 | 
				
			||||||
    <EmbeddedResource Include="Properties\Resources.resx">
 | 
					    <EmbeddedResource Include="Properties\Resources.resx">
 | 
				
			||||||
      <Generator>ResXFileCodeGenerator</Generator>
 | 
					      <Generator>ResXFileCodeGenerator</Generator>
 | 
				
			||||||
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
 | 
					      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
 | 
				
			||||||
 
 | 
				
			|||||||
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user