-
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 #12 from lgolouz/develop
[Release #1] ZXTapeReviver
- Loading branch information
Showing
15 changed files
with
534 additions
and
84 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,61 @@ | ||
//******************************************************************************* | ||
// 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: gotoAddressDialog | ||
|
||
signal gotoAddress(int adr); | ||
|
||
visible: false | ||
title: "Go to address..." | ||
standardButtons: StandardButton.Ok | StandardButton.Cancel | ||
modality: Qt.WindowModal | ||
width: 200 | ||
height: 120 | ||
|
||
Text { | ||
id: textWithField | ||
text: "Please enter address:" | ||
} | ||
|
||
TextField { | ||
id: textField | ||
anchors.top: textWithField.bottom | ||
width: parent.width | ||
} | ||
|
||
CheckBox { | ||
id: hexCheckbox | ||
|
||
anchors.top: textField.bottom | ||
anchors.topMargin: 3 | ||
checked: true | ||
text: "Hexadecimal" | ||
} | ||
|
||
Text { | ||
id: conversionField | ||
|
||
function convertAddress(adr) { | ||
return hexCheckbox.checked ? parseInt(adr, 16) : "0x" + parseInt(adr, 10).toString(16).toUpperCase(); | ||
} | ||
|
||
text: "(" + convertAddress(textField.text) + ")" | ||
anchors.left: hexCheckbox.right | ||
anchors.leftMargin: 3 | ||
anchors.top: hexCheckbox.top | ||
} | ||
|
||
onAccepted: { | ||
gotoAddress(parseInt(textField.text, hexCheckbox.checked ? 16 : 10)); | ||
} | ||
} |
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,5 +1,6 @@ | ||
<RCC> | ||
<qresource prefix="/"> | ||
<file>main.qml</file> | ||
<file>GoToAddress.qml</file> | ||
</qresource> | ||
</RCC> |
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.