Skip to content

Commit

Permalink
Change license to GNU Affero General Public License
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Dec 15, 2023
1 parent 7a8cb22 commit abebaff
Show file tree
Hide file tree
Showing 25 changed files with 1,030 additions and 53 deletions.
661 changes: 661 additions & 0 deletions COPYING

Large diffs are not rendered by default.

21 changes: 0 additions & 21 deletions LICENSE.TXT

This file was deleted.

3 changes: 1 addition & 2 deletions PanAndZoom.sln
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "git", "git", "{10DDB443-E91
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{D27AEAB9-B470-4E27-9EF7-A34B87423676}"
ProjectSection(SolutionItems) = preProject
LICENSE.TXT = LICENSE.TXT
README.md = README.md
COPYING = COPYING
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AvaloniaDemo.Desktop", "samples\AvaloniaDemo.Desktop\AvaloniaDemo.Desktop.csproj", "{76443341-EF1B-4087-8F4D-38F3B04487B8}"
Expand Down Expand Up @@ -107,7 +107,6 @@ Global
{D63B15F1-48A2-4B21-9FD1-B014C98FA2D0} = {3FBE9035-8FFD-447D-949A-8E63AF15B89A}
{EEE92699-B114-4332-ABE5-D120E9136FF5} = {6E241F85-FE51-47E5-B9C2-50AAA7FEC499}
{5436C290-E80A-4323-BA66-8E5997F464A9} = {053504B1-A08C-4617-BB5E-F81935A7A00A}
{D27AEAB9-B470-4E27-9EF7-A34B87423676} = {6E241F85-FE51-47E5-B9C2-50AAA7FEC499}
{10DDB443-E910-47C5-B1C1-1ED769BE9834} = {6E241F85-FE51-47E5-B9C2-50AAA7FEC499}
{E16CD9A4-AA47-4440-9EB7-B9E8E59EBFC5} = {6E241F85-FE51-47E5-B9C2-50AAA7FEC499}
{D83B9ECD-F143-4A6C-AFD7-F961174D824C} = {6E241F85-FE51-47E5-B9C2-50AAA7FEC499}
Expand Down
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,22 @@ To enable or disable constrains use `EnableConstrains` flag.

## License

PanAndZoom is licensed under the [MIT license](LICENSE.TXT).
PanAndZoom is licensed under the [GNU Affero General Public License](COPYING).

