Options window comes up and is functional

This commit is contained in:
Eugene Livis 2016-08-10 12:33:56 -04:00
parent 198bf556cd
commit d87bd0d50b
7 changed files with 15 additions and 10 deletions

View File

@ -56,7 +56,7 @@ import org.sleuthkit.autopsy.core.ServicesMonitor;
import org.sleuthkit.autopsy.coreutils.MessageNotifyUtil;
import org.sleuthkit.autopsy.ingest.IngestManager;
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
@ -527,7 +527,8 @@ public final class AutoIngestDashboard extends JPanel implements Observer {
* Sets the initial state of the buttons on the panel.
*/
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);
enablePendingTableButtons(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
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));
}//GEN-LAST:event_bnOptionsActionPerformed

View File

@ -29,6 +29,7 @@ import javax.swing.JDialog;
import javax.swing.JTabbedPane;
import javax.swing.WindowConstants;
import org.openide.LifecycleManager;
import org.openide.util.ImageUtilities;
import org.openide.util.NbBundle;
import org.openide.util.lookup.ServiceProvider;
import org.openide.windows.WindowManager;
@ -103,11 +104,13 @@ public final class StartupWindow extends JDialog implements StartupWindowInterfa
* user.
*/
private void addPanelForMode() {
UserPreferences.setMode(UserPreferences.SelectedMode.AUTOMATED); // ELTODO remove
UserPreferences.SelectedMode mode = UserPreferences.getMode();
switch (mode) {
case AUTOMATED:
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() {
@Override
public void windowClosing(WindowEvent e) {
@ -120,11 +123,13 @@ public final class StartupWindow extends JDialog implements StartupWindowInterfa
case REVIEW:
this.setTitle(NbBundle.getMessage(StartupWindow.class, "StartupWindow.ReviewMode") + " (" + LOCAL_HOST_NAME + ")");
//ELTODO caseManagementPanel = new ReviewModeCasePanel(this);
setIconImage(ImageUtilities.loadImage("org/sleuthkit/autopsy/images/frame.gif", false)); //NON-NLS
//ELTODO add(caseManagementPanel);
break;
case COPYFILES:
this.setTitle(NbBundle.getMessage(StartupWindow.class, "StartupWindow.CopyAndImportMode") + " (" + LOCAL_HOST_NAME + ")");
//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);
this.addWindowListener(new WindowAdapter() {
@Override

View File

@ -21,7 +21,6 @@ package org.sleuthkit.autopsy.configuration;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dialog;
import java.awt.Dimension;
import java.awt.Cursor;
import java.awt.Window;
import java.awt.event.KeyEvent;
@ -37,7 +36,7 @@ import org.openide.util.ImageUtilities;
public class OptionsDialog extends JDialog {
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.
@ -48,7 +47,7 @@ public class OptionsDialog extends JDialog {
*/
public OptionsDialog(Container owner, Boolean shouldBeModal) {
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.
final JDialog pseudoOwner = (JDialog) owner;
addWindowListener(new WindowAdapter() {

View File

@ -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
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));
jDialog.add(jScrollPane);
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.pack();
jDialog.setLocationRelativeTo(this);

View File

@ -43,7 +43,7 @@ import org.sleuthkit.autopsy.coreutils.Logger;
import org.sleuthkit.autopsy.coreutils.PlatformUtil;
import org.sleuthkit.autopsy.coreutils.FileUtil;
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.datamodel.TskCoreException;
import org.sleuthkit.autopsy.core.ServicesMonitor;
@ -686,7 +686,7 @@ public class SharedConfiguration {
copyToLocalFolder(KEYWORD_SEARCH_NSRL_LEGACY, moduleDirPath, remoteFolder, true);
copyToLocalFolder(KEYWORD_SEARCH_OPTIONS_LEGACY, moduleDirPath, remoteFolder, true);
copyToLocalFolder(KEYWORD_SEARCH_SCRIPTS_LEGACY, moduleDirPath, remoteFolder, true);
KeywordListsManager.reloadKeywordLists();
//ELTODO KeywordListsManager.reloadKeywordLists();
}
/**

Binary file not shown.

After

Width:  |  Height:  |  Size: 785 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB