mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 08:56:15 +00:00
6305 layout changes and fixes to allignment
This commit is contained in:
parent
9cb01449ef
commit
86539ae843
@ -69,4 +69,8 @@ abstract class AbstractDiscoveryFilterPanel extends javax.swing.JPanel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean hasPanel() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@ import java.awt.event.ActionEvent;
|
|||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
import javax.swing.JSplitPane;
|
||||||
import javax.swing.event.ListSelectionEvent;
|
import javax.swing.event.ListSelectionEvent;
|
||||||
import javax.swing.event.ListSelectionListener;
|
import javax.swing.event.ListSelectionListener;
|
||||||
|
|
||||||
@ -20,58 +22,76 @@ import javax.swing.event.ListSelectionListener;
|
|||||||
*
|
*
|
||||||
* @author wschaefer
|
* @author wschaefer
|
||||||
*/
|
*/
|
||||||
abstract class AbstractFiltersPanel extends javax.swing.JPanel implements ActionListener, ListSelectionListener {
|
abstract class AbstractFiltersPanel extends JPanel implements ActionListener, ListSelectionListener {
|
||||||
|
|
||||||
private static boolean isInitialized = false;
|
private boolean isInitialized = false;
|
||||||
private static final double LABEL_WEIGHT = 0;
|
private static final double LABEL_WEIGHT = 0;
|
||||||
private static final double PANEL_WEIGHT = .1;
|
private static final double PANEL_WEIGHT = .1;
|
||||||
private static final int LABEL_WIDTH = 1;
|
private static final int LABEL_WIDTH = 1;
|
||||||
private static final int PANEL_WIDTH = 2;
|
private static final int PANEL_WIDTH = 2;
|
||||||
private static final int NUMBER_OF_COLUMNS = 6;
|
private static final int LABEL_HEIGHT = 1;
|
||||||
|
private static final int PANEL_HEIGHT = 2;
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
private final GridBagLayout layout = new GridBagLayout();
|
|
||||||
private final GridBagConstraints constraints = new GridBagConstraints();
|
private final GridBagConstraints constraints = new GridBagConstraints();
|
||||||
private final List<AbstractDiscoveryFilterPanel> filters = new ArrayList<>();
|
private final List<AbstractDiscoveryFilterPanel> filters = new ArrayList<>();
|
||||||
|
private final JPanel firstColumnPanel = new JPanel();
|
||||||
|
private final JPanel secondColumnPanel = new JPanel();
|
||||||
|
private int firstColumnY = 0;
|
||||||
|
private int secondColumnY = 0;
|
||||||
|
|
||||||
|
AbstractFiltersPanel() {
|
||||||
|
firstColumnPanel.setLayout(new GridBagLayout());
|
||||||
|
secondColumnPanel.setLayout(new GridBagLayout());
|
||||||
|
}
|
||||||
|
|
||||||
abstract FileSearchData.FileType getFileType();
|
abstract FileSearchData.FileType getFileType();
|
||||||
|
|
||||||
final synchronized void addFilter(AbstractDiscoveryFilterPanel filterPanel, boolean isSelected, int[] indicesSelected) {
|
final synchronized void addFilter(AbstractDiscoveryFilterPanel filterPanel, boolean isSelected, int[] indicesSelected, int column) {
|
||||||
if (!isInitialized) {
|
if (!isInitialized) {
|
||||||
constraints.fill = GridBagConstraints.VERTICAL;
|
|
||||||
constraints.gridx = 0;
|
|
||||||
constraints.gridy = 0;
|
constraints.gridy = 0;
|
||||||
constraints.gridheight = 2;
|
constraints.anchor = GridBagConstraints.FIRST_LINE_START;
|
||||||
constraints.gridwidth = LABEL_WIDTH;
|
constraints.insets = new Insets(8, 8, 8, 8);
|
||||||
constraints.weightx = LABEL_WEIGHT;
|
|
||||||
constraints.anchor = GridBagConstraints.NORTHWEST;
|
|
||||||
constraints.insets = new Insets(0, 8, 12, 8);
|
|
||||||
isInitialized = true;
|
isInitialized = true;
|
||||||
}
|
}
|
||||||
|
if (column == 0) {
|
||||||
|
constraints.gridy = firstColumnY;
|
||||||
|
} else {
|
||||||
|
constraints.gridy = secondColumnY;
|
||||||
|
}
|
||||||
|
constraints.gridx = 0;
|
||||||
filterPanel.configurePanel(isSelected, indicesSelected);
|
filterPanel.configurePanel(isSelected, indicesSelected);
|
||||||
filterPanel.addListeners(this, this);
|
filterPanel.addListeners(this, this);
|
||||||
constraints.fill = GridBagConstraints.VERTICAL;
|
|
||||||
filters.add(filterPanel);
|
filters.add(filterPanel);
|
||||||
constraints.weightx = LABEL_WEIGHT;
|
constraints.fill = GridBagConstraints.VERTICAL;
|
||||||
|
constraints.gridheight = LABEL_HEIGHT;
|
||||||
constraints.gridwidth = LABEL_WIDTH;
|
constraints.gridwidth = LABEL_WIDTH;
|
||||||
addToGridBagLayout(filterPanel.getCheckbox(), null);
|
constraints.weightx = LABEL_WEIGHT;
|
||||||
nextSpot(LABEL_WIDTH);
|
constraints.weighty = LABEL_WEIGHT;
|
||||||
constraints.fill = GridBagConstraints.BOTH;
|
constraints.gridwidth = LABEL_WIDTH;
|
||||||
constraints.weightx = PANEL_WEIGHT;
|
addToGridBagLayout(filterPanel.getCheckbox(), null, column);
|
||||||
constraints.gridwidth = PANEL_WIDTH;
|
if (filterPanel.hasPanel()) {
|
||||||
addToGridBagLayout(filterPanel, null);
|
System.out.println("filterPanel has panel" + filterPanel.getClass().toString());
|
||||||
nextSpot(PANEL_WIDTH);
|
constraints.gridx += constraints.gridwidth;
|
||||||
updateLayout();
|
constraints.fill = GridBagConstraints.BOTH;
|
||||||
}
|
constraints.gridheight = PANEL_HEIGHT;
|
||||||
|
constraints.weightx = PANEL_WEIGHT;
|
||||||
private void nextSpot(int width) {
|
constraints.weighty = PANEL_WEIGHT;
|
||||||
constraints.gridx += width;
|
constraints.gridwidth = PANEL_WIDTH;
|
||||||
if (constraints.gridx >= NUMBER_OF_COLUMNS) {
|
addToGridBagLayout(filterPanel, null, column);
|
||||||
constraints.fill = GridBagConstraints.VERTICAL;
|
} else {
|
||||||
constraints.gridy += constraints.gridheight;
|
System.out.println("filterPanel missing panel" + filterPanel.getClass().toString());
|
||||||
constraints.gridx = 0;
|
}
|
||||||
|
if (column == 0) {
|
||||||
|
firstColumnY += constraints.gridheight;
|
||||||
|
} else {
|
||||||
|
secondColumnY += constraints.gridheight;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final void addPanelsToScrollPane(JSplitPane splitPane) {
|
||||||
|
splitPane.setLeftComponent(firstColumnPanel);
|
||||||
|
splitPane.setRightComponent(secondColumnPanel);
|
||||||
|
}
|
||||||
|
|
||||||
final synchronized void clearFilters() {
|
final synchronized void clearFilters() {
|
||||||
for (AbstractDiscoveryFilterPanel filterPanel : filters) {
|
for (AbstractDiscoveryFilterPanel filterPanel : filters) {
|
||||||
@ -80,21 +100,21 @@ abstract class AbstractFiltersPanel extends javax.swing.JPanel implements Action
|
|||||||
filters.clear();
|
filters.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addToGridBagLayout(Component componentToAdd, Component additionalComponentToAdd) {
|
private void addToGridBagLayout(Component componentToAdd, Component additionalComponentToAdd, int columnIndex) {
|
||||||
|
addToColumn(componentToAdd, constraints, columnIndex);
|
||||||
if (additionalComponentToAdd != null) {
|
if (additionalComponentToAdd != null) {
|
||||||
constraints.gridheight /= 2;
|
|
||||||
add(componentToAdd, constraints);
|
|
||||||
constraints.gridy += constraints.gridheight;
|
constraints.gridy += constraints.gridheight;
|
||||||
add(additionalComponentToAdd, constraints);
|
addToColumn(additionalComponentToAdd, constraints, columnIndex);
|
||||||
constraints.gridy -= constraints.gridheight;
|
constraints.gridy -= constraints.gridheight;
|
||||||
constraints.gridheight *= 2;
|
}
|
||||||
} else {
|
|
||||||
add(componentToAdd, constraints);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateLayout() {
|
private void addToColumn(Component component, Object constraints, int columnNumber) {
|
||||||
setLayout(layout);
|
if (columnNumber == 0) {
|
||||||
|
firstColumnPanel.add(component, constraints);
|
||||||
|
} else {
|
||||||
|
secondColumnPanel.add(component, constraints);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -97,3 +97,4 @@ DiscoveryDialog.sortingPanel.border.title=Grouping
|
|||||||
DiscoveryDialog.groupByLabel.text=Group By:
|
DiscoveryDialog.groupByLabel.text=Group By:
|
||||||
DiscoveryDialog.orderByLabel.text=Order Within Groups By:
|
DiscoveryDialog.orderByLabel.text=Order Within Groups By:
|
||||||
DiscoveryDialog.orderGroupsByLabel.text=Order Groups By:
|
DiscoveryDialog.orderGroupsByLabel.text=Order Groups By:
|
||||||
|
ImageFilterPanel.imageFiltersSplitPane.toolTipText=
|
||||||
|
@ -137,12 +137,8 @@ FileSearchFiltering.SizeFilter.range=({0} to {1})
|
|||||||
FileSearchFiltering.TagsFilter.desc=Files that have been tagged {0}
|
FileSearchFiltering.TagsFilter.desc=Files that have been tagged {0}
|
||||||
FileSearchFiltering.TagsFilter.or=\ or
|
FileSearchFiltering.TagsFilter.or=\ or
|
||||||
FileSearchFiltering.UserCreatedFilter.desc=Files that contain EXIF data
|
FileSearchFiltering.UserCreatedFilter.desc=Files that contain EXIF data
|
||||||
FileSearchPanel.dialogTitle.text=Test file search
|
|
||||||
FileSearchPanel.sortingPanel.border.title=Grouping
|
FileSearchPanel.sortingPanel.border.title=Grouping
|
||||||
FileSearchPanel.addButton.text=Add
|
FileSearchPanel.addButton.text=Add
|
||||||
FileSearchPanel.steptwo.documents=Step 2: Filter which documents to show
|
|
||||||
FileSearchPanel.steptwo.images=Step 2: Filter which images to show
|
|
||||||
FileSearchPanel.steptwo.videos=Step 2: Filter which videos to show
|
|
||||||
FileSearchPanel.substringRadioButton.text=Substring
|
FileSearchPanel.substringRadioButton.text=Substring
|
||||||
FileSearchPanel.fullRadioButton.text=Full
|
FileSearchPanel.fullRadioButton.text=Full
|
||||||
FileSearchPanel.parentCheckbox.text=Parent Folder:
|
FileSearchPanel.parentCheckbox.text=Parent Folder:
|
||||||
@ -251,6 +247,7 @@ DiscoveryDialog.sortingPanel.border.title=Grouping
|
|||||||
DiscoveryDialog.groupByLabel.text=Group By:
|
DiscoveryDialog.groupByLabel.text=Group By:
|
||||||
DiscoveryDialog.orderByLabel.text=Order Within Groups By:
|
DiscoveryDialog.orderByLabel.text=Order Within Groups By:
|
||||||
DiscoveryDialog.orderGroupsByLabel.text=Order Groups By:
|
DiscoveryDialog.orderGroupsByLabel.text=Order Groups By:
|
||||||
|
ImageFilterPanel.imageFiltersSplitPane.toolTipText=
|
||||||
VideoThumbnailPanel.bytes.text=bytes
|
VideoThumbnailPanel.bytes.text=bytes
|
||||||
VideoThumbnailPanel.deleted.text=All instances of file are deleted.
|
VideoThumbnailPanel.deleted.text=All instances of file are deleted.
|
||||||
VideoThumbnailPanel.gigaBytes.text=GB
|
VideoThumbnailPanel.gigaBytes.text=GB
|
||||||
|
@ -163,10 +163,10 @@
|
|||||||
<Group type="103" groupAlignment="1" attributes="0">
|
<Group type="103" groupAlignment="1" attributes="0">
|
||||||
<Component id="sortingPanel" pref="810" max="32767" attributes="0"/>
|
<Component id="sortingPanel" pref="810" max="32767" attributes="0"/>
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<Component id="errorLabel" pref="662" max="32767" attributes="0"/>
|
<Component id="errorLabel" pref="594" max="32767" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="68" max="-2" attributes="0"/>
|
||||||
<Component id="cancelButton" min="-2" max="-2" attributes="0"/>
|
<Component id="cancelButton" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
<Component id="searchButton" min="-2" max="-2" attributes="0"/>
|
<Component id="searchButton" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
@ -247,21 +247,19 @@
|
|||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
<EmptySpace min="-2" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Component id="orderGroupsByLabel" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="groupByLabel" min="-2" max="-2" attributes="0"/>
|
<Component id="groupByLabel" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace min="-2" pref="88" max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Component id="groupSortingComboBox" max="32767" attributes="0"/>
|
|
||||||
<Component id="groupByCombobox" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="orderByLabel" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="orderByCombobox" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<Component id="orderGroupsByLabel" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
<EmptySpace min="-2" max="-2" attributes="0"/>
|
||||||
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
|
<Component id="groupSortingComboBox" max="32767" attributes="0"/>
|
||||||
|
<Component id="groupByCombobox" max="32767" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<EmptySpace type="unrelated" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="orderByLabel" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="orderByCombobox" max="32767" attributes="0"/>
|
||||||
|
<EmptySpace min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
|
@ -259,17 +259,16 @@ final class DiscoveryDialog extends javax.swing.JDialog {
|
|||||||
.addGroup(sortingPanelLayout.createSequentialGroup()
|
.addGroup(sortingPanelLayout.createSequentialGroup()
|
||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
.addGroup(sortingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(sortingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(sortingPanelLayout.createSequentialGroup()
|
.addComponent(orderGroupsByLabel)
|
||||||
.addComponent(groupByLabel)
|
.addComponent(groupByLabel))
|
||||||
.addGap(88, 88, 88)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(sortingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(sortingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(groupSortingComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(groupSortingComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(groupByCombobox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addComponent(groupByCombobox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addComponent(orderByLabel)
|
.addComponent(orderByLabel)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(orderByCombobox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addComponent(orderByCombobox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(orderGroupsByLabel))
|
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
);
|
);
|
||||||
sortingPanelLayout.setVerticalGroup(
|
sortingPanelLayout.setVerticalGroup(
|
||||||
@ -297,10 +296,10 @@ final class DiscoveryDialog extends javax.swing.JDialog {
|
|||||||
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
||||||
.addComponent(sortingPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 810, Short.MAX_VALUE)
|
.addComponent(sortingPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 810, Short.MAX_VALUE)
|
||||||
.addGroup(jPanel1Layout.createSequentialGroup()
|
.addGroup(jPanel1Layout.createSequentialGroup()
|
||||||
.addComponent(errorLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 662, Short.MAX_VALUE)
|
.addComponent(errorLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 594, Short.MAX_VALUE)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addGap(68, 68, 68)
|
||||||
.addComponent(cancelButton)
|
.addComponent(cancelButton)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addComponent(searchButton)))
|
.addComponent(searchButton)))
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
);
|
);
|
||||||
|
@ -13,16 +13,36 @@
|
|||||||
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
|
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
|
||||||
</AuxValues>
|
</AuxValues>
|
||||||
|
|
||||||
<Layout>
|
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
|
||||||
<DimensionLayout dim="0">
|
<SubComponents>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Container class="javax.swing.JScrollPane" name="documentFiltersScrollPane">
|
||||||
<EmptySpace min="0" pref="400" max="32767" attributes="0"/>
|
<Constraints>
|
||||||
</Group>
|
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
||||||
</DimensionLayout>
|
<BorderConstraints direction="Center"/>
|
||||||
<DimensionLayout dim="1">
|
</Constraint>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
</Constraints>
|
||||||
<EmptySpace min="0" pref="300" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
|
||||||
</DimensionLayout>
|
<SubComponents>
|
||||||
</Layout>
|
<Container class="javax.swing.JPanel" name="documentFiltersPanel">
|
||||||
|
|
||||||
|
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
|
||||||
|
<SubComponents>
|
||||||
|
<Container class="javax.swing.JSplitPane" name="documentsFiltersSplitPane">
|
||||||
|
<Properties>
|
||||||
|
<Property name="resizeWeight" type="double" value="0.5"/>
|
||||||
|
</Properties>
|
||||||
|
<Constraints>
|
||||||
|
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
||||||
|
<BorderConstraints direction="Center"/>
|
||||||
|
</Constraint>
|
||||||
|
</Constraints>
|
||||||
|
|
||||||
|
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout"/>
|
||||||
|
</Container>
|
||||||
|
</SubComponents>
|
||||||
|
</Container>
|
||||||
|
</SubComponents>
|
||||||
|
</Container>
|
||||||
|
</SubComponents>
|
||||||
</Form>
|
</Form>
|
||||||
|
@ -20,20 +20,22 @@ final class DocumentFilterPanel extends AbstractFiltersPanel {
|
|||||||
* Creates new form DocumentFilterPanel
|
* Creates new form DocumentFilterPanel
|
||||||
*/
|
*/
|
||||||
DocumentFilterPanel() {
|
DocumentFilterPanel() {
|
||||||
|
super();
|
||||||
initComponents();
|
initComponents();
|
||||||
addFilter(new SizeFilterPanel(FileSearchData.FileType.DOCUMENTS), false, null);
|
addFilter(new SizeFilterPanel(FileSearchData.FileType.DOCUMENTS), false, null, 0);
|
||||||
addFilter(new DataSourceFilterPanel(), false, null);
|
addFilter(new DataSourceFilterPanel(), false, null, 0);
|
||||||
int[] pastOccurrencesIndices;
|
int[] pastOccurrencesIndices;
|
||||||
if (!CentralRepository.isEnabled()) {
|
if (!CentralRepository.isEnabled()) {
|
||||||
pastOccurrencesIndices = new int[]{0};
|
pastOccurrencesIndices = new int[]{0};
|
||||||
} else {
|
} else {
|
||||||
pastOccurrencesIndices = new int[]{1, 2, 3, 4, 5, 6, 7};
|
pastOccurrencesIndices = new int[]{1, 2, 3, 4, 5, 6, 7};
|
||||||
}
|
}
|
||||||
addFilter(new PastOccurrencesFilterPanel(), true, pastOccurrencesIndices);
|
addFilter(new PastOccurrencesFilterPanel(), true, pastOccurrencesIndices, 0);
|
||||||
addFilter(new HashSetFilterPanel(), false, null);
|
addFilter(new HashSetFilterPanel(), false, null, 1);
|
||||||
addFilter(new InterestingItemsFilterPanel(), false, null);
|
addFilter(new InterestingItemsFilterPanel(), false, null, 1);
|
||||||
addFilter(new ObjectDetectedFilterPanel(), false, null);
|
addFilter(new ObjectDetectedFilterPanel(), false, null, 1);
|
||||||
addFilter(new ParentFolderFilterPanel(), false, null);
|
addFilter(new ParentFolderFilterPanel(), false, null, 1);
|
||||||
|
addPanelsToScrollPane(documentsFiltersSplitPane);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -45,21 +47,29 @@ final class DocumentFilterPanel extends AbstractFiltersPanel {
|
|||||||
// <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() {
|
||||||
|
|
||||||
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
|
documentFiltersScrollPane = new javax.swing.JScrollPane();
|
||||||
this.setLayout(layout);
|
documentFiltersPanel = new javax.swing.JPanel();
|
||||||
layout.setHorizontalGroup(
|
documentsFiltersSplitPane = new javax.swing.JSplitPane();
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addGap(0, 400, Short.MAX_VALUE)
|
setLayout(new java.awt.BorderLayout());
|
||||||
);
|
|
||||||
layout.setVerticalGroup(
|
documentFiltersPanel.setLayout(new java.awt.BorderLayout());
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addGap(0, 300, Short.MAX_VALUE)
|
documentsFiltersSplitPane.setResizeWeight(0.5);
|
||||||
);
|
documentFiltersPanel.add(documentsFiltersSplitPane, java.awt.BorderLayout.CENTER);
|
||||||
|
|
||||||
|
documentFiltersScrollPane.setViewportView(documentFiltersPanel);
|
||||||
|
|
||||||
|
add(documentFiltersScrollPane, java.awt.BorderLayout.CENTER);
|
||||||
}// </editor-fold>//GEN-END:initComponents
|
}// </editor-fold>//GEN-END:initComponents
|
||||||
@Override
|
@Override
|
||||||
FileSearchData.FileType getFileType() {
|
FileSearchData.FileType getFileType() {
|
||||||
return FILE_TYPE;
|
return FILE_TYPE;
|
||||||
}
|
}
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
|
private javax.swing.JPanel documentFiltersPanel;
|
||||||
|
private javax.swing.JScrollPane documentFiltersScrollPane;
|
||||||
|
private javax.swing.JSplitPane documentsFiltersSplitPane;
|
||||||
// End of variables declaration//GEN-END:variables
|
// End of variables declaration//GEN-END:variables
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,9 @@ public class HashSetFilterPanel extends AbstractDiscoveryFilterPanel {
|
|||||||
hashListModel.add(count, name);
|
hashListModel.add(count, name);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
System.out.println("SETUP COMPLETE");
|
||||||
} catch (TskCoreException ex) {
|
} catch (TskCoreException ex) {
|
||||||
|
System.out.println("SETUP ERROR");
|
||||||
logger.log(Level.SEVERE, "Error loading hash set names", ex);
|
logger.log(Level.SEVERE, "Error loading hash set names", ex);
|
||||||
hashSetCheckbox.setEnabled(false);
|
hashSetCheckbox.setEnabled(false);
|
||||||
hashSetList.setEnabled(false);
|
hashSetList.setEnabled(false);
|
||||||
@ -106,6 +108,7 @@ public class HashSetFilterPanel extends AbstractDiscoveryFilterPanel {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
void configurePanel(boolean selected, int[] indicesSelected) {
|
void configurePanel(boolean selected, int[] indicesSelected) {
|
||||||
|
System.out.println("CONFIG PANEL HASHSET");
|
||||||
boolean hasHashSets = hashSetList.getModel().getSize() > 0;
|
boolean hasHashSets = hashSetList.getModel().getSize() > 0;
|
||||||
hashSetCheckbox.setEnabled(hasHashSets);
|
hashSetCheckbox.setEnabled(hasHashSets);
|
||||||
hashSetCheckbox.setSelected(selected && hasHashSets);
|
hashSetCheckbox.setSelected(selected && hasHashSets);
|
||||||
@ -115,9 +118,11 @@ public class HashSetFilterPanel extends AbstractDiscoveryFilterPanel {
|
|||||||
if (indicesSelected != null) {
|
if (indicesSelected != null) {
|
||||||
hashSetList.setSelectedIndices(indicesSelected);
|
hashSetList.setSelectedIndices(indicesSelected);
|
||||||
}
|
}
|
||||||
|
System.out.println("PANEL ENABLED SETUP");
|
||||||
} else {
|
} else {
|
||||||
hashSetScrollPane.setEnabled(false);
|
hashSetScrollPane.setEnabled(false);
|
||||||
hashSetList.setEnabled(false);
|
hashSetList.setEnabled(false);
|
||||||
|
System.out.println("PAENL DISABLED SETUP");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,5 +14,39 @@
|
|||||||
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,44,0,0,3,32"/>
|
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,44,0,0,3,32"/>
|
||||||
</AuxValues>
|
</AuxValues>
|
||||||
|
|
||||||
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/>
|
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
|
||||||
|
<SubComponents>
|
||||||
|
<Container class="javax.swing.JScrollPane" name="imageFiltersScrollPane">
|
||||||
|
<Constraints>
|
||||||
|
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
||||||
|
<BorderConstraints direction="Center"/>
|
||||||
|
</Constraint>
|
||||||
|
</Constraints>
|
||||||
|
|
||||||
|
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
|
||||||
|
<SubComponents>
|
||||||
|
<Container class="javax.swing.JPanel" name="imageFiltersPanel">
|
||||||
|
|
||||||
|
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
|
||||||
|
<SubComponents>
|
||||||
|
<Container class="javax.swing.JSplitPane" name="imageFiltersSplitPane">
|
||||||
|
<Properties>
|
||||||
|
<Property name="resizeWeight" type="double" value="0.5"/>
|
||||||
|
<Property name="toolTipText" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
|
<ResourceString bundle="org/sleuthkit/autopsy/discovery/Bundle.properties" key="ImageFilterPanel.imageFiltersSplitPane.toolTipText" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
|
</Property>
|
||||||
|
</Properties>
|
||||||
|
<Constraints>
|
||||||
|
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
||||||
|
<BorderConstraints direction="Center"/>
|
||||||
|
</Constraint>
|
||||||
|
</Constraints>
|
||||||
|
|
||||||
|
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout"/>
|
||||||
|
</Container>
|
||||||
|
</SubComponents>
|
||||||
|
</Container>
|
||||||
|
</SubComponents>
|
||||||
|
</Container>
|
||||||
|
</SubComponents>
|
||||||
</Form>
|
</Form>
|
||||||
|
@ -20,23 +20,25 @@ final class ImageFilterPanel extends AbstractFiltersPanel {
|
|||||||
* Creates new form ImageFilterPanel
|
* Creates new form ImageFilterPanel
|
||||||
*/
|
*/
|
||||||
ImageFilterPanel() {
|
ImageFilterPanel() {
|
||||||
|
super();
|
||||||
initComponents();
|
initComponents();
|
||||||
SizeFilterPanel sizeFilterPanel = new SizeFilterPanel(FILE_TYPE);
|
SizeFilterPanel sizeFilterPanel = new SizeFilterPanel(FILE_TYPE);
|
||||||
int[] sizeIndicesSelected = {1, 2, 3, 4, 5};
|
int[] sizeIndicesSelected = {1, 2, 3, 4, 5};
|
||||||
addFilter(sizeFilterPanel, true, sizeIndicesSelected);
|
addFilter(sizeFilterPanel, true, sizeIndicesSelected, 0);
|
||||||
addFilter(new ObjectDetectedFilterPanel(), false, null);
|
addFilter(new ObjectDetectedFilterPanel(), false, null, 0);
|
||||||
int[] pastOccurrencesIndices;
|
int[] pastOccurrencesIndices;
|
||||||
if (!CentralRepository.isEnabled()) {
|
if (!CentralRepository.isEnabled()) {
|
||||||
pastOccurrencesIndices = new int[]{0};
|
pastOccurrencesIndices = new int[]{0};
|
||||||
} else {
|
} else {
|
||||||
pastOccurrencesIndices = new int[]{1, 2, 3, 4, 5, 6, 7};
|
pastOccurrencesIndices = new int[]{1, 2, 3, 4, 5, 6, 7};
|
||||||
}
|
}
|
||||||
addFilter(new PastOccurrencesFilterPanel(), true, pastOccurrencesIndices);
|
addFilter(new PastOccurrencesFilterPanel(), true, pastOccurrencesIndices, 0);
|
||||||
addFilter(new UserCreatedFilterPanel(), false, null);
|
addFilter(new UserCreatedFilterPanel(), false, null, 1);
|
||||||
addFilter(new HashSetFilterPanel(), false, null);
|
addFilter(new HashSetFilterPanel(), false, null, 1);
|
||||||
addFilter(new InterestingItemsFilterPanel(), false, null);
|
addFilter(new InterestingItemsFilterPanel(), false, null, 1);
|
||||||
addFilter(new DataSourceFilterPanel(), false, null);
|
addFilter(new DataSourceFilterPanel(), false, null, 1);
|
||||||
addFilter(new ParentFolderFilterPanel(), false, null);
|
addFilter(new ParentFolderFilterPanel(), false, null, 1);
|
||||||
|
addPanelsToScrollPane(imageFiltersSplitPane);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -48,7 +50,21 @@ final class ImageFilterPanel extends AbstractFiltersPanel {
|
|||||||
// <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() {
|
||||||
|
|
||||||
setLayout(new java.awt.GridBagLayout());
|
imageFiltersScrollPane = new javax.swing.JScrollPane();
|
||||||
|
imageFiltersPanel = new javax.swing.JPanel();
|
||||||
|
imageFiltersSplitPane = new javax.swing.JSplitPane();
|
||||||
|
|
||||||
|
setLayout(new java.awt.BorderLayout());
|
||||||
|
|
||||||
|
imageFiltersPanel.setLayout(new java.awt.BorderLayout());
|
||||||
|
|
||||||
|
imageFiltersSplitPane.setResizeWeight(0.5);
|
||||||
|
imageFiltersSplitPane.setToolTipText(org.openide.util.NbBundle.getMessage(ImageFilterPanel.class, "ImageFilterPanel.imageFiltersSplitPane.toolTipText")); // NOI18N
|
||||||
|
imageFiltersPanel.add(imageFiltersSplitPane, java.awt.BorderLayout.CENTER);
|
||||||
|
|
||||||
|
imageFiltersScrollPane.setViewportView(imageFiltersPanel);
|
||||||
|
|
||||||
|
add(imageFiltersScrollPane, java.awt.BorderLayout.CENTER);
|
||||||
}// </editor-fold>//GEN-END:initComponents
|
}// </editor-fold>//GEN-END:initComponents
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -57,5 +73,8 @@ final class ImageFilterPanel extends AbstractFiltersPanel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
|
private javax.swing.JPanel imageFiltersPanel;
|
||||||
|
private javax.swing.JScrollPane imageFiltersScrollPane;
|
||||||
|
private javax.swing.JSplitPane imageFiltersSplitPane;
|
||||||
// End of variables declaration//GEN-END:variables
|
// End of variables declaration//GEN-END:variables
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
<Layout>
|
<Layout>
|
||||||
<DimensionLayout dim="0">
|
<DimensionLayout dim="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="interestingItemsScrollPane" min="-2" pref="300" max="-2" attributes="0"/>
|
<Component id="interestingItemsScrollPane" pref="300" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
<DimensionLayout dim="1">
|
<DimensionLayout dim="1">
|
||||||
|
@ -85,7 +85,7 @@ public class InterestingItemsFilterPanel extends AbstractDiscoveryFilterPanel {
|
|||||||
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(interestingItemsScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(interestingItemsScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
|
||||||
);
|
);
|
||||||
layout.setVerticalGroup(
|
layout.setVerticalGroup(
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<Layout>
|
<Layout>
|
||||||
<DimensionLayout dim="0">
|
<DimensionLayout dim="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" alignment="1" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<EmptySpace min="-2" pref="8" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="8" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="includeRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
|
<Component id="includeRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
@ -49,17 +49,14 @@
|
|||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="substringRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
|
<Component id="substringRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Component id="excludeRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="excludeRadioButton" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="103" alignment="0" groupAlignment="1" max="-2" attributes="0">
|
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
|
||||||
<Component id="parentScrollPane" alignment="0" max="32767" attributes="0"/>
|
<Component id="parentScrollPane" alignment="0" max="32767" attributes="0"/>
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<Component id="parentTextField" min="-2" pref="237" max="-2" attributes="0"/>
|
<Component id="parentTextField" pref="237" max="32767" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace min="-2" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="deleteButton" min="-2" max="-2" attributes="0"/>
|
<Component id="deleteButton" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="addButton" min="-2" max="-2" attributes="0"/>
|
<Component id="addButton" min="-2" max="-2" attributes="0"/>
|
||||||
|
@ -127,7 +127,7 @@ public class ParentFolderFilterPanel extends AbstractDiscoveryFilterPanel {
|
|||||||
this.setLayout(layout);
|
this.setLayout(layout);
|
||||||
layout.setHorizontalGroup(
|
layout.setHorizontalGroup(
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
|
.addGroup(layout.createSequentialGroup()
|
||||||
.addGap(8, 8, 8)
|
.addGap(8, 8, 8)
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(includeRadioButton)
|
.addComponent(includeRadioButton)
|
||||||
@ -135,13 +135,11 @@ public class ParentFolderFilterPanel extends AbstractDiscoveryFilterPanel {
|
|||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(substringRadioButton)
|
.addComponent(substringRadioButton)
|
||||||
.addGroup(layout.createSequentialGroup()
|
.addComponent(excludeRadioButton)))
|
||||||
.addComponent(excludeRadioButton)
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
||||||
.addGap(0, 0, Short.MAX_VALUE))))
|
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
|
|
||||||
.addComponent(parentScrollPane, javax.swing.GroupLayout.Alignment.LEADING)
|
.addComponent(parentScrollPane, javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
|
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
|
||||||
.addComponent(parentTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(parentTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 237, Short.MAX_VALUE)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(deleteButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(deleteButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
<Layout>
|
<Layout>
|
||||||
<DimensionLayout dim="0">
|
<DimensionLayout dim="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="crFrequencyScrollPane" min="-2" pref="300" max="-2" attributes="0"/>
|
<Component id="crFrequencyScrollPane" pref="300" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
<DimensionLayout dim="1">
|
<DimensionLayout dim="1">
|
||||||
|
@ -59,7 +59,7 @@ public class PastOccurrencesFilterPanel extends AbstractDiscoveryFilterPanel {
|
|||||||
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(crFrequencyScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(crFrequencyScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
|
||||||
);
|
);
|
||||||
layout.setVerticalGroup(
|
layout.setVerticalGroup(
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
|
@ -7,8 +7,7 @@
|
|||||||
<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/discovery/Bundle.properties" key="SizeFilterPanel.sizeCheckbox.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="org/sleuthkit/autopsy/discovery/Bundle.properties" key="SizeFilterPanel.sizeCheckbox.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="horizontalAlignment" type="int" value="2"/>
|
<Property name="horizontalAlignment" type="int" value="11"/>
|
||||||
<Property name="horizontalTextPosition" type="int" value="2"/>
|
|
||||||
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||||
<Dimension value="[103, 25]"/>
|
<Dimension value="[103, 25]"/>
|
||||||
</Property>
|
</Property>
|
||||||
|
@ -43,8 +43,7 @@ final class SizeFilterPanel extends AbstractDiscoveryFilterPanel {
|
|||||||
sizeList = new javax.swing.JList<>();
|
sizeList = new javax.swing.JList<>();
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(sizeCheckbox, org.openide.util.NbBundle.getMessage(SizeFilterPanel.class, "SizeFilterPanel.sizeCheckbox.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(sizeCheckbox, org.openide.util.NbBundle.getMessage(SizeFilterPanel.class, "SizeFilterPanel.sizeCheckbox.text")); // NOI18N
|
||||||
sizeCheckbox.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
|
sizeCheckbox.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
|
||||||
sizeCheckbox.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
|
|
||||||
sizeCheckbox.setMaximumSize(new java.awt.Dimension(103, 25));
|
sizeCheckbox.setMaximumSize(new java.awt.Dimension(103, 25));
|
||||||
sizeCheckbox.setMinimumSize(new java.awt.Dimension(103, 25));
|
sizeCheckbox.setMinimumSize(new java.awt.Dimension(103, 25));
|
||||||
sizeCheckbox.setPreferredSize(new java.awt.Dimension(103, 25));
|
sizeCheckbox.setPreferredSize(new java.awt.Dimension(103, 25));
|
||||||
|
@ -88,4 +88,9 @@ public class UserCreatedFilterPanel extends AbstractDiscoveryFilterPanel {
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
boolean hasPanel() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,18 +11,39 @@
|
|||||||
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
|
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
|
||||||
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
|
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
|
||||||
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
|
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
|
||||||
|
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,44,0,0,3,32"/>
|
||||||
</AuxValues>
|
</AuxValues>
|
||||||
|
|
||||||
<Layout>
|
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
|
||||||
<DimensionLayout dim="0">
|
<SubComponents>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Container class="javax.swing.JScrollPane" name="videoFiltersScrollPane">
|
||||||
<EmptySpace min="0" pref="400" max="32767" attributes="0"/>
|
<Constraints>
|
||||||
</Group>
|
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
||||||
</DimensionLayout>
|
<BorderConstraints direction="Center"/>
|
||||||
<DimensionLayout dim="1">
|
</Constraint>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
</Constraints>
|
||||||
<EmptySpace min="0" pref="300" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
|
||||||
</DimensionLayout>
|
<SubComponents>
|
||||||
</Layout>
|
<Container class="javax.swing.JPanel" name="videoFiltersPanel">
|
||||||
|
|
||||||
|
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
|
||||||
|
<SubComponents>
|
||||||
|
<Container class="javax.swing.JSplitPane" name="videoFiltersSplitPane">
|
||||||
|
<Properties>
|
||||||
|
<Property name="resizeWeight" type="double" value="0.5"/>
|
||||||
|
</Properties>
|
||||||
|
<Constraints>
|
||||||
|
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
||||||
|
<BorderConstraints direction="Center"/>
|
||||||
|
</Constraint>
|
||||||
|
</Constraints>
|
||||||
|
|
||||||
|
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout"/>
|
||||||
|
</Container>
|
||||||
|
</SubComponents>
|
||||||
|
</Container>
|
||||||
|
</SubComponents>
|
||||||
|
</Container>
|
||||||
|
</SubComponents>
|
||||||
</Form>
|
</Form>
|
||||||
|
@ -20,21 +20,23 @@ final class VideoFilterPanel extends AbstractFiltersPanel {
|
|||||||
* Creates new form VideoFilterPanel
|
* Creates new form VideoFilterPanel
|
||||||
*/
|
*/
|
||||||
VideoFilterPanel() {
|
VideoFilterPanel() {
|
||||||
|
super();
|
||||||
initComponents();
|
initComponents();
|
||||||
addFilter(new SizeFilterPanel(FileSearchData.FileType.VIDEO), true, null);
|
addFilter(new SizeFilterPanel(FileSearchData.FileType.VIDEO), true, null, 0);
|
||||||
addFilter(new DataSourceFilterPanel(), false, null);
|
addFilter(new DataSourceFilterPanel(), false, null, 0);
|
||||||
int[] pastOccurrencesIndices;
|
int[] pastOccurrencesIndices;
|
||||||
if (!CentralRepository.isEnabled()) {
|
if (!CentralRepository.isEnabled()) {
|
||||||
pastOccurrencesIndices = new int[]{0};
|
pastOccurrencesIndices = new int[]{0};
|
||||||
} else {
|
} else {
|
||||||
pastOccurrencesIndices = new int[]{1, 2, 3, 4, 5, 6, 7};
|
pastOccurrencesIndices = new int[]{1, 2, 3, 4, 5, 6, 7};
|
||||||
}
|
}
|
||||||
addFilter(new PastOccurrencesFilterPanel(), true, pastOccurrencesIndices);
|
addFilter(new PastOccurrencesFilterPanel(), true, pastOccurrencesIndices, 0);
|
||||||
addFilter(new UserCreatedFilterPanel(), false, null);
|
addFilter(new UserCreatedFilterPanel(), false, null, 0);
|
||||||
addFilter(new HashSetFilterPanel(), false, null);
|
addFilter(new HashSetFilterPanel(), false, null, 0);
|
||||||
addFilter(new InterestingItemsFilterPanel(), false, null);
|
addFilter(new InterestingItemsFilterPanel(), false, null, 0);
|
||||||
addFilter(new ObjectDetectedFilterPanel(), false, null);
|
addFilter(new ObjectDetectedFilterPanel(), false, null, 0);
|
||||||
addFilter(new ParentFolderFilterPanel(), false, null);
|
addFilter(new ParentFolderFilterPanel(), false, null, 0);
|
||||||
|
addPanelsToScrollPane(videoFiltersSplitPane);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -46,16 +48,20 @@ final class VideoFilterPanel extends AbstractFiltersPanel {
|
|||||||
// <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() {
|
||||||
|
|
||||||
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
|
videoFiltersScrollPane = new javax.swing.JScrollPane();
|
||||||
this.setLayout(layout);
|
videoFiltersPanel = new javax.swing.JPanel();
|
||||||
layout.setHorizontalGroup(
|
videoFiltersSplitPane = new javax.swing.JSplitPane();
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addGap(0, 400, Short.MAX_VALUE)
|
setLayout(new java.awt.BorderLayout());
|
||||||
);
|
|
||||||
layout.setVerticalGroup(
|
videoFiltersPanel.setLayout(new java.awt.BorderLayout());
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addGap(0, 300, Short.MAX_VALUE)
|
videoFiltersSplitPane.setResizeWeight(0.5);
|
||||||
);
|
videoFiltersPanel.add(videoFiltersSplitPane, java.awt.BorderLayout.CENTER);
|
||||||
|
|
||||||
|
videoFiltersScrollPane.setViewportView(videoFiltersPanel);
|
||||||
|
|
||||||
|
add(videoFiltersScrollPane, java.awt.BorderLayout.CENTER);
|
||||||
}// </editor-fold>//GEN-END:initComponents
|
}// </editor-fold>//GEN-END:initComponents
|
||||||
@Override
|
@Override
|
||||||
FileSearchData.FileType getFileType() {
|
FileSearchData.FileType getFileType() {
|
||||||
@ -63,5 +69,9 @@ final class VideoFilterPanel extends AbstractFiltersPanel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
|
private javax.swing.JPanel videoFiltersPanel;
|
||||||
|
private javax.swing.JScrollPane videoFiltersScrollPane;
|
||||||
|
private javax.swing.JSplitPane videoFiltersSplitPane;
|
||||||
// End of variables declaration//GEN-END:variables
|
// End of variables declaration//GEN-END:variables
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user