|
51 | 51 | import the.bytecode.club.bytecodeviewer.plugin.preinstalled.ZStringArrayDecrypter;
|
52 | 52 | import javax.swing.JSpinner;
|
53 | 53 | import javax.swing.SpinnerNumberModel;
|
| 54 | +import javax.swing.event.ChangeListener; |
| 55 | +import javax.swing.event.ChangeEvent; |
54 | 56 |
|
55 | 57 | /**
|
56 | 58 | * The main file for the GUI.n
|
@@ -498,6 +500,18 @@ public void run() {
|
498 | 500 | private final JMenu mnFontSize = new JMenu("Font Size");
|
499 | 501 | public final JSpinner fontSpinner = new JSpinner();
|
500 | 502 | private final JSeparator separator_36 = new JSeparator();
|
| 503 | + private final JCheckBoxMenuItem chckbxmntmDeleteForiegnoutdatedLibs = new JCheckBoxMenuItem("Delete Foriegn/Outdated Libs"); |
| 504 | + private final JSeparator separator_37 = new JSeparator(); |
| 505 | + private final JSeparator separator_38 = new JSeparator(); |
| 506 | + private final JMenu mnApkConversion = new JMenu("APK Conversion"); |
| 507 | + public final ButtonGroup apkConversionGroup = new ButtonGroup(); |
| 508 | + public final JRadioButtonMenuItem apkConversionDex = new JRadioButtonMenuItem("Dex2Jar"); |
| 509 | + public final JRadioButtonMenuItem apkConversionEnjarify = new JRadioButtonMenuItem("Enjarify"); |
| 510 | + |
| 511 | + public void calledAfterLoad() { |
| 512 | + chckbxmntmDeleteForiegnoutdatedLibs.setSelected(BytecodeViewer.deleteForiegnLibraries); |
| 513 | + } |
| 514 | + |
501 | 515 | public MainViewerGUI() {
|
502 | 516 | mnNewMenu_5.setVisible(false);
|
503 | 517 | KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(new Test());
|
@@ -1285,13 +1299,33 @@ public void actionPerformed(ActionEvent arg0) {
|
1285 | 1299 | autoCompileOnRefresh.setSelected(true);
|
1286 | 1300 |
|
1287 | 1301 | mnSettings.add(autoCompileOnRefresh);
|
1288 |
| - mnSettings.add(chckbxmntmNewCheckItem_12); |
1289 |
| - chckbxmntmNewCheckItem_12.setSelected(true); |
1290 | 1302 |
|
1291 | 1303 | mnSettings.add(refreshOnChange);
|
1292 | 1304 |
|
| 1305 | + mnSettings.add(separator_38); |
| 1306 | + |
1293 | 1307 | mnSettings.add(decodeAPKResources);
|
1294 | 1308 |
|
| 1309 | + mnSettings.add(mnApkConversion); |
| 1310 | + |
| 1311 | + mnApkConversion.add(apkConversionDex); |
| 1312 | + |
| 1313 | + mnApkConversion.add(apkConversionEnjarify); |
| 1314 | + |
| 1315 | + mnSettings.add(separator_37); |
| 1316 | + mnSettings.add(chckbxmntmNewCheckItem_12); |
| 1317 | + chckbxmntmDeleteForiegnoutdatedLibs.addActionListener(new ActionListener() { |
| 1318 | + public void actionPerformed(ActionEvent arg0) { |
| 1319 | + if(!chckbxmntmDeleteForiegnoutdatedLibs.isSelected()) { |
| 1320 | + BytecodeViewer.showMessage("WARNING: With this being toggled off outdated libraries will NOT be removed. It's also a security issue. ONLY TURN IT OFF IF YOU KNOW WHAT YOU'RE DOING."); |
| 1321 | + } |
| 1322 | + BytecodeViewer.deleteForiegnLibraries = chckbxmntmDeleteForiegnoutdatedLibs.isSelected(); |
| 1323 | + } |
| 1324 | + }); |
| 1325 | + chckbxmntmDeleteForiegnoutdatedLibs.setSelected(true); |
| 1326 | + |
| 1327 | + mnSettings.add(chckbxmntmDeleteForiegnoutdatedLibs); |
| 1328 | + |
1295 | 1329 | mnSettings.add(separator_36);
|
1296 | 1330 | mntmSetPythonDirectory.addActionListener(new ActionListener() {
|
1297 | 1331 | @Override
|
@@ -1717,6 +1751,10 @@ public void actionPerformed(ActionEvent e) {
|
1717 | 1751 |
|
1718 | 1752 | rfComps.add(s);
|
1719 | 1753 | rfComps.add(workPane);
|
| 1754 | + |
| 1755 | + apkConversionGroup.add(apkConversionDex); |
| 1756 | + apkConversionGroup.add(apkConversionEnjarify); |
| 1757 | + apkConversionGroup.setSelected(apkConversionDex.getModel(), true);//my one true love |
1720 | 1758 |
|
1721 | 1759 |
|
1722 | 1760 | panelGroup1.add(panel1None);
|
|
0 commit comments