mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-20 03:24:55 +00:00
updated settings panel gui
This commit is contained in:
parent
4f8266805c
commit
a0824372d3
@ -21,12 +21,12 @@
|
|||||||
<Layout>
|
<Layout>
|
||||||
<DimensionLayout dim="0">
|
<DimensionLayout dim="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="jScrollPane5" alignment="0" pref="907" max="32767" attributes="0"/>
|
<Component id="jScrollPane5" alignment="0" pref="696" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
<DimensionLayout dim="1">
|
<DimensionLayout dim="1">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="jScrollPane5" alignment="1" pref="435" max="32767" attributes="0"/>
|
<Component id="jScrollPane5" alignment="1" pref="494" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
@ -399,11 +399,11 @@ public class AnnotationsContentViewer extends javax.swing.JPanel implements Data
|
|||||||
this.setLayout(layout);
|
this.setLayout(layout);
|
||||||
layout.setHorizontalGroup(
|
layout.setHorizontalGroup(
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 907, Short.MAX_VALUE)
|
.addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 696, Short.MAX_VALUE)
|
||||||
);
|
);
|
||||||
layout.setVerticalGroup(
|
layout.setVerticalGroup(
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(jScrollPane5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 435, Short.MAX_VALUE)
|
.addComponent(jScrollPane5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 494, Short.MAX_VALUE)
|
||||||
);
|
);
|
||||||
}// </editor-fold>//GEN-END:initComponents
|
}// </editor-fold>//GEN-END:initComponents
|
||||||
|
|
||||||
|
@ -162,8 +162,6 @@ AddContentToHashDbAction.multipleSelectionNameEmpty=Add Files to Hash Set (Empty
|
|||||||
HashDbManager.ingestRunningExceptionMsg=Ingest is ongoing; this service will be unavailable until it finishes.
|
HashDbManager.ingestRunningExceptionMsg=Ingest is ongoing; this service will be unavailable until it finishes.
|
||||||
HashDbManager.saveErrorExceptionMsg=Error saving hash configuration
|
HashDbManager.saveErrorExceptionMsg=Error saving hash configuration
|
||||||
HashLookupModuleSettingsPanel.alwaysCalcHashesCheckbox.text=Calculate MD5 even if no hash set is selected
|
HashLookupModuleSettingsPanel.alwaysCalcHashesCheckbox.text=Calculate MD5 even if no hash set is selected
|
||||||
HashLookupModuleSettingsPanel.knownHashDbsLabel.text=Select known hash sets to use:
|
|
||||||
HashLookupModuleSettingsPanel.knownBadHashDbsLabel.text=Select notable hash sets to use:
|
|
||||||
AddContentToHashDbAction.addFilesToHashSet.files=files
|
AddContentToHashDbAction.addFilesToHashSet.files=files
|
||||||
AddContentToHashDbAction.addFilesToHashSet.file=file
|
AddContentToHashDbAction.addFilesToHashSet.file=file
|
||||||
HashDbManager.errCreatingIndex.title=Error creating index
|
HashDbManager.errCreatingIndex.title=Error creating index
|
||||||
@ -243,5 +241,5 @@ HashDbImportDatabaseDialog.saveInUserConfigFolderCheckbox.toolTipText=In Live Tr
|
|||||||
HashLookupSettingsPanel.indexPathLabel.text=
|
HashLookupSettingsPanel.indexPathLabel.text=
|
||||||
HashDbImportDatabaseDialog.unspecifiedRadioButton.text=Unspecified
|
HashDbImportDatabaseDialog.unspecifiedRadioButton.text=Unspecified
|
||||||
HashDbImportDatabaseDialog.unspecifiedRadioButton.toolTipText=
|
HashDbImportDatabaseDialog.unspecifiedRadioButton.toolTipText=
|
||||||
HashLookupModuleSettingsPanel.unspecifiedHashDbsLabel.text=Select unspecified hash sets to use:
|
|
||||||
HashDbCreateDatabaseDialog.unspecifiedRadioButton.text=Unspecified
|
HashDbCreateDatabaseDialog.unspecifiedRadioButton.text=Unspecified
|
||||||
|
HashLookupModuleSettingsPanel.hashDbsLabel.text=Select hash sets to use:
|
||||||
|
@ -216,8 +216,6 @@ HashLookupSettingsPanel.jLabel6.text=\u30bf\u30a4\u30d7:
|
|||||||
HashLookupSettingsPanel.jLabel4.text=\u5834\u6240:
|
HashLookupSettingsPanel.jLabel4.text=\u5834\u6240:
|
||||||
HashLookupSettingsPanel.jLabel2.text=\u540d\u524d:
|
HashLookupSettingsPanel.jLabel2.text=\u540d\u524d:
|
||||||
HashLookupModuleSettingsPanel.alwaysCalcHashesCheckbox.text=\u30cf\u30c3\u30b7\u30e5\u30bb\u30c3\u30c8\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3067\u3082MD5\u3092\u8a08\u7b97
|
HashLookupModuleSettingsPanel.alwaysCalcHashesCheckbox.text=\u30cf\u30c3\u30b7\u30e5\u30bb\u30c3\u30c8\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3067\u3082MD5\u3092\u8a08\u7b97
|
||||||
HashLookupModuleSettingsPanel.knownHashDbsLabel.text=\u4f7f\u7528\u3059\u308b\u65e2\u77e5\u30cf\u30c3\u30b7\u30e5\u30bb\u30c3\u30c8\u3092\u9078\u629e:
|
|
||||||
HashLookupModuleSettingsPanel.knownBadHashDbsLabel.text=\u4f7f\u7528\u3059\u308b\u9855\u8457\u306a\u30cf\u30c3\u30b7\u30e5\u30bb\u30c3\u30c8\u3092\u9078\u629e:
|
|
||||||
AddContentToHashDbAction.addFilesToHashSet.files=\u30d5\u30a1\u30a4\u30eb
|
AddContentToHashDbAction.addFilesToHashSet.files=\u30d5\u30a1\u30a4\u30eb
|
||||||
AddContentToHashDbAction.addFilesToHashSet.file=\u30d5\u30a1\u30a4\u30eb
|
AddContentToHashDbAction.addFilesToHashSet.file=\u30d5\u30a1\u30a4\u30eb
|
||||||
HashDbManager.errCreatingIndex.title=\u7d22\u5f15\u306e\u4f5c\u6210\u4e2d\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f
|
HashDbManager.errCreatingIndex.title=\u7d22\u5f15\u306e\u4f5c\u6210\u4e2d\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f
|
||||||
@ -296,5 +294,5 @@ HashDbImportDatabaseDialog.saveInUserConfigFolderCheckbox.text=\u30cf\u30c3\u30b
|
|||||||
HashDbImportDatabaseDialog.saveInUserConfigFolderCheckbox.toolTipText=\u30e9\u30a4\u30d6\u30c8\u30ea\u30a2\u30fc\u30b8\u306e\u72b6\u6cc1\u3067\u306f\u3001\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u30cf\u30c3\u30b7\u30e5\u30bb\u30c3\u30c8\u3078\u306e\u30d1\u30b9\u304c\u6709\u52b9\u3067\u3042\u308b\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\u307e\u3059\u3002
|
HashDbImportDatabaseDialog.saveInUserConfigFolderCheckbox.toolTipText=\u30e9\u30a4\u30d6\u30c8\u30ea\u30a2\u30fc\u30b8\u306e\u72b6\u6cc1\u3067\u306f\u3001\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u30cf\u30c3\u30b7\u30e5\u30bb\u30c3\u30c8\u3078\u306e\u30d1\u30b9\u304c\u6709\u52b9\u3067\u3042\u308b\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\u307e\u3059\u3002
|
||||||
HashLookupSettingsPanel.indexPathLabel.text=
|
HashLookupSettingsPanel.indexPathLabel.text=
|
||||||
HashDbImportDatabaseDialog.unspecifiedRadioButton.text=\u9855\u8457
|
HashDbImportDatabaseDialog.unspecifiedRadioButton.text=\u9855\u8457
|
||||||
HashLookupModuleSettingsPanel.unspecifiedHashDbsLabel.text=\u4f7f\u7528\u3059\u308b\u9855\u8457\u306a\u30cf\u30c3\u30b7\u30e5\u30bb\u30c3\u30c8\u3092\u9078\u629e:
|
|
||||||
HashDbCreateDatabaseDialog.unspecifiedRadioButton.text=\u9855\u8457
|
HashDbCreateDatabaseDialog.unspecifiedRadioButton.text=\u9855\u8457
|
||||||
|
HashLookupModuleSettingsPanel.hashDbsLabel.text=\u4f7f\u7528\u3059\u308b\u65e2\u77e5\u30cf\u30c3\u30b7\u30e5\u30bb\u30c3\u30c8\u3092\u9078\u629e:
|
||||||
|
@ -25,70 +25,42 @@
|
|||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<Component id="knownHashDbsLabel" min="-2" max="-2" attributes="0"/>
|
<Component id="hashDbsLabel" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<Component id="knownBadHashDbsLabel" pref="347" max="32767" attributes="0"/>
|
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<EmptySpace min="10" pref="10" max="-2" attributes="0"/>
|
<EmptySpace min="10" pref="10" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Component id="hashDbsScrollPane" pref="494" max="32767" attributes="1"/>
|
||||||
<Component id="knownHashDbsScrollPane" pref="0" max="32767" attributes="1"/>
|
|
||||||
<Component id="knownBadHashDbsScrollPane" pref="0" max="32767" attributes="1"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
</Group>
|
||||||
<Component id="alwaysCalcHashesCheckbox" alignment="0" max="32767" attributes="0"/>
|
<Component id="alwaysCalcHashesCheckbox" alignment="0" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
|
|
||||||
<Group type="102" attributes="0">
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Component id="unspecifiedHashDbsLabel" alignment="0" pref="347" max="32767" attributes="0"/>
|
|
||||||
<Group type="102" alignment="0" attributes="0">
|
|
||||||
<EmptySpace min="10" pref="10" max="-2" attributes="0"/>
|
|
||||||
<Component id="unspecifiedHashDbsScrollPane" pref="0" max="32767" attributes="1"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
<DimensionLayout dim="1">
|
<DimensionLayout dim="1">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<EmptySpace min="-2" pref="2" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="2" max="-2" attributes="0"/>
|
||||||
<Component id="knownHashDbsLabel" min="-2" max="-2" attributes="0"/>
|
<Component id="hashDbsLabel" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
<EmptySpace min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="knownHashDbsScrollPane" pref="68" max="32767" attributes="0"/>
|
<Component id="hashDbsScrollPane" pref="207" max="32767" attributes="0"/>
|
||||||
<EmptySpace type="unrelated" min="-2" max="-2" attributes="0"/>
|
<EmptySpace type="unrelated" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="knownBadHashDbsLabel" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="knownBadHashDbsScrollPane" pref="67" max="32767" attributes="0"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Component id="unspecifiedHashDbsLabel" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="unspecifiedHashDbsScrollPane" pref="68" max="32767" attributes="0"/>
|
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="alwaysCalcHashesCheckbox" min="-2" max="-2" attributes="0"/>
|
<Component id="alwaysCalcHashesCheckbox" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
</Group>
|
|
||||||
<Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
|
|
||||||
<EmptySpace min="0" pref="330" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
</Layout>
|
</Layout>
|
||||||
<SubComponents>
|
<SubComponents>
|
||||||
<Component class="javax.swing.JLabel" name="knownHashDbsLabel">
|
<Component class="javax.swing.JLabel" name="hashDbsLabel">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/modules/hashdatabase/Bundle.properties" key="HashLookupModuleSettingsPanel.knownHashDbsLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/modules/hashdatabase/Bundle.properties" key="HashLookupModuleSettingsPanel.hashDbsLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Container class="javax.swing.JScrollPane" name="knownHashDbsScrollPane">
|
<Container class="javax.swing.JScrollPane" name="hashDbsScrollPane">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
||||||
<Border info="org.netbeans.modules.form.compat2.border.EtchedBorderInfo">
|
<Border info="org.netbeans.modules.form.compat2.border.EtchedBorderInfo">
|
||||||
@ -102,7 +74,7 @@
|
|||||||
|
|
||||||
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
|
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
|
||||||
<SubComponents>
|
<SubComponents>
|
||||||
<Component class="javax.swing.JTable" name="knownHashTable">
|
<Component class="javax.swing.JTable" name="hashTable">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||||
<Color blue="f0" green="f0" red="f0" type="rgb"/>
|
<Color blue="f0" green="f0" red="f0" type="rgb"/>
|
||||||
@ -113,88 +85,6 @@
|
|||||||
</Component>
|
</Component>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
</Container>
|
</Container>
|
||||||
<Component class="javax.swing.JLabel" name="knownBadHashDbsLabel">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/modules/hashdatabase/Bundle.properties" key="HashLookupModuleSettingsPanel.knownBadHashDbsLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
<Container class="javax.swing.JScrollPane" name="knownBadHashDbsScrollPane">
|
|
||||||
<Properties>
|
|
||||||
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
|
||||||
<Border info="org.netbeans.modules.form.compat2.border.EtchedBorderInfo">
|
|
||||||
<EtchetBorder/>
|
|
||||||
</Border>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
<AuxValues>
|
|
||||||
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
|
|
||||||
</AuxValues>
|
|
||||||
|
|
||||||
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
|
|
||||||
<SubComponents>
|
|
||||||
<Component class="javax.swing.JTable" name="knownBadHashTable">
|
|
||||||
<Properties>
|
|
||||||
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
|
||||||
<Color blue="f0" green="f0" red="f0" type="rgb"/>
|
|
||||||
</Property>
|
|
||||||
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
|
|
||||||
<Table columnCount="0" rowCount="0"/>
|
|
||||||
</Property>
|
|
||||||
<Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor">
|
|
||||||
<TableColumnModel selectionModel="0"/>
|
|
||||||
</Property>
|
|
||||||
<Property name="showHorizontalLines" type="boolean" value="false"/>
|
|
||||||
<Property name="showVerticalLines" type="boolean" value="false"/>
|
|
||||||
<Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor">
|
|
||||||
<TableHeader reorderingAllowed="true" resizingAllowed="true"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
</SubComponents>
|
|
||||||
</Container>
|
|
||||||
<Component class="javax.swing.JLabel" name="unspecifiedHashDbsLabel">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/modules/hashdatabase/Bundle.properties" key="HashLookupModuleSettingsPanel.unspecifiedHashDbsLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
<Container class="javax.swing.JScrollPane" name="unspecifiedHashDbsScrollPane">
|
|
||||||
<Properties>
|
|
||||||
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
|
||||||
<Border info="org.netbeans.modules.form.compat2.border.EtchedBorderInfo">
|
|
||||||
<EtchetBorder/>
|
|
||||||
</Border>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
<AuxValues>
|
|
||||||
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
|
|
||||||
</AuxValues>
|
|
||||||
|
|
||||||
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
|
|
||||||
<SubComponents>
|
|
||||||
<Component class="javax.swing.JTable" name="unspecifiedHashTable">
|
|
||||||
<Properties>
|
|
||||||
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
|
||||||
<Color blue="f0" green="f0" red="f0" type="rgb"/>
|
|
||||||
</Property>
|
|
||||||
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
|
|
||||||
<Table columnCount="0" rowCount="0"/>
|
|
||||||
</Property>
|
|
||||||
<Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor">
|
|
||||||
<TableColumnModel selectionModel="0"/>
|
|
||||||
</Property>
|
|
||||||
<Property name="showHorizontalLines" type="boolean" value="false"/>
|
|
||||||
<Property name="showVerticalLines" type="boolean" value="false"/>
|
|
||||||
<Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor">
|
|
||||||
<TableHeader reorderingAllowed="true" resizingAllowed="true"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
</SubComponents>
|
|
||||||
</Container>
|
|
||||||
<Component class="javax.swing.JCheckBox" name="alwaysCalcHashesCheckbox">
|
<Component class="javax.swing.JCheckBox" name="alwaysCalcHashesCheckbox">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
|
@ -44,8 +44,6 @@ public final class HashLookupModuleSettingsPanel extends IngestModuleIngestJobSe
|
|||||||
private final HashDbManager hashDbManager = HashDbManager.getInstance();
|
private final HashDbManager hashDbManager = HashDbManager.getInstance();
|
||||||
private final List<HashSetModel> knownHashSetModels = new ArrayList<>();
|
private final List<HashSetModel> knownHashSetModels = new ArrayList<>();
|
||||||
private final HashSetsTableModel knownHashSetsTableModel = new HashSetsTableModel(knownHashSetModels);
|
private final HashSetsTableModel knownHashSetsTableModel = new HashSetsTableModel(knownHashSetModels);
|
||||||
private final List<HashSetModel> knownBadHashSetModels = new ArrayList<>();
|
|
||||||
private final HashSetsTableModel knownBadHashSetsTableModel = new HashSetsTableModel(knownBadHashSetModels);
|
|
||||||
|
|
||||||
HashLookupModuleSettingsPanel(HashLookupModuleSettings settings) {
|
HashLookupModuleSettingsPanel(HashLookupModuleSettings settings) {
|
||||||
initializeHashSetModels(settings);
|
initializeHashSetModels(settings);
|
||||||
@ -54,20 +52,15 @@ public final class HashLookupModuleSettingsPanel extends IngestModuleIngestJobSe
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void initializeHashSetModels(HashLookupModuleSettings settings) {
|
private void initializeHashSetModels(HashLookupModuleSettings settings) {
|
||||||
initializeHashSetModels(settings, validSetsOnly(hashDbManager.getKnownFileHashSets()), knownHashSetModels);
|
List<HashDb> hashDbs = validSetsOnly(hashDbManager.getAllHashSets());
|
||||||
initializeHashSetModels(settings, validSetsOnly(hashDbManager.getKnownBadFileHashSets()), knownBadHashSetModels);
|
knownHashSetModels.clear();
|
||||||
}
|
|
||||||
|
|
||||||
private void initializeHashSetModels(HashLookupModuleSettings settings, List<HashDb> hashDbs, List<HashSetModel> hashSetModels) {
|
|
||||||
hashSetModels.clear();
|
|
||||||
for (HashDb db : hashDbs) {
|
for (HashDb db : hashDbs) {
|
||||||
hashSetModels.add(new HashSetModel(db, settings.isHashSetEnabled(db), isHashDbValid(db)));
|
knownHashSetModels.add(new HashSetModel(db, settings.isHashSetEnabled(db), isHashDbValid(db)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void customizeComponents(HashLookupModuleSettings settings) {
|
private void customizeComponents(HashLookupModuleSettings settings) {
|
||||||
customizeHashSetsTable(knownHashDbsScrollPane, knownHashTable, knownHashSetsTableModel);
|
customizeHashSetsTable(hashDbsScrollPane, hashTable, knownHashSetsTableModel);
|
||||||
customizeHashSetsTable(knownBadHashDbsScrollPane, knownBadHashTable, knownBadHashSetsTableModel);
|
|
||||||
alwaysCalcHashesCheckbox.setSelected(settings.shouldCalculateHashes());
|
alwaysCalcHashesCheckbox.setSelected(settings.shouldCalculateHashes());
|
||||||
hashDbManager.addPropertyChangeListener(this);
|
hashDbManager.addPropertyChangeListener(this);
|
||||||
alwaysCalcHashesCheckbox.setText("<html>" + org.openide.util.NbBundle.getMessage(HashLookupModuleSettingsPanel.class, "HashLookupModuleSettingsPanel.alwaysCalcHashesCheckbox.text") + "</html>"); // NOI18N NON-NLS
|
alwaysCalcHashesCheckbox.setText("<html>" + org.openide.util.NbBundle.getMessage(HashLookupModuleSettingsPanel.class, "HashLookupModuleSettingsPanel.alwaysCalcHashesCheckbox.text") + "</html>"); // NOI18N NON-NLS
|
||||||
@ -78,7 +71,7 @@ public final class HashLookupModuleSettingsPanel extends IngestModuleIngestJobSe
|
|||||||
table.setTableHeader(null);
|
table.setTableHeader(null);
|
||||||
table.setRowSelectionAllowed(false);
|
table.setRowSelectionAllowed(false);
|
||||||
final int width1 = scrollPane.getPreferredSize().width;
|
final int width1 = scrollPane.getPreferredSize().width;
|
||||||
knownHashTable.setAutoResizeMode(JTable.AUTO_RESIZE_NEXT_COLUMN);
|
hashTable.setAutoResizeMode(JTable.AUTO_RESIZE_NEXT_COLUMN);
|
||||||
TableColumn column;
|
TableColumn column;
|
||||||
for (int i = 0; i < table.getColumnCount(); i++) {
|
for (int i = 0; i < table.getColumnCount(); i++) {
|
||||||
column = table.getColumnModel().getColumn(i);
|
column = table.getColumnModel().getColumn(i);
|
||||||
@ -104,7 +97,6 @@ public final class HashLookupModuleSettingsPanel extends IngestModuleIngestJobSe
|
|||||||
List<HashDb> enabledHashSets = new ArrayList<>();
|
List<HashDb> enabledHashSets = new ArrayList<>();
|
||||||
List<HashDb> disabledHashSets = new ArrayList<>();
|
List<HashDb> disabledHashSets = new ArrayList<>();
|
||||||
addHashSets(knownHashSetModels, enabledHashSets, disabledHashSets);
|
addHashSets(knownHashSetModels, enabledHashSets, disabledHashSets);
|
||||||
addHashSets(knownBadHashSetModels, enabledHashSets, disabledHashSets);
|
|
||||||
return new HashLookupModuleSettings(alwaysCalcHashesCheckbox.isSelected(),
|
return new HashLookupModuleSettings(alwaysCalcHashesCheckbox.isSelected(),
|
||||||
enabledHashSets, disabledHashSets);
|
enabledHashSets, disabledHashSets);
|
||||||
}
|
}
|
||||||
@ -122,12 +114,10 @@ public final class HashLookupModuleSettingsPanel extends IngestModuleIngestJobSe
|
|||||||
void update() {
|
void update() {
|
||||||
updateHashSetModels();
|
updateHashSetModels();
|
||||||
knownHashSetsTableModel.fireTableDataChanged();
|
knownHashSetsTableModel.fireTableDataChanged();
|
||||||
knownBadHashSetsTableModel.fireTableDataChanged();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateHashSetModels() {
|
private void updateHashSetModels() {
|
||||||
updateHashSetModels(validSetsOnly(hashDbManager.getKnownFileHashSets()), knownHashSetModels);
|
updateHashSetModels(validSetsOnly(hashDbManager.getAllHashSets()), knownHashSetModels);
|
||||||
updateHashSetModels(validSetsOnly(hashDbManager.getKnownBadFileHashSets()), knownBadHashSetModels);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<HashDb> validSetsOnly(List<HashDb> hashDbs){
|
private List<HashDb> validSetsOnly(List<HashDb> hashDbs){
|
||||||
@ -180,7 +170,6 @@ public final class HashLookupModuleSettingsPanel extends IngestModuleIngestJobSe
|
|||||||
initializeHashSetModels(newSettings);
|
initializeHashSetModels(newSettings);
|
||||||
alwaysCalcHashesCheckbox.setSelected(newSettings.shouldCalculateHashes());
|
alwaysCalcHashesCheckbox.setSelected(newSettings.shouldCalculateHashes());
|
||||||
knownHashSetsTableModel.fireTableDataChanged();
|
knownHashSetsTableModel.fireTableDataChanged();
|
||||||
knownBadHashSetsTableModel.fireTableDataChanged();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isHashDbValid(HashDb hashDb) {
|
private boolean isHashDbValid(HashDb hashDb) {
|
||||||
@ -213,6 +202,10 @@ public final class HashLookupModuleSettingsPanel extends IngestModuleIngestJobSe
|
|||||||
return db.getDisplayName();
|
return db.getDisplayName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String getFormattedName() {
|
||||||
|
return String.format("%s (%s)", db.getDisplayName(), db.getKnownFilesType());
|
||||||
|
}
|
||||||
|
|
||||||
void setEnabled(boolean enabled) {
|
void setEnabled(boolean enabled) {
|
||||||
this.enabled = enabled;
|
this.enabled = enabled;
|
||||||
}
|
}
|
||||||
@ -254,7 +247,7 @@ public final class HashLookupModuleSettingsPanel extends IngestModuleIngestJobSe
|
|||||||
if (columnIndex == 0) {
|
if (columnIndex == 0) {
|
||||||
return hashSets.get(rowIndex).isEnabled();
|
return hashSets.get(rowIndex).isEnabled();
|
||||||
} else {
|
} else {
|
||||||
return hashSets.get(rowIndex).getName();
|
return hashSets.get(rowIndex).getFormattedName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -285,61 +278,21 @@ public final class HashLookupModuleSettingsPanel extends IngestModuleIngestJobSe
|
|||||||
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
|
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
|
||||||
private void initComponents() {
|
private void initComponents() {
|
||||||
|
|
||||||
knownHashDbsLabel = new javax.swing.JLabel();
|
hashDbsLabel = new javax.swing.JLabel();
|
||||||
knownHashDbsScrollPane = new javax.swing.JScrollPane();
|
hashDbsScrollPane = new javax.swing.JScrollPane();
|
||||||
knownHashTable = new javax.swing.JTable();
|
hashTable = new javax.swing.JTable();
|
||||||
knownBadHashDbsLabel = new javax.swing.JLabel();
|
|
||||||
knownBadHashDbsScrollPane = new javax.swing.JScrollPane();
|
|
||||||
knownBadHashTable = new javax.swing.JTable();
|
|
||||||
unspecifiedHashDbsLabel = new javax.swing.JLabel();
|
|
||||||
unspecifiedHashDbsScrollPane = new javax.swing.JScrollPane();
|
|
||||||
unspecifiedHashTable = new javax.swing.JTable();
|
|
||||||
alwaysCalcHashesCheckbox = new javax.swing.JCheckBox();
|
alwaysCalcHashesCheckbox = new javax.swing.JCheckBox();
|
||||||
|
|
||||||
setPreferredSize(new java.awt.Dimension(292, 150));
|
setPreferredSize(new java.awt.Dimension(292, 150));
|
||||||
|
|
||||||
knownHashDbsLabel.setText(org.openide.util.NbBundle.getMessage(HashLookupModuleSettingsPanel.class, "HashLookupModuleSettingsPanel.knownHashDbsLabel.text")); // NOI18N
|
hashDbsLabel.setText(org.openide.util.NbBundle.getMessage(HashLookupModuleSettingsPanel.class, "HashLookupModuleSettingsPanel.hashDbsLabel.text")); // NOI18N
|
||||||
|
|
||||||
knownHashDbsScrollPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());
|
hashDbsScrollPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());
|
||||||
|
|
||||||
knownHashTable.setBackground(new java.awt.Color(240, 240, 240));
|
hashTable.setBackground(new java.awt.Color(240, 240, 240));
|
||||||
knownHashTable.setShowHorizontalLines(false);
|
hashTable.setShowHorizontalLines(false);
|
||||||
knownHashTable.setShowVerticalLines(false);
|
hashTable.setShowVerticalLines(false);
|
||||||
knownHashDbsScrollPane.setViewportView(knownHashTable);
|
hashDbsScrollPane.setViewportView(hashTable);
|
||||||
|
|
||||||
knownBadHashDbsLabel.setText(org.openide.util.NbBundle.getMessage(HashLookupModuleSettingsPanel.class, "HashLookupModuleSettingsPanel.knownBadHashDbsLabel.text")); // NOI18N
|
|
||||||
|
|
||||||
knownBadHashDbsScrollPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());
|
|
||||||
|
|
||||||
knownBadHashTable.setBackground(new java.awt.Color(240, 240, 240));
|
|
||||||
knownBadHashTable.setModel(new javax.swing.table.DefaultTableModel(
|
|
||||||
new Object [][] {
|
|
||||||
|
|
||||||
},
|
|
||||||
new String [] {
|
|
||||||
|
|
||||||
}
|
|
||||||
));
|
|
||||||
knownBadHashTable.setShowHorizontalLines(false);
|
|
||||||
knownBadHashTable.setShowVerticalLines(false);
|
|
||||||
knownBadHashDbsScrollPane.setViewportView(knownBadHashTable);
|
|
||||||
|
|
||||||
unspecifiedHashDbsLabel.setText(org.openide.util.NbBundle.getMessage(HashLookupModuleSettingsPanel.class, "HashLookupModuleSettingsPanel.unspecifiedHashDbsLabel.text")); // NOI18N
|
|
||||||
|
|
||||||
unspecifiedHashDbsScrollPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());
|
|
||||||
|
|
||||||
unspecifiedHashTable.setBackground(new java.awt.Color(240, 240, 240));
|
|
||||||
unspecifiedHashTable.setModel(new javax.swing.table.DefaultTableModel(
|
|
||||||
new Object [][] {
|
|
||||||
|
|
||||||
},
|
|
||||||
new String [] {
|
|
||||||
|
|
||||||
}
|
|
||||||
));
|
|
||||||
unspecifiedHashTable.setShowHorizontalLines(false);
|
|
||||||
unspecifiedHashTable.setShowVerticalLines(false);
|
|
||||||
unspecifiedHashDbsScrollPane.setViewportView(unspecifiedHashTable);
|
|
||||||
|
|
||||||
alwaysCalcHashesCheckbox.setText(org.openide.util.NbBundle.getMessage(HashLookupModuleSettingsPanel.class, "HashLookupModuleSettingsPanel.alwaysCalcHashesCheckbox.text")); // NOI18N
|
alwaysCalcHashesCheckbox.setText(org.openide.util.NbBundle.getMessage(HashLookupModuleSettingsPanel.class, "HashLookupModuleSettingsPanel.alwaysCalcHashesCheckbox.text")); // NOI18N
|
||||||
alwaysCalcHashesCheckbox.setToolTipText(org.openide.util.NbBundle.getMessage(HashLookupModuleSettingsPanel.class, "HashLookupModuleSettingsPanel.alwaysCalcHashesCheckbox.toolTipText")); // NOI18N
|
alwaysCalcHashesCheckbox.setToolTipText(org.openide.util.NbBundle.getMessage(HashLookupModuleSettingsPanel.class, "HashLookupModuleSettingsPanel.alwaysCalcHashesCheckbox.toolTipText")); // NOI18N
|
||||||
@ -357,59 +310,31 @@ public final class HashLookupModuleSettingsPanel extends IngestModuleIngestJobSe
|
|||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(layout.createSequentialGroup()
|
.addGroup(layout.createSequentialGroup()
|
||||||
.addComponent(knownHashDbsLabel)
|
.addComponent(hashDbsLabel)
|
||||||
.addGap(0, 0, Short.MAX_VALUE))
|
.addGap(0, 0, Short.MAX_VALUE))
|
||||||
.addComponent(knownBadHashDbsLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 347, Short.MAX_VALUE)
|
|
||||||
.addGroup(layout.createSequentialGroup()
|
.addGroup(layout.createSequentialGroup()
|
||||||
.addGap(10, 10, 10)
|
.addGap(10, 10, 10)
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addComponent(hashDbsScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 494, Short.MAX_VALUE))
|
||||||
.addComponent(knownHashDbsScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
|
|
||||||
.addComponent(knownBadHashDbsScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)))
|
|
||||||
.addComponent(alwaysCalcHashesCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addComponent(alwaysCalcHashesCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addGroup(layout.createSequentialGroup()
|
|
||||||
.addContainerGap()
|
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addComponent(unspecifiedHashDbsLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 347, Short.MAX_VALUE)
|
|
||||||
.addGroup(layout.createSequentialGroup()
|
|
||||||
.addGap(10, 10, 10)
|
|
||||||
.addComponent(unspecifiedHashDbsScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)))
|
|
||||||
.addContainerGap()))
|
|
||||||
);
|
);
|
||||||
layout.setVerticalGroup(
|
layout.setVerticalGroup(
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(layout.createSequentialGroup()
|
.addGroup(layout.createSequentialGroup()
|
||||||
.addGap(2, 2, 2)
|
.addGap(2, 2, 2)
|
||||||
.addComponent(knownHashDbsLabel)
|
.addComponent(hashDbsLabel)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(knownHashDbsScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 68, Short.MAX_VALUE)
|
.addComponent(hashDbsScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 207, Short.MAX_VALUE)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addComponent(knownBadHashDbsLabel)
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addComponent(knownBadHashDbsScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 67, Short.MAX_VALUE)
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addComponent(unspecifiedHashDbsLabel)
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addComponent(unspecifiedHashDbsScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 68, Short.MAX_VALUE)
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addComponent(alwaysCalcHashesCheckbox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(alwaysCalcHashesCheckbox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addGap(0, 0, 0))
|
.addContainerGap())
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addGap(0, 330, Short.MAX_VALUE))
|
|
||||||
);
|
);
|
||||||
}// </editor-fold>//GEN-END:initComponents
|
}// </editor-fold>//GEN-END:initComponents
|
||||||
|
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
private javax.swing.JCheckBox alwaysCalcHashesCheckbox;
|
private javax.swing.JCheckBox alwaysCalcHashesCheckbox;
|
||||||
private javax.swing.JLabel knownBadHashDbsLabel;
|
private javax.swing.JLabel hashDbsLabel;
|
||||||
private javax.swing.JScrollPane knownBadHashDbsScrollPane;
|
private javax.swing.JScrollPane hashDbsScrollPane;
|
||||||
private javax.swing.JTable knownBadHashTable;
|
private javax.swing.JTable hashTable;
|
||||||
private javax.swing.JLabel knownHashDbsLabel;
|
|
||||||
private javax.swing.JScrollPane knownHashDbsScrollPane;
|
|
||||||
private javax.swing.JTable knownHashTable;
|
|
||||||
private javax.swing.JLabel unspecifiedHashDbsLabel;
|
|
||||||
private javax.swing.JScrollPane unspecifiedHashDbsScrollPane;
|
|
||||||
private javax.swing.JTable unspecifiedHashTable;
|
|
||||||
// End of variables declaration//GEN-END:variables
|
// End of variables declaration//GEN-END:variables
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user