-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from valery-kirichenko/develop
Release 1.1
- Loading branch information
Showing
38 changed files
with
684 additions
and
957 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -353,3 +353,4 @@ healthchecksdb | |
MigrationBackup/ | ||
|
||
# End of https://www.gitignore.io/api/visualstudio | ||
.idea/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
ClipChopper/Applications/ClipChopper.DesktopApp/AudioTrack.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace ClipChopper.DesktopApp | ||
{ | ||
public sealed class AudioTrack | ||
{ | ||
public string Name { get; set; } = string.Empty; | ||
public int StreamIndex { get; set; } | ||
} | ||
} |
67 changes: 67 additions & 0 deletions
67
ClipChopper/Applications/ClipChopper.DesktopApp/ClipChopper.DesktopApp.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop" ToolsVersion="Current"> | ||
<PropertyGroup Label="Globals"> | ||
<Platforms>x64</Platforms> | ||
<PackageVersion>1.1.0</PackageVersion> | ||
<Company>Kirichenko Valery</Company> | ||
<Product>ClipChopper</Product> | ||
<AssemblyVersion>1.1.0</AssemblyVersion> | ||
<AssemblyName>ClipChopper</AssemblyName> | ||
<PackageId>ClipChopper</PackageId> | ||
<Authors>Kirichenko Valery</Authors> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<OutputType>WinExe</OutputType> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
<LangVersion>8.0</LangVersion> | ||
<UseWPF>true</UseWPF> | ||
<Nullable>enable</Nullable> | ||
<WarningsAsErrors>CS8600,CS8602,CS8603,CS8618,CS8625</WarningsAsErrors> | ||
<RootNamespace>ClipChopper</RootNamespace> | ||
<ApplicationIcon>icon.ico</ApplicationIcon> | ||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> | ||
<ApplicationManifest>app.manifest</ApplicationManifest> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Content Include="exiftool.exe"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="ffmpeg\avcodec-58.dll"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="ffmpeg\avdevice-58.dll"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="ffmpeg\avfilter-7.dll"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="ffmpeg\avformat-58.dll"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="ffmpeg\avutil-56.dll"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="ffmpeg\ffmpeg.exe"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="ffmpeg\ffplay.exe"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="ffmpeg\ffprobe.exe"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="ffmpeg\postproc-55.dll"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="ffmpeg\swresample-3.dll"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="ffmpeg\swscale-5.dll"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="FFME.Windows" Version="4.2.330" /> | ||
<PackageReference Include="NExifTool" Version="0.9.0" /> | ||
<PackageReference Include="Ookii.Dialogs.Wpf.NETCore" Version="2.0.0" /> | ||
</ItemGroup> | ||
</Project> |
20 changes: 20 additions & 0 deletions
20
ClipChopper/Applications/ClipChopper.DesktopApp/DirectoryItem.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace ClipChopper.DesktopApp | ||
{ | ||
public sealed class DirectoryItem | ||
{ | ||
public string Name { get; set; } | ||
public string Path { get; set; } | ||
|
||
public DirectoryItem(string name, string path) | ||
{ | ||
Name = name; | ||
Path = path; | ||
} | ||
|
||
public DirectoryItem(string path) | ||
{ | ||
Name = System.IO.Path.GetFileName(path); | ||
Path = path; | ||
} | ||
} | ||
} |
79 changes: 79 additions & 0 deletions
79
ClipChopper/Applications/ClipChopper.DesktopApp/FragmentSelection.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
using System; | ||
using System.ComponentModel; | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace ClipChopper.DesktopApp | ||
{ | ||
// TODO: use Prism.WPF BindableBase. | ||
public sealed class FragmentSelection : INotifyPropertyChanged | ||
{ | ||
private TimeSpan _start; | ||
private TimeSpan _stop; | ||
private TimeSpan _duration; | ||
|
||
public event PropertyChangedEventHandler? PropertyChanged; | ||
|
||
private void NotifyPropertyChanged([CallerMemberName] string propertyName = "") | ||
{ | ||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); | ||
} | ||
|
||
public FragmentSelection(TimeSpan duration) | ||
{ | ||
Duration = duration; | ||
Start = TimeSpan.Zero; | ||
Stop = duration; | ||
} | ||
|
||
public TimeSpan Start | ||
{ | ||
get => _start; | ||
|
||
set | ||
{ | ||
if (value != _start) | ||
{ | ||
_start = value; | ||
NotifyPropertyChanged(); | ||
|
||
if (Stop <= Start) | ||
{ | ||
Stop = Duration; | ||
} | ||
} | ||
} | ||
} | ||
|
||
public TimeSpan Stop | ||
{ | ||
get => _stop; | ||
|
||
set | ||
{ | ||
if (value != _stop) | ||
{ | ||
_stop = value; | ||
NotifyPropertyChanged(); | ||
|
||
if (Start >= value) | ||
{ | ||
Start = TimeSpan.Zero; | ||
} | ||
} | ||
} | ||
} | ||
|
||
private TimeSpan Duration | ||
{ | ||
get => _duration; | ||
set | ||
{ | ||
_duration = value; | ||
if (Stop > value) | ||
{ | ||
Stop = value; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.