forked from qt-creator/qt-creator
BinEditor: Clean up translation contexts
Change-Id: Ibeb8c93ad1dfa816ccf1160abae8aac6781157d9 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -3754,7 +3754,7 @@ F.eks., vil "Revision: 15" efterlade grenen ved revision 15.</translat
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditor::Internal::BinEditorDocument</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<source>The Binary Editor cannot open empty files.</source>
|
<source>The Binary Editor cannot open empty files.</source>
|
||||||
<translation>Binær-redigeringen kan ikke åbne tomme filer.</translation>
|
<translation>Binær-redigeringen kan ikke åbne tomme filer.</translation>
|
||||||
@@ -3771,9 +3771,6 @@ F.eks., vil "Revision: 15" efterlade grenen ved revision 15.</translat
|
|||||||
<source>Cannot open %1: %2</source>
|
<source>Cannot open %1: %2</source>
|
||||||
<translation>Kan ikke åbne %1: %2</translation>
|
<translation>Kan ikke åbne %1: %2</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>BinEditor::Internal::BinEditorWidget</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Memory at 0x%1</source>
|
<source>Memory at 0x%1</source>
|
||||||
<translation>Hukommelse ved 0x%1</translation>
|
<translation>Hukommelse ved 0x%1</translation>
|
||||||
@@ -3876,7 +3873,7 @@ F.eks., vil "Revision: 15" efterlade grenen ved revision 15.</translat
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditorWidget::TextEditorWidget</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Zoom: %1%</source>
|
<source>Zoom: %1%</source>
|
||||||
<translation>Zoom: %1%</translation>
|
<translation>Zoom: %1%</translation>
|
||||||
@@ -42916,7 +42913,7 @@ Spordataene er tabt.</translation>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditor::Internal::BinEditorPluginPrivate</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<source>&Undo</source>
|
<source>&Undo</source>
|
||||||
<translation>&Fortryd</translation>
|
<translation>&Fortryd</translation>
|
||||||
|
|||||||
@@ -28146,7 +28146,7 @@ Der vom Kit mindestens benötigte API-Level ist %1.</translation>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditor::Internal::BinEditorDocument</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<source>The Binary Editor cannot open empty files.</source>
|
<source>The Binary Editor cannot open empty files.</source>
|
||||||
<translation>Der Binäreditor kann keine leeren Dateien öffnen.</translation>
|
<translation>Der Binäreditor kann keine leeren Dateien öffnen.</translation>
|
||||||
@@ -37451,7 +37451,7 @@ Fehler: %5</translation>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditor::Internal::BinEditorWidget</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Memory at 0x%1</source>
|
<source>Memory at 0x%1</source>
|
||||||
<translation>Speicher bei 0x%1</translation>
|
<translation>Speicher bei 0x%1</translation>
|
||||||
@@ -37562,7 +37562,7 @@ Fehler: %5</translation>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditorWidget::TextEditorWidget</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Zoom: %1%</source>
|
<source>Zoom: %1%</source>
|
||||||
<translation>Vergrößerung: %1%</translation>
|
<translation>Vergrößerung: %1%</translation>
|
||||||
@@ -42482,7 +42482,7 @@ Die Dateien aus dem Quellverzeichnis des Android-Pakets werden in das Verzeichni
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditor::Internal::BinEditorPlugin</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<source>&Undo</source>
|
<source>&Undo</source>
|
||||||
<translation>&Rückgängig</translation>
|
<translation>&Rückgängig</translation>
|
||||||
|
|||||||
@@ -16431,7 +16431,7 @@ Check the test environment.</source>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditor::BinEditorWidget</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Memory at 0x%1</source>
|
<source>Memory at 0x%1</source>
|
||||||
<translation>Memorija pri 0x%1</translation>
|
<translation>Memorija pri 0x%1</translation>
|
||||||
@@ -16593,7 +16593,7 @@ Check the test environment.</source>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditor::Internal::BinEditorDocument</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<source>The Binary Editor cannot open empty files.</source>
|
<source>The Binary Editor cannot open empty files.</source>
|
||||||
<translation>Binarni uređivač ne može otvoriti prazne datoteke.</translation>
|
<translation>Binarni uređivač ne može otvoriti prazne datoteke.</translation>
|
||||||
@@ -16610,9 +16610,6 @@ Check the test environment.</source>
|
|||||||
<source>Cannot open %1: %2</source>
|
<source>Cannot open %1: %2</source>
|
||||||
<translation>Nije moguće otvoriti %1: %2</translation>
|
<translation>Nije moguće otvoriti %1: %2</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>BinEditor::Internal::BinEditorPlugin</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>&Undo</source>
|
<source>&Undo</source>
|
||||||
<translation>&Poništi</translation>
|
<translation>&Poništi</translation>
|
||||||
@@ -16621,120 +16618,17 @@ Check the test environment.</source>
|
|||||||
<source>&Redo</source>
|
<source>&Redo</source>
|
||||||
<translation>Po&novi</translation>
|
<translation>Po&novi</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>BinEditor::Internal::BinEditorWidget</name>
|
|
||||||
<message>
|
|
||||||
<source>Memory at 0x%1</source>
|
|
||||||
<translation>Memorija pri 0x%1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Decimal&nbsp;unsigned&nbsp;value:</source>
|
|
||||||
<translation>Decimalna&nbsp;nepotpisana&nbsp;vrijednost:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Decimal&nbsp;signed&nbsp;value:</source>
|
|
||||||
<translation>Decimalna&nbsp;potpisana&nbsp;vrijednost:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Previous&nbsp;decimal&nbsp;unsigned&nbsp;value:</source>
|
|
||||||
<translation>Prethodna&nbsp;decimalna&nbsp;nepotpisana&nbsp;vrijednost:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Previous&nbsp;decimal&nbsp;signed&nbsp;value:</source>
|
|
||||||
<translation>Prethodna&nbsp;decimalna&nbsp;potpisana&nbsp;vrijednost:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>%1-bit&nbsp;Integer&nbsp;Type</source>
|
|
||||||
<translation>%1-bit&nbsp;cjelobrojna&nbsp;vrsta</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Little Endian</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Big Endian</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Binary&nbsp;value:</source>
|
|
||||||
<translation>Binarna&nbsp;vrijednost:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Octal&nbsp;value:</source>
|
|
||||||
<translation>Oktalna&nbsp;vrijednost:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Previous&nbsp;binary&nbsp;value:</source>
|
|
||||||
<translation>Prethodna&nbsp;binarna&nbsp;vrijednost:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Previous&nbsp;octal&nbsp;value:</source>
|
|
||||||
<translation>Prethodna&nbsp;oktalna&nbsp;vrijednost:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source><i>double</i>&nbsp;value:</source>
|
|
||||||
<translation><i>dupla</i>&nbsp;vrijednost:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Previous <i>double</i>&nbsp;value:</source>
|
|
||||||
<translation>Prethodna <i>dupla</i>&nbsp;vrijednost:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source><i>float</i>&nbsp;value:</source>
|
|
||||||
<translation><i>pomična</i>&nbsp;vrijednost:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Previous <i>float</i>&nbsp;value:</source>
|
|
||||||
<translation>Prethodna <i>pomična</i>&nbsp;vrijednost:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Copying Failed</source>
|
|
||||||
<translation>Neuspjelo kopiranje</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>You cannot copy more than 4 MB of binary data.</source>
|
|
||||||
<translation>Ne možeš kopirati više od 4 MB binarnih podataka.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Copy Selection as ASCII Characters</source>
|
|
||||||
<translation>Kopiraj odabir kao ASCII znakove</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Copy Selection as Hex Values</source>
|
|
||||||
<translation>Kopiraj odabir kao heksadecimalne znakove</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Set Data Breakpoint on Selection</source>
|
|
||||||
<translation>Postavi točku prekida podataka na odabiru</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Copy 0x%1</source>
|
<source>Copy 0x%1</source>
|
||||||
<translation>Kopiraj 0x%1</translation>
|
<translation>Kopiraj 0x%1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Jump to Address in This Window</source>
|
|
||||||
<translation>Prijeđi na adresu u ovom prozoru</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Jump to Address in New Window</source>
|
|
||||||
<translation>Prijeđi na adresu u novom prozoru</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Copy Value</source>
|
<source>Copy Value</source>
|
||||||
<translation>Kopiraj vrijednost</translation>
|
<translation>Kopiraj vrijednost</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Jump to Address 0x%1 in This Window</source>
|
|
||||||
<translation>Prijeđi na adresu 0x%1 u ovom prozoru</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Jump to Address 0x%1 in New Window</source>
|
|
||||||
<translation>Prijeđi na adresu 0x%1 u novom prozoru</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditorWidget::TextEditorWidget</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Zoom: %1%</source>
|
<source>Zoom: %1%</source>
|
||||||
<translation>Zumiranje: %1%</translation>
|
<translation>Zumiranje: %1%</translation>
|
||||||
|
|||||||
@@ -38674,7 +38674,7 @@ Only desktop kits are supported. Make sure the currently active kit is a desktop
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditor::BinEditorWidget</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Memory at 0x%1</source>
|
<source>Memory at 0x%1</source>
|
||||||
<translation>0x%1 のメモリ</translation>
|
<translation>0x%1 のメモリ</translation>
|
||||||
@@ -38775,9 +38775,6 @@ Only desktop kits are supported. Make sure the currently active kit is a desktop
|
|||||||
<source>Jump to Address 0x%1 in New Window</source>
|
<source>Jump to Address 0x%1 in New Window</source>
|
||||||
<translation>新規ウィンドウでアドレス 0x%1 に移動</translation>
|
<translation>新規ウィンドウでアドレス 0x%1 に移動</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>BinEditor::Internal::BinEditorDocument</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>The Binary Editor cannot open empty files.</source>
|
<source>The Binary Editor cannot open empty files.</source>
|
||||||
<translation>バイナリエディタでは空のファイルを開けません。</translation>
|
<translation>バイナリエディタでは空のファイルを開けません。</translation>
|
||||||
@@ -38794,9 +38791,6 @@ Only desktop kits are supported. Make sure the currently active kit is a desktop
|
|||||||
<source>Cannot open %1: %2</source>
|
<source>Cannot open %1: %2</source>
|
||||||
<translation>%1 を開けません: %2</translation>
|
<translation>%1 を開けません: %2</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>BinEditor::Internal::BinEditorPlugin</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>&Undo</source>
|
<source>&Undo</source>
|
||||||
<translation>元に戻す(&U)</translation>
|
<translation>元に戻す(&U)</translation>
|
||||||
@@ -48905,118 +48899,18 @@ The name of the release build configuration created by default for a qmake proje
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditor::Internal::BinEditorWidget</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
|
||||||
<source>Memory at 0x%1</source>
|
|
||||||
<translation>0x%1 のメモリ</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Decimal&nbsp;unsigned&nbsp;value:</source>
|
|
||||||
<translation>符号無し10進数:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Decimal&nbsp;signed&nbsp;value:</source>
|
|
||||||
<translation>符号付き10進数:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Previous&nbsp;decimal&nbsp;unsigned&nbsp;value:</source>
|
|
||||||
<translation>直前の符号無し10進数:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Previous&nbsp;decimal&nbsp;signed&nbsp;value:</source>
|
|
||||||
<translation>直前の符号付き10進数:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>%1-bit&nbsp;Integer&nbsp;Type</source>
|
|
||||||
<translation>%1 ビット整数型</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Little Endian</source>
|
|
||||||
<translation>リトルエンディアン</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Big Endian</source>
|
|
||||||
<translation>ビッグエンディアン</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Binary&nbsp;value:</source>
|
|
||||||
<translation>2進数:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Octal&nbsp;value:</source>
|
|
||||||
<translation>8進数:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Previous&nbsp;binary&nbsp;value:</source>
|
|
||||||
<translation>直前の2進数:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Previous&nbsp;octal&nbsp;value:</source>
|
|
||||||
<translation>直前の8進数:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source><i>double</i>&nbsp;value:</source>
|
|
||||||
<translation><i>倍精度浮動小数点</i>数:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Previous <i>double</i>&nbsp;value:</source>
|
|
||||||
<translation>直前の<i>倍精度浮動小数点</i>数:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source><i>float</i>&nbsp;value:</source>
|
|
||||||
<translation><i>単精度浮動小数点</i>数:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Previous <i>float</i>&nbsp;value:</source>
|
|
||||||
<translation>直前の<i>単精度浮動小数点</i>数:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Copying Failed</source>
|
|
||||||
<translation>コピー失敗</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>You cannot copy more than 4 MB of binary data.</source>
|
|
||||||
<translation>4MB より大きなバイナリデータはコピーできません。</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Copy Selection as ASCII Characters</source>
|
|
||||||
<translation>選択内容を ASCII 文字列としてコピーする</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Copy Selection as Hex Values</source>
|
|
||||||
<translation>選択内容を16進数の値としてコピーする</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Set Data Breakpoint on Selection</source>
|
|
||||||
<translation>選択した箇所にデータブレークポイントを設定</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Copy 0x%1</source>
|
<source>Copy 0x%1</source>
|
||||||
<translation>0x%1をコピー</translation>
|
<translation>0x%1をコピー</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Jump to Address in This Window</source>
|
|
||||||
<translation>ウィンドウ内でアドレスに移動</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Jump to Address in New Window</source>
|
|
||||||
<translation>新規ウィンドウでアドレスに移動</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Copy Value</source>
|
<source>Copy Value</source>
|
||||||
<translation>値をコピー</translation>
|
<translation>値をコピー</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Jump to Address 0x%1 in This Window</source>
|
|
||||||
<translation>ウィンドウ内でアドレス 0x%1 に移動</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Jump to Address 0x%1 in New Window</source>
|
|
||||||
<translation>新規ウィンドウでアドレス 0x%1 に移動</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditorWidget::TextEditorWidget</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Zoom: %1%</source>
|
<source>Zoom: %1%</source>
|
||||||
<translation>拡大率: %1%</translation>
|
<translation>拡大率: %1%</translation>
|
||||||
|
|||||||
@@ -30346,7 +30346,7 @@ Zainstaluj SDK o wersji %1 lub wyższej.</translation>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditor::Internal::BinEditorDocument</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<source>The Binary Editor cannot open empty files.</source>
|
<source>The Binary Editor cannot open empty files.</source>
|
||||||
<translation>Edytor plików binarnych nie może otwierać pustych plików.</translation>
|
<translation>Edytor plików binarnych nie może otwierać pustych plików.</translation>
|
||||||
@@ -30363,9 +30363,6 @@ Zainstaluj SDK o wersji %1 lub wyższej.</translation>
|
|||||||
<source>Cannot open %1: %2</source>
|
<source>Cannot open %1: %2</source>
|
||||||
<translation>Nie można otworzyć %1: %2</translation>
|
<translation>Nie można otworzyć %1: %2</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>BinEditor::Internal::BinEditorPlugin</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>&Undo</source>
|
<source>&Undo</source>
|
||||||
<translation>&Cofnij</translation>
|
<translation>&Cofnij</translation>
|
||||||
@@ -39906,7 +39903,7 @@ Uwaga: podczas używania zwykłego formatu tekstowego może brakować niektóryc
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditor::Internal::BinEditorWidget</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Memory at 0x%1</source>
|
<source>Memory at 0x%1</source>
|
||||||
<translation>Pamięć w 0x%1</translation>
|
<translation>Pamięć w 0x%1</translation>
|
||||||
@@ -41618,7 +41615,7 @@ Błąd: %2</translation>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditorWidget::TextEditorWidget</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Zoom: %1%</source>
|
<source>Zoom: %1%</source>
|
||||||
<translation>Powiększenie:%1%</translation>
|
<translation>Powiększenie:%1%</translation>
|
||||||
|
|||||||
@@ -5429,7 +5429,7 @@ For example, "Revision: 15" will leave the branch at revision 15.</sou
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditor::Internal::BinEditorDocument</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<source>The Binary Editor cannot open empty files.</source>
|
<source>The Binary Editor cannot open empty files.</source>
|
||||||
<translation>Двоичный редактор не может открывать пустые файлы.</translation>
|
<translation>Двоичный редактор не может открывать пустые файлы.</translation>
|
||||||
@@ -5446,9 +5446,6 @@ For example, "Revision: 15" will leave the branch at revision 15.</sou
|
|||||||
<source>Cannot open %1: %2</source>
|
<source>Cannot open %1: %2</source>
|
||||||
<translation>Не удалось открыть %1: %2</translation>
|
<translation>Не удалось открыть %1: %2</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>BinEditor::Internal::BinEditorPlugin</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>&Undo</source>
|
<source>&Undo</source>
|
||||||
<translation>&Отменить</translation>
|
<translation>&Отменить</translation>
|
||||||
@@ -5457,9 +5454,6 @@ For example, "Revision: 15" will leave the branch at revision 15.</sou
|
|||||||
<source>&Redo</source>
|
<source>&Redo</source>
|
||||||
<translation>&Повторить</translation>
|
<translation>&Повторить</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>BinEditor::Internal::BinEditorWidget</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Memory at 0x%1</source>
|
<source>Memory at 0x%1</source>
|
||||||
<translation>Память с 0x%1</translation>
|
<translation>Память с 0x%1</translation>
|
||||||
@@ -5570,7 +5564,7 @@ For example, "Revision: 15" will leave the branch at revision 15.</sou
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditorWidget::TextEditorWidget</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Zoom: %1%</source>
|
<source>Zoom: %1%</source>
|
||||||
<translation>Масштаб: %1%</translation>
|
<translation>Масштаб: %1%</translation>
|
||||||
|
|||||||
@@ -43904,7 +43904,7 @@ Deploying local Qt libraries is incompatible with Android 5.</source>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BinEditor::BinEditorWidget</name>
|
<name>BinEditor</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Memory at 0x%1</source>
|
<source>Memory at 0x%1</source>
|
||||||
<translation>Пам'ять в 0x%1</translation>
|
<translation>Пам'ять в 0x%1</translation>
|
||||||
@@ -44005,9 +44005,6 @@ Deploying local Qt libraries is incompatible with Android 5.</source>
|
|||||||
<source>Jump to Address 0x%1 in New Window</source>
|
<source>Jump to Address 0x%1 in New Window</source>
|
||||||
<translation>Перейти до адреси 0x%1 в новому вікні</translation>
|
<translation>Перейти до адреси 0x%1 в новому вікні</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>BinEditor::Internal::BinEditorDocument</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>The Binary Editor cannot open empty files.</source>
|
<source>The Binary Editor cannot open empty files.</source>
|
||||||
<translation>Двійковий редактор не може відкривати порожні файли.</translation>
|
<translation>Двійковий редактор не може відкривати порожні файли.</translation>
|
||||||
@@ -44024,9 +44021,6 @@ Deploying local Qt libraries is incompatible with Android 5.</source>
|
|||||||
<source>Cannot open %1: %2</source>
|
<source>Cannot open %1: %2</source>
|
||||||
<translation>Неможливо відкрити %1: %2</translation>
|
<translation>Неможливо відкрити %1: %2</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>BinEditor::Internal::BinEditorPlugin</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>&Undo</source>
|
<source>&Undo</source>
|
||||||
<translation>&Повернути</translation>
|
<translation>&Повернути</translation>
|
||||||
|
|||||||
@@ -3,13 +3,10 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
namespace BinEditor {
|
namespace BinEditor::Constants {
|
||||||
namespace Constants {
|
|
||||||
|
|
||||||
const char C_BINEDITOR[] = "BinEditor.BinaryEditor";
|
const char C_BINEDITOR[] = "BinEditor.BinaryEditor";
|
||||||
const char C_BINEDITOR_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("OpenWith::Editors", "Binary Editor");
|
|
||||||
const char C_BINEDITOR_MIMETYPE[] = "application/octet-stream";
|
const char C_BINEDITOR_MIMETYPE[] = "application/octet-stream";
|
||||||
const char C_ENCODING_SETTING[] = "BinEditor/TextEncoding";
|
const char C_ENCODING_SETTING[] = "BinEditor/TextEncoding";
|
||||||
|
|
||||||
} // namespace Constants
|
} // BinEditor::Constants
|
||||||
} // namespace BinEditor
|
|
||||||
|
|||||||
@@ -2,26 +2,24 @@
|
|||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
#include "bineditorplugin.h"
|
#include "bineditorplugin.h"
|
||||||
#include "bineditorwidget.h"
|
|
||||||
#include "bineditorconstants.h"
|
#include "bineditorconstants.h"
|
||||||
#include "bineditorservice.h"
|
#include "bineditorservice.h"
|
||||||
|
#include "bineditortr.h"
|
||||||
|
#include "bineditorwidget.h"
|
||||||
|
|
||||||
|
#include <coreplugin/editormanager/ieditorfactory.h>
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
|
|
||||||
#include <texteditor/codecchooser.h>
|
#include <texteditor/codecchooser.h>
|
||||||
|
|
||||||
#include <QCoreApplication>
|
|
||||||
#include <QDir>
|
|
||||||
#include <QFile>
|
|
||||||
#include <QFileInfo>
|
|
||||||
#include <QTextCodec>
|
|
||||||
#include <QVariant>
|
|
||||||
|
|
||||||
#include <QMenu>
|
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
#include <QMessageBox>
|
|
||||||
#include <QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
|
#include <QMenu>
|
||||||
|
#include <QMessageBox>
|
||||||
#include <QRegularExpressionValidator>
|
#include <QRegularExpressionValidator>
|
||||||
|
#include <QTextCodec>
|
||||||
#include <QToolBar>
|
#include <QToolBar>
|
||||||
|
|
||||||
#include <coreplugin/actionmanager/actionmanager.h>
|
#include <coreplugin/actionmanager/actionmanager.h>
|
||||||
@@ -30,6 +28,7 @@
|
|||||||
#include <coreplugin/editormanager/ieditor.h>
|
#include <coreplugin/editormanager/ieditor.h>
|
||||||
#include <coreplugin/find/ifindsupport.h>
|
#include <coreplugin/find/ifindsupport.h>
|
||||||
#include <coreplugin/idocument.h>
|
#include <coreplugin/idocument.h>
|
||||||
|
|
||||||
#include <extensionsystem/pluginmanager.h>
|
#include <extensionsystem/pluginmanager.h>
|
||||||
|
|
||||||
#include <utils/reloadpromptutils.h>
|
#include <utils/reloadpromptutils.h>
|
||||||
@@ -38,13 +37,16 @@
|
|||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
using namespace Core;
|
using namespace Core;
|
||||||
|
|
||||||
namespace BinEditor {
|
namespace BinEditor::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
class BinEditorFactory final : public IEditorFactory
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
BinEditorFactory();
|
||||||
|
};
|
||||||
|
|
||||||
class BinEditorFind : public IFindSupport
|
class BinEditorFind : public IFindSupport
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BinEditorFind(BinEditorWidget *widget)
|
BinEditorFind(BinEditorWidget *widget)
|
||||||
{
|
{
|
||||||
@@ -232,31 +234,31 @@ public:
|
|||||||
{
|
{
|
||||||
const qint64 size = filePath.fileSize();
|
const qint64 size = filePath.fileSize();
|
||||||
if (size < 0) {
|
if (size < 0) {
|
||||||
QString msg = tr("Cannot open %1: %2").arg(filePath.toUserOutput(), tr("File Error"));
|
QString msg = Tr::tr("Cannot open %1: %2").arg(filePath.toUserOutput(), Tr::tr("File Error"));
|
||||||
// FIXME: Was: file.errorString(), but we don't have a file anymore.
|
// FIXME: Was: file.errorString(), but we don't have a file anymore.
|
||||||
if (errorString)
|
if (errorString)
|
||||||
*errorString = msg;
|
*errorString = msg;
|
||||||
else
|
else
|
||||||
QMessageBox::critical(ICore::dialogParent(), tr("File Error"), msg);
|
QMessageBox::critical(ICore::dialogParent(), Tr::tr("File Error"), msg);
|
||||||
return OpenResult::ReadError;
|
return OpenResult::ReadError;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (size == 0) {
|
if (size == 0) {
|
||||||
QString msg = tr("The Binary Editor cannot open empty files.");
|
QString msg = Tr::tr("The Binary Editor cannot open empty files.");
|
||||||
if (errorString)
|
if (errorString)
|
||||||
*errorString = msg;
|
*errorString = msg;
|
||||||
else
|
else
|
||||||
QMessageBox::critical(ICore::dialogParent(), tr("File Error"), msg);
|
QMessageBox::critical(ICore::dialogParent(), Tr::tr("File Error"), msg);
|
||||||
return OpenResult::CannotHandle;
|
return OpenResult::CannotHandle;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (size / 16 >= qint64(1) << 31) {
|
if (size / 16 >= qint64(1) << 31) {
|
||||||
// The limit is 2^31 lines (due to QText* interfaces) * 16 bytes per line.
|
// The limit is 2^31 lines (due to QText* interfaces) * 16 bytes per line.
|
||||||
QString msg = tr("The file is too big for the Binary Editor (max. 32GB).");
|
QString msg = Tr::tr("The file is too big for the Binary Editor (max. 32GB).");
|
||||||
if (errorString)
|
if (errorString)
|
||||||
*errorString = msg;
|
*errorString = msg;
|
||||||
else
|
else
|
||||||
QMessageBox::critical(ICore::dialogParent(), tr("File Error"), msg);
|
QMessageBox::critical(ICore::dialogParent(), Tr::tr("File Error"), msg);
|
||||||
return OpenResult::CannotHandle;
|
return OpenResult::CannotHandle;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -279,8 +281,8 @@ public:
|
|||||||
if (dataSize != blockSize)
|
if (dataSize != blockSize)
|
||||||
data += QByteArray(blockSize - dataSize, 0);
|
data += QByteArray(blockSize - dataSize, 0);
|
||||||
m_widget->addData(address, data);
|
m_widget->addData(address, data);
|
||||||
// QMessageBox::critical(ICore::dialogParent(), tr("File Error"),
|
// QMessageBox::critical(ICore::dialogParent(), Tr::tr("File Error"),
|
||||||
// tr("Cannot open %1: %2").arg(
|
// Tr::tr("Cannot open %1: %2").arg(
|
||||||
// fn.toUserOutput(), file.errorString()));
|
// fn.toUserOutput(), file.errorString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -415,7 +417,7 @@ BinEditorPluginPrivate::BinEditorPluginPrivate()
|
|||||||
ExtensionSystem::PluginManager::addObject(&m_editorFactory);
|
ExtensionSystem::PluginManager::addObject(&m_editorFactory);
|
||||||
|
|
||||||
m_undoAction = new QAction(BinEditorPlugin::tr("&Undo"), this);
|
m_undoAction = new QAction(BinEditorPlugin::tr("&Undo"), this);
|
||||||
m_redoAction = new QAction(BinEditorPlugin::tr("&Redo"), this);
|
m_redoAction = new QAction(Tr::tr("&Redo"), this);
|
||||||
m_copyAction = new QAction(this);
|
m_copyAction = new QAction(this);
|
||||||
m_selectAllAction = new QAction(this);
|
m_selectAllAction = new QAction(this);
|
||||||
|
|
||||||
@@ -442,7 +444,7 @@ static BinEditorPluginPrivate *dd = nullptr;
|
|||||||
BinEditorFactory::BinEditorFactory()
|
BinEditorFactory::BinEditorFactory()
|
||||||
{
|
{
|
||||||
setId(Core::Constants::K_DEFAULT_BINARY_EDITOR_ID);
|
setId(Core::Constants::K_DEFAULT_BINARY_EDITOR_ID);
|
||||||
setDisplayName(QCoreApplication::translate("OpenWith::Editors", Constants::C_BINEDITOR_DISPLAY_NAME));
|
setDisplayName(QCoreApplication::translate("OpenWith::Editors", "Binary Editor"));
|
||||||
addMimeType(Constants::C_BINEDITOR_MIMETYPE);
|
addMimeType(Constants::C_BINEDITOR_MIMETYPE);
|
||||||
|
|
||||||
setEditorCreator([] {
|
setEditorCreator([] {
|
||||||
@@ -510,7 +512,6 @@ bool BinEditorPlugin::initialize(const QStringList &arguments, QString *errorMes
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // BinEditor::Internal
|
||||||
} // namespace BinEditor
|
|
||||||
|
|
||||||
#include "bineditorplugin.moc"
|
#include "bineditorplugin.moc"
|
||||||
|
|||||||
@@ -6,10 +6,8 @@
|
|||||||
#include "bineditorservice.h"
|
#include "bineditorservice.h"
|
||||||
|
|
||||||
#include <extensionsystem/iplugin.h>
|
#include <extensionsystem/iplugin.h>
|
||||||
#include <coreplugin/editormanager/ieditorfactory.h>
|
|
||||||
|
|
||||||
namespace BinEditor {
|
namespace BinEditor::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class BinEditorPlugin : public ExtensionSystem::IPlugin
|
class BinEditorPlugin : public ExtensionSystem::IPlugin
|
||||||
{
|
{
|
||||||
@@ -22,12 +20,6 @@ class BinEditorPlugin : public ExtensionSystem::IPlugin
|
|||||||
void extensionsInitialized() final {}
|
void extensionsInitialized() final {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class BinEditorFactory final : public Core::IEditorFactory
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
BinEditorFactory();
|
|
||||||
};
|
|
||||||
|
|
||||||
class FactoryServiceImpl : public QObject, public FactoryService
|
class FactoryServiceImpl : public QObject, public FactoryService
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@@ -37,5 +29,4 @@ public:
|
|||||||
EditorService *createEditorService(const QString &title0, bool wantsEditor) final;
|
EditorService *createEditorService(const QString &title0, bool wantsEditor) final;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // BinEditor::Internal
|
||||||
} // namespace BinEditor
|
|
||||||
|
|||||||
@@ -12,4 +12,4 @@ struct Tr
|
|||||||
Q_DECLARE_TR_FUNCTIONS(BinEditor)
|
Q_DECLARE_TR_FUNCTIONS(BinEditor)
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace BinEditor
|
} // BinEditor
|
||||||
|
|||||||
@@ -2,8 +2,10 @@
|
|||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
#include "bineditorwidget.h"
|
#include "bineditorwidget.h"
|
||||||
|
|
||||||
#include "bineditorconstants.h"
|
#include "bineditorconstants.h"
|
||||||
#include "bineditorservice.h"
|
#include "bineditorservice.h"
|
||||||
|
#include "bineditortr.h"
|
||||||
#include "markup.h"
|
#include "markup.h"
|
||||||
|
|
||||||
#include <coreplugin/coreconstants.h>
|
#include <coreplugin/coreconstants.h>
|
||||||
@@ -42,8 +44,7 @@
|
|||||||
using namespace Core;
|
using namespace Core;
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace BinEditor {
|
namespace BinEditor::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
const QChar MidpointChar(u'\u00B7');
|
const QChar MidpointChar(u'\u00B7');
|
||||||
|
|
||||||
@@ -1218,7 +1219,7 @@ QString BinEditorWidget::toolTip(const QHelpEvent *helpEvent) const
|
|||||||
QString msg;
|
QString msg;
|
||||||
QTextStream str(&msg);
|
QTextStream str(&msg);
|
||||||
str << "<html><head/><body><p align=\"center\"><b>"
|
str << "<html><head/><body><p align=\"center\"><b>"
|
||||||
<< tr("Memory at 0x%1").arg(address, 0, 16) << "</b></p>";
|
<< Tr::tr("Memory at 0x%1").arg(address, 0, 16) << "</b></p>";
|
||||||
|
|
||||||
for (const Markup &m : qAsConst(m_markup)) {
|
for (const Markup &m : qAsConst(m_markup)) {
|
||||||
if (m.covers(address) && !m.toolTip.isEmpty()) {
|
if (m.covers(address) && !m.toolTip.isEmpty()) {
|
||||||
@@ -1226,16 +1227,16 @@ QString BinEditorWidget::toolTip(const QHelpEvent *helpEvent) const
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const QString msgDecimalUnsigned = tr("Decimal unsigned value:");
|
const QString msgDecimalUnsigned = Tr::tr("Decimal unsigned value:");
|
||||||
const QString msgDecimalSigned = tr("Decimal signed value:");
|
const QString msgDecimalSigned = Tr::tr("Decimal signed value:");
|
||||||
const QString msgOldDecimalUnsigned = tr("Previous decimal unsigned value:");
|
const QString msgOldDecimalUnsigned = Tr::tr("Previous decimal unsigned value:");
|
||||||
const QString msgOldDecimalSigned = tr("Previous decimal signed value:");
|
const QString msgOldDecimalSigned = Tr::tr("Previous decimal signed value:");
|
||||||
|
|
||||||
// Table showing little vs. big endian integers for multi-byte
|
// Table showing little vs. big endian integers for multi-byte
|
||||||
if (intSize > 1) {
|
if (intSize > 1) {
|
||||||
str << "<table><tr><th>"
|
str << "<table><tr><th>"
|
||||||
<< tr("%1-bit Integer Type").arg(8 * intSize) << "</th><th>"
|
<< Tr::tr("%1-bit Integer Type").arg(8 * intSize) << "</th><th>"
|
||||||
<< tr("Little Endian") << "</th><th>" << tr("Big Endian") << "</th></tr>";
|
<< Tr::tr("Little Endian") << "</th><th>" << Tr::tr("Big Endian") << "</th></tr>";
|
||||||
str << tableRowStartC << msgDecimalUnsigned
|
str << tableRowStartC << msgDecimalUnsigned
|
||||||
<< numericTableRowSepC << littleEndianValue << numericTableRowSepC
|
<< numericTableRowSepC << littleEndianValue << numericTableRowSepC
|
||||||
<< bigEndianValue << tableRowEndC << tableRowStartC << msgDecimalSigned
|
<< bigEndianValue << tableRowEndC << tableRowStartC << msgDecimalSigned
|
||||||
@@ -1261,14 +1262,14 @@ QString BinEditorWidget::toolTip(const QHelpEvent *helpEvent) const
|
|||||||
str << tableRowStartC << msgDecimalSigned << numericTableRowSepC
|
str << tableRowStartC << msgDecimalSigned << numericTableRowSepC
|
||||||
<< littleEndianSigned << tableRowEndC;
|
<< littleEndianSigned << tableRowEndC;
|
||||||
}
|
}
|
||||||
str << tableRowStartC << tr("Binary value:") << numericTableRowSepC;
|
str << tableRowStartC << Tr::tr("Binary value:") << numericTableRowSepC;
|
||||||
str.setIntegerBase(2);
|
str.setIntegerBase(2);
|
||||||
str.setFieldWidth(8);
|
str.setFieldWidth(8);
|
||||||
str.setPadChar(QLatin1Char('0'));
|
str.setPadChar(QLatin1Char('0'));
|
||||||
str << littleEndianValue;
|
str << littleEndianValue;
|
||||||
str.setFieldWidth(0);
|
str.setFieldWidth(0);
|
||||||
str << tableRowEndC << tableRowStartC
|
str << tableRowEndC << tableRowStartC
|
||||||
<< tr("Octal value:") << numericTableRowSepC;
|
<< Tr::tr("Octal value:") << numericTableRowSepC;
|
||||||
str.setIntegerBase(8);
|
str.setIntegerBase(8);
|
||||||
str.setFieldWidth(3);
|
str.setFieldWidth(3);
|
||||||
str << littleEndianValue << tableRowEndC;
|
str << littleEndianValue << tableRowEndC;
|
||||||
@@ -1281,13 +1282,13 @@ QString BinEditorWidget::toolTip(const QHelpEvent *helpEvent) const
|
|||||||
str << tableRowStartC << msgOldDecimalSigned << numericTableRowSepC
|
str << tableRowStartC << msgOldDecimalSigned << numericTableRowSepC
|
||||||
<< littleEndianSignedOld << tableRowEndC;
|
<< littleEndianSignedOld << tableRowEndC;
|
||||||
}
|
}
|
||||||
str << tableRowStartC << tr("Previous binary value:")
|
str << tableRowStartC << Tr::tr("Previous binary value:")
|
||||||
<< numericTableRowSepC;
|
<< numericTableRowSepC;
|
||||||
str.setIntegerBase(2);
|
str.setIntegerBase(2);
|
||||||
str.setFieldWidth(8);
|
str.setFieldWidth(8);
|
||||||
str << littleEndianValueOld;
|
str << littleEndianValueOld;
|
||||||
str.setFieldWidth(0);
|
str.setFieldWidth(0);
|
||||||
str << tableRowEndC << tableRowStartC << tr("Previous octal value:")
|
str << tableRowEndC << tableRowStartC << Tr::tr("Previous octal value:")
|
||||||
<< numericTableRowSepC;
|
<< numericTableRowSepC;
|
||||||
str.setIntegerBase(8);
|
str.setIntegerBase(8);
|
||||||
str.setFieldWidth(3);
|
str.setFieldWidth(3);
|
||||||
@@ -1303,10 +1304,10 @@ QString BinEditorWidget::toolTip(const QHelpEvent *helpEvent) const
|
|||||||
double doubleValue, doubleValueOld;
|
double doubleValue, doubleValueOld;
|
||||||
asDouble(selStart, doubleValue, false);
|
asDouble(selStart, doubleValue, false);
|
||||||
asDouble(selStart, doubleValueOld, true);
|
asDouble(selStart, doubleValueOld, true);
|
||||||
str << tableRowStartC << tr("<i>double</i> value:") << numericTableRowSepC
|
str << tableRowStartC << Tr::tr("<i>double</i> value:") << numericTableRowSepC
|
||||||
<< doubleValue << tableRowEndC;
|
<< doubleValue << tableRowEndC;
|
||||||
if (doubleValue != doubleValueOld)
|
if (doubleValue != doubleValueOld)
|
||||||
str << tableRowStartC << tr("Previous <i>double</i> value:") << numericTableRowSepC
|
str << tableRowStartC << Tr::tr("Previous <i>double</i> value:") << numericTableRowSepC
|
||||||
<< doubleValueOld << tableRowEndC;
|
<< doubleValueOld << tableRowEndC;
|
||||||
str << "</table>";
|
str << "</table>";
|
||||||
}
|
}
|
||||||
@@ -1317,10 +1318,10 @@ QString BinEditorWidget::toolTip(const QHelpEvent *helpEvent) const
|
|||||||
float floatValue, floatValueOld;
|
float floatValue, floatValueOld;
|
||||||
asFloat(selStart, floatValue, false);
|
asFloat(selStart, floatValue, false);
|
||||||
asFloat(selStart, floatValueOld, true);
|
asFloat(selStart, floatValueOld, true);
|
||||||
str << tableRowStartC << tr("<i>float</i> value:") << numericTableRowSepC
|
str << tableRowStartC << Tr::tr("<i>float</i> value:") << numericTableRowSepC
|
||||||
<< floatValue << tableRowEndC;
|
<< floatValue << tableRowEndC;
|
||||||
if (floatValue != floatValueOld)
|
if (floatValue != floatValueOld)
|
||||||
str << tableRowStartC << tr("Previous <i>float</i> value:") << numericTableRowSepC
|
str << tableRowStartC << Tr::tr("Previous <i>float</i> value:") << numericTableRowSepC
|
||||||
<< floatValueOld << tableRowEndC;
|
<< floatValueOld << tableRowEndC;
|
||||||
|
|
||||||
str << "</table>";
|
str << "</table>";
|
||||||
@@ -1441,8 +1442,7 @@ void BinEditorWidget::keyPressEvent(QKeyEvent *e)
|
|||||||
static void showZoomIndicator(QWidget *editor, const int newZoom)
|
static void showZoomIndicator(QWidget *editor, const int newZoom)
|
||||||
{
|
{
|
||||||
Utils::FadingIndicator::showText(editor,
|
Utils::FadingIndicator::showText(editor,
|
||||||
QCoreApplication::translate("BinEditorWidget::TextEditorWidget",
|
Tr::tr("Zoom: %1%").arg(newZoom),
|
||||||
"Zoom: %1%").arg(newZoom),
|
|
||||||
Utils::FadingIndicator::SmallText);
|
Utils::FadingIndicator::SmallText);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1465,8 +1465,8 @@ void BinEditorWidget::copy(bool raw)
|
|||||||
int selEnd = selectionEnd();
|
int selEnd = selectionEnd();
|
||||||
const int selectionLength = selEnd - selStart + 1;
|
const int selectionLength = selEnd - selStart + 1;
|
||||||
if (selectionLength >> 22) {
|
if (selectionLength >> 22) {
|
||||||
QMessageBox::warning(this, tr("Copying Failed"),
|
QMessageBox::warning(this, Tr::tr("Copying Failed"),
|
||||||
tr("You cannot copy more than 4 MB of binary data."));
|
Tr::tr("You cannot copy more than 4 MB of binary data."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QByteArray data = dataMid(selStart, selectionLength);
|
QByteArray data = dataMid(selStart, selectionLength);
|
||||||
@@ -1577,15 +1577,15 @@ void BinEditorWidget::contextMenuEvent(QContextMenuEvent *event)
|
|||||||
|
|
||||||
QPointer<QMenu> contextMenu(new QMenu(this));
|
QPointer<QMenu> contextMenu(new QMenu(this));
|
||||||
|
|
||||||
auto copyAsciiAction = new QAction(tr("Copy Selection as ASCII Characters"), contextMenu);
|
auto copyAsciiAction = new QAction(Tr::tr("Copy Selection as ASCII Characters"), contextMenu);
|
||||||
auto copyHexAction = new QAction(tr("Copy Selection as Hex Values"), contextMenu);
|
auto copyHexAction = new QAction(Tr::tr("Copy Selection as Hex Values"), contextMenu);
|
||||||
auto copyBeValue = new QAction(contextMenu);
|
auto copyBeValue = new QAction(contextMenu);
|
||||||
auto copyLeValue = new QAction(contextMenu);
|
auto copyLeValue = new QAction(contextMenu);
|
||||||
auto jumpToBeAddressHereAction = new QAction(contextMenu);
|
auto jumpToBeAddressHereAction = new QAction(contextMenu);
|
||||||
auto jumpToBeAddressNewWindowAction = new QAction(contextMenu);
|
auto jumpToBeAddressNewWindowAction = new QAction(contextMenu);
|
||||||
auto jumpToLeAddressHereAction = new QAction(contextMenu);
|
auto jumpToLeAddressHereAction = new QAction(contextMenu);
|
||||||
auto jumpToLeAddressNewWindowAction = new QAction(contextMenu);
|
auto jumpToLeAddressNewWindowAction = new QAction(contextMenu);
|
||||||
auto addWatchpointAction = new QAction(tr("Set Data Breakpoint on Selection"), contextMenu);
|
auto addWatchpointAction = new QAction(Tr::tr("Set Data Breakpoint on Selection"), contextMenu);
|
||||||
contextMenu->addAction(copyAsciiAction);
|
contextMenu->addAction(copyAsciiAction);
|
||||||
contextMenu->addAction(copyHexAction);
|
contextMenu->addAction(copyHexAction);
|
||||||
contextMenu->addAction(addWatchpointAction);
|
contextMenu->addAction(addWatchpointAction);
|
||||||
@@ -1596,11 +1596,11 @@ void BinEditorWidget::contextMenuEvent(QContextMenuEvent *event)
|
|||||||
quint64 leAddress = 0;
|
quint64 leAddress = 0;
|
||||||
if (byteCount <= 8) {
|
if (byteCount <= 8) {
|
||||||
asIntegers(selStart, byteCount, beAddress, leAddress);
|
asIntegers(selStart, byteCount, beAddress, leAddress);
|
||||||
copyBeValue->setText(tr("Copy 0x%1").arg(QString::number(beAddress, 16)));
|
copyBeValue->setText(Tr::tr("Copy 0x%1").arg(QString::number(beAddress, 16)));
|
||||||
contextMenu->addAction(copyBeValue);
|
contextMenu->addAction(copyBeValue);
|
||||||
// If the menu entries would be identical, show only one of them.
|
// If the menu entries would be identical, show only one of them.
|
||||||
if (beAddress != leAddress) {
|
if (beAddress != leAddress) {
|
||||||
copyLeValue->setText(tr("Copy 0x%1").arg(QString::number(leAddress, 16)));
|
copyLeValue->setText(Tr::tr("Copy 0x%1").arg(QString::number(leAddress, 16)));
|
||||||
contextMenu->addAction(copyLeValue);
|
contextMenu->addAction(copyLeValue);
|
||||||
}
|
}
|
||||||
setupJumpToMenuAction(contextMenu, jumpToBeAddressHereAction,
|
setupJumpToMenuAction(contextMenu, jumpToBeAddressHereAction,
|
||||||
@@ -1611,9 +1611,9 @@ void BinEditorWidget::contextMenuEvent(QContextMenuEvent *event)
|
|||||||
jumpToLeAddressNewWindowAction, leAddress);
|
jumpToLeAddressNewWindowAction, leAddress);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
jumpToBeAddressHereAction->setText(tr("Jump to Address in This Window"));
|
jumpToBeAddressHereAction->setText(Tr::tr("Jump to Address in This Window"));
|
||||||
jumpToBeAddressNewWindowAction->setText(tr("Jump to Address in New Window"));
|
jumpToBeAddressNewWindowAction->setText(Tr::tr("Jump to Address in New Window"));
|
||||||
copyBeValue->setText(tr("Copy Value"));
|
copyBeValue->setText(Tr::tr("Copy Value"));
|
||||||
jumpToBeAddressHereAction->setEnabled(false);
|
jumpToBeAddressHereAction->setEnabled(false);
|
||||||
jumpToBeAddressNewWindowAction->setEnabled(false);
|
jumpToBeAddressNewWindowAction->setEnabled(false);
|
||||||
copyBeValue->setEnabled(false);
|
copyBeValue->setEnabled(false);
|
||||||
@@ -1650,9 +1650,9 @@ void BinEditorWidget::contextMenuEvent(QContextMenuEvent *event)
|
|||||||
void BinEditorWidget::setupJumpToMenuAction(QMenu *menu, QAction *actionHere,
|
void BinEditorWidget::setupJumpToMenuAction(QMenu *menu, QAction *actionHere,
|
||||||
QAction *actionNew, quint64 addr)
|
QAction *actionNew, quint64 addr)
|
||||||
{
|
{
|
||||||
actionHere->setText(tr("Jump to Address 0x%1 in This Window")
|
actionHere->setText(Tr::tr("Jump to Address 0x%1 in This Window")
|
||||||
.arg(QString::number(addr, 16)));
|
.arg(QString::number(addr, 16)));
|
||||||
actionNew->setText(tr("Jump to Address 0x%1 in New Window")
|
actionNew->setText(Tr::tr("Jump to Address 0x%1 in New Window")
|
||||||
.arg(QString::number(addr, 16)));
|
.arg(QString::number(addr, 16)));
|
||||||
menu->addAction(actionHere);
|
menu->addAction(actionHere);
|
||||||
menu->addAction(actionNew);
|
menu->addAction(actionNew);
|
||||||
@@ -1735,5 +1735,4 @@ void BinEditorWidget::setMarkup(const QList<Markup> &markup)
|
|||||||
viewport()->update();
|
viewport()->update();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // BinEditor::Internal
|
||||||
} // namespace BinEditor
|
|
||||||
|
|||||||
@@ -31,8 +31,7 @@ namespace Core { class IEditor; }
|
|||||||
|
|
||||||
namespace TextEditor { class FontSettings; }
|
namespace TextEditor { class FontSettings; }
|
||||||
|
|
||||||
namespace BinEditor {
|
namespace BinEditor::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class BinEditorWidgetPrivate;
|
class BinEditorWidgetPrivate;
|
||||||
|
|
||||||
@@ -228,5 +227,4 @@ private:
|
|||||||
QList<Markup> m_markup;
|
QList<Markup> m_markup;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // BinEditor::Internal
|
||||||
} // namespace BinEditor
|
|
||||||
|
|||||||
@@ -23,6 +23,6 @@ public:
|
|||||||
QString toolTip;
|
QString toolTip;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace BinEditor
|
} // BinEditor
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(BinEditor::Markup)
|
Q_DECLARE_METATYPE(BinEditor::Markup)
|
||||||
|
|||||||
Reference in New Issue
Block a user