mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-20 03:24:55 +00:00
Options window comes up and is functional
This commit is contained in:
parent
198bf556cd
commit
d87bd0d50b
@ -56,7 +56,7 @@ import org.sleuthkit.autopsy.core.ServicesMonitor;
|
|||||||
import org.sleuthkit.autopsy.coreutils.MessageNotifyUtil;
|
import org.sleuthkit.autopsy.coreutils.MessageNotifyUtil;
|
||||||
import org.sleuthkit.autopsy.ingest.IngestManager;
|
import org.sleuthkit.autopsy.ingest.IngestManager;
|
||||||
import org.sleuthkit.autopsy.ingest.IngestProgressSnapshotDialog;
|
import org.sleuthkit.autopsy.ingest.IngestProgressSnapshotDialog;
|
||||||
//ELTODO import 3RDPARTY.configuration.3RDPARTYOptionsDialog;
|
import org.sleuthkit.autopsy.configuration.OptionsDialog;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A panel for monitoring automated ingest by a cluster, and for controlling
|
* A panel for monitoring automated ingest by a cluster, and for controlling
|
||||||
@ -527,7 +527,8 @@ public final class AutoIngestDashboard extends JPanel implements Observer {
|
|||||||
* Sets the initial state of the buttons on the panel.
|
* Sets the initial state of the buttons on the panel.
|
||||||
*/
|
*/
|
||||||
private void initButtons() {
|
private void initButtons() {
|
||||||
bnOptions.setEnabled(false);
|
//ELTODO bnOptions.setEnabled(false); // uncomment after AIM event processing is moved over to Autopsy
|
||||||
|
bnOptions.setEnabled(true); // ELTODO remove after AIM event processing is moved over to Autopsy
|
||||||
bnDeleteCase.setEnabled(false);
|
bnDeleteCase.setEnabled(false);
|
||||||
enablePendingTableButtons(false);
|
enablePendingTableButtons(false);
|
||||||
bnShowCaseLog.setEnabled(false);
|
bnShowCaseLog.setEnabled(false);
|
||||||
@ -1556,7 +1557,7 @@ public final class AutoIngestDashboard extends JPanel implements Observer {
|
|||||||
*/
|
*/
|
||||||
private void bnOptionsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bnOptionsActionPerformed
|
private void bnOptionsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bnOptionsActionPerformed
|
||||||
setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
|
setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
|
||||||
//ELTODO 3RDPARTYOptionsDialog dialog = new 3RDPARTYOptionsDialog(this.getTopLevelAncestor(), true);
|
OptionsDialog dialog = new OptionsDialog(this.getTopLevelAncestor(), true);
|
||||||
setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
|
setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
|
||||||
}//GEN-LAST:event_bnOptionsActionPerformed
|
}//GEN-LAST:event_bnOptionsActionPerformed
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ import javax.swing.JDialog;
|
|||||||
import javax.swing.JTabbedPane;
|
import javax.swing.JTabbedPane;
|
||||||
import javax.swing.WindowConstants;
|
import javax.swing.WindowConstants;
|
||||||
import org.openide.LifecycleManager;
|
import org.openide.LifecycleManager;
|
||||||
|
import org.openide.util.ImageUtilities;
|
||||||
import org.openide.util.NbBundle;
|
import org.openide.util.NbBundle;
|
||||||
import org.openide.util.lookup.ServiceProvider;
|
import org.openide.util.lookup.ServiceProvider;
|
||||||
import org.openide.windows.WindowManager;
|
import org.openide.windows.WindowManager;
|
||||||
@ -103,11 +104,13 @@ public final class StartupWindow extends JDialog implements StartupWindowInterfa
|
|||||||
* user.
|
* user.
|
||||||
*/
|
*/
|
||||||
private void addPanelForMode() {
|
private void addPanelForMode() {
|
||||||
|
UserPreferences.setMode(UserPreferences.SelectedMode.AUTOMATED); // ELTODO remove
|
||||||
UserPreferences.SelectedMode mode = UserPreferences.getMode();
|
UserPreferences.SelectedMode mode = UserPreferences.getMode();
|
||||||
|
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case AUTOMATED:
|
case AUTOMATED:
|
||||||
this.setTitle(NbBundle.getMessage(StartupWindow.class, "StartupWindow.AutoIngestMode") + " (" + LOCAL_HOST_NAME + ")");
|
this.setTitle(NbBundle.getMessage(StartupWindow.class, "StartupWindow.AutoIngestMode") + " (" + LOCAL_HOST_NAME + ")");
|
||||||
|
setIconImage(ImageUtilities.loadImage("org/sleuthkit/autopsy/images/frame.gif", false)); //NON-NLS
|
||||||
this.addWindowListener(new WindowAdapter() {
|
this.addWindowListener(new WindowAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void windowClosing(WindowEvent e) {
|
public void windowClosing(WindowEvent e) {
|
||||||
@ -120,11 +123,13 @@ public final class StartupWindow extends JDialog implements StartupWindowInterfa
|
|||||||
case REVIEW:
|
case REVIEW:
|
||||||
this.setTitle(NbBundle.getMessage(StartupWindow.class, "StartupWindow.ReviewMode") + " (" + LOCAL_HOST_NAME + ")");
|
this.setTitle(NbBundle.getMessage(StartupWindow.class, "StartupWindow.ReviewMode") + " (" + LOCAL_HOST_NAME + ")");
|
||||||
//ELTODO caseManagementPanel = new ReviewModeCasePanel(this);
|
//ELTODO caseManagementPanel = new ReviewModeCasePanel(this);
|
||||||
|
setIconImage(ImageUtilities.loadImage("org/sleuthkit/autopsy/images/frame.gif", false)); //NON-NLS
|
||||||
//ELTODO add(caseManagementPanel);
|
//ELTODO add(caseManagementPanel);
|
||||||
break;
|
break;
|
||||||
case COPYFILES:
|
case COPYFILES:
|
||||||
this.setTitle(NbBundle.getMessage(StartupWindow.class, "StartupWindow.CopyAndImportMode") + " (" + LOCAL_HOST_NAME + ")");
|
this.setTitle(NbBundle.getMessage(StartupWindow.class, "StartupWindow.CopyAndImportMode") + " (" + LOCAL_HOST_NAME + ")");
|
||||||
//ELTODO caseImportPanel = new CaseImportPanel();
|
//ELTODO caseImportPanel = new CaseImportPanel();
|
||||||
|
setIconImage(ImageUtilities.loadImage("org/sleuthkit/autopsy/images/frame.gif", false)); //NON-NLS
|
||||||
//ELTODO copyPane.add(NbBundle.getMessage(StartupWindow.class, "StartupWindow.CaseImportMode"), caseImportPanel);
|
//ELTODO copyPane.add(NbBundle.getMessage(StartupWindow.class, "StartupWindow.CaseImportMode"), caseImportPanel);
|
||||||
this.addWindowListener(new WindowAdapter() {
|
this.addWindowListener(new WindowAdapter() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -21,7 +21,6 @@ package org.sleuthkit.autopsy.configuration;
|
|||||||
import java.awt.BorderLayout;
|
import java.awt.BorderLayout;
|
||||||
import java.awt.Container;
|
import java.awt.Container;
|
||||||
import java.awt.Dialog;
|
import java.awt.Dialog;
|
||||||
import java.awt.Dimension;
|
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
import java.awt.Window;
|
import java.awt.Window;
|
||||||
import java.awt.event.KeyEvent;
|
import java.awt.event.KeyEvent;
|
||||||
@ -37,7 +36,7 @@ import org.openide.util.ImageUtilities;
|
|||||||
public class OptionsDialog extends JDialog {
|
public class OptionsDialog extends JDialog {
|
||||||
|
|
||||||
private static final String TITLE = "Options";
|
private static final String TITLE = "Options";
|
||||||
private static final Dimension DIMENSIONS = new Dimension(791, 763);
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs an instance of the dialog with its own frame. Could be modal.
|
* Constructs an instance of the dialog with its own frame. Could be modal.
|
||||||
@ -48,7 +47,7 @@ public class OptionsDialog extends JDialog {
|
|||||||
*/
|
*/
|
||||||
public OptionsDialog(Container owner, Boolean shouldBeModal) {
|
public OptionsDialog(Container owner, Boolean shouldBeModal) {
|
||||||
super((Window) owner, TITLE, Dialog.ModalityType.MODELESS);
|
super((Window) owner, TITLE, Dialog.ModalityType.MODELESS);
|
||||||
//ELTODO setIconImage(ImageUtilities.loadImage("viking/images/viking16.gif", false)); //NON-NLS
|
setIconImage(ImageUtilities.loadImage("org/sleuthkit/autopsy/images/frame.gif", false)); //NON-NLS
|
||||||
if (shouldBeModal && owner instanceof JDialog) { // if called from a modal dialog, manipulate the parent be just under this in z order, and not modal.
|
if (shouldBeModal && owner instanceof JDialog) { // if called from a modal dialog, manipulate the parent be just under this in z order, and not modal.
|
||||||
final JDialog pseudoOwner = (JDialog) owner;
|
final JDialog pseudoOwner = (JDialog) owner;
|
||||||
addWindowListener(new WindowAdapter() {
|
addWindowListener(new WindowAdapter() {
|
||||||
|
@ -1514,7 +1514,7 @@ public class OptionsPanel extends javax.swing.JPanel {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
jLabelAimDiagram.setIcon(new javax.swing.ImageIcon(getClass().getResource("/viking/images/viking.png"))); // NOI18N
|
jLabelAimDiagram.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/sleuthkit/autopsy/images/AIM.png"))); // NOI18N
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(jLabelAimDiagram, org.openide.util.NbBundle.getMessage(OptionsPanel.class, "OptionsPanel.jLabelAimDiagram.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(jLabelAimDiagram, org.openide.util.NbBundle.getMessage(OptionsPanel.class, "OptionsPanel.jLabelAimDiagram.text")); // NOI18N
|
||||||
|
|
||||||
jLabelInvalidImageFolder.setForeground(new java.awt.Color(255, 0, 0));
|
jLabelInvalidImageFolder.setForeground(new java.awt.Color(255, 0, 0));
|
||||||
@ -2193,7 +2193,7 @@ public class OptionsPanel extends javax.swing.JPanel {
|
|||||||
jScrollPane.setMinimumSize(new Dimension(100, 100));
|
jScrollPane.setMinimumSize(new Dimension(100, 100));
|
||||||
jDialog.add(jScrollPane);
|
jDialog.add(jScrollPane);
|
||||||
jDialog.setTitle(NbBundle.getMessage(OptionsPanel.class, "OptionsPanel.FileExportRules.text"));
|
jDialog.setTitle(NbBundle.getMessage(OptionsPanel.class, "OptionsPanel.FileExportRules.text"));
|
||||||
//ELTODO jDialog.setIconImage(ImageUtilities.loadImage("/viking/images/viking32.gif"));
|
jDialog.setIconImage(ImageUtilities.loadImage("org/sleuthkit/autopsy/images/frame32.gif"));
|
||||||
jDialog.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);
|
jDialog.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);
|
||||||
jDialog.pack();
|
jDialog.pack();
|
||||||
jDialog.setLocationRelativeTo(this);
|
jDialog.setLocationRelativeTo(this);
|
||||||
|
@ -43,7 +43,7 @@ import org.sleuthkit.autopsy.coreutils.Logger;
|
|||||||
import org.sleuthkit.autopsy.coreutils.PlatformUtil;
|
import org.sleuthkit.autopsy.coreutils.PlatformUtil;
|
||||||
import org.sleuthkit.autopsy.coreutils.FileUtil;
|
import org.sleuthkit.autopsy.coreutils.FileUtil;
|
||||||
import org.sleuthkit.autopsy.ingest.IngestJobSettings;
|
import org.sleuthkit.autopsy.ingest.IngestJobSettings;
|
||||||
import org.sleuthkit.autopsy.keywordsearch.KeywordListsManager;
|
//ELTODO import org.sleuthkit.autopsy.keywordsearch.KeywordListsManager;
|
||||||
import org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager;
|
import org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager;
|
||||||
import org.sleuthkit.datamodel.TskCoreException;
|
import org.sleuthkit.datamodel.TskCoreException;
|
||||||
import org.sleuthkit.autopsy.core.ServicesMonitor;
|
import org.sleuthkit.autopsy.core.ServicesMonitor;
|
||||||
@ -686,7 +686,7 @@ public class SharedConfiguration {
|
|||||||
copyToLocalFolder(KEYWORD_SEARCH_NSRL_LEGACY, moduleDirPath, remoteFolder, true);
|
copyToLocalFolder(KEYWORD_SEARCH_NSRL_LEGACY, moduleDirPath, remoteFolder, true);
|
||||||
copyToLocalFolder(KEYWORD_SEARCH_OPTIONS_LEGACY, moduleDirPath, remoteFolder, true);
|
copyToLocalFolder(KEYWORD_SEARCH_OPTIONS_LEGACY, moduleDirPath, remoteFolder, true);
|
||||||
copyToLocalFolder(KEYWORD_SEARCH_SCRIPTS_LEGACY, moduleDirPath, remoteFolder, true);
|
copyToLocalFolder(KEYWORD_SEARCH_SCRIPTS_LEGACY, moduleDirPath, remoteFolder, true);
|
||||||
KeywordListsManager.reloadKeywordLists();
|
//ELTODO KeywordListsManager.reloadKeywordLists();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
BIN
Core/src/org/sleuthkit/autopsy/images/frame.gif
Normal file
BIN
Core/src/org/sleuthkit/autopsy/images/frame.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 785 B |
BIN
Core/src/org/sleuthkit/autopsy/images/frame32.gif
Normal file
BIN
Core/src/org/sleuthkit/autopsy/images/frame32.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
Loading…
x
Reference in New Issue
Block a user