-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed [ZXTR-15] Implement parsing paremeters settings
- Loading branch information
Showing
12 changed files
with
610 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,206 @@ | ||
//******************************************************************************* | ||
// ZX Tape Reviver | ||
//----------------- | ||
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
//******************************************************************************* | ||
|
||
import QtQuick 2.3 | ||
import QtQuick.Controls 1.3 | ||
import QtQuick.Dialogs 1.3 | ||
import QtQuick.Layouts 1.15 | ||
|
||
import com.models.zxtapereviver 1.0 | ||
|
||
Dialog { | ||
id: parserSettingsDialog | ||
|
||
visible: false | ||
title: "Parser settings" | ||
standardButtons: StandardButton.Ok | StandardButton.RestoreDefaults | ||
modality: Qt.WindowModal | ||
|
||
Grid { | ||
id: grid | ||
columns: 4 | ||
|
||
GroupBox { | ||
title: "Pilot-tone settings:" | ||
ColumnLayout { | ||
Layout.fillHeight: true | ||
Text { | ||
text: "Pilot half frequency:" | ||
} | ||
|
||
TextField { | ||
text: ParserSettingsModel.pilotHalfFreq; | ||
onTextChanged: { | ||
ParserSettingsModel.pilotHalfFreq = parseInt(text, 10); | ||
} | ||
} | ||
|
||
Text { | ||
text: "Pilot frequency:" | ||
} | ||
|
||
TextField { | ||
text: ParserSettingsModel.pilotFreq; | ||
onTextChanged: { | ||
ParserSettingsModel.pilotFreq = parseInt(text, 10); | ||
} | ||
} | ||
|
||
Text { | ||
text: "Pilot delta:" | ||
} | ||
|
||
TextField { | ||
text: ParserSettingsModel.pilotDelta | ||
onTextChanged: { | ||
ParserSettingsModel.pilotDelta = text; | ||
} | ||
} | ||
} | ||
} | ||
|
||
GroupBox { | ||
title: "Synchro signal settigns:" | ||
ColumnLayout { | ||
Text { | ||
text: "Synchro first half frequency:" | ||
} | ||
|
||
TextField { | ||
text: ParserSettingsModel.synchroFirstHalfFreq; | ||
onTextChanged: { | ||
ParserSettingsModel.synchroFirstHalfFreq = parseInt(text, 10); | ||
} | ||
} | ||
|
||
Text { | ||
text: "Synchro second half frequency:" | ||
} | ||
|
||
TextField { | ||
text: ParserSettingsModel.synchroSecondHalfFreq; | ||
onTextChanged: { | ||
ParserSettingsModel.synchroSecondHalfFreq = parseInt(text, 10); | ||
} | ||
} | ||
|
||
Text { | ||
text: "Synchro frequency:" | ||
} | ||
|
||
TextField { | ||
text: ParserSettingsModel.synchroFreq; | ||
onTextChanged: { | ||
ParserSettingsModel.synchroFreq = parseInt(text, 10); | ||
} | ||
} | ||
|
||
Text { | ||
text: "Synchro delta:" | ||
} | ||
|
||
TextField { | ||
text: ParserSettingsModel.synchroDelta | ||
onTextChanged: { | ||
ParserSettingsModel.synchroDelta = text; | ||
} | ||
} | ||
} | ||
} | ||
|
||
GroupBox { | ||
title: "Zero digit settings:" | ||
ColumnLayout { | ||
Text { | ||
text: "Zero half frequency:" | ||
} | ||
|
||
TextField { | ||
text: ParserSettingsModel.zeroHalfFreq; | ||
onTextChanged: { | ||
ParserSettingsModel.zeroHalfFreq = parseInt(text, 10); | ||
} | ||
} | ||
|
||
Text { | ||
text: "Zero frequency:" | ||
} | ||
|
||
TextField { | ||
text: ParserSettingsModel.zeroFreq; | ||
onTextChanged: { | ||
ParserSettingsModel.zeroFreq = parseInt(text, 10); | ||
} | ||
} | ||
|
||
Text { | ||
text: "Zero delta:" | ||
} | ||
|
||
TextField { | ||
text: ParserSettingsModel.zeroDelta | ||
onTextChanged: { | ||
ParserSettingsModel.zeroDelta = text; | ||
} | ||
} | ||
} | ||
} | ||
|
||
GroupBox { | ||
title: "One digit settings:" | ||
ColumnLayout { | ||
Text { | ||
text: "One half frequency:" | ||
} | ||
|
||
TextField { | ||
text: ParserSettingsModel.oneHalfFreq; | ||
onTextChanged: { | ||
ParserSettingsModel.oneHalfFreq = parseInt(text, 10); | ||
} | ||
} | ||
|
||
Text { | ||
text: "One frequency:" | ||
} | ||
|
||
TextField { | ||
text: ParserSettingsModel.oneFreq; | ||
onTextChanged: { | ||
ParserSettingsModel.oneFreq = parseInt(text, 10); | ||
} | ||
} | ||
|
||
Text { | ||
text: "One delta:" | ||
} | ||
|
||
TextField { | ||
text: ParserSettingsModel.oneDelta | ||
onTextChanged: { | ||
ParserSettingsModel.oneDelta = text; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
CheckBox { | ||
anchors.top: grid.bottom | ||
anchors.topMargin: 5 | ||
|
||
text: "Check for abnormal sine when parsing" | ||
checked: ParserSettingsModel.checkForAbnormalSine | ||
onCheckedChanged: { | ||
ParserSettingsModel.checkForAbnormalSine = checked; | ||
} | ||
} | ||
|
||
onReset: { | ||
ParserSettingsModel.restoreDefaultSettings(); | ||
} | ||
} |
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.