Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": null
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
76 changes: 76 additions & 0 deletions .vs/Sanford.Multimedia.Midi/project-colors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"Version": 1,
"ProjectMap": {
"31bea236-9ab6-4c94-bc2b-c9b184a1ee23": {
"ProjectGuid": "31bea236-9ab6-4c94-bc2b-c9b184a1ee23",
"DisplayName": "SkiaTest",
"ColorIndex": 0
},
"f908e146-fd17-4853-b6c3-6aeac148b420": {
"ProjectGuid": "f908e146-fd17-4853-b6c3-6aeac148b420",
"DisplayName": "Sanford.Multimedia.Midi.UI.Windows",
"ColorIndex": 1
},
"c8817129-4d17-4d2e-a2e8-d3e39ae39695": {
"ProjectGuid": "c8817129-4d17-4d2e-a2e8-d3e39ae39695",
"DisplayName": "SkiaSharp.AnalogClock",
"ColorIndex": 2
},
"a2fe74e1-b743-11d0-ae1a-00a0c90fffc3": {
"ProjectGuid": "a2fe74e1-b743-11d0-ae1a-00a0c90fffc3",
"DisplayName": "Miscellaneous Files",
"ColorIndex": -1
},
"1c2c2dfa-3061-42fa-8527-a6ed8d3e5404": {
"ProjectGuid": "1c2c2dfa-3061-42fa-8527-a6ed8d3e5404",
"DisplayName": "GTKTest",
"ColorIndex": 3
},
"90480ce5-e392-4713-ab5c-7d659aca0b85": {
"ProjectGuid": "90480ce5-e392-4713-ab5c-7d659aca0b85",
"DisplayName": "SequencerDemo.Windows",
"ColorIndex": 4
},
"184f8b7c-7f49-4308-86c3-f04f91d6f3ad": {
"ProjectGuid": "184f8b7c-7f49-4308-86c3-f04f91d6f3ad",
"DisplayName": "SkiaSharp.PianoKeys.Test.WindowsForms",
"ColorIndex": 5
},
"4269c72a-8d3a-4737-8f89-72eaa33ea9e1": {
"ProjectGuid": "4269c72a-8d3a-4737-8f89-72eaa33ea9e1",
"DisplayName": "Sanford.Multimedia.Midi.Core",
"ColorIndex": 6
},
"6bae9489-ae66-49ba-8724-9898e8acf824": {
"ProjectGuid": "6bae9489-ae66-49ba-8724-9898e8acf824",
"DisplayName": "Sanford.Multimedia.Midi.UI.Gtk",
"ColorIndex": 7
},
"8f745afe-f2c8-4375-bf10-d153b6f3fb00": {
"ProjectGuid": "8f745afe-f2c8-4375-bf10-d153b6f3fb00",
"DisplayName": "SkiaTest",
"ColorIndex": 8
},
"cc1b3440-0eeb-4b43-8ee5-328fd6ea45b8": {
"ProjectGuid": "cc1b3440-0eeb-4b43-8ee5-328fd6ea45b8",
"DisplayName": "SkiaSharp.PianoKeys.Test.WindowsForms",
"ColorIndex": 9
},
"2f082562-a6d1-45d7-a309-d625ddb706fd": {
"ProjectGuid": "2f082562-a6d1-45d7-a309-d625ddb706fd",
"DisplayName": "UI.WindowsForms",
"ColorIndex": 10
},
"64769287-e4a4-473a-9eb4-d33984fc51e3": {
"ProjectGuid": "64769287-e4a4-473a-9eb4-d33984fc51e3",
"DisplayName": "UI.WindowsForms",
"ColorIndex": 11
},
"448955c0-78cf-4e9b-8bfb-e0badb8602db": {
"ProjectGuid": "448955c0-78cf-4e9b-8bfb-e0badb8602db",
"DisplayName": "UI.WindowsForms",
"ColorIndex": 12
}
},
"NextColorIndex": 13
}
Binary file added .vs/Sanford.Multimedia.Midi/v17/.futdcache.v1
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 6 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ExpandedNodes": [
""
],
"PreviewInSolutionExplorer": false
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
Binary file not shown.
35 changes: 35 additions & 0 deletions Demo/MidiWatcher/Gtk/MainWindow.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System;
using Gtk;
using UI = Gtk.Builder.ObjectAttribute;

namespace Sanford.Multimedia.Midi
{
class MainWindow : Window
{
[UI] private Label _label1 = null;
[UI] private Button _button1 = null;

private int _counter;

public MainWindow() : this(new Builder("MainWindow.glade")) { }

private MainWindow(Builder builder) : base(builder.GetRawOwnedObject("MainWindow"))
{
builder.Autoconnect(this);

DeleteEvent += Window_DeleteEvent;
_button1.Clicked += Button1_Clicked;
}

private void Window_DeleteEvent(object sender, DeleteEventArgs a)
{
Application.Quit();
}

private void Button1_Clicked(object sender, EventArgs a)
{
_counter++;
_label1.Text = "Hello World! This button has been clicked " + _counter + " time(s).";
}
}
}
46 changes: 46 additions & 0 deletions Demo/MidiWatcher/Gtk/MainWindow.glade
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="3.18"/>
<object class="GtkWindow" id="MainWindow">
<property name="can_focus">False</property>
<property name="title" translatable="yes">Example Window</property>
<property name="default_width">480</property>
<property name="default_height">240</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">4</property>
<property name="margin_right">4</property>
<property name="margin_top">4</property>
<property name="margin_bottom">4</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="_label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Hello World!</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="_button1">
<property name="label" translatable="yes">Click me!</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="receives_default">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
</object>
</interface>
19 changes: 19 additions & 0 deletions Demo/MidiWatcher/Gtk/MidiWatcher.Gtk.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<None Remove="**\*.glade" />
<EmbeddedResource Include="**\*.glade">
<LogicalName>%(Filename)%(Extension)</LogicalName>
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
<PackageReference Include="GtkSharp" Version="3.24.24.*" />
</ItemGroup>

</Project>
23 changes: 23 additions & 0 deletions Demo/MidiWatcher/Gtk/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;
using Gtk;

namespace Sanford.Multimedia.Midi
{
class Program
{
[STAThread]
public static void Main(string[] args)
{
Application.Init();

var app = new Application("org.Sanford.Multimedia.Midi.Sanford.Multimedia.Midi", GLib.ApplicationFlags.None);
app.Register(GLib.Cancellable.Current);

var win = new MainWindow();
app.AddWindow(win);

win.Show();
Application.Run();
}
}
}
119 changes: 0 additions & 119 deletions Demo/MidiWatcher/MidiWatcher.csproj

This file was deleted.

Loading