mirror of
https://github.com/LorenzCK/OnTopReplica.git
synced 2024-06-03 11:04:32 +12:00
Update to latest working version.
This commit is contained in:
parent
b091e7973c
commit
958d3891d7
|
@ -1,6 +1,6 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual C# Express 2008
|
||||
# Visual Studio 10
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OnTopReplica", "OnTopReplica\OnTopReplica.csproj", "{E626BD6E-BF38-4EB7-A128-5CA6F40EF557}"
|
||||
EndProject
|
||||
Global
|
||||
|
|
150
OnTopReplica/AboutForm.Designer.cs
generated
150
OnTopReplica/AboutForm.Designer.cs
generated
|
@ -23,19 +23,22 @@
|
|||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent() {
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutForm));
|
||||
this.themedLabel1 = new VistaControls.ThemeText.ThemedLabel();
|
||||
this.themedLabel2 = new VistaControls.ThemeText.ThemedLabel();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.progressBar1 = new VistaControls.ProgressBar();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.buttonReset = new System.Windows.Forms.Button();
|
||||
this.buttonCancel = new System.Windows.Forms.Button();
|
||||
this.buttonUpdate = new System.Windows.Forms.Button();
|
||||
this.buttonExpander = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.linkLabel2 = new System.Windows.Forms.LinkLabel();
|
||||
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.webBrowser1 = new System.Windows.Forms.WebBrowser();
|
||||
this.webBrowser = new System.Windows.Forms.WebBrowser();
|
||||
this.progressBar1 = new VistaControls.ProgressBar();
|
||||
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.panel1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
|
@ -47,7 +50,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
|
||||
//
|
||||
|
@ -58,71 +61,79 @@
|
|||
this.themedLabel2.Location = new System.Drawing.Point(200, 0);
|
||||
this.themedLabel2.Name = "themedLabel2";
|
||||
this.themedLabel2.Padding = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.themedLabel2.Size = new System.Drawing.Size(177, 40);
|
||||
this.themedLabel2.Size = new System.Drawing.Size(189, 40);
|
||||
this.themedLabel2.TabIndex = 1;
|
||||
this.themedLabel2.Text = "v2";
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.panel1.BackgroundImage = global::OnTopReplica.Properties.Resources.back;
|
||||
this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.panel1.Controls.Add(this.button3);
|
||||
this.panel1.Controls.Add(this.buttonReset);
|
||||
this.panel1.Controls.Add(this.buttonCancel);
|
||||
this.panel1.Controls.Add(this.progressBar1);
|
||||
this.panel1.Controls.Add(this.button2);
|
||||
this.panel1.Controls.Add(this.button1);
|
||||
this.panel1.Controls.Add(this.buttonUpdate);
|
||||
this.panel1.Controls.Add(this.buttonExpander);
|
||||
this.panel1.Controls.Add(this.label1);
|
||||
this.panel1.Controls.Add(this.linkLabel2);
|
||||
this.panel1.Controls.Add(this.linkLabel1);
|
||||
this.panel1.Controls.Add(this.label2);
|
||||
this.panel1.Location = new System.Drawing.Point(0, 40);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(377, 105);
|
||||
this.panel1.Size = new System.Drawing.Size(388, 105);
|
||||
this.panel1.TabIndex = 10;
|
||||
//
|
||||
// button3
|
||||
// buttonReset
|
||||
//
|
||||
this.button3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
|
||||
this.button3.Image = ((System.Drawing.Image)(resources.GetObject("button3.Image")));
|
||||
this.button3.Location = new System.Drawing.Point(313, 79);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(23, 23);
|
||||
this.button3.TabIndex = 3;
|
||||
this.button3.UseVisualStyleBackColor = true;
|
||||
this.button3.Visible = false;
|
||||
this.button3.Click += new System.EventHandler(this.Abort_click);
|
||||
this.buttonReset.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonReset.Image = global::OnTopReplica.Properties.Resources.refresh;
|
||||
this.buttonReset.Location = new System.Drawing.Point(338, 79);
|
||||
this.buttonReset.Name = "buttonReset";
|
||||
this.buttonReset.Size = new System.Drawing.Size(23, 23);
|
||||
this.buttonReset.TabIndex = 14;
|
||||
this.buttonReset.UseVisualStyleBackColor = true;
|
||||
this.buttonReset.Click += new System.EventHandler(this.ResetClick);
|
||||
//
|
||||
// progressBar1
|
||||
// buttonCancel
|
||||
//
|
||||
this.progressBar1.Location = new System.Drawing.Point(205, 79);
|
||||
this.progressBar1.Name = "progressBar1";
|
||||
this.progressBar1.Size = new System.Drawing.Size(102, 23);
|
||||
this.progressBar1.TabIndex = 3;
|
||||
this.progressBar1.Visible = false;
|
||||
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonCancel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
|
||||
this.buttonCancel.Image = ((System.Drawing.Image)(resources.GetObject("buttonCancel.Image")));
|
||||
this.buttonCancel.Location = new System.Drawing.Point(211, 79);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(23, 23);
|
||||
this.buttonCancel.TabIndex = 3;
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
this.buttonCancel.Visible = false;
|
||||
this.buttonCancel.Click += new System.EventHandler(this.Abort_click);
|
||||
//
|
||||
// button2
|
||||
// buttonUpdate
|
||||
//
|
||||
this.button2.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.button2.Image = global::OnTopReplica.Properties.Resources.component;
|
||||
this.button2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.button2.Location = new System.Drawing.Point(205, 79);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(102, 23);
|
||||
this.button2.TabIndex = 2;
|
||||
this.button2.Text = Strings.UpdateNow;
|
||||
this.button2.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new System.EventHandler(this.Update_click);
|
||||
this.buttonUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonUpdate.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.buttonUpdate.Image = global::OnTopReplica.Properties.Resources.component;
|
||||
this.buttonUpdate.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.buttonUpdate.Location = new System.Drawing.Point(235, 79);
|
||||
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.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||
this.buttonUpdate.UseVisualStyleBackColor = true;
|
||||
this.buttonUpdate.Click += new System.EventHandler(this.Update_click);
|
||||
//
|
||||
// button1
|
||||
// buttonExpander
|
||||
//
|
||||
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.button1.Image = global::OnTopReplica.Properties.Resources.xiao_down;
|
||||
this.button1.Location = new System.Drawing.Point(351, 79);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(23, 23);
|
||||
this.button1.TabIndex = 4;
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.Toggle_click);
|
||||
this.buttonExpander.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonExpander.Image = global::OnTopReplica.Properties.Resources.xiao_down;
|
||||
this.buttonExpander.Location = new System.Drawing.Point(362, 79);
|
||||
this.buttonExpander.Name = "buttonExpander";
|
||||
this.buttonExpander.Size = new System.Drawing.Size(23, 23);
|
||||
this.buttonExpander.TabIndex = 4;
|
||||
this.buttonExpander.UseVisualStyleBackColor = true;
|
||||
this.buttonExpander.Click += new System.EventHandler(this.Toggle_click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
|
@ -175,23 +186,34 @@
|
|||
this.label2.TabIndex = 10;
|
||||
this.label2.Text = Strings.Slogan;
|
||||
//
|
||||
// webBrowser1
|
||||
// webBrowser
|
||||
//
|
||||
this.webBrowser1.AllowWebBrowserDrop = false;
|
||||
this.webBrowser1.Location = new System.Drawing.Point(0, 146);
|
||||
this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
|
||||
this.webBrowser1.Name = "webBrowser1";
|
||||
this.webBrowser1.ScriptErrorsSuppressed = true;
|
||||
this.webBrowser1.Size = new System.Drawing.Size(377, 200);
|
||||
this.webBrowser1.TabIndex = 14;
|
||||
this.webBrowser.AllowWebBrowserDrop = false;
|
||||
this.webBrowser.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.webBrowser.Location = new System.Drawing.Point(0, 146);
|
||||
this.webBrowser.MinimumSize = new System.Drawing.Size(20, 20);
|
||||
this.webBrowser.Name = "webBrowser";
|
||||
this.webBrowser.ScriptErrorsSuppressed = true;
|
||||
this.webBrowser.Size = new System.Drawing.Size(389, 200);
|
||||
this.webBrowser.TabIndex = 14;
|
||||
//
|
||||
// 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.Name = "progressBar1";
|
||||
this.progressBar1.Size = new System.Drawing.Size(102, 23);
|
||||
this.progressBar1.TabIndex = 3;
|
||||
this.progressBar1.Visible = false;
|
||||
//
|
||||
// AboutForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.ClientSize = new System.Drawing.Size(377, 145);
|
||||
this.Controls.Add(this.webBrowser1);
|
||||
this.ClientSize = new System.Drawing.Size(389, 145);
|
||||
this.Controls.Add(this.webBrowser);
|
||||
this.Controls.Add(this.themedLabel2);
|
||||
this.Controls.Add(this.themedLabel1);
|
||||
this.Controls.Add(this.panel1);
|
||||
|
@ -200,7 +222,7 @@
|
|||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "AboutForm";
|
||||
this.Text = Strings.ApplicationName;
|
||||
this.Text = "OnTopReplica";
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
@ -212,14 +234,16 @@
|
|||
private VistaControls.ThemeText.ThemedLabel themedLabel1;
|
||||
private VistaControls.ThemeText.ThemedLabel themedLabel2;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button buttonExpander;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.LinkLabel linkLabel2;
|
||||
private System.Windows.Forms.LinkLabel linkLabel1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button buttonUpdate;
|
||||
private System.Windows.Forms.Button buttonCancel;
|
||||
private System.Windows.Forms.WebBrowser webBrowser;
|
||||
private System.Windows.Forms.Button buttonReset;
|
||||
private VistaControls.ProgressBar progressBar1;
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.WebBrowser webBrowser1;
|
||||
private System.Windows.Forms.ToolTip toolTip;
|
||||
}
|
||||
}
|
|
@ -15,6 +15,12 @@ namespace OnTopReplica {
|
|||
public AboutForm() {
|
||||
InitializeComponent();
|
||||
|
||||
//Tooltips
|
||||
toolTip.SetToolTip(buttonCancel, Strings.AboutButtonCancelTT);
|
||||
toolTip.SetToolTip(buttonExpander, Strings.AboutButtonExpanderTT);
|
||||
toolTip.SetToolTip(buttonReset, Strings.AboutButtonResetTT);
|
||||
toolTip.SetToolTip(buttonUpdate, Strings.AboutButtonUpdateTT);
|
||||
|
||||
//Add link areas (localized text)
|
||||
linkLabel1.LinkArea = new LinkArea(linkLabel1.Text.IndexOf("Lorenz Cuno Klopfenstein"), "Lorenz Cuno Klopfenstein".Length);
|
||||
int linkStart = linkLabel2.Text.IndexOf("www");
|
||||
|
@ -70,7 +76,7 @@ namespace OnTopReplica {
|
|||
IsExpanded = !IsExpanded;
|
||||
|
||||
//Update icon
|
||||
button1.Image = IsExpanded ? Resources.xiao_up : Resources.xiao_down;
|
||||
buttonExpander.Image = IsExpanded ? Resources.xiao_up : Resources.xiao_down;
|
||||
}
|
||||
|
||||
bool _isExpanded = false;
|
||||
|
@ -79,16 +85,16 @@ namespace OnTopReplica {
|
|||
get { return _isExpanded; }
|
||||
set {
|
||||
if(_isExpanded != value)
|
||||
Size = new Size(Size.Width, Size.Height + ((value) ? webBrowser1.Size.Height : -webBrowser1.Size.Height));
|
||||
Size = new Size(Size.Width, Size.Height + ((value) ? webBrowser.Size.Height : -webBrowser.Size.Height));
|
||||
|
||||
_isExpanded = value;
|
||||
|
||||
if (value && _isFirstExpansion) {
|
||||
//Load text from resources
|
||||
webBrowser1.DocumentText = Resources.about;
|
||||
webBrowser.DocumentText = Strings.AboutDetails;
|
||||
|
||||
//Register navigation events
|
||||
webBrowser1.Navigating += new WebBrowserNavigatingEventHandler(webBrowser1_Navigating);
|
||||
webBrowser.Navigating += new WebBrowserNavigatingEventHandler(webBrowser1_Navigating);
|
||||
|
||||
_isFirstExpansion = false;
|
||||
}
|
||||
|
@ -149,10 +155,10 @@ namespace OnTopReplica {
|
|||
deployment.CheckForUpdateCompleted += handlerProgressComplete;
|
||||
|
||||
//Update GUI
|
||||
button2.Visible = false;
|
||||
buttonUpdate.Visible = false;
|
||||
progressBar1.Visible = true;
|
||||
progressBar1.Value = 0;
|
||||
button3.Visible = true;
|
||||
buttonCancel.Visible = true;
|
||||
|
||||
_isChecking = true;
|
||||
|
||||
|
@ -172,10 +178,10 @@ namespace OnTopReplica {
|
|||
deployment.UpdateCompleted += handlerUpdateComplete;
|
||||
|
||||
//Update GUI
|
||||
button2.Visible = false;
|
||||
buttonUpdate.Visible = false;
|
||||
progressBar1.Visible = true;
|
||||
progressBar1.Value = 0;
|
||||
button3.Visible = true;
|
||||
buttonCancel.Visible = true;
|
||||
|
||||
_isUpdating = true;
|
||||
|
||||
|
@ -192,8 +198,8 @@ namespace OnTopReplica {
|
|||
void StopUpdate() {
|
||||
//Reset UI
|
||||
progressBar1.Visible = false;
|
||||
button3.Visible = false;
|
||||
button2.Visible = true;
|
||||
buttonCancel.Visible = false;
|
||||
buttonUpdate.Visible = true;
|
||||
|
||||
try {
|
||||
ApplicationDeployment deployment = ApplicationDeployment.CurrentDeployment;
|
||||
|
@ -311,5 +317,15 @@ namespace OnTopReplica {
|
|||
|
||||
#endregion
|
||||
|
||||
private void ResetClick(object sender, EventArgs e) {
|
||||
var dlg = new TaskDialog(Strings.AskSettingReset, Strings.AskSettingResetTitle,
|
||||
Strings.AskSettingResetContent);
|
||||
dlg.CommonButtons = TaskDialogButton.OK | TaskDialogButton.Cancel;
|
||||
|
||||
if (dlg.Show(this).CommonButton == Result.OK) {
|
||||
Settings.Default.Reset();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -118,24 +118,27 @@
|
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="button3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<data name="buttonCancel.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQ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
||||
</data>
|
||||
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAMDAAAAEAGACoHAAAFgAAACgAAAAwAAAAYAAAAAEAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
|
|
BIN
OnTopReplica/Assets/25.png
Normal file
BIN
OnTopReplica/Assets/25.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 639 B |
|
@ -4,7 +4,8 @@
|
|||
body {
|
||||
font-family: Segoe UI, Arial, sans-serif;
|
||||
font-size: 0.8em;
|
||||
margin: 0; padding: 0;
|
||||
margin: 0;
|
||||
padding: 0.75em;
|
||||
}
|
||||
h1 {
|
||||
font-size: 1.4em;
|
||||
|
|
34
OnTopReplica/FullscreenForm.Designer.cs
generated
34
OnTopReplica/FullscreenForm.Designer.cs
generated
|
@ -24,11 +24,12 @@
|
|||
/// </summary>
|
||||
private void InitializeComponent() {
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FullscreenForm));
|
||||
this.menuContext = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.windowsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.quitFullscreenModeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menuWindows = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.noneToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.quitFullscreenModeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this._thumbnail = new OnTopReplica.ThumbnailPanel();
|
||||
this.menuContext.SuspendLayout();
|
||||
this.menuWindows.SuspendLayout();
|
||||
|
@ -40,7 +41,7 @@
|
|||
this.windowsToolStripMenuItem,
|
||||
this.quitFullscreenModeToolStripMenuItem});
|
||||
this.menuContext.Name = "contextMenuStrip1";
|
||||
this.menuContext.Size = new System.Drawing.Size(186, 70);
|
||||
this.menuContext.Size = new System.Drawing.Size(186, 48);
|
||||
//
|
||||
// windowsToolStripMenuItem
|
||||
//
|
||||
|
@ -48,31 +49,31 @@
|
|||
this.windowsToolStripMenuItem.Image = global::OnTopReplica.Properties.Resources.window_multiple16;
|
||||
this.windowsToolStripMenuItem.Name = "windowsToolStripMenuItem";
|
||||
this.windowsToolStripMenuItem.Size = new System.Drawing.Size(185, 22);
|
||||
this.windowsToolStripMenuItem.Text = Strings.MenuWindows;
|
||||
this.windowsToolStripMenuItem.ToolTipText = Strings.MenuWindowsTT;
|
||||
this.windowsToolStripMenuItem.Text = global::OnTopReplica.Strings.MenuWindows;
|
||||
this.windowsToolStripMenuItem.ToolTipText = global::OnTopReplica.Strings.MenuWindowsTT;
|
||||
this.windowsToolStripMenuItem.DropDownOpening += new System.EventHandler(this.Menu_Windows_opening);
|
||||
//
|
||||
// quitFullscreenModeToolStripMenuItem
|
||||
//
|
||||
this.quitFullscreenModeToolStripMenuItem.Image = global::OnTopReplica.Properties.Resources.close_new;
|
||||
this.quitFullscreenModeToolStripMenuItem.Name = "quitFullscreenModeToolStripMenuItem";
|
||||
this.quitFullscreenModeToolStripMenuItem.Size = new System.Drawing.Size(185, 22);
|
||||
this.quitFullscreenModeToolStripMenuItem.Text = Strings.MenuQuitFullscreen;
|
||||
this.quitFullscreenModeToolStripMenuItem.Click += new System.EventHandler(this.Menu_Quit_click);
|
||||
//
|
||||
// menuWindows
|
||||
//
|
||||
this.menuWindows.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.noneToolStripMenuItem});
|
||||
this.menuWindows.Name = "menuWindows";
|
||||
this.menuWindows.OwnerItem = this.windowsToolStripMenuItem;
|
||||
this.menuWindows.Size = new System.Drawing.Size(153, 48);
|
||||
this.menuWindows.Size = new System.Drawing.Size(118, 26);
|
||||
//
|
||||
// noneToolStripMenuItem
|
||||
//
|
||||
this.noneToolStripMenuItem.Name = "noneToolStripMenuItem";
|
||||
this.noneToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.noneToolStripMenuItem.Text = Strings.MenuWindowsNone;
|
||||
this.noneToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
|
||||
this.noneToolStripMenuItem.Text = global::OnTopReplica.Strings.MenuWindowsNone;
|
||||
//
|
||||
// quitFullscreenModeToolStripMenuItem
|
||||
//
|
||||
this.quitFullscreenModeToolStripMenuItem.Image = global::OnTopReplica.Properties.Resources.close_new;
|
||||
this.quitFullscreenModeToolStripMenuItem.Name = "quitFullscreenModeToolStripMenuItem";
|
||||
this.quitFullscreenModeToolStripMenuItem.Size = new System.Drawing.Size(185, 22);
|
||||
this.quitFullscreenModeToolStripMenuItem.Text = global::OnTopReplica.Strings.MenuQuitFullscreen;
|
||||
this.quitFullscreenModeToolStripMenuItem.Click += new System.EventHandler(this.Menu_Quit_click);
|
||||
//
|
||||
// _thumbnail
|
||||
//
|
||||
|
@ -99,10 +100,9 @@
|
|||
this.ContextMenuStrip = this.menuContext;
|
||||
this.Controls.Add(this._thumbnail);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "FullscreenForm";
|
||||
this.ShowInTaskbar = false;
|
||||
this.Text = "OnTopReplica Fullscreen";
|
||||
this.TopMost = true;
|
||||
this.TransparencyKey = System.Drawing.Color.Black;
|
||||
this.menuContext.ResumeLayout(false);
|
||||
this.menuWindows.ResumeLayout(false);
|
||||
|
|
|
@ -19,8 +19,14 @@ namespace OnTopReplica {
|
|||
Asztal.Szótár.NativeToolStripRenderer.SetToolStripRenderer(new Control[] {
|
||||
menuContext, menuWindows
|
||||
});
|
||||
|
||||
_cursorTimer = new Timer();
|
||||
_cursorTimer.Interval = 1000;
|
||||
_cursorTimer.Tick += new EventHandler(_cursorTimer_Tick);
|
||||
}
|
||||
|
||||
Timer _cursorTimer;
|
||||
|
||||
WindowHandle _lastHandle;
|
||||
WindowManager _manager = new WindowManager(WindowManager.EnumerationMode.TaskWindows);
|
||||
|
||||
|
@ -66,6 +72,43 @@ namespace OnTopReplica {
|
|||
CloseRequest(this, new CloseRequestEventArgs(_lastHandle));
|
||||
}
|
||||
|
||||
protected override void OnActivated(EventArgs e) {
|
||||
_cursorTimer.Start();
|
||||
|
||||
base.OnActivated(e);
|
||||
}
|
||||
|
||||
protected override void OnDeactivate(EventArgs e) {
|
||||
Cursor.Show();
|
||||
_cursorTimer.Stop();
|
||||
|
||||
base.OnDeactivate(e);
|
||||
}
|
||||
|
||||
Point? _lastPos = null;
|
||||
|
||||
protected override void OnMouseMove(MouseEventArgs e) {
|
||||
if (_lastPos.HasValue) {
|
||||
int distance = 0;
|
||||
distance += Math.Abs(_lastPos.Value.X - e.X);
|
||||
distance += Math.Abs(_lastPos.Value.Y - e.Y);
|
||||
|
||||
if (distance > 8) {
|
||||
Cursor.Show();
|
||||
_cursorTimer.Start();
|
||||
}
|
||||
}
|
||||
|
||||
_lastPos = e.Location;
|
||||
|
||||
base.OnMouseMove(e);
|
||||
}
|
||||
|
||||
void _cursorTimer_Tick(object sender, EventArgs e) {
|
||||
Cursor.Hide();
|
||||
_cursorTimer.Stop();
|
||||
}
|
||||
|
||||
protected override void OnDoubleClick(EventArgs e) {
|
||||
OnCloseRequest();
|
||||
|
||||
|
@ -75,7 +118,10 @@ namespace OnTopReplica {
|
|||
protected override void OnKeyUp(KeyEventArgs e) {
|
||||
if (e.KeyCode == Keys.Escape) {
|
||||
e.Handled = true;
|
||||
|
||||
OnCloseRequest();
|
||||
}
|
||||
else if (e.KeyCode == Keys.Enter && e.Modifiers == Keys.Alt) {
|
||||
e.Handled = true;
|
||||
OnCloseRequest();
|
||||
}
|
||||
|
||||
|
|
|
@ -123,4 +123,132 @@
|
|||
<metadata name="menuWindows.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>142, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=2.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">
|
||||
<value>
|
||||
AAABAAEAMDAAAAEAGACoHAAAFgAAACgAAAAwAAAAYAAAAAEAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AABBdztCdjhDeDpCdzlCdjpDdzpFfD5EeTpGfDtFfDtFfjpJgjtHfjlHgTpIgjtNiDxKgzlKhDlKiDhO
|
||||
iztNijpMjDpPjTtSkz1Vlz1YnD1bpD5dpz1hqT9lrEFkrT5oskJnsD1prT1orD1mqTlmpjlkpDdmozpj
|
||||
nDVhmDRekzJekTJekDNjkjNeijFbiC1ahSxDeDlDdztDdztEdzpFejpEeDhEdzlEeDpGezhGfThGfDhH
|
||||
fThHfjlIgjhIgzpKgzhJhDhKhjhLhzlNiTlLiDlPjTlVlz1VmDxYnTxdoT5gqD1iqj9jrkBlr0BnsEBp
|
||||
rz1nrT1orTtmqzhlpzhopjpjoDVgmzNgmDNflTJejy9cjy5gkS9bii5ciC1chyxbhytCdjpDdzlDeDlG
|
||||
eztDdjhDdzhDdzdEeDhHfDdFejZFezdGfTdJgzlIgDdIgTlKgzdLhDhKhjlLhjhMiTlQkDpSlDtXmDtY
|
||||
nTtcozxepz1hqz1jrT1oskBorztpsDxnrjxorTtmqzplqTppqjxioDVfnDRfmDNflTJdkjBekjFcji9c
|
||||
iy9biS1ciCxciCtgjS1DdjhEezpDeDhCdTdEdTZEdjVFeDVFeDVHdzREezZGfjdIfTZHfTdIgDdJgjdK
|
||||
hDZKhDZKhDZMhzdTkztSlDpWmjtanjtcozxepz1gqD1kqzxorz1nsD5psDxorztlrTtmqzpmqDxkpTli
|
||||
oDZgnTVelzNclTJdkjFilTNaji5biy5bii1bii1ciSxfjSxdiypGejpCdTZDdThFdTdGeDdFeDZEdzdG
|
||||
eDZIejhLgTpIeztLfjdKgDlLgjlMhDpMhTlOhTpPjDtTkTtWlTxZmj5coT5gpT9ipz9kqD9prUForj5p
|
||||
sEBpsEBpsT9prz9nrD9qrEJkozlloDlinThhmjdgmDZhlzRflDJbjzBcjTFejTBdjDBejC9eiyxejStf
|
||||
kC1DdTdEdzhFdzlIeDpIeTtKejpKez5NfT1QgD9QgUBPgUBShD9RhUBSh0BTiEFVi0BdlUVak0JdmUNi
|
||||
n0VlokVnpkZoqUVprERusEVusUVts0ZutEdvs0VvskZusEVvrkZrqEJppENnokJmnz9mnT1qnzxkmDpi
|
||||
lDhikjZhkjVjkDVmlTZgjzFhjy9jki5ili1DdjdGeDpIeDtMeT1Pe0BRfkRWhkdWg0ZahklbiUtaiUxd
|
||||
i0tcjExej0tglE1kmU5mnE9nn05ro05up09wq1Bzr1F2s1F1s053tFB2tlF3tlF4tlB2tlB4tlF2sU9z
|
||||
rU5yqk1yqExwpUxwpUlypkluoUhsnEZsm0VrmkJql0Jtmz5pljtolzhplzZomjNspTJGeDpKeTpMej5S
|
||||
e0FVgUdahkteiE5jjFNokFdpkllqk1tslltsmVxyoV5xol52pF12p196rWB7sGB+smGAtmCEumKCuWCD
|
||||
umGCul+Du1+Du2CEvF+FvWGDuF+Dt16As11/sFyAsFyAr1t+rVp9qVt8qFp7pVd6plV5pVN2oU9zn0px
|
||||
oUZunj9wojxwqThwrjZIdzpOeD5SfkJbhEpehU5ljFZskV1zl2R5nGp8oWx9oXCBpXCDq3KErXKGr3KJ
|
||||
tHSLtnSLuHSNvXWPvnSRwHSRw3WSwnWSwXOSwXSSw3OSw3STw3ORwHKQv3KQvXGPu3GPunGQunKNt3GN
|
||||
tXCMtG+NtG+MsmyMs2uGrWWErWGArFp+qlR7rEt5sEV3tj91vzxMdjtRfUFZgUlhhlFqjFp0lWR8nG+G
|
||||
o3iPqoCUr4SWtYmZuImau4ubvoudwYyfw4ufxYyhx42jyo6jyoykyoylzI2lzI2ky4ukyo2kzYyjyouj
|
||||
yoqjyYqjyIuixouixomix4uhxIqhwomhwoihwYeiwYeiwYedvoGZvH2UunSQuWyOumKGuleDv1CAykl6
|
||||
2UFSfEFWfkVghE9qjVuIhYP89e3z9e/n9PDn9fDn9PHn9fHo9fHp9vLq9fHq9fHp9fDq9PDr9O/r9O/s
|
||||
9O7s9O3s8+3s8+vs8urs8unr8efr8Obs8Obt8OXu8eXv8OTw8eTz9OX4+Of8+ez9+ez++e3++en9+ej9
|
||||
+OX89+L89t/69OT57uKUzGaN01yF4lGB+EtQeT5bgUpliVZzkmONiIPk6efS8vSj6vCl6++n6++o7O6q
|
||||
7O6t7e6v7u6x7u6y7ey27uy47uy88Oy/8OvC8OrE8OjG8ObK8OTL8eDO8d7T8d7a8eDg8uLk8uTm8+Po
|
||||
9N/s+Nny+9L4/Nb7/NL8/M/8/Mr8/Mf8+8H8+bb89rD699f68eGe33aS62SL/Fp/+1BTe0Neg01ri1t6
|
||||
lWqWkYzc6+qj6u441d861t091ts/19lD2NhJ2dhO2tdR29VU29Jb3tFh4NFq5dJx6NF66tGK69WW69in
|
||||
7Nmu7dS27c+57ci07cOr7b6n7cC07rzH8bPO9KfV9pva85jp74vt64Hv6Hbx5nDy5Gbz4FT120r466r6
|
||||
79qm9IGY/HGM+2R2qUtWe0NihFBvjV9/mG+dmZTd7Ouj6e031Nw61Ns91dlA1tdC19VG2dRL29NX4NZe
|
||||
5Nhl6Nlm69Vt8NJ289KB9tGR9tOd9dKr9NGy8sy78cnB9MS7872x8reu8bq187jF97XC76LD55LF33nS
|
||||
2mna1Vze0F3iz1jnzVLsy0bwxj/346b57tuo/YmZ/XmDoFt4lUpXfENkhFFyj2GFnnSjnpre7euh6Ooz
|
||||
09Y21tc52dc62NI81sxA1shE2MVQ3chZ5cth68tg7MRk67ts67d17bSI8LeT7rWh67Oj4qqo3KOo3Jmd
|
||||
2ouP2YCL2YGV24Cn34Kp13Wx1Hm0y2bCx1vKwUfUw0fbwUTgvkHluj7suzv236X57tyq75CUrXOHol95
|
||||
l05ZekRmhVJ4lWWIoHamop7e7eug5uYxzcw00M040sw50cc+1chC1sRI2MFS2L1b375k5r5l57Ro5Khs
|
||||
3aBx2pd63JN/24mD14CCzXSGym2Lzm+OymuPxGeVu2CWul6avF6dtFOptFizsky3ska+sDvItT3Stz/Z
|
||||
tjvftDrntzr03qX479ynvIyYsXaHomB6mE9bfkRpiFN5lmSLo3mopKDe7Oqh4+E3y8U70Mc/0sY+zrxF
|
||||
0rtM1rlT2rVW1qte2qdo36Jz459z2ZFwzIJsv3F1wnJ3w3J+wmx8uV2Cs1CDsVGErE2EpUqGm0GKlz6R
|
||||
ljualTekmz+snT2unjq0oDDAqDHJqzXPqjXTpjTaqjXu2KP37dyrwJCXrniJpGJ7mVBcgUVrjFR6mGaK
|
||||
p3iopKDf7Oml49s+yblFz71J0LtIzLFO0K5T0KhZz6JbyZVix4xryYh1y4NzxHtwuW1sr150sFl0rVZ3
|
||||
qk92okN9njl+nzx+mTt8kTl8hS9/gSqFfyeLfyWRgSWZhSWehySmjiarkSm1li68ly7GmS7NnDDo0qH2
|
||||
7NypvI6Xr3eKo2N7mFBehEVrj1V6nGaMp3mopKDf7Oen4NVDw6tJyK5Nx6pLwJ1OvJFRuYlWt4Fct31l
|
||||
uXhsunR0uG5xsGNuplVsnkVxnT9wmj1wlDZuiy10hyN2gyF4fx95ex55dx17dR1/dR2Fdx6LeR+SfCCa
|
||||
giKjiiKokCiwlCq0lS++ly/FmDHm0KD17NypvY6Yr3iKpGR7l09fiEVsk1R7nGWMqXiopKDf6uWn2s1C
|
||||
spJItJNLso9MsIhMqHtNoW9PmWNVmV5enVpln1ZomktmlENljjdrjzFxjyhyiyJwhB5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lQaQdUaAVZZwRibQRqcwVrcgVqcAVvdAN7fgSA
|
||||
gAR8ewR5dgR5dgR6dgR3cwRzbwRvbANraQNoZwNnZwNjZQNeXwNWVwNRUQNOTgNOTQRQTQVTTwdYUgle
|
||||
VgtkXAxrYg69uJLv6t2dr3ePpGSDmlJ4kUJVeThef0Nqh1B3kV+RjIfk493U28qotZGptpCsuZCvuo+x
|
||||
uY6zuY63vI26v4+7v4+6vo+9v43Bw47DxI7BwY7AwI7BwI7BwI6/vo69vY68u427uo25uo24uY23uI20
|
||||
tY2xso2vr42tro2tro6uro6vr4+ysI+0spC2s5G5tpHd28v38umVqWyJnlt9lUt0jT9TeDVbfj5lhEpw
|
||||
jVaHgn308evo5uDe4dbh4tfj5Njj5djk5djk5djl5djm5tnm5tnm5tnm5tjn59fn59fn5tfn5dfn5djn
|
||||
5djm5dfm5Nfm5Nfl5Nfl5Nfl5Njl5Njk5Njk49jj49jj4tjj4tjj4tjj4tjk49nk4tnk4tfk4dbr6OH9
|
||||
9u+KoF+AmFB3kENvijhReDJWezljhkRnh0rV1NSLhX+Qi4eYk4+emZWinpmloZymop2mop2mop2mop2m
|
||||
op2mop2lop2lop2lop2loZ2loZ2loZ2loZ2loZ2loZ2loZ2loZ2lop2lop2mop2mop2mop2mop2mop2m
|
||||
op2mop2mop2loJyhnZicmJOVkYyPioWSj4t/lU53kERxiTlqhTBOdi5WfTVXfzlehUJmi0lvklJ1m1h9
|
||||
p2GBrmaGuWqJxm6K1nCK6XKL6XOHyG+EnGmFnWqGnmiIoGqGn2mHoGqHoGmIommIo2qJpGqKpWmKpmqK
|
||||
p2qMqGqMqWqMqWqNqWqNqWuMqGqOqGqOqGqOp2mNpmiMpGeLomSIoF+DnFh+l1B7k0l0jkBuijhrhTBm
|
||||
gypLeCxPei9VfzVZhTheij1lkkNtn0tup05yslN1xVV411l27Fp47F9xplVyjVFxjlFzkFJzklN0klN1
|
||||
klJ2lFN2lVF2llJ2llJ3mVN4mlJ5m1J5nVF6n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||
WindowManager _windowManager;
|
||||
WindowHandle _lastWindowHandle = null;
|
||||
|
||||
//Override position and size on startup
|
||||
bool _startOverride = false;
|
||||
Point _startLocation;
|
||||
Size _startSize;
|
||||
|
||||
public MainForm(Point location, Size size)
|
||||
: this() {
|
||||
_startOverride = true;
|
||||
_startLocation = location;
|
||||
_startSize = size;
|
||||
}
|
||||
|
||||
public MainForm() {
|
||||
//Wheel handler
|
||||
|
@ -128,8 +139,6 @@ namespace OnTopReplica
|
|||
|
||||
#region Side Panels
|
||||
|
||||
/*const int cRegionBoxWidth = 190;
|
||||
const int cRegionWithPadding = cRegionBoxWidth + 5;*/
|
||||
const int cWindowBoundary = 10;
|
||||
|
||||
bool _regionBoxShowing = false;
|
||||
|
@ -209,6 +218,7 @@ namespace OnTopReplica
|
|||
if (taskIcon != null) {
|
||||
taskIcon.Visible = false;
|
||||
taskIcon.Dispose();
|
||||
taskIcon = null;
|
||||
}
|
||||
|
||||
//Store settings
|
||||
|
@ -254,15 +264,17 @@ namespace OnTopReplica
|
|||
}
|
||||
|
||||
protected override void OnShown(EventArgs e) {
|
||||
base.OnShown(e);
|
||||
|
||||
//Do some checks in order to verify the presence of desktop composition
|
||||
if (!VistaControls.OsSupport.IsVistaOrBetter) {
|
||||
MessageBox.Show(Strings.ErrorNoDwm, Strings.ErrorNoDwmTitle, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
|
||||
base.OnShown(e);
|
||||
this.Close();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (!VistaControls.OsSupport.IsCompositionEnabled) {
|
||||
VistaControls.TaskDialog.TaskDialog dlg = new VistaControls.TaskDialog.TaskDialog(Strings.ErrorDwmOff, Strings.ErrorGenericTitle, Strings.ErrorDwmOffContent);
|
||||
dlg.ExpandedControlText = Strings.ErrorDetailsAero;
|
||||
|
@ -271,7 +283,6 @@ namespace OnTopReplica
|
|||
dlg.CommonIcon = VistaControls.TaskDialog.TaskDialogIcon.Stop;
|
||||
dlg.Show();
|
||||
|
||||
base.OnShown(e);
|
||||
this.Close();
|
||||
|
||||
return;
|
||||
|
@ -283,13 +294,17 @@ namespace OnTopReplica
|
|||
//Install NotifyIcon
|
||||
taskIcon = new NotifyIcon();
|
||||
taskIcon.Text = Strings.ApplicationName;
|
||||
taskIcon.Icon = Properties.Resources.window_multiple161;
|
||||
taskIcon.Icon = Properties.Resources.main_icon;
|
||||
taskIcon.Visible = true;
|
||||
taskIcon.ContextMenuStrip = menuIconContext;
|
||||
taskIcon.DoubleClick += new EventHandler(Icon_doubleclick);
|
||||
|
||||
//Reload settings
|
||||
if (Settings.Default.WindowPositionStored) {
|
||||
//Reload position settings
|
||||
if (_startOverride) {
|
||||
Location = _startLocation;
|
||||
Size = _startSize;
|
||||
}
|
||||
else if (Settings.Default.WindowPositionStored) {
|
||||
Location = Settings.Default.LastLocation;
|
||||
ClientSize = Settings.Default.LastSize;
|
||||
}
|
||||
|
@ -297,13 +312,16 @@ namespace OnTopReplica
|
|||
//Glassify window
|
||||
this.GlassMargins = new VistaControls.Dwm.Margins(-1);
|
||||
SetGlass(Settings.Default.UseGlass);
|
||||
|
||||
base.OnShown(e);
|
||||
}
|
||||
|
||||
/*protected override void OnMouseDown(MouseEventArgs e) {
|
||||
base.OnMouseDown(e);
|
||||
}*/
|
||||
protected override void OnKeyUp(KeyEventArgs e) {
|
||||
if (e.KeyCode == Keys.Enter && e.Modifiers == Keys.Alt) {
|
||||
e.Handled = true;
|
||||
ToggleFullscreen();
|
||||
}
|
||||
|
||||
base.OnKeyUp(e);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
@ -562,8 +580,8 @@ namespace OnTopReplica
|
|||
var screen = Screen.FromControl(this);
|
||||
|
||||
Location = new Point(
|
||||
screen.WorkingArea.Left - SystemInformation.FrameBorderSize.Width,
|
||||
screen.WorkingArea.Top - SystemInformation.FrameBorderSize.Height
|
||||
screen.WorkingArea.Left - ChromeBorderHorizontal,
|
||||
screen.WorkingArea.Top - ChromeBorderVertical
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -571,8 +589,8 @@ namespace OnTopReplica
|
|||
var screen = Screen.FromControl(this);
|
||||
|
||||
Location = new Point(
|
||||
screen.WorkingArea.Width - Size.Width + SystemInformation.FrameBorderSize.Width,
|
||||
screen.WorkingArea.Top - SystemInformation.FrameBorderSize.Height
|
||||
screen.WorkingArea.Width - Size.Width + ChromeBorderHorizontal,
|
||||
screen.WorkingArea.Top - ChromeBorderVertical
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -580,8 +598,8 @@ namespace OnTopReplica
|
|||
var screen = Screen.FromControl(this);
|
||||
|
||||
Location = new Point(
|
||||
screen.WorkingArea.Left - SystemInformation.FrameBorderSize.Width,
|
||||
screen.WorkingArea.Height - Size.Height + SystemInformation.FrameBorderSize.Height
|
||||
screen.WorkingArea.Left - ChromeBorderHorizontal,
|
||||
screen.WorkingArea.Height - Size.Height + ChromeBorderVertical
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -589,11 +607,29 @@ namespace OnTopReplica
|
|||
var screen = Screen.FromControl(this);
|
||||
|
||||
Location = new Point(
|
||||
screen.WorkingArea.Width - Size.Width + SystemInformation.FrameBorderSize.Width,
|
||||
screen.WorkingArea.Height - Size.Height + SystemInformation.FrameBorderSize.Height
|
||||
screen.WorkingArea.Width - Size.Width + ChromeBorderHorizontal,
|
||||
screen.WorkingArea.Height - Size.Height + ChromeBorderVertical
|
||||
);
|
||||
}
|
||||
|
||||
private int ChromeBorderVertical {
|
||||
get {
|
||||
if (FormBorderStyle == FormBorderStyle.SizableToolWindow)
|
||||
return SystemInformation.FrameBorderSize.Height;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
private int ChromeBorderHorizontal {
|
||||
get {
|
||||
if (FormBorderStyle == FormBorderStyle.SizableToolWindow)
|
||||
return SystemInformation.FrameBorderSize.Width;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
private void Menu_Reduce_click(object sender, EventArgs e) {
|
||||
//Hide form
|
||||
this.Hide();
|
||||
|
@ -607,10 +643,21 @@ namespace OnTopReplica
|
|||
}
|
||||
|
||||
private void Menu_Chrome_click(object sender, EventArgs e) {
|
||||
if (FormBorderStyle == FormBorderStyle.SizableToolWindow)
|
||||
if (FormBorderStyle == FormBorderStyle.SizableToolWindow) {
|
||||
FormBorderStyle = FormBorderStyle.None;
|
||||
else
|
||||
Location = new Point {
|
||||
X = Location.X + SystemInformation.FrameBorderSize.Width,
|
||||
Y = Location.Y + SystemInformation.FrameBorderSize.Height
|
||||
};
|
||||
}
|
||||
else {
|
||||
FormBorderStyle = FormBorderStyle.SizableToolWindow;
|
||||
Location = new Point {
|
||||
X = Location.X - SystemInformation.FrameBorderSize.Width,
|
||||
Y = Location.Y - SystemInformation.FrameBorderSize.Height
|
||||
};
|
||||
}
|
||||
|
||||
Invalidate();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
|
@ -21,11 +21,15 @@
|
|||
</ExcludedPermissions>
|
||||
<ApplicationManifest>Properties\OnTopReplica.exe.manifest</ApplicationManifest>
|
||||
<SignAssembly>false</SignAssembly>
|
||||
<ManifestCertificateThumbprint>EF37CC602CF25CE1023AEAAF8B200801D77452D5</ManifestCertificateThumbprint>
|
||||
<ManifestCertificateThumbprint>DB79D77572EF10838D6A2CECDDE738C6570E7995</ManifestCertificateThumbprint>
|
||||
<ManifestKeyFile>OnTopReplica_TemporaryKey.pfx</ManifestKeyFile>
|
||||
<SignManifests>true</SignManifests>
|
||||
<TargetFrameworkSubset>
|
||||
</TargetFrameworkSubset>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
<UpgradeBackupLocation />
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Web</InstallFrom>
|
||||
|
@ -45,8 +49,8 @@
|
|||
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
|
||||
<WebPage>publish.htm</WebPage>
|
||||
<OpenBrowserOnPublish>false</OpenBrowserOnPublish>
|
||||
<ApplicationRevision>3</ApplicationRevision>
|
||||
<ApplicationVersion>2.6.0.%2a</ApplicationVersion>
|
||||
<ApplicationRevision>2</ApplicationRevision>
|
||||
<ApplicationVersion>2.7.2.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
|
@ -250,6 +254,8 @@
|
|||
<None Include="Assets\flag_usa.png" />
|
||||
<None Include="Assets\flag_ita.png" />
|
||||
<Content Include="Assets\icon.ico" />
|
||||
<None Include="OnTopReplica_TemporaryKey.pfx" />
|
||||
<None Include="Resources\25.png" />
|
||||
<None Include="Assets\x-oblique.png" />
|
||||
<None Include="Assets\xiao_up.png" />
|
||||
<None Include="Assets\xiao_down.png" />
|
||||
|
@ -262,8 +268,18 @@
|
|||
<None Include="Assets\pos_bottomleft.png" />
|
||||
<None Include="Assets\window_switch.png" />
|
||||
<None Include="Assets\icon.png" />
|
||||
<None Include="OnTopReplica_TemporaryKey.pfx" />
|
||||
<None Include="OnTopReplica_TemporaryKey_old.pfx" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PublishFile Include="it\OnTopReplica.resources">
|
||||
<Visible>False</Visible>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Satellite</FileType>
|
||||
</PublishFile>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<PublishUrlHistory>publish\</PublishUrlHistory>
|
||||
<InstallUrlHistory>http://www.klopfenstein.net/download.aspx%3ffile=ontopreplica%252fsetup.exe/|http://www.klopfenstein.net/public/Uploads/ontopreplica/|http://www.klopfenstein.net/lorenz/programming/ontopreplica/|http://www.klopfenstein.net/lorenz/programming/|http://lorenz.klopfenstein.net/</InstallUrlHistory>
|
||||
<InstallUrlHistory>http://www.klopfenstein.net/public/Uploads/ontopreplica/|http://www.klopfenstein.net/download.aspx%3ffile=ontopreplica%252fsetup.exe/|http://www.klopfenstein.net/lorenz/programming/ontopreplica/|http://www.klopfenstein.net/lorenz/programming/|http://lorenz.klopfenstein.net/</InstallUrlHistory>
|
||||
<SupportUrlHistory>http://www.klopfenstein.net/lorenz.aspx/ontopreplica|http://www.klopfenstein.net/loader.php%3fsection=lorenz&page=on_top_replica|http://www.klopfenstein.net/loader.php%3fsection=lorenz&page=programming_on_top_replica</SupportUrlHistory>
|
||||
<UpdateUrlHistory>http://www.klopfenstein.net/lorenz/programming/ontopreplica/</UpdateUrlHistory>
|
||||
<UpdateUrlHistory>http://www.klopfenstein.net/public/Uploads/ontopreplica/|http://www.klopfenstein.net/lorenz/programming/ontopreplica/</UpdateUrlHistory>
|
||||
<BootstrapperUrlHistory>
|
||||
</BootstrapperUrlHistory>
|
||||
<FallbackCulture>en-US</FallbackCulture>
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -4,6 +4,7 @@ using System.Windows.Forms;
|
|||
using OnTopReplica.Properties;
|
||||
using System.Threading;
|
||||
using System.Globalization;
|
||||
using System.Drawing;
|
||||
|
||||
namespace OnTopReplica
|
||||
{
|
||||
|
@ -22,13 +23,27 @@ namespace OnTopReplica
|
|||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
|
||||
bool reloadSettings = false;
|
||||
Point reloadLocation = new Point();
|
||||
Size reloadSize = new Size();
|
||||
|
||||
do {
|
||||
//Update language settings
|
||||
Thread.CurrentThread.CurrentUICulture = _languageChangeCode;
|
||||
Settings.Default.Language = _languageChangeCode;
|
||||
_languageChangeCode = null;
|
||||
|
||||
Application.Run(new MainForm());
|
||||
Form form;
|
||||
if (reloadSettings)
|
||||
form = new MainForm(reloadLocation, reloadSize);
|
||||
else
|
||||
form = new MainForm();
|
||||
|
||||
Application.Run(form);
|
||||
|
||||
reloadSettings = true;
|
||||
reloadLocation = form.Location;
|
||||
reloadSize = form.Size;
|
||||
}
|
||||
while(_languageChangeCode != null);
|
||||
|
||||
|
|
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("2.6.0.1")]
|
||||
[assembly: AssemblyFileVersion("2.6.0.1")]
|
||||
[assembly: AssemblyVersion("2.7.2.0")]
|
||||
[assembly: AssemblyFileVersion("2.7.2.0")]
|
||||
|
|
21
OnTopReplica/Properties/Resources.Designer.cs
generated
21
OnTopReplica/Properties/Resources.Designer.cs
generated
|
@ -1,7 +1,7 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.3053
|
||||
// Runtime Version:2.0.50727.4927
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
|
@ -67,7 +67,8 @@ namespace OnTopReplica.Properties {
|
|||
///body {
|
||||
/// font-family: Segoe UI, Arial, sans-serif;
|
||||
/// font-size: 0.8em;
|
||||
/// margin: 0; padding: 0;
|
||||
/// margin: 0;
|
||||
/// padding: 0.75em;
|
||||
///}
|
||||
///h1 {
|
||||
/// font-size: 1.4em;
|
||||
|
@ -94,7 +95,7 @@ namespace OnTopReplica.Properties {
|
|||
///
|
||||
/// <h1>License</h1>
|
||||
///
|
||||
/// <p><b>OnTopReplica</b> is licensed under the <a href="http://opensource.org/licenses/ms-rl.htm [rest of string was truncated]";.
|
||||
/// <p><b>OnTopReplica</b> is licensed under the <a href="http://opensource.org/licenses/m [rest of string was truncated]";.
|
||||
/// </summary>
|
||||
internal static string about {
|
||||
get {
|
||||
|
@ -144,6 +145,13 @@ namespace OnTopReplica.Properties {
|
|||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Icon main_icon {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("main_icon", resourceCulture);
|
||||
return ((System.Drawing.Icon)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap ok {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("ok", resourceCulture);
|
||||
|
@ -193,6 +201,13 @@ namespace OnTopReplica.Properties {
|
|||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap refresh {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("refresh", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap thumbs_up {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("thumbs_up", resourceCulture);
|
||||
|
|
|
@ -118,14 +118,20 @@
|
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="ok" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\ok.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\icon.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="component" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\component.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="pos_bottomleft" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\pos_bottomleft.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="flag_ita" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\flag_ita.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="flag_usa" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\flag_usa.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="thumbs_up" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\thumbs_up.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
|
@ -139,6 +145,9 @@
|
|||
<data name="reduce" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\reduce.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="pos_bottomleft" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\pos_bottomleft.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="window_opacity16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\window_opacity16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
@ -157,20 +166,14 @@
|
|||
<data name="close_new" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\x-oblique.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="flag_usa" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\flag_usa.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="window_border16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\window_border16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="pos_topright" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\pos_topright.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="about" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\about.html;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
|
||||
</data>
|
||||
<data name="ok" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\ok.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="window_border16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\window_border16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="pos_null" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\pos_null.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
|
@ -184,7 +187,10 @@
|
|||
<data name="pos_bottomright" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\pos_bottomright.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="flag_ita" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\flag_ita.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="refresh" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\25.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="main_icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Assets\icon.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
4
OnTopReplica/Properties/Settings.Designer.cs
generated
4
OnTopReplica/Properties/Settings.Designer.cs
generated
|
@ -1,7 +1,7 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.3053
|
||||
// Runtime Version:2.0.50727.4927
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
|
@ -48,7 +48,7 @@ namespace OnTopReplica.Properties {
|
|||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
||||
public bool AutoFitOnResize {
|
||||
get {
|
||||
return ((bool)(this["AutoFitOnResize"]));
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
<Setting Name="AutoFitOnResize" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">False</Value>
|
||||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
<Setting Name="Opacity" Type="System.Byte" Scope="User">
|
||||
<Value Profile="(Default)">255</Value>
|
||||
|
|
8
OnTopReplica/RegionBox.Designer.cs
generated
8
OnTopReplica/RegionBox.Designer.cs
generated
|
@ -85,7 +85,7 @@
|
|||
this.groupBox1.Size = new System.Drawing.Size(223, 282);
|
||||
this.groupBox1.TabIndex = 0;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Regions";
|
||||
this.groupBox1.Text = Strings.RegionsTitle;
|
||||
//
|
||||
// numH
|
||||
//
|
||||
|
@ -200,7 +200,7 @@
|
|||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(49, 17);
|
||||
this.label6.TabIndex = 9;
|
||||
this.label6.Text = "Height";
|
||||
this.label6.Text = Strings.RegionsHeight;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
|
@ -211,7 +211,7 @@
|
|||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(44, 17);
|
||||
this.label7.TabIndex = 8;
|
||||
this.label7.Text = "Width";
|
||||
this.label7.Text = Strings.RegionsWidth;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
|
@ -244,7 +244,7 @@
|
|||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(103, 17);
|
||||
this.label1.TabIndex = 3;
|
||||
this.label1.Text = "Current region:";
|
||||
this.label1.Text = Strings.RegionsCurrentRegion;
|
||||
//
|
||||
// buttonDelete
|
||||
//
|
||||
|
|
110
OnTopReplica/Strings.Designer.cs
generated
110
OnTopReplica/Strings.Designer.cs
generated
|
@ -1,7 +1,7 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.3074
|
||||
// Runtime Version:2.0.50727.4918
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
|
@ -60,6 +60,85 @@ namespace OnTopReplica {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Abort update process..
|
||||
/// </summary>
|
||||
internal static string AboutButtonCancelTT {
|
||||
get {
|
||||
return ResourceManager.GetString("AboutButtonCancelTT", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Show details about OnTopReplica..
|
||||
/// </summary>
|
||||
internal static string AboutButtonExpanderTT {
|
||||
get {
|
||||
return ResourceManager.GetString("AboutButtonExpanderTT", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Reset all OnTopReplica settings..
|
||||
/// </summary>
|
||||
internal static string AboutButtonResetTT {
|
||||
get {
|
||||
return ResourceManager.GetString("AboutButtonResetTT", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Update OnTopReplica now..
|
||||
/// </summary>
|
||||
internal static string AboutButtonUpdateTT {
|
||||
get {
|
||||
return ResourceManager.GetString("AboutButtonUpdateTT", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to <html>
|
||||
/// <head>
|
||||
/// <style type="text/css">
|
||||
///body {
|
||||
/// font-family: Segoe UI, Arial, sans-serif;
|
||||
/// font-size: 0.8em;
|
||||
/// margin: 0;
|
||||
///padding: 0.75em;
|
||||
///}
|
||||
///h1 {
|
||||
/// font-size: 1.4em;
|
||||
/// font-weight: bold;
|
||||
///
|
||||
/// margin: 0 0 1em 0;
|
||||
/// padding: 0;
|
||||
///}
|
||||
///p {
|
||||
/// margin: 0.5em 0 0.5em 1em;
|
||||
/// padding: 0;
|
||||
///}
|
||||
///a {
|
||||
/// font-weight: bold;
|
||||
/// color: blue;
|
||||
///}
|
||||
///a:hover {
|
||||
/// color: red;
|
||||
///}
|
||||
/// </style>
|
||||
/// </head>
|
||||
///
|
||||
/// <body>
|
||||
///
|
||||
/// <h1>License</h1>
|
||||
///
|
||||
/// <p><b>OnTopReplica</b> is licensed under the <a href="http://opensource.org/licenses/ms- [rest of string was truncated]";.
|
||||
/// </summary>
|
||||
internal static string AboutDetails {
|
||||
get {
|
||||
return ResourceManager.GetString("AboutDetails", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to OnTopReplica.
|
||||
/// </summary>
|
||||
|
@ -106,6 +185,33 @@ namespace OnTopReplica {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Reset settings?.
|
||||
/// </summary>
|
||||
internal static string AskSettingReset {
|
||||
get {
|
||||
return ResourceManager.GetString("AskSettingReset", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to This will erase all settings of OnTopReplica, returning it to the original state right after installation (all saved information, like stored regions, will be lost)..
|
||||
/// </summary>
|
||||
internal static string AskSettingResetContent {
|
||||
get {
|
||||
return ResourceManager.GetString("AskSettingResetContent", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Reset settings.
|
||||
/// </summary>
|
||||
internal static string AskSettingResetTitle {
|
||||
get {
|
||||
return ResourceManager.GetString("AskSettingResetTitle", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Install OnTopReplica {0}?.
|
||||
/// </summary>
|
||||
|
@ -357,7 +463,7 @@ namespace OnTopReplica {
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to In this mode OnTopReplica will forward all left mouse clicks on it to the window that is being clones (this will allow you to do basic operations on the window without having to activate it).
|
||||
/// Looks up a localized string similar to If this mode is enabled, OnTopReplica will forward all left mouse clicks to the window that is being cloned (this will allow you to do basic mouse operations on the cloned window without having to activate it).
|
||||
///
|
||||
///To exit this mode, right-click on OnTopReplica and disable "Click forwarding" from the menu..
|
||||
/// </summary>
|
||||
|
|
|
@ -1,5 +1,110 @@
|
|||
<?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>
|
||||
|
@ -173,7 +278,7 @@ Per farlo, clicca col tasto destro del mouse sul desktop e poi su Personalizza.<
|
|||
<value>Ripristina posizione e grandezza</value>
|
||||
</data>
|
||||
<data name="MenuRecallTT" xml:space="preserve">
|
||||
<value>Imposta se OnTopReplica debba ripristinare posizione e grandezza in cui si trovava durante l'ultimo uso.</value>
|
||||
<value>Imposta se, al prossimo avvio di OnTopReplica, debbano essere ripristinate i valori di grandezza e posizione della finestra alla chiusura.</value>
|
||||
</data>
|
||||
<data name="MenuReduce" xml:space="preserve">
|
||||
<value>Riduci ad icona</value>
|
||||
|
@ -349,4 +454,78 @@ Puoi abilitare il Click-Through in futuro</value>
|
|||
|
||||
Per uscire da questa modalità, fai clic col destro su OnTopReplica e disabilita "Inoltro dei clic" dal menu.</value>
|
||||
</data>
|
||||
<data name="AskSettingReset" xml:space="preserve">
|
||||
<value>Resettare impostazioni?</value>
|
||||
</data>
|
||||
<data name="AskSettingResetContent" xml:space="preserve">
|
||||
<value>Questa procedura resetterà tutte le impostazioni di OnTopReplica e cancellerà tutte le informazioni memorizzate (come, ad esempio, le regioni salvate).</value>
|
||||
</data>
|
||||
<data name="AskSettingResetTitle" xml:space="preserve">
|
||||
<value>Reimposta</value>
|
||||
</data>
|
||||
<data name="AboutButtonCancelTT" xml:space="preserve">
|
||||
<value>Annulla il processo di aggiornamento.</value>
|
||||
</data>
|
||||
<data name="AboutButtonExpanderTT" xml:space="preserve">
|
||||
<value>Mostra dettagli su OnTopReplica.</value>
|
||||
</data>
|
||||
<data name="AboutButtonResetTT" xml:space="preserve">
|
||||
<value>Resetta tutte le impostazioni di OnTopReplica.</value>
|
||||
</data>
|
||||
<data name="AboutButtonUpdateTT" xml:space="preserve">
|
||||
<value>Aggiorna OnTopReplica ora.</value>
|
||||
</data>
|
||||
<data name="AboutDetails" xml:space="preserve">
|
||||
<value><html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family: Segoe UI, Arial, sans-serif;
|
||||
font-size: 0.8em;
|
||||
margin: 0;
|
||||
padding: 0.75em;
|
||||
}
|
||||
h1 {
|
||||
font-size: 1.4em;
|
||||
font-weight: bold;
|
||||
|
||||
margin: 0 0 1em 0;
|
||||
padding: 0;
|
||||
}
|
||||
p {
|
||||
margin: 0.5em 0 0.5em 1em;
|
||||
padding: 0;
|
||||
}
|
||||
a {
|
||||
font-weight: bold;
|
||||
color: blue;
|
||||
}
|
||||
a:hover {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>Licenza d'utilizzo</h1>
|
||||
|
||||
<p><b>OnTopReplica</b> è rilasciato sotto la licenza <a href="http://opensource.org/licenses/ms-rl.html">Microsoft Reciprocal License (Ms-RL)</a>.</p>
|
||||
<p>Il codice sorgente originale del programma è disponibile sulla <a href="http://www.codeplex.com/ontopreplica">homepage del progetto su CodePlex</a>.</p>
|
||||
|
||||
<h1>Credits</h1>
|
||||
|
||||
<p>OnTopReplica è stato inspirato da <a href="http://insentient.net">Switcher</a> ed altre applicazioni basate su DWM.</p>
|
||||
|
||||
<p>I controlli utente specifici per Windows Vista sono parte della libreria <a href="http://www.codeplex.com/windowsformsaero">WindowsFormsAero</a> per .NET.</p>
|
||||
|
||||
<p>Qualche riga di codice d'esempio presa da <a href="http://www.ookii.org">Ookii</a> su Channel9.</p>
|
||||
|
||||
<p>La classe NativeToolstripRenderer è stata presa da <a href="http://wp.asztal.net/2007/12/vista-style-menus-in-dotnet/">asztal.net</a>.</p>
|
||||
|
||||
<p>Alcune delle icone sono state prese da <a href="http://www.vistaico.com">VistaICO.com</a> e dal set di icone Xiao.</p>
|
||||
|
||||
</body>
|
||||
</html></value>
|
||||
</data>
|
||||
</root>
|
|
@ -450,8 +450,82 @@ You can enable click-through later</value>
|
|||
<value>Click forwarding</value>
|
||||
</data>
|
||||
<data name="InfoClickForwardingContent" xml:space="preserve">
|
||||
<value>In this mode OnTopReplica will forward all left mouse clicks on it to the window that is being clones (this will allow you to do basic operations on the window without having to activate it).
|
||||
<value>If this mode is enabled, OnTopReplica will forward all left mouse clicks to the window that is being cloned (this will allow you to do basic mouse operations on the cloned window without having to activate it).
|
||||
|
||||
To exit this mode, right-click on OnTopReplica and disable "Click forwarding" from the menu.</value>
|
||||
</data>
|
||||
<data name="AskSettingReset" xml:space="preserve">
|
||||
<value>Reset settings?</value>
|
||||
</data>
|
||||
<data name="AskSettingResetContent" xml:space="preserve">
|
||||
<value>This will erase all settings of OnTopReplica, returning it to the original state right after installation (all saved information, like stored regions, will be lost).</value>
|
||||
</data>
|
||||
<data name="AskSettingResetTitle" xml:space="preserve">
|
||||
<value>Reset settings</value>
|
||||
</data>
|
||||
<data name="AboutButtonCancelTT" xml:space="preserve">
|
||||
<value>Abort update process.</value>
|
||||
</data>
|
||||
<data name="AboutButtonExpanderTT" xml:space="preserve">
|
||||
<value>Show details about OnTopReplica.</value>
|
||||
</data>
|
||||
<data name="AboutButtonResetTT" xml:space="preserve">
|
||||
<value>Reset all OnTopReplica settings.</value>
|
||||
</data>
|
||||
<data name="AboutButtonUpdateTT" xml:space="preserve">
|
||||
<value>Update OnTopReplica now.</value>
|
||||
</data>
|
||||
<data name="AboutDetails" xml:space="preserve">
|
||||
<value><html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family: Segoe UI, Arial, sans-serif;
|
||||
font-size: 0.8em;
|
||||
margin: 0;
|
||||
padding: 0.75em;
|
||||
}
|
||||
h1 {
|
||||
font-size: 1.4em;
|
||||
font-weight: bold;
|
||||
|
||||
margin: 0 0 1em 0;
|
||||
padding: 0;
|
||||
}
|
||||
p {
|
||||
margin: 0.5em 0 0.5em 1em;
|
||||
padding: 0;
|
||||
}
|
||||
a {
|
||||
font-weight: bold;
|
||||
color: blue;
|
||||
}
|
||||
a:hover {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>License</h1>
|
||||
|
||||
<p><b>OnTopReplica</b> is licensed under the <a href="http://opensource.org/licenses/ms-rl.html">Microsoft Reciprocal License (Ms-RL)</a>.</p>
|
||||
<p>The original source code can be found on the <a href="http://www.codeplex.com/ontopreplica">project's homepage on CodePlex</a>.</p>
|
||||
|
||||
<h1>Credits</h1>
|
||||
|
||||
<p>OnTopReplica was inspired by <a href="http://insentient.net">Switcher</a> and other DWM based applications.</p>
|
||||
|
||||
<p>All Vista controls are part of the <a href="http://www.codeplex.com/windowsformsaero">WindowsFormsAero library</a> for .NET.</p>
|
||||
|
||||
<p>Some example code taken from <a href="http://www.ookii.org">Ookii</a> on Channel9.</p>
|
||||
|
||||
<p>NativeToolstripRenderer class taken from <a href="http://wp.asztal.net/2007/12/vista-style-menus-in-dotnet/">asztal.net</a>.</p>
|
||||
|
||||
<p>Some icons from <a href="http://www.vistaico.com">VistaICO.com</a> and the Xiao icon set.</p>
|
||||
|
||||
</body>
|
||||
</html></value>
|
||||
</data>
|
||||
</root>
|
|
@ -202,6 +202,7 @@ namespace OnTopReplica {
|
|||
/// <summary>Updates the thumbnail options and the right-click labels.</summary>
|
||||
private void UpdateThubmnail() {
|
||||
if (_thumbnail != null && !_thumbnail.IsInvalid){
|
||||
try {
|
||||
Size sourceSize = (_regionEnabled) ? _regionCurrent.Size : _thumbnail.SourceSize;
|
||||
|
||||
thumbnailSize = ComputeIdealSize(sourceSize, Size);
|
||||
|
@ -214,6 +215,12 @@ namespace OnTopReplica {
|
|||
|
||||
_thumbnail.Update(target, source, ThumbnailOpacity, true, true);
|
||||
}
|
||||
catch {
|
||||
//Any error updating the thumbnail forces to unset (handle may be not valid)
|
||||
UnsetThumbnail();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
UpdateRightClickLabels();
|
||||
}
|
||||
|
@ -323,6 +330,11 @@ namespace OnTopReplica {
|
|||
if (_drawingRegion && e.Button == MouseButtons.Left) {
|
||||
_regionLastPoint = e.Location;
|
||||
|
||||
this.Invalidate();
|
||||
}
|
||||
else if(_drawMouseRegions && !_drawingRegion){
|
||||
_regionLastPoint = e.Location;
|
||||
|
||||
this.Invalidate();
|
||||
}
|
||||
|
||||
|
@ -340,6 +352,10 @@ namespace OnTopReplica {
|
|||
|
||||
e.Graphics.DrawRectangle(penRed, left, top, right - left, bottom - top);
|
||||
}
|
||||
else if (_drawMouseRegions) {
|
||||
e.Graphics.DrawLine(penRed, new Point(0, _regionLastPoint.Y), new Point(ClientSize.Width, _regionLastPoint.Y));
|
||||
e.Graphics.DrawLine(penRed, new Point(_regionLastPoint.X, 0), new Point(_regionLastPoint.X, ClientSize.Height));
|
||||
}
|
||||
|
||||
base.OnPaint(e);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
|
@ -11,7 +11,7 @@
|
|||
<value>True</value>
|
||||
</setting>
|
||||
<setting name="AutoFitOnResize" serializeAs="String">
|
||||
<value>False</value>
|
||||
<value>True</value>
|
||||
</setting>
|
||||
<setting name="Opacity" serializeAs="String">
|
||||
<value>255</value>
|
||||
|
@ -45,4 +45,4 @@
|
|||
</setting>
|
||||
</OnTopReplica.Properties.Settings>
|
||||
</userSettings>
|
||||
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>
|
||||
<startup/></configuration>
|
||||
|
|
Loading…
Reference in a new issue