Compare commits
1
Commits
v2.0.0-pre1
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2e8b07c8f3 |
@@ -4,6 +4,7 @@ import ICCeryCore
|
|||||||
/// Stage 0 calibration dashboard (issue #29, docs/07).
|
/// Stage 0 calibration dashboard (issue #29, docs/07).
|
||||||
struct CalibrationView: View {
|
struct CalibrationView: View {
|
||||||
@Bindable var model: CalibrationViewModel
|
@Bindable var model: CalibrationViewModel
|
||||||
|
@Bindable var wizard: WizardViewModel
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
VStack(alignment: .leading, spacing: 0) {
|
VStack(alignment: .leading, spacing: 0) {
|
||||||
@@ -51,11 +52,15 @@ struct CalibrationView: View {
|
|||||||
HStack(spacing: 12) {
|
HStack(spacing: 12) {
|
||||||
Button("Generate Target") { model.generateTarget() }
|
Button("Generate Target") { model.generateTarget() }
|
||||||
.accessibilityIdentifier("btnCalGenerate")
|
.accessibilityIdentifier("btnCalGenerate")
|
||||||
.disabled(!model.canGenerate)
|
.disabled(wizard.basename.isEmpty
|
||||||
|
|| wizard.effectiveWorkingDirectory == nil
|
||||||
|
|| model.isGenerating)
|
||||||
|
|
||||||
Button("Create Layout & Print") { model.createLayout() }
|
Button("Create Layout & Print") { model.createLayout() }
|
||||||
.accessibilityIdentifier("btnCalLayout")
|
.accessibilityIdentifier("btnCalLayout")
|
||||||
.disabled(!model.canGenerate)
|
.disabled(wizard.basename.isEmpty
|
||||||
|
|| wizard.effectiveWorkingDirectory == nil
|
||||||
|
|| model.isGenerating)
|
||||||
|
|
||||||
Button("Measure") { model.measureChart() }
|
Button("Measure") { model.measureChart() }
|
||||||
.accessibilityIdentifier("btnCalMeasure")
|
.accessibilityIdentifier("btnCalMeasure")
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ private struct WizardStageContent: View {
|
|||||||
case .verifyInstall:
|
case .verifyInstall:
|
||||||
Stage5View(model: workflow.profile)
|
Stage5View(model: workflow.profile)
|
||||||
case .calibrate:
|
case .calibrate:
|
||||||
CalibrationView(model: workflow.calibration)
|
CalibrationView(model: workflow.calibration, wizard: workflow.wizard)
|
||||||
@unknown default:
|
@unknown default:
|
||||||
StagePlaceholderView(stage: model.stage)
|
StagePlaceholderView(stage: model.stage)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user