Side panel code update.

Switched about panel to side panel.
This commit is contained in:
Lorenz Cuno Klopfenstein 2011-03-28 23:24:14 +02:00
parent 69ce36fb75
commit 6249ce2e6b
12 changed files with 501 additions and 51 deletions

View file

@ -49,7 +49,7 @@
this.themedLabel1.Padding = new System.Windows.Forms.Padding(10, 0, 0, 0);
this.themedLabel1.Size = new System.Drawing.Size(200, 40);
this.themedLabel1.TabIndex = 0;
this.themedLabel1.Text = Strings.ApplicationName;
this.themedLabel1.Text = "OnTopReplica";
//
// themedLabel2
//
@ -97,7 +97,7 @@
// progressBar1
//
this.progressBar1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.progressBar1.Location = new System.Drawing.Point(235, 79);
this.progressBar1.Location = new System.Drawing.Point(250, 35);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(102, 23);
this.progressBar1.Style = System.Windows.Forms.ProgressBarStyle.Marquee;
@ -114,7 +114,7 @@
this.buttonUpdate.Name = "buttonUpdate";
this.buttonUpdate.Size = new System.Drawing.Size(102, 23);
this.buttonUpdate.TabIndex = 2;
this.buttonUpdate.Text = global::OnTopReplica.Strings.UpdateNow;
this.buttonUpdate.Text = global::OnTopReplica.Strings.AboutUpdatesCheckNow;
this.buttonUpdate.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.buttonUpdate.UseVisualStyleBackColor = true;
this.buttonUpdate.Click += new System.EventHandler(this.Update_click);
@ -138,7 +138,8 @@
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(199, 31);
this.label1.TabIndex = 13;
this.label1.Text = Strings.UpdateDisclaimer;
this.label1.Text = "OnTopReplica automatically checks for updates. No information is logged at any po" +
"int.";
//
// linkLabel2
//
@ -151,7 +152,7 @@
this.linkLabel2.Size = new System.Drawing.Size(252, 21);
this.linkLabel2.TabIndex = 1;
this.linkLabel2.TabStop = true;
this.linkLabel2.Text = Strings.Homepage;
this.linkLabel2.Text = "Homepage: www.codeplex.com/ontopreplica.";
this.linkLabel2.UseCompatibleTextRendering = true;
this.linkLabel2.VisitedLinkColor = System.Drawing.Color.Blue;
//
@ -167,7 +168,7 @@
this.linkLabel1.Size = new System.Drawing.Size(212, 21);
this.linkLabel1.TabIndex = 0;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = Strings.CreatedBy;
this.linkLabel1.Text = "Created by: Lorenz Cuno Klopfenstein.";
this.linkLabel1.UseCompatibleTextRendering = true;
this.linkLabel1.VisitedLinkColor = System.Drawing.Color.Blue;
//
@ -179,7 +180,7 @@
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(287, 33);
this.label2.TabIndex = 10;
this.label2.Text = Strings.Slogan;
this.label2.Text = "A lightweight, real-time, always on top thumbnail of a window of your choice.";
//
// webBrowser
//

View file

@ -4,6 +4,7 @@ using System.Drawing;
using System.Windows.Forms;
using OnTopReplica.Properties;
using VistaControls.TaskDialog;
using OnTopReplica.SidePanels;
namespace OnTopReplica {
partial class MainForm {
@ -189,11 +190,11 @@ namespace OnTopReplica {
}
private void Menu_Settings_click(object sender, EventArgs e) {
this.SetSidePanel(new OnTopReplica.SidePanels.OptionsPanel());
this.SetSidePanel(new OptionsPanel());
}
private void Menu_About_click(object sender, EventArgs e) {
this.Hide();
/*this.Hide();
using (var box = new AboutForm()) {
box.Location = RecenterLocation(this, box);
@ -201,7 +202,8 @@ namespace OnTopReplica {
Location = RecenterLocation(box, this);
}
this.Show();
this.Show();*/
this.SetSidePanel(new AboutPanel());
}
private void Menu_Close_click(object sender, EventArgs e) {

View file

@ -100,12 +100,12 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="AboutForm.cs">
<None Include="AboutForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="AboutForm.Designer.cs">
</None>
<None Include="AboutForm.Designer.cs">
<DependentUpon>AboutForm.cs</DependentUpon>
</Compile>
</None>
<Compile Include="Actions.cs" />
<Compile Include="AspectRatioForm.cs">
<SubType>Form</SubType>
@ -143,7 +143,6 @@
<Compile Include="Native\HookMethods.cs" />
<Compile Include="Native\HotKeyMethods.cs" />
<Compile Include="Native\HT.cs" />
<Compile Include="Pair.cs" />
<Compile Include="Platforms\DebugPlatform.cs" />
<Compile Include="SidePanelContainer.cs">
<SubType>Form</SubType>
@ -151,6 +150,12 @@
<Compile Include="SidePanelContainer.Designer.cs">
<DependentUpon>SidePanelContainer.cs</DependentUpon>
</Compile>
<Compile Include="SidePanels\AboutPanel.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="SidePanels\AboutPanel.Designer.cs">
<DependentUpon>AboutPanel.cs</DependentUpon>
</Compile>
<Compile Include="SidePanels\OptionsPanel.cs">
<SubType>UserControl</SubType>
</Compile>
@ -176,6 +181,9 @@
<EmbeddedResource Include="SidePanelContainer.resx">
<DependentUpon>SidePanelContainer.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="SidePanels\AboutPanel.resx">
<DependentUpon>AboutPanel.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Strings.ru.resx" />
<None Include="Native\ITaskBarList.cs" />
<Compile Include="Native\InputMethods.cs" />
@ -329,6 +337,12 @@
<None Include="Assets\reduce.png" />
</ItemGroup>
<ItemGroup>
<None Include="LICENSE.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="CREDITS.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Assets\fullscreen.png" />
<None Include="Assets\clickforwarding.png" />
<None Include="Assets\groupmode.png" />

View file

@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using VistaControls.Dwm;
namespace OnTopReplica {
@ -58,5 +59,14 @@ namespace OnTopReplica {
}
}
/// <summary>
/// Gets the panel's desired glass margins or null if no glass surface is required.
/// </summary>
public virtual Margins? GlassMargins {
get {
return null;
}
}
}
}

View file

@ -33,7 +33,6 @@
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
this.MinimizeBox = false;
this.Name = "SidePanelContainer";
this.Padding = new System.Windows.Forms.Padding(6);
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "Side Panel container";

View file

@ -5,12 +5,13 @@ using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using VistaControls.Dwm.Helpers;
namespace OnTopReplica {
/// <summary>
/// Acts as a form that can contain a SidePanel instance.
/// </summary>
partial class SidePanelContainer : Form {
partial class SidePanelContainer : GlassForm {
EventHandler RequestClosingHandler;
@ -43,11 +44,12 @@ namespace OnTopReplica {
public void SetSidePanel(SidePanel panel) {
panel.OnFirstShown(_parent);
//Set panel
this.SuspendLayout();
//Title
this.Text = panel.Title;
//Set panel
CurrentSidePanel = panel;
panel.RequestClosing += RequestClosingHandler;
this.Controls.Add(panel);
@ -56,6 +58,15 @@ namespace OnTopReplica {
this.ClientSize = minSize;
this.EnsureMinimumClientSize(minSize);
//Enable glass if needed
var margins = panel.GlassMargins;
if (margins.HasValue) {
this.GlassMargins = margins.Value;
this.GlassEnabled = true;
}
else
this.GlassEnabled = false;
this.ResumeLayout();
}

View file

@ -0,0 +1,227 @@
namespace OnTopReplica.SidePanels {
partial class AboutPanel {
/// <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 Component 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.panelMain = new System.Windows.Forms.Panel();
this.labelTranslators = new System.Windows.Forms.Label();
this.linkCredits = new System.Windows.Forms.LinkLabel();
this.progressUpdate = new VistaControls.ProgressBar();
this.buttonUpdate = new System.Windows.Forms.Button();
this.lblUpdateDisclaimer = new System.Windows.Forms.Label();
this.labeledDivider2 = new VistaControls.LabeledDivider();
this.labeledDivider1 = new VistaControls.LabeledDivider();
this.linkHomepage = new System.Windows.Forms.LinkLabel();
this.linkAuthor = new System.Windows.Forms.LinkLabel();
this.lblSlogan = new System.Windows.Forms.Label();
this.thlabelVersion = new VistaControls.ThemeText.ThemedLabel();
this.panelMain.SuspendLayout();
this.SuspendLayout();
//
// panelMain
//
this.panelMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panelMain.AutoScroll = true;
this.panelMain.Controls.Add(this.labelTranslators);
this.panelMain.Controls.Add(this.linkCredits);
this.panelMain.Controls.Add(this.progressUpdate);
this.panelMain.Controls.Add(this.buttonUpdate);
this.panelMain.Controls.Add(this.lblUpdateDisclaimer);
this.panelMain.Controls.Add(this.labeledDivider2);
this.panelMain.Controls.Add(this.labeledDivider1);
this.panelMain.Controls.Add(this.linkHomepage);
this.panelMain.Controls.Add(this.linkAuthor);
this.panelMain.Controls.Add(this.lblSlogan);
this.panelMain.Location = new System.Drawing.Point(6, 6);
this.panelMain.Margin = new System.Windows.Forms.Padding(6);
this.panelMain.Name = "panelMain";
this.panelMain.Size = new System.Drawing.Size(243, 258);
this.panelMain.TabIndex = 0;
//
// labelTranslators
//
this.labelTranslators.Location = new System.Drawing.Point(0, 289);
this.labelTranslators.Name = "labelTranslators";
this.labelTranslators.Size = new System.Drawing.Size(226, 61);
this.labelTranslators.TabIndex = 21;
this.labelTranslators.Text = "Translators: asdasd";
//
// linkCredits
//
this.linkCredits.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
this.linkCredits.Location = new System.Drawing.Point(0, 223);
this.linkCredits.Name = "linkCredits";
this.linkCredits.Size = new System.Drawing.Size(226, 57);
this.linkCredits.TabIndex = 20;
this.linkCredits.TabStop = true;
this.linkCredits.Text = "%CREDITS%";
this.linkCredits.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkCredits_click);
//
// progressUpdate
//
this.progressUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.progressUpdate.Location = new System.Drawing.Point(0, 155);
this.progressUpdate.Name = "progressUpdate";
this.progressUpdate.Size = new System.Drawing.Size(118, 23);
this.progressUpdate.Style = System.Windows.Forms.ProgressBarStyle.Marquee;
this.progressUpdate.TabIndex = 19;
this.progressUpdate.Visible = false;
//
// buttonUpdate
//
this.buttonUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonUpdate.Location = new System.Drawing.Point(124, 155);
this.buttonUpdate.Name = "buttonUpdate";
this.buttonUpdate.Size = new System.Drawing.Size(102, 23);
this.buttonUpdate.TabIndex = 18;
this.buttonUpdate.Text = global::OnTopReplica.Strings.AboutUpdatesCheckNow;
this.buttonUpdate.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.buttonUpdate.UseVisualStyleBackColor = true;
//
// lblUpdateDisclaimer
//
this.lblUpdateDisclaimer.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblUpdateDisclaimer.Location = new System.Drawing.Point(0, 108);
this.lblUpdateDisclaimer.Name = "lblUpdateDisclaimer";
this.lblUpdateDisclaimer.Size = new System.Drawing.Size(225, 44);
this.lblUpdateDisclaimer.TabIndex = 16;
this.lblUpdateDisclaimer.Text = Strings.AboutUpdatesDisclaimer;
//
// labeledDivider2
//
this.labeledDivider2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labeledDivider2.DividerColor = System.Drawing.Color.FromArgb(((int)(((byte)(176)))), ((int)(((byte)(191)))), ((int)(((byte)(222)))));
this.labeledDivider2.Font = new System.Drawing.Font("Segoe UI", 9F);
this.labeledDivider2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(51)))), ((int)(((byte)(170)))));
this.labeledDivider2.Location = new System.Drawing.Point(0, 197);
this.labeledDivider2.Name = "labeledDivider2";
this.labeledDivider2.Size = new System.Drawing.Size(223, 23);
this.labeledDivider2.TabIndex = 15;
this.labeledDivider2.Text = global::OnTopReplica.Strings.AboutDividerCredits;
//
// labeledDivider1
//
this.labeledDivider1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labeledDivider1.DividerColor = System.Drawing.Color.FromArgb(((int)(((byte)(176)))), ((int)(((byte)(191)))), ((int)(((byte)(222)))));
this.labeledDivider1.Font = new System.Drawing.Font("Segoe UI", 9F);
this.labeledDivider1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(51)))), ((int)(((byte)(170)))));
this.labeledDivider1.Location = new System.Drawing.Point(0, 82);
this.labeledDivider1.Name = "labeledDivider1";
this.labeledDivider1.Size = new System.Drawing.Size(226, 23);
this.labeledDivider1.TabIndex = 14;
this.labeledDivider1.Text = global::OnTopReplica.Strings.AboutDividerUpdates;
//
// linkHomepage
//
this.linkHomepage.AutoSize = true;
this.linkHomepage.BackColor = System.Drawing.Color.Transparent;
this.linkHomepage.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
this.linkHomepage.Location = new System.Drawing.Point(0, 54);
this.linkHomepage.Name = "linkHomepage";
this.linkHomepage.Size = new System.Drawing.Size(167, 17);
this.linkHomepage.TabIndex = 12;
this.linkHomepage.TabStop = true;
this.linkHomepage.Text = "http://ontopreplica.codeplex.com";
this.linkHomepage.UseCompatibleTextRendering = true;
this.linkHomepage.VisitedLinkColor = System.Drawing.Color.Blue;
this.linkHomepage.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkWebsite_click);
//
// linkAuthor
//
this.linkAuthor.AutoSize = true;
this.linkAuthor.BackColor = System.Drawing.Color.Transparent;
this.linkAuthor.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
this.linkAuthor.LinkColor = System.Drawing.Color.Blue;
this.linkAuthor.Location = new System.Drawing.Point(0, 33);
this.linkAuthor.Name = "linkAuthor";
this.linkAuthor.Size = new System.Drawing.Size(72, 17);
this.linkAuthor.TabIndex = 11;
this.linkAuthor.TabStop = true;
this.linkAuthor.Text = "%AUTHOR%";
this.linkAuthor.UseCompatibleTextRendering = true;
this.linkAuthor.VisitedLinkColor = System.Drawing.Color.Blue;
this.linkAuthor.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkAuthor_click);
//
// lblSlogan
//
this.lblSlogan.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblSlogan.BackColor = System.Drawing.Color.Transparent;
this.lblSlogan.Location = new System.Drawing.Point(0, 0);
this.lblSlogan.Name = "lblSlogan";
this.lblSlogan.Size = new System.Drawing.Size(226, 33);
this.lblSlogan.TabIndex = 13;
this.lblSlogan.Text = Strings.AboutSlogan;
//
// thlabelVersion
//
this.thlabelVersion.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.thlabelVersion.GlowSize = 7;
this.thlabelVersion.Location = new System.Drawing.Point(0, 272);
this.thlabelVersion.Margin = new System.Windows.Forms.Padding(0);
this.thlabelVersion.Name = "thlabelVersion";
this.thlabelVersion.Padding = new System.Windows.Forms.Padding(0, 0, 0, 1);
this.thlabelVersion.Size = new System.Drawing.Size(255, 18);
this.thlabelVersion.TabIndex = 1;
this.thlabelVersion.Text = "%VERSION%";
this.thlabelVersion.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.thlabelVersion.TextAlignVertical = System.Windows.Forms.VisualStyles.VerticalAlignment.Bottom;
//
// AboutPanel
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.thlabelVersion);
this.Controls.Add(this.panelMain);
this.MinimumSize = new System.Drawing.Size(255, 290);
this.Name = "AboutPanel";
this.Size = new System.Drawing.Size(255, 290);
this.panelMain.ResumeLayout(false);
this.panelMain.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panelMain;
private VistaControls.ThemeText.ThemedLabel thlabelVersion;
private System.Windows.Forms.LinkLabel linkHomepage;
private System.Windows.Forms.LinkLabel linkAuthor;
private System.Windows.Forms.Label lblSlogan;
private VistaControls.LabeledDivider labeledDivider1;
private System.Windows.Forms.Label lblUpdateDisclaimer;
private VistaControls.LabeledDivider labeledDivider2;
private VistaControls.ProgressBar progressUpdate;
private System.Windows.Forms.Button buttonUpdate;
private System.Windows.Forms.Label labelTranslators;
private System.Windows.Forms.LinkLabel linkCredits;
}
}

