mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-18 10:37:43 +00:00
5114 resolve merge conflicts yet again
This commit is contained in:
commit
595e17cbba
@ -34,8 +34,12 @@ FileSearchData.FileType.Image.displayName=Image
|
|||||||
FileSearchData.FileType.Other.displayName=Other/Unknown
|
FileSearchData.FileType.Other.displayName=Other/Unknown
|
||||||
FileSearchData.FileType.Video.displayName=Video
|
FileSearchData.FileType.Video.displayName=Video
|
||||||
FileSearchData.Frequency.common.displayName=Common
|
FileSearchData.Frequency.common.displayName=Common
|
||||||
FileSearchData.Frequency.rare.displayName=Rare
|
FileSearchData.Frequency.count_10.displayName=6 - 10
|
||||||
FileSearchData.Frequency.unique.displayName=Unique
|
FileSearchData.Frequency.count_100.displayName=51 - 100
|
||||||
|
FileSearchData.Frequency.count_20.displayName=11 - 20
|
||||||
|
FileSearchData.Frequency.count_50.displayName=21 - 50
|
||||||
|
FileSearchData.Frequency.rare.displayName=Rare (2-5)
|
||||||
|
FileSearchData.Frequency.unique.displayName=Unique (1)
|
||||||
FileSearchData.Frequency.unknown.displayName=Unknown
|
FileSearchData.Frequency.unknown.displayName=Unknown
|
||||||
FileSearchData.Score.interesting.displayName=Interesting
|
FileSearchData.Score.interesting.displayName=Interesting
|
||||||
FileSearchData.Score.notable.displayName=Notable
|
FileSearchData.Score.notable.displayName=Notable
|
||||||
|
@ -34,24 +34,32 @@ class FileSearchData {
|
|||||||
* Enum representing how often the file occurs in the Central Repository.
|
* Enum representing how often the file occurs in the Central Repository.
|
||||||
*/
|
*/
|
||||||
@NbBundle.Messages({
|
@NbBundle.Messages({
|
||||||
"FileSearchData.Frequency.unique.displayName=Unique",
|
"FileSearchData.Frequency.unique.displayName=Unique (1)",
|
||||||
"FileSearchData.Frequency.rare.displayName=Rare",
|
"FileSearchData.Frequency.rare.displayName=Rare (2-5)",
|
||||||
|
"FileSearchData.Frequency.count_10.displayName=6 - 10",
|
||||||
|
"FileSearchData.Frequency.count_20.displayName=11 - 20",
|
||||||
|
"FileSearchData.Frequency.count_50.displayName=21 - 50",
|
||||||
|
"FileSearchData.Frequency.count_100.displayName=51 - 100",
|
||||||
"FileSearchData.Frequency.common.displayName=Common",
|
"FileSearchData.Frequency.common.displayName=Common",
|
||||||
"FileSearchData.Frequency.unknown.displayName=Unknown",
|
"FileSearchData.Frequency.unknown.displayName=Unknown",
|
||||||
})
|
})
|
||||||
enum Frequency {
|
enum Frequency {
|
||||||
UNIQUE(0, Bundle.FileSearchData_Frequency_unique_displayName()),
|
UNIQUE(0, 1, Bundle.FileSearchData_Frequency_unique_displayName()),
|
||||||
RARE(1, Bundle.FileSearchData_Frequency_rare_displayName()),
|
RARE(1, 5, Bundle.FileSearchData_Frequency_rare_displayName()),
|
||||||
COMMON(2, Bundle.FileSearchData_Frequency_common_displayName()),
|
COUNT_10(1, 10, Bundle.FileSearchData_Frequency_count_10_displayName()),
|
||||||
UNKNOWN(3, Bundle.FileSearchData_Frequency_unknown_displayName());
|
COUNT_20(1, 10, Bundle.FileSearchData_Frequency_count_20_displayName()),
|
||||||
|
COUNT_50(1, 10, Bundle.FileSearchData_Frequency_count_50_displayName()),
|
||||||
|
COUNT_100(1, 10, Bundle.FileSearchData_Frequency_count_100_displayName()),
|
||||||
|
COMMON(2, 0, Bundle.FileSearchData_Frequency_common_displayName()),
|
||||||
|
UNKNOWN(3, 0, Bundle.FileSearchData_Frequency_unknown_displayName());
|
||||||
|
|
||||||
private final int ranking;
|
private final int ranking;
|
||||||
private final String displayName;
|
private final String displayName;
|
||||||
static private final long uniqueMax = 1;
|
private final int maxOccur;
|
||||||
static private final long rareMax = 5;
|
|
||||||
|
|
||||||
Frequency(int ranking, String displayName) {
|
Frequency(int ranking, int maxOccur, String displayName) {
|
||||||
this.ranking = ranking;
|
this.ranking = ranking;
|
||||||
|
this.maxOccur = maxOccur;
|
||||||
this.displayName = displayName;
|
this.displayName = displayName;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,10 +80,18 @@ class FileSearchData {
|
|||||||
* @return the corresponding enum
|
* @return the corresponding enum
|
||||||
*/
|
*/
|
||||||
static Frequency fromCount(long count) {
|
static Frequency fromCount(long count) {
|
||||||
if (count <= uniqueMax) {
|
if (count <= UNIQUE.maxOccur) {
|
||||||
return UNIQUE;
|
return UNIQUE;
|
||||||
} else if (count < rareMax) {
|
} else if (count <= RARE.maxOccur) {
|
||||||
return RARE;
|
return RARE;
|
||||||
|
} else if (count <= COUNT_10.maxOccur) {
|
||||||
|
return COUNT_10;
|
||||||
|
} else if (count <= COUNT_20.maxOccur) {
|
||||||
|
return COUNT_20;
|
||||||
|
} else if (count <= COUNT_50.maxOccur) {
|
||||||
|
return COUNT_50;
|
||||||
|
} else if (count <= COUNT_100.maxOccur) {
|
||||||
|
return COUNT_100;
|
||||||
}
|
}
|
||||||
return COMMON;
|
return COMMON;
|
||||||
}
|
}
|
||||||
@ -86,7 +102,7 @@ class FileSearchData {
|
|||||||
* @return enums that can be used to filter
|
* @return enums that can be used to filter
|
||||||
*/
|
*/
|
||||||
static List<Frequency> getOptionsForFiltering() {
|
static List<Frequency> getOptionsForFiltering() {
|
||||||
return Arrays.asList(UNIQUE, RARE, COMMON);
|
return Arrays.asList(UNIQUE, RARE, COUNT_10, COUNT_20, COUNT_50, COUNT_100, COMMON);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -839,6 +839,70 @@ public class FileSearchDialog extends javax.swing.JDialog implements ActionListe
|
|||||||
scoreList.setEnabled(false);
|
scoreList.setEnabled(false);
|
||||||
jScrollPane11.setViewportView(scoreList);
|
jScrollPane11.setViewportView(scoreList);
|
||||||
|
|
||||||
|
org.openide.awt.Mnemonics.setLocalizedText(hashCheckBox, org.openide.util.NbBundle.getMessage(FileSearchDialog.class, "FileSearchDialog.hashCheckBox.text")); // NOI18N
|
||||||
|
hashCheckBox.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
hashCheckBoxActionPerformed(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
hashList.setModel(new DefaultListModel<String>());
|
||||||
|
hashList.setEnabled(false);
|
||||||
|
jScrollPane7.setViewportView(hashList);
|
||||||
|
|
||||||
|
org.openide.awt.Mnemonics.setLocalizedText(intCheckBox, org.openide.util.NbBundle.getMessage(FileSearchDialog.class, "FileSearchDialog.intCheckBox.text")); // NOI18N
|
||||||
|
intCheckBox.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
intCheckBoxActionPerformed(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
intList.setModel(new DefaultListModel<String>());
|
||||||
|
intList.setEnabled(false);
|
||||||
|
jScrollPane8.setViewportView(intList);
|
||||||
|
|
||||||
|
tagsList.setModel(new DefaultListModel<TagName>());
|
||||||
|
tagsList.setEnabled(false);
|
||||||
|
jScrollPane9.setViewportView(tagsList);
|
||||||
|
|
||||||
|
org.openide.awt.Mnemonics.setLocalizedText(tagsCheckBox, org.openide.util.NbBundle.getMessage(FileSearchDialog.class, "FileSearchDialog.tagsCheckBox.text")); // NOI18N
|
||||||
|
tagsCheckBox.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
tagsCheckBoxActionPerformed(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
objList.setModel(new DefaultListModel<String>());
|
||||||
|
objList.setEnabled(false);
|
||||||
|
jScrollPane10.setViewportView(objList);
|
||||||
|
|
||||||
|
org.openide.awt.Mnemonics.setLocalizedText(objCheckBox, org.openide.util.NbBundle.getMessage(FileSearchDialog.class, "FileSearchDialog.objCheckBox.text")); // NOI18N
|
||||||
|
objCheckBox.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
objCheckBoxActionPerformed(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
org.openide.awt.Mnemonics.setLocalizedText(exifCheckBox, org.openide.util.NbBundle.getMessage(FileSearchDialog.class, "FileSearchDialog.exifCheckBox.text")); // NOI18N
|
||||||
|
|
||||||
|
org.openide.awt.Mnemonics.setLocalizedText(notableCheckBox, org.openide.util.NbBundle.getMessage(FileSearchDialog.class, "FileSearchDialog.notableCheckBox.text")); // NOI18N
|
||||||
|
notableCheckBox.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
notableCheckBoxActionPerformed(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
org.openide.awt.Mnemonics.setLocalizedText(scoreCheckBox, org.openide.util.NbBundle.getMessage(FileSearchDialog.class, "FileSearchDialog.scoreCheckBox.text")); // NOI18N
|
||||||
|
scoreCheckBox.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
scoreCheckBoxActionPerformed(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
scoreList.setModel(new DefaultListModel<Score>());
|
||||||
|
scoreList.setEnabled(false);
|
||||||
|
jScrollPane11.setViewportView(scoreList);
|
||||||
|
|
||||||
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
|
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
|
||||||
getContentPane().setLayout(layout);
|
getContentPane().setLayout(layout);
|
||||||
layout.setHorizontalGroup(
|
layout.setHorizontalGroup(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user