Deobfuscation old/new icons

czech translation updated
other translation fixes
This commit is contained in:
Jindra Petřík
2014-08-31 15:48:19 +02:00
parent 1a3ab95bdf
commit 5f76dfcdb5
6 changed files with 18 additions and 9 deletions

View File

@@ -276,12 +276,12 @@ public class MainFrameRibbonMenu implements MainFrameMenu, ActionListener {
return mainMenu;
}
private List<RibbonBandResizePolicy> getEmptyResizePolicies(JRibbonBand ribbonBand) {
private List<RibbonBandResizePolicy> titleResizePolicies(final JRibbonBand ribbonBand) {
List<RibbonBandResizePolicy> resizePolicies = new ArrayList<>();
resizePolicies.add(new BaseRibbonBandResizePolicy<AbstractBandControlPanel>(ribbonBand.getControlPanel()) {
@Override
public int getPreferredWidth(int i, int i1) {
return 105;
return ribbonBand.getGraphics().getFontMetrics(ribbonBand.getFont()).stringWidth(ribbonBand.getTitle())+20;
}
@Override
@@ -292,7 +292,7 @@ public class MainFrameRibbonMenu implements MainFrameMenu, ActionListener {
}
private List<RibbonBandResizePolicy> getResizePolicies(JRibbonBand ribbonBand) {
List<RibbonBandResizePolicy> resizePolicies = new ArrayList<>();
List<RibbonBandResizePolicy> resizePolicies = new ArrayList<>();
resizePolicies.add(new CoreRibbonResizePolicies.Mirror(ribbonBand.getControlPanel()));
resizePolicies.add(new IconRibbonBandResizePolicy(ribbonBand.getControlPanel()));
return resizePolicies;
@@ -516,14 +516,14 @@ public class MainFrameRibbonMenu implements MainFrameMenu, ActionListener {
advancedSettingsBand.addCommandButton(clearRecentFilesCommandButton, RibbonElementPriority.MEDIUM);
JRibbonBand deobfuscationBand = new JRibbonBand(translate("menu.deobfuscation"), null);
deobfuscationBand.setResizePolicies(getEmptyResizePolicies(deobfuscationBand)); //TODO: add icons and change this to getResizePolicies
deobfuscationBand.setResizePolicies(titleResizePolicies(deobfuscationBand));
CommandToggleButtonGroup grpDeobfuscation = new CommandToggleButtonGroup();
deobfuscationModeOldToggleButton = new JCommandToggleButton(fixCommandTitle(translate("menu.file.deobfuscation.old")), null);
deobfuscationModeOldToggleButton = new JCommandToggleButton(fixCommandTitle(translate("menu.file.deobfuscation.old")), View.getResizableIcon("deobfuscateold16"));
assignListener(deobfuscationModeOldToggleButton, ACTION_DEOBFUSCATION_MODE_OLD);
deobfuscationModeNewToggleButton = new JCommandToggleButton(fixCommandTitle(translate("menu.file.deobfuscation.new")), null);
deobfuscationModeNewToggleButton = new JCommandToggleButton(fixCommandTitle(translate("menu.file.deobfuscation.new")), View.getResizableIcon("deobfuscatenew16"));
assignListener(deobfuscationModeNewToggleButton, ACTION_DEOBFUSCATION_MODE_NEW);
grpDeobfuscation.add(deobfuscationModeOldToggleButton);

Binary file not shown.

After

Width:  |  Height:  |  Size: 719 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 726 B

View File

@@ -493,8 +493,8 @@ header.displayrect.value.pixels = %xmin%,%ymin% => %xmax%,%ymax% pixels
contextmenu.saveToFile = Save to File
contextmenu.parseActions = Parse actions
contextmenu.parseABC = Parse ABC
contextmenu.parseInstructions = Parse AVM2 Instrctions
contextmenu.parseInstructions = Parse AVM2 Instructions
menu.deobfuscation = Deobfuscation
menu.deobfuscation = AS1/2 Deobfuscation
menu.file.deobfuscation.old = Old style
menu.file.deobfuscation.new = New style

View File

@@ -490,3 +490,12 @@ header.framecount = Po\u010det sn\u00edmk\u016f:
header.displayrect = Zobrazen\u00fd obd\u00e9ln\u00edk:
header.displayrect.value.twips = %xmin%,%ymin% => %xmax%,%ymax% twip\u016f
header.displayrect.value.pixels = %xmin%,%ymin% => %xmax%,%ymax% pixel\u016f
contextmenu.saveToFile = Ulo\u017eit do souboru
contextmenu.parseActions = Naparsovat akce
contextmenu.parseABC = Naparsovat ABC
contextmenu.parseInstructions = Naparsovat AVM2 instrukce
menu.deobfuscation = AS1/2 Deobfuskace
menu.file.deobfuscation.old = Star\u00fd zp\u016fsob
menu.file.deobfuscation.new = Nov\u00fd zp\u016fsob

View File

@@ -495,6 +495,6 @@ contextmenu.parseActions = Action-\u00f6k elemz\u00e9se
contextmenu.parseABC = ABC elemz\u00e9se
contextmenu.parseInstructions = AVM2 utas\u00edt\u00e1sok elemz\u00e9se
menu.deobfuscation = Deobfuszk\u00e1l\u00e1s
menu.deobfuscation = AS1/2 Deobfuszk\u00e1l\u00e1s
menu.file.deobfuscation.old = R\u00e9gi
menu.file.deobfuscation.new = \u00daj