```
PanAndZoom A PanAndZoom control for Avalonia.
Copyright (C) 2023 Wiesław Šoltés
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
```
4 changes: 2 additions & 2 deletions build/Base.props
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VersionPrefix>11.0.0</VersionPrefix>
<VersionPrefix>11.0.0.1</VersionPrefix>
<VersionSuffix></VersionSuffix>
<Authors>Wiesław Šoltés</Authors>
<Company>Wiesław Šoltés</Company>
<Copyright>Copyright © Wiesław Šoltés 2023</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageLicenseExpression>AGPL-3.0-or-later</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/wieslawsoltes/PanAndZoom</PackageProjectUrl>
</PropertyGroup>
<PropertyGroup>
Expand Down
19 changes: 18 additions & 1 deletion samples/AvaloniaDemo.Base/App.axaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<Application x:Class="AvaloniaDemo.App"
<!--
PanAndZoom A PanAndZoom control for Avalonia.
Copyright (C) 2023 Wiesław Šoltés
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<Application x:Class="AvaloniaDemo.App"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Name="AvaloniaDemo"
Expand Down
19 changes: 18 additions & 1 deletion samples/AvaloniaDemo.Base/App.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
using Avalonia;
/*
* PanAndZoom A PanAndZoom control for Avalonia.
* Copyright (C) 2023 Wiesław Šoltés
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Markup.Xaml;

Expand Down
19 changes: 18 additions & 1 deletion samples/AvaloniaDemo.Base/MainView.axaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<UserControl xmlns="https://github.com/avaloniaui"
<!--
PanAndZoom A PanAndZoom control for Avalonia.
Copyright (C) 2023 Wiesław Šoltés
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Expand Down
19 changes: 18 additions & 1 deletion samples/AvaloniaDemo.Base/MainView.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
using System.Diagnostics;
/*
* PanAndZoom A PanAndZoom control for Avalonia.
* Copyright (C) 2023 Wiesław Šoltés
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
using System.Diagnostics;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.PanAndZoom;
Expand Down
19 changes: 18 additions & 1 deletion samples/AvaloniaDemo.Base/MainWindow.axaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<Window x:Class="AvaloniaDemo.MainWindow"
<!--
PanAndZoom A PanAndZoom control for Avalonia.
Copyright (C) 2023 Wiesław Šoltés
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<Window x:Class="AvaloniaDemo.MainWindow"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:AvaloniaDemo"
Expand Down
19 changes: 18 additions & 1 deletion samples/AvaloniaDemo.Base/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
using Avalonia;
/*
* PanAndZoom A PanAndZoom control for Avalonia.
* Copyright (C) 2023 Wiesław Šoltés
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;

Expand Down
19 changes: 18 additions & 1 deletion samples/AvaloniaDemo.Desktop/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
using Avalonia;
/*
* PanAndZoom A PanAndZoom control for Avalonia.
* Copyright (C) 2023 Wiesław Šoltés
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
using Avalonia;
using System;
using System.Diagnostics;

Expand Down
3 changes: 0 additions & 3 deletions samples/AvaloniaDemo.Web/AppBundle/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { dotnet } from './dotnet.js'
import { registerAvaloniaModule } from './avalonia.js';

const is_browser = typeof window != "undefined";
if (!is_browser) throw new Error(`Expected to be running in a browser`);
Expand All @@ -9,8 +8,6 @@ const dotnetRuntime = await dotnet
.withApplicationArgumentsFromQuery()
.create();

await registerAvaloniaModule(dotnetRuntime);

const config = dotnetRuntime.getConfig();

await dotnetRuntime.runMainAndExit(config.mainAssemblyName, [window.location.search]);
17 changes: 17 additions & 0 deletions samples/AvaloniaDemo.Web/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* PanAndZoom A PanAndZoom control for Avalonia.
* Copyright (C) 2023 Wiesław Šoltés
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
using System.Runtime.Versioning;
using System.Threading.Tasks;
using Avalonia;
Expand Down
19 changes: 18 additions & 1 deletion src/Avalonia.Controls.PanAndZoom/ButtonName.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
namespace Avalonia.Controls.PanAndZoom;
/*
* PanAndZoom A PanAndZoom control for Avalonia.
* Copyright (C) 2023 Wiesław Šoltés
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
namespace Avalonia.Controls.PanAndZoom;

/// <summary>
/// Describes mouse button names.
Expand Down
21 changes: 19 additions & 2 deletions src/Avalonia.Controls.PanAndZoom/MatrixHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
using static System.Math;
/*
* PanAndZoom A PanAndZoom control for Avalonia.
* Copyright (C) 2023 Wiesław Šoltés
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
using static System.Math;

namespace Avalonia.Controls.PanAndZoom;

Expand Down Expand Up @@ -139,4 +156,4 @@ public static Point TransformPoint(Matrix matrix, Point point)
(point.X * matrix.M11) + (point.Y * matrix.M21) + matrix.M31,
(point.X * matrix.M12) + (point.Y * matrix.M22) + matrix.M32);
}
}
}
19 changes: 18 additions & 1 deletion src/Avalonia.Controls.PanAndZoom/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
using Avalonia.Metadata;
/*
* PanAndZoom A PanAndZoom control for Avalonia.
* Copyright (C) 2023 Wiesław Šoltés
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
using Avalonia.Metadata;

[assembly: XmlnsDefinition("https://github.com/avaloniaui", "Avalonia.Controls.PanAndZoom")]
21 changes: 19 additions & 2 deletions src/Avalonia.Controls.PanAndZoom/StretchMode.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
namespace Avalonia.Controls.PanAndZoom;
/*
* PanAndZoom A PanAndZoom control for Avalonia.
* Copyright (C) 2023 Wiesław Šoltés
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
namespace Avalonia.Controls.PanAndZoom;

/// <summary>
/// Describes how content is resized to fill its allocated space.
Expand All @@ -24,4 +41,4 @@ public enum StretchMode
/// The content is resized to fill the destination dimensions while it preserves its native aspect ratio. If the aspect ratio of the destination rectangle differs from the source, the source content is clipped to fit in the destination dimensions.
/// </summary>
UniformToFill
}
}
Loading

0 comments on commit abebaff

Please sign in to comment.