Skip to content

Commit

Permalink
Version 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxCouncil committed Dec 30, 2020
1 parent 76b1e77 commit ee5c408
Show file tree
Hide file tree
Showing 17 changed files with 506 additions and 164 deletions.
34 changes: 26 additions & 8 deletions AboutForm.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
// !! // TVFox - https://github.com/FoxCouncil/TVFox
// *.-". // MIT License
// | | // Copyright 2020 The Fox Council

using System.Reflection;
using System.Windows.Forms;
using TVFox.Windows;

namespace TVFox
{
partial class AboutForm : Form
{
private bool _wasMouseHidden;
private bool _wasAlwaysOnTop;

public AboutForm()
{
Expand All @@ -25,15 +27,28 @@ public AboutForm()

VisibleChanged += (sender, args) =>
{
if (Visible && TVFoxApp.HideMouseCursor)
if (Visible && Utilities.IsWindowAlwaysOnTop(TVFoxApp.VideoWindow?.Handle))
{
_wasAlwaysOnTop = true;
Utilities.SetAlwaysOnTop(TVFoxApp.VideoWindow?.Handle, false);
}
else if (!Visible && _wasAlwaysOnTop)
{
Utilities.SetAlwaysOnTop(TVFoxApp.VideoWindow?.Handle, true);
_wasAlwaysOnTop = false;
}
if (Visible && !Utilities.IsMouseVisible)
{
_wasMouseHidden = true;
TVFoxApp.HideMouseCursor = false;
Utilities.SetMouseVisibility(true);
}
else if (!Visible && _wasMouseHidden)
{
TVFoxApp.HideMouseCursor = true;
Utilities.SetMouseVisibility(false);
_wasMouseHidden = false;
}
Expand All @@ -47,15 +62,18 @@ public string AssemblyTitle
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);

if (attributes.Length > 0)
{
AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];

if (titleAttribute.Title != "")
{
return titleAttribute.Title;
}
}
return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);

return "TVFox";
}
}

Expand Down
2 changes: 1 addition & 1 deletion DirectShowHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// !! // TVFox
// !! // TVFox - https://github.com/FoxCouncil/TVFox
// *.-". // MIT License
// | | // Copyright 2020 The Fox Council

Expand Down
13 changes: 1 addition & 12 deletions Enums.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// !! // TVFox
// !! // TVFox - https://github.com/FoxCouncil/TVFox
// *.-". // MIT License
// | | // Copyright 2020 The Fox Council

Expand Down Expand Up @@ -33,16 +33,5 @@ public enum CommandButtons
Mute = 20,
Power = 21
}

[FlagsAttribute]
public enum EXECUTION_STATE : uint
{
ES_SYSTEM_REQUIRED = 0x00000001,
ES_DISPLAY_REQUIRED = 0x00000002,
// Legacy flag, should not be used.
// ES_USER_PRESENT = 0x00000004,
ES_AWAYMODE_REQUIRED = 0x00000040,
ES_CONTINUOUS = 0x80000000,
}
}
}
2 changes: 1 addition & 1 deletion KeyStateInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// !! // TVFox
// !! // TVFox - https://github.com/FoxCouncil/TVFox
// *.-". // MIT License
// | | // Copyright 2020 The Fox Council

Expand Down
4 changes: 4 additions & 0 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// !! // TVFox - https://github.com/FoxCouncil/TVFox
// *.-". // MIT License
// | | // Copyright 2020 The Fox Council

using System.Runtime.InteropServices;

// In SDK-style projects such as this one, several assembly attributes that were historically
Expand Down
38 changes: 37 additions & 1 deletion Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Properties/Settings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// !! // TVFox
// !! // TVFox - https://github.com/FoxCouncil/TVFox
// *.-". // MIT License
// | | // Copyright 2020 The Fox Council

Expand Down
11 changes: 10 additions & 1 deletion Properties/Settings.settings
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="TvFox.Properties" GeneratedClassName="Settings">
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="TVFox.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="Resolution" Type="System.Drawing.Size" Scope="User">
Expand Down Expand Up @@ -41,5 +41,14 @@
<Setting Name="MutedVolume" Type="System.Int32" Scope="User">
<Value Profile="(Default)">0</Value>
</Setting>
<Setting Name="SourceRatioLock" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="AlwaysOnTop" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="BorderStyle" Type="System.Windows.Forms.FormBorderStyle" Scope="User">
<Value Profile="(Default)">Sizable</Value>
</Setting>
</Settings>
</SettingsFile>
2 changes: 1 addition & 1 deletion TVFox.licenseheader
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
extensions: designer.cs generated.cs
extensions: .cs .cpp .h
// !! // TVFox
// !! // TVFox - https://github.com/FoxCouncil/TVFox
// *.-". // MIT License
// | | // Copyright 2020 The Fox Council
Loading

0 comments on commit ee5c408

Please sign in to comment.