Skip to content

Commit

Permalink
Real initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
dialupnoises committed Dec 6, 2016
1 parent 877391b commit 7e8f77f
Show file tree
Hide file tree
Showing 335 changed files with 2,912 additions and 128 deletions.
32 changes: 32 additions & 0 deletions Cliperizer/Clip.cs
@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cliperizer
{
public class Clip
{
public string Name;
public double StartTime;
public double EndTime;
public Color Color;

private Brush _colorBrush;

// Yes, a getter that mutates state. I'm the worst!
public Brush ColorBrush => (_colorBrush == null ? _colorBrush = new SolidBrush(Color) : _colorBrush);

public static Color GenerateRandomColor()
{
var rand = new Random();
return Color.FromArgb(
(int)((255f + rand.Next(0, 255)) / 2),
(int)((255f + rand.Next(0, 255)) / 2),
(int)((255f + rand.Next(0, 255)) / 2)
);
}
}
}
90 changes: 87 additions & 3 deletions Cliperizer/Cliperizer.csproj
Expand Up @@ -33,8 +33,17 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Ookii.Dialogs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0c15020868fd6249, processorArchitecture=MSIL">
<HintPath>..\packages\Ookii.Dialogs.WindowsForms.1.0\lib\net35\Ookii.Dialogs.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Ookii.Dialogs.Wpf, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0c15020868fd6249, processorArchitecture=MSIL">
<HintPath>..\packages\Ookii.Dialogs.1.0\lib\net35\Ookii.Dialogs.Wpf.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing.Design" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
Expand All @@ -44,16 +53,77 @@
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="Vlc.DotNet.Core, Version=2.1.126.0, Culture=neutral, PublicKeyToken=84529da31f4eb963, processorArchitecture=x86">
<HintPath>..\packages\Vlc.DotNet.Core.2.1.126\lib\net45\x86\Vlc.DotNet.Core.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Vlc.DotNet.Core.Interops, Version=2.1.126.0, Culture=neutral, PublicKeyToken=84529da31f4eb963, processorArchitecture=x86">
<HintPath>..\packages\Vlc.DotNet.Core.Interops.2.1.126\lib\net45\x86\Vlc.DotNet.Core.Interops.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Vlc.DotNet.Forms, Version=2.1.126.0, Culture=neutral, PublicKeyToken=84529da31f4eb963, processorArchitecture=x86">
<HintPath>..\packages\Vlc.DotNet.Forms.2.1.126\lib\net45\x86\Vlc.DotNet.Forms.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<Compile Include="Clip.cs" />
<Compile Include="ConfirmClipDialog.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
<Compile Include="ConfirmClipDialog.Designer.cs">
<DependentUpon>ConfirmClipDialog.cs</DependentUpon>
</Compile>
<Compile Include="FFmpeg.cs" />
<Compile Include="ListClipsForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="ListClipsForm.Designer.cs">
<DependentUpon>ListClipsForm.cs</DependentUpon>
</Compile>
<Compile Include="MainForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="MainForm.Designer.cs">
<DependentUpon>MainForm.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="ProjectForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="ProjectForm.Designer.cs">
<DependentUpon>ProjectForm.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RecentManager.cs" />
<Compile Include="RenderForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="RenderForm.Designer.cs">
<DependentUpon>RenderForm.cs</DependentUpon>
</Compile>
<Compile Include="RenderProgressDialog.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="RenderProgressDialog.Designer.cs">
<DependentUpon>RenderProgressDialog.cs</DependentUpon>
</Compile>
<Compile Include="TimelineControl.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="VideoProject.cs" />
<EmbeddedResource Include="ConfirmClipDialog.resx">
<DependentUpon>ConfirmClipDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ListClipsForm.resx">
<DependentUpon>ListClipsForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="MainForm.resx">
<DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ProjectForm.resx">
<DependentUpon>ProjectForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
Expand All @@ -62,7 +132,15 @@
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<EmbeddedResource Include="RenderForm.resx">
<DependentUpon>RenderForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="RenderProgressDialog.resx">
<DependentUpon>RenderProgressDialog.cs</DependentUpon>
</EmbeddedResource>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
Expand All @@ -76,6 +154,12 @@
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\control_pause.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\control_play.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
97 changes: 97 additions & 0 deletions Cliperizer/ConfirmClipDialog.Designer.cs

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

38 changes: 38 additions & 0 deletions Cliperizer/ConfirmClipDialog.cs
@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Cliperizer
{
public partial class ConfirmClipDialog : Form
{
private string _clipName;

public string ClipName => _clipName;

public ConfirmClipDialog()
{
InitializeComponent();
}

private void okButton_Click(object sender, EventArgs e)
{
if(string.IsNullOrEmpty(clipNameBox.Text)) return;
_clipName = clipNameBox.Text;
DialogResult = DialogResult.OK;
Close();
}

private void cancelButton_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
Close();
}
}
}

0 comments on commit 7e8f77f

Please sign in to comment.