-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
1,470 additions
and
99 deletions.
There are no files selected for viewing
102 changes: 102 additions & 0 deletions
102
GRBL-Plotter/MachineControl/ControlSetupForm.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* GRBL-Plotter. Another GCode sender for GRBL. | ||
This file is part of the GRBL-Plotter application. | ||
Copyright (C) 2015-2023 Sven Hasemann contact: [email protected] | ||
Copyright (C) 2015-2024 Sven Hasemann contact: [email protected] | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
@@ -35,6 +35,7 @@ You should have received a copy of the GNU General Public License | |
* 2023-04-27 add new tab 'filter'; highlight tabs with enabled options | ||
* 2023-08-01 check if (!e.Bounds.IsEmpty) | ||
* 2023-09-17 new option multi file import | ||
* 2024-02-04 add noise option | ||
*/ | ||
|
||
using System; | ||
|
@@ -264,6 +265,7 @@ private void SetupForm_Load(object sender, EventArgs e) | |
CbImportGCTangential_CheckStateChanged(sender, e); | ||
CbImportGraphicHatchFill_CheckStateChanged(sender, e); | ||
CbPathOverlapEnable_CheckStateChanged(sender, e); | ||
CbImportGraphicNoise_CheckStateChanged(sender, e); | ||
|
||
uint val = Properties.Settings.Default.importLoggerSettings; | ||
cBLogLevel1.Checked = (val & (uint)LogEnables.Level1) > 0; | ||
|
@@ -2209,7 +2211,7 @@ private bool IsOptionEnabledTabControl3(int tabIndex) | |
return (prop.importGraphicAddFrameEnable || prop.importGraphicMultiplyGraphicsEnable || prop.importGraphicLeadInEnable);// || prop.importGraphicLeadOutEnable); | ||
break; | ||
case 3: | ||
return (prop.importGCDragKnifeEnable || prop.importGCTangentialEnable || prop.importGraphicHatchFillEnable || prop.importGraphicExtendPathEnable); | ||
return (prop.importGCDragKnifeEnable || prop.importGCTangentialEnable || prop.importGraphicHatchFillEnable || prop.importGraphicExtendPathEnable || prop.importGraphicNoiseEnable); | ||
break; | ||
case 4: | ||
return (prop.importGraphicClipEnable); | ||
|
@@ -2343,5 +2345,16 @@ private void BtnSetSValues_Click(object sender, EventArgs e) | |
Properties.Settings.Default.importImageSMin = Properties.Settings.Default.importGCPWMZero; | ||
Properties.Settings.Default.importImageSMax = Properties.Settings.Default.importGCPWMDown; | ||
} | ||
|
||
private void CbImportGraphicNoise_CheckStateChanged(object sender, EventArgs e) | ||
{ | ||
bool enable = cBImportGraphicNoise.Checked; | ||
NudNoiseAmplitude.Enabled = NudNoiseDensity.Enabled = enable; | ||
if (enable) | ||
gBNoise.BackColor = Color.Yellow; | ||
else | ||
gBNoise.BackColor = Color.WhiteSmoke; | ||
|
||
} | ||
} | ||
} |
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
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.