View file

@ -0,0 +1,63 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using VistaControls.Dwm;
using System.Diagnostics;
namespace OnTopReplica.SidePanels {
partial class AboutPanel : SidePanel {
public AboutPanel() {
InitializeComponent();
//Update dynamic strings
thlabelVersion.Text = string.Format(Strings.AboutVersion, Application.ProductVersion);
InternationalizeLinkLabel(linkAuthor, Strings.AboutAuthor, Strings.AboutAuthorContent);
InternationalizeLinkLabel(linkCredits, Strings.AboutCreditsSources, Strings.AboutCreditsSourcesContent);
}
private void InternationalizeLinkLabel(LinkLabel label, string text, string linkText) {
int linkIndex = text.IndexOf('%');
if (linkIndex == -1) {
//Shouldn't happen, but try to fail with meaningful text
label.Text = text;
return;
}
label.Text = text.Substring(0, linkIndex) + linkText + text.Substring(linkIndex + 1);
label.LinkArea = new LinkArea(linkIndex, linkText.Length);
}
public override string Title {
get {
return Strings.AboutTitle;
}
}
public override Margins? GlassMargins {
get {
return new Margins(0, 0, 0, thlabelVersion.Height);
}
}
#region Link clicks
private void LinkAuthor_click(object sender, LinkLabelLinkClickedEventArgs e) {
Process.Start("http://lorenz.klopfenstein.net");
}
private void LinkWebsite_click(object sender, LinkLabelLinkClickedEventArgs e) {
Process.Start("http://ontopreplica.codeplex.com");
}
private void LinkCredits_click(object sender, LinkLabelLinkClickedEventArgs e) {
Process.Start("CREDITS.txt");
}
#endregion
}
}

View 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=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>

View file

@ -39,9 +39,9 @@
this.groupBox1.Controls.Add(this.buttonEnable);
this.groupBox1.Controls.Add(this.listWindows);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox1.Location = new System.Drawing.Point(0, 0);
this.groupBox1.Location = new System.Drawing.Point(6, 6);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(283, 337);
this.groupBox1.Size = new System.Drawing.Size(271, 325);
this.groupBox1.TabIndex = 1;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Group switch mode:";
@ -50,9 +50,9 @@
//
this.labelStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labelStatus.Location = new System.Drawing.Point(3, 288);
this.labelStatus.Location = new System.Drawing.Point(3, 276);
this.labelStatus.Name = "labelStatus";
this.labelStatus.Size = new System.Drawing.Size(274, 17);
this.labelStatus.Size = new System.Drawing.Size(262, 17);
this.labelStatus.TabIndex = 3;
this.labelStatus.Text = "-";
this.labelStatus.TextAlign = System.Drawing.ContentAlignment.BottomRight;
@ -60,7 +60,7 @@
// buttonCancel
//
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.Location = new System.Drawing.Point(207, 308);
this.buttonCancel.Location = new System.Drawing.Point(195, 296);
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(70, 23);
this.buttonCancel.TabIndex = 2;
@ -72,7 +72,7 @@
//
this.buttonEnable.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonEnable.Image = global::OnTopReplica.Properties.Resources.xiao_ok;
this.buttonEnable.Location = new System.Drawing.Point(67, 308);
this.buttonEnable.Location = new System.Drawing.Point(55, 296);
this.buttonEnable.Name = "buttonEnable";
this.buttonEnable.Size = new System.Drawing.Size(134, 23);
this.buttonEnable.TabIndex = 1;
@ -95,7 +95,7 @@
this.listWindows.LabelWrap = false;
this.listWindows.Location = new System.Drawing.Point(6, 19);
this.listWindows.Name = "listWindows";
this.listWindows.Size = new System.Drawing.Size(271, 266);
this.listWindows.Size = new System.Drawing.Size(259, 254);
this.listWindows.TabIndex = 0;
this.listWindows.UseCompatibleStateImageBehavior = false;
this.listWindows.View = System.Windows.Forms.View.List;
@ -112,6 +112,7 @@
this.Controls.Add(this.groupBox1);
this.MinimumSize = new System.Drawing.Size(240, 240);
this.Name = "GroupSwitchPanel";
this.Padding = new System.Windows.Forms.Padding(6);
this.Size = new System.Drawing.Size(283, 337);
this.groupBox1.ResumeLayout(false);
this.ResumeLayout(false);

View file

@ -42,11 +42,11 @@
// btnClose
//
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnClose.Location = new System.Drawing.Point(185, 217);
this.btnClose.Location = new System.Drawing.Point(189, 211);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(75, 23);
this.btnClose.TabIndex = 0;
this.btnClose.Text = Strings.MenuClose;
this.btnClose.Text = global::OnTopReplica.Strings.MenuClose;
this.btnClose.UseVisualStyleBackColor = true;
this.btnClose.Click += new System.EventHandler(this.Close_click);
//
@ -58,9 +58,9 @@
this.panelMain.AutoScroll = true;
this.panelMain.Controls.Add(this.groupHotkeys);
this.panelMain.Controls.Add(this.groupLanguage);
this.panelMain.Location = new System.Drawing.Point(0, 0);
this.panelMain.Location = new System.Drawing.Point(6, 6);
this.panelMain.Name = "panelMain";
this.panelMain.Size = new System.Drawing.Size(260, 211);
this.panelMain.Size = new System.Drawing.Size(258, 199);
this.panelMain.TabIndex = 1;
//
// groupHotkeys
@ -74,7 +74,7 @@
this.groupHotkeys.Controls.Add(this.txtHotKeyClone);
this.groupHotkeys.Location = new System.Drawing.Point(3, 77);
this.groupHotkeys.Name = "groupHotkeys";
this.groupHotkeys.Size = new System.Drawing.Size(254, 113);
this.groupHotkeys.Size = new System.Drawing.Size(252, 113);
this.groupHotkeys.TabIndex = 1;
this.groupHotkeys.TabStop = false;
this.groupHotkeys.Text = Strings.SettingsHotKeyTitle;
@ -84,15 +84,15 @@
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label1.Location = new System.Drawing.Point(6, 68);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(158, 43);
this.label1.Name = "lblHotkeyDescription";
this.label1.Size = new System.Drawing.Size(156, 43);
this.label1.TabIndex = 4;
this.label1.Text = Strings.SettingsHotKeyDescription;
//
// lblHotKeyShowHide
//
this.lblHotKeyShowHide.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.lblHotKeyShowHide.Location = new System.Drawing.Point(170, 22);
this.lblHotKeyShowHide.Location = new System.Drawing.Point(168, 22);
this.lblHotKeyShowHide.Name = "lblHotKeyShowHide";
this.lblHotKeyShowHide.Size = new System.Drawing.Size(78, 17);
this.lblHotKeyShowHide.TabIndex = 3;
@ -105,13 +105,13 @@
this.txtHotKeyShowHide.Location = new System.Drawing.Point(6, 19);
this.txtHotKeyShowHide.Name = "txtHotKeyShowHide";
this.txtHotKeyShowHide.ReadOnly = true;
this.txtHotKeyShowHide.Size = new System.Drawing.Size(158, 20);
this.txtHotKeyShowHide.Size = new System.Drawing.Size(156, 20);
this.txtHotKeyShowHide.TabIndex = 2;
//
// lblHotKeyClone
//
this.lblHotKeyClone.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.lblHotKeyClone.Location = new System.Drawing.Point(170, 48);
this.lblHotKeyClone.Location = new System.Drawing.Point(168, 48);
this.lblHotKeyClone.Name = "lblHotKeyClone";
this.lblHotKeyClone.Size = new System.Drawing.Size(78, 29);
this.lblHotKeyClone.TabIndex = 1;
@ -124,7 +124,7 @@
this.txtHotKeyClone.Location = new System.Drawing.Point(6, 45);
this.txtHotKeyClone.Name = "txtHotKeyClone";
this.txtHotKeyClone.ReadOnly = true;
this.txtHotKeyClone.Size = new System.Drawing.Size(158, 20);
this.txtHotKeyClone.Size = new System.Drawing.Size(156, 20);
this.txtHotKeyClone.TabIndex = 0;
//
// groupLanguage
@ -135,7 +135,7 @@
this.groupLanguage.Controls.Add(this.lblLanguage);
this.groupLanguage.Location = new System.Drawing.Point(3, 3);
this.groupLanguage.Name = "groupLanguage";
this.groupLanguage.Size = new System.Drawing.Size(254, 68);
this.groupLanguage.Size = new System.Drawing.Size(252, 68);
this.groupLanguage.TabIndex = 0;
this.groupLanguage.TabStop = false;
this.groupLanguage.Text = Strings.SettingsLanguageTitle;
@ -150,7 +150,7 @@
this.comboLanguage.IconList = null;
this.comboLanguage.Location = new System.Drawing.Point(9, 19);
this.comboLanguage.Name = "comboLanguage";
this.comboLanguage.Size = new System.Drawing.Size(239, 21);
this.comboLanguage.Size = new System.Drawing.Size(237, 21);
this.comboLanguage.TabIndex = 2;
this.comboLanguage.SelectedIndexChanged += new System.EventHandler(this.LanguageBox_IndexChange);
//
@ -160,7 +160,7 @@
| System.Windows.Forms.AnchorStyles.Right)));
this.lblLanguage.Location = new System.Drawing.Point(6, 43);
this.lblLanguage.Name = "lblLanguage";
this.lblLanguage.Size = new System.Drawing.Size(242, 22);
this.lblLanguage.Size = new System.Drawing.Size(240, 22);
this.lblLanguage.TabIndex = 1;
this.lblLanguage.Text = Strings.SettingsRestartRequired;
//
@ -171,9 +171,10 @@
this.AutoScroll = true;
this.Controls.Add(this.panelMain);
this.Controls.Add(this.btnClose);
this.MinimumSize = new System.Drawing.Size(260, 240);
this.MinimumSize = new System.Drawing.Size(270, 240);
this.Name = "OptionsPanel";
this.Size = new System.Drawing.Size(260, 240);
this.Padding = new System.Windows.Forms.Padding(6);
this.Size = new System.Drawing.Size(270, 240);
this.panelMain.ResumeLayout(false);
this.groupHotkeys.ResumeLayout(false);
this.groupHotkeys.PerformLayout();

View file

@ -64,9 +64,9 @@
this.groupBox1.Controls.Add(this.buttonSave);
this.groupBox1.Controls.Add(this.comboRegions);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox1.Location = new System.Drawing.Point(0, 0);
this.groupBox1.Location = new System.Drawing.Point(6, 6);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(184, 170);
this.groupBox1.Size = new System.Drawing.Size(218, 158);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Regions:";
@ -79,7 +79,7 @@
this.textRegionName.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.textRegionName.Location = new System.Drawing.Point(6, 44);
this.textRegionName.Name = "textRegionName";
this.textRegionName.Size = new System.Drawing.Size(174, 20);
this.textRegionName.Size = new System.Drawing.Size(208, 20);
this.textRegionName.TabIndex = 11;
this.textRegionName.Visible = false;
this.textRegionName.ConfirmInput += new System.EventHandler(this.Save_confirm);
@ -166,7 +166,7 @@
this.buttonDone.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonDone.Image = global::OnTopReplica.Properties.Resources.xiao_ok;
this.buttonDone.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.buttonDone.Location = new System.Drawing.Point(108, 129);
this.buttonDone.Location = new System.Drawing.Point(142, 129);
this.buttonDone.Name = "buttonDone";
this.buttonDone.Size = new System.Drawing.Size(70, 23);
this.buttonDone.TabIndex = 9;
@ -178,7 +178,7 @@
// buttonReset
//
this.buttonReset.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonReset.Location = new System.Drawing.Point(32, 129);
this.buttonReset.Location = new System.Drawing.Point(66, 129);
this.buttonReset.Name = "buttonReset";
this.buttonReset.Size = new System.Drawing.Size(70, 23);
this.buttonReset.TabIndex = 8;
@ -241,7 +241,7 @@
this.buttonDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonDelete.Enabled = false;
this.buttonDelete.Image = global::OnTopReplica.Properties.Resources.xiao_delete;
this.buttonDelete.Location = new System.Drawing.Point(157, 18);
this.buttonDelete.Location = new System.Drawing.Point(191, 18);
this.buttonDelete.Name = "buttonDelete";
this.buttonDelete.Size = new System.Drawing.Size(23, 23);
this.buttonDelete.TabIndex = 3;
@ -253,7 +253,7 @@
this.buttonSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonSave.Enabled = false;
this.buttonSave.Image = global::OnTopReplica.Properties.Resources.xiao_add;
this.buttonSave.Location = new System.Drawing.Point(134, 18);
this.buttonSave.Location = new System.Drawing.Point(168, 18);
this.buttonSave.Name = "buttonSave";
this.buttonSave.Size = new System.Drawing.Size(23, 23);
this.buttonSave.TabIndex = 1;
@ -270,7 +270,7 @@
this.comboRegions.FormattingEnabled = true;
this.comboRegions.Location = new System.Drawing.Point(6, 19);
this.comboRegions.Name = "comboRegions";
this.comboRegions.Size = new System.Drawing.Size(126, 21);
this.comboRegions.Size = new System.Drawing.Size(160, 21);
this.comboRegions.TabIndex = 0;
this.comboRegions.SelectedIndexChanged += new System.EventHandler(this.RegionCombo_index_change);
//
@ -279,9 +279,10 @@
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.groupBox1);
this.MinimumSize = new System.Drawing.Size(184, 170);
this.MinimumSize = new System.Drawing.Size(230, 170);
this.Name = "RegionPanel";
this.Size = new System.Drawing.Size(184, 170);
this.Padding = new System.Windows.Forms.Padding(6);
this.Size = new System.Drawing.Size(230, 170);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.numH)).EndInit();