Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate AGauge into a NuGet package, with inherited control #59

Merged
merged 22 commits into from
May 6, 2024

Conversation

gbakeman
Copy link
Contributor

@gbakeman gbakeman commented Nov 12, 2022

The AGauge project in WinNUT is a modified version of the original AGauge project. We have not tracked upstream since the initial modifications were made. Since then, further work has been done on AGauge upstream and related forks.

Solution

Per Code-Artist/AGauge#10, the base AGauge repository is no longer maintained and is missing out on some forked changes that have improved it. A new fork has been started under the organization, at https://github.com/nutdotnet/AGauge. General improvements will be merged in and published to a NuGet page.

For WinNUT, the best way forward is to separate out the AGauge project from the WinNUT solution, then create any further modifications that don't belong in the base AGauge project in a custom class specific for WinNUT.

  • Create fork of AGauge
    • Implement upstream fixes and changes
    • Implement other fixes as need
    • Publish to NuGet
  • Create any further modifications that don't belong in the base AGauge project in a custom Forms User Control for WinNUT.

Will eventually go towards addressing #18 .

Adds a form specifically for testing an AGauge control to reproduce the drawing bug.
Also upgrading to VS version 17 (2022.)
UPSVarGauge is a custom Forms control that inherits and overrides the AGauge control class. AGauge will be added as a NuGet reference to the latest version (or fork.)
Leaving it in the global Ssytem.Windows.Forms namespace was causing VS to remove type information from Forms objects in the solution view. This class probably didn't belong in a system namespace anyways.
Relocating CProgressBar and UPSVarGauge to a Controls subdirectory. Also removing non-existent .editorconfig from project.
@gbakeman gbakeman changed the title Correct AGauge drawing when scale changes AGauge tweaking Dec 4, 2022
Removing the NuGet package of AGauge and replacing the reference with a compiled binary from the nutdotnet/AGauge project with fixes merged in from @PaulMartinsen
Fixed new issue that was introduced where the gradient was not drawing correctly. It seems like the wrong coordinates were being used to calculate the gradient brush.
- Corrected naming on gradient orientation enums
- Reorganized logic in arc drawing subroutine
- Delete unused private fields and organize others
- Updating references to new gauge class
Updating references in WinNUT main form to new gauge class.
@gbakeman gbakeman added this to the 2.2 Stable Release milestone Feb 6, 2023
@gbakeman gbakeman added bug Something isn't working enhancement New feature or request labels Feb 6, 2023
@gbakeman gbakeman changed the title AGauge tweaking AGauge upgrades Nov 4, 2023
- Updated NuGet package reference, removed references to local/external AGauge project
- Updating Setup project with changes in references as a result
- Removed AGaugeTest form
- Removed extra .NET publishing dependency from main project
- Moved UPSVarGauge into a Controls namespace, and making explicit references in WinNUT form.
- Applying autogenerated OnInitialize function in the Application designer file.
@gbakeman gbakeman changed the title AGauge upgrades Separate AGauge into a NuGet package, with inherited control May 6, 2024
@gbakeman gbakeman changed the base branch from Dev-2.2 to dev-2.3 May 6, 2024 19:26
No longer need the original modded AGauge files.
Also remove an extraneous library.
@gbakeman gbakeman merged commit 2a26b9c into dev-2.3 May 6, 2024
1 check passed
@gbakeman gbakeman deleted the 18-gauge_scaling branch May 6, 2024 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant