-
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.
Merge pull request #16 from lgolouz/lgolouz_zxtr-15
Fixed [ZXTR-15] Implement parsing paremeters settings
- Loading branch information
Showing
14 changed files
with
774 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
//******************************************************************************* | ||
// ZX Tape Reviver | ||
//----------------- | ||
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
//******************************************************************************* | ||
|
||
import QtQuick 2.3 | ||
import QtQuick.Controls 1.3 | ||
import QtQuick.Dialogs 1.3 | ||
|
||
Dialog { | ||
id: frequencyDialog | ||
|
||
property var frequency: 0 | ||
|
||
visible: false | ||
title: "Measured frequency" | ||
standardButtons: StandardButton.Ok | ||
modality: Qt.WindowModal | ||
width: 200 | ||
height: 120 | ||
|
||
Text { | ||
id: textWithField | ||
text: "Measured frequency:" | ||
} | ||
|
||
TextField { | ||
id: textField | ||
anchors.top: textWithField.bottom | ||
anchors.topMargin: 5 | ||
width: parent.width | ||
text: frequency | ||
} | ||
} |
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
Oops, something went wrong.