0.2.1
This commit is contained in:
@@ -1,22 +1,4 @@
|
|||||||
/**
|
using System;
|
||||||
*mpv.net
|
|
||||||
*Copyright(C) 2017 stax76
|
|
||||||
*
|
|
||||||
*This program is free software: you can redistribute it and/or modify
|
|
||||||
*it under the terms of the GNU General Public License as published by
|
|
||||||
*the Free Software Foundation, either version 3 of the License, or
|
|
||||||
*(at your option) any later version.
|
|
||||||
*
|
|
||||||
*This program is distributed in the hope that it will be useful,
|
|
||||||
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
|
||||||
*GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
*You should have received a copy of the GNU General Public License
|
|
||||||
*along with this program. If not, see http://www.gnu.org/licenses/.
|
|
||||||
*/
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.ComponentModel.Composition;
|
using System.ComponentModel.Composition;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|||||||
@@ -1,29 +1,9 @@
|
|||||||
/**
|
using System;
|
||||||
*mpv.net
|
|
||||||
*Copyright(C) 2017 stax76
|
|
||||||
*
|
|
||||||
*This program is free software: you can redistribute it and/or modify
|
|
||||||
*it under the terms of the GNU General Public License as published by
|
|
||||||
*the Free Software Foundation, either version 3 of the License, or
|
|
||||||
*(at your option) any later version.
|
|
||||||
*
|
|
||||||
*This program is distributed in the hope that it will be useful,
|
|
||||||
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
|
||||||
*GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
*You should have received a copy of the GNU General Public License
|
|
||||||
*along with this program. If not, see http://www.gnu.org/licenses/.
|
|
||||||
*/
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
using vbnet;
|
using vbnet;
|
||||||
using System.Drawing;
|
|
||||||
using static vbnet.UI.MainModule;
|
using static vbnet.UI.MainModule;
|
||||||
|
|
||||||
namespace mpvnet
|
namespace mpvnet
|
||||||
|
|||||||
@@ -1,23 +1,4 @@
|
|||||||
/**
|
using System;
|
||||||
*mpv.net
|
|
||||||
*Copyright(C) 2017 stax76
|
|
||||||
*
|
|
||||||
*This program is free software: you can redistribute it and/or modify
|
|
||||||
*it under the terms of the GNU General Public License as published by
|
|
||||||
*the Free Software Foundation, either version 3 of the License, or
|
|
||||||
*(at your option) any later version.
|
|
||||||
*
|
|
||||||
*This program is distributed in the hope that it will be useful,
|
|
||||||
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
|
||||||
*GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
*You should have received a copy of the GNU General Public License
|
|
||||||
*along with this program. If not, see http://www.gnu.org/licenses/.
|
|
||||||
*/
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
@@ -261,6 +242,13 @@ namespace mpvnet
|
|||||||
Native.ReleaseCapture();
|
Native.ReleaseCapture();
|
||||||
Native.PostMessage(Handle, 0xA1 /* WM_NCLBUTTONDOWN */, HTCAPTION, IntPtr.Zero);
|
Native.PostMessage(Handle, 0xA1 /* WM_NCLBUTTONDOWN */, HTCAPTION, IntPtr.Zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var sb = Screen.FromControl(this).Bounds;
|
||||||
|
var p1 = new Point(sb.Width, 0);
|
||||||
|
var p2 = PointToScreen(e.Location);
|
||||||
|
|
||||||
|
if (Math.Abs(p1.X - p2.X) < 10 && Math.Abs(p1.Y - p2.Y) < 10)
|
||||||
|
Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnMouseMove(MouseEventArgs e)
|
protected override void OnMouseMove(MouseEventArgs e)
|
||||||
|
|||||||
@@ -1,22 +1,4 @@
|
|||||||
/**
|
using System;
|
||||||
*mpv.net
|
|
||||||
*Copyright(C) 2017 stax76
|
|
||||||
*
|
|
||||||
*This program is free software: you can redistribute it and/or modify
|
|
||||||
*it under the terms of the GNU General Public License as published by
|
|
||||||
*the Free Software Foundation, either version 3 of the License, or
|
|
||||||
*(at your option) any later version.
|
|
||||||
*
|
|
||||||
*This program is distributed in the hope that it will be useful,
|
|
||||||
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
|
||||||
*GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
*You should have received a copy of the GNU General Public License
|
|
||||||
*along with this program. If not, see http://www.gnu.org/licenses/.
|
|
||||||
*/
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
|||||||
@@ -1,22 +1,4 @@
|
|||||||
/**
|
using System;
|
||||||
*mpv.net
|
|
||||||
*Copyright(C) 2017 stax76
|
|
||||||
*
|
|
||||||
*This program is free software: you can redistribute it and/or modify
|
|
||||||
*it under the terms of the GNU General Public License as published by
|
|
||||||
*the Free Software Foundation, either version 3 of the License, or
|
|
||||||
*(at your option) any later version.
|
|
||||||
*
|
|
||||||
*This program is distributed in the hope that it will be useful,
|
|
||||||
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
|
||||||
*GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
*You should have received a copy of the GNU General Public License
|
|
||||||
*along with this program. If not, see http://www.gnu.org/licenses/.
|
|
||||||
*/
|
|
||||||
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace mpvnet
|
namespace mpvnet
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,22 +1,4 @@
|
|||||||
/**
|
using System;
|
||||||
*mpv.net
|
|
||||||
*Copyright(C) 2017 stax76
|
|
||||||
*
|
|
||||||
*This program is free software: you can redistribute it and/or modify
|
|
||||||
*it under the terms of the GNU General Public License as published by
|
|
||||||
*the Free Software Foundation, either version 3 of the License, or
|
|
||||||
*(at your option) any later version.
|
|
||||||
*
|
|
||||||
*This program is distributed in the hope that it will be useful,
|
|
||||||
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
|
||||||
*GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
*You should have received a copy of the GNU General Public License
|
|
||||||
*along with this program. If not, see http://www.gnu.org/licenses/.
|
|
||||||
*/
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace mpvnet
|
namespace mpvnet
|
||||||
|
|||||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("0.2.0.0")]
|
[assembly: AssemblyVersion("0.2.1.0")]
|
||||||
[assembly: AssemblyFileVersion("0.2.0.0")]
|
[assembly: AssemblyFileVersion("0.2.1.0")]
|
||||||
|
|||||||
@@ -1,32 +1,6 @@
|
|||||||
/**
|
using System;
|
||||||
*mpv.net
|
|
||||||
*Copyright(C) 2017 stax76
|
|
||||||
*
|
|
||||||
*This program is free software: you can redistribute it and/or modify
|
|
||||||
*it under the terms of the GNU General Public License as published by
|
|
||||||
*the Free Software Foundation, either version 3 of the License, or
|
|
||||||
*(at your option) any later version.
|
|
||||||
*
|
|
||||||
*This program is distributed in the hope that it will be useful,
|
|
||||||
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
|
||||||
*GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
*You should have received a copy of the GNU General Public License
|
|
||||||
*along with this program. If not, see http://www.gnu.org/licenses/.
|
|
||||||
*/
|
|
||||||
|
|
||||||
using Microsoft.VisualBasic;
|
|
||||||
using System;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Data;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Globalization;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
public static class StringExtensions
|
public static class StringExtensions
|
||||||
{
|
{
|
||||||
|
|||||||
20
mpvnet/UI.cs
20
mpvnet/UI.cs
@@ -1,22 +1,4 @@
|
|||||||
/**
|
using System;
|
||||||
*mpv.net
|
|
||||||
*Copyright(C) 2017 stax76
|
|
||||||
*
|
|
||||||
*This program is free software: you can redistribute it and/or modify
|
|
||||||
*it under the terms of the GNU General Public License as published by
|
|
||||||
*the Free Software Foundation, either version 3 of the License, or
|
|
||||||
*(at your option) any later version.
|
|
||||||
*
|
|
||||||
*This program is distributed in the hope that it will be useful,
|
|
||||||
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
|
||||||
*GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
*You should have received a copy of the GNU General Public License
|
|
||||||
*along with this program. If not, see http://www.gnu.org/licenses/.
|
|
||||||
*/
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
|||||||
3
mpvnet/docs/changelog.md
Normal file
3
mpvnet/docs/changelog.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
### 0.2.1
|
||||||
|
|
||||||
|
- right-click in fullscreen in the right-left corner closes the app
|
||||||
@@ -1,22 +1,4 @@
|
|||||||
/**
|
using System;
|
||||||
*mpv.net
|
|
||||||
*Copyright(C) 2017 stax76
|
|
||||||
*
|
|
||||||
*This program is free software: you can redistribute it and/or modify
|
|
||||||
*it under the terms of the GNU General Public License as published by
|
|
||||||
*the Free Software Foundation, either version 3 of the License, or
|
|
||||||
*(at your option) any later version.
|
|
||||||
*
|
|
||||||
*This program is distributed in the hope that it will be useful,
|
|
||||||
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
|
||||||
*GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
*You should have received a copy of the GNU General Public License
|
|
||||||
*along with this program. If not, see http://www.gnu.org/licenses/.
|
|
||||||
*/
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace mpvnet
|
namespace mpvnet
|
||||||
|
|||||||
@@ -1,23 +1,4 @@
|
|||||||
/**
|
using System;
|
||||||
*mpv.net
|
|
||||||
*Copyright(C) 2017 stax76
|
|
||||||
*
|
|
||||||
*This program is free software: you can redistribute it and/or modify
|
|
||||||
*it under the terms of the GNU General Public License as published by
|
|
||||||
*the Free Software Foundation, either version 3 of the License, or
|
|
||||||
*(at your option) any later version.
|
|
||||||
*
|
|
||||||
*This program is distributed in the hope that it will be useful,
|
|
||||||
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
|
||||||
*GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
*You should have received a copy of the GNU General Public License
|
|
||||||
*along with this program. If not, see http://www.gnu.org/licenses/.
|
|
||||||
*/
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
@@ -85,7 +66,7 @@ namespace mpvnet
|
|||||||
{
|
{
|
||||||
IntPtr ptr = mpv_wait_event(MpvHandle, -1);
|
IntPtr ptr = mpv_wait_event(MpvHandle, -1);
|
||||||
mpv_event evt = (mpv_event)Marshal.PtrToStructure(ptr, typeof(mpv_event));
|
mpv_event evt = (mpv_event)Marshal.PtrToStructure(ptr, typeof(mpv_event));
|
||||||
Debug.WriteLine(evt.event_id);
|
//Debug.WriteLine(evt.event_id);
|
||||||
|
|
||||||
if (MpvWindowHandle == IntPtr.Zero)
|
if (MpvWindowHandle == IntPtr.Zero)
|
||||||
MpvWindowHandle = FindWindowEx(MainForm.Hwnd, IntPtr.Zero, "mpv", null);
|
MpvWindowHandle = FindWindowEx(MainForm.Hwnd, IntPtr.Zero, "mpv", null);
|
||||||
|
|||||||
@@ -104,6 +104,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Addon.cs" />
|
<Compile Include="Addon.cs" />
|
||||||
|
<None Include="docs\changelog.md" />
|
||||||
<Compile Include="Extensions.cs" />
|
<Compile Include="Extensions.cs" />
|
||||||
<Compile Include="StringExtensions.cs" />
|
<Compile Include="StringExtensions.cs" />
|
||||||
<Compile Include="libmpv.cs" />
|
<Compile Include="libmpv.cs" />
|
||||||
|
|||||||
Reference in New Issue
Block a user