Skip to content

Commit

Permalink
#52: add 'properties' button in ReportDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeFcosta committed Jan 17, 2023
1 parent 298dbd6 commit 4d9a15c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions IPED-SearchApp.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
java.io.FileNotFoundException: C:\Users\Felipe Costa\git\IPED_2\IPED\iped-app\LocalConfig.txt (O sistema n�o pode encontrar o arquivo especificado)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
at iped.utils.UTF8Properties.load(UTF8Properties.java:26)
at iped.engine.config.Configuration.getConfiguration(Configuration.java:106)
at iped.engine.config.Configuration.loadConfigurables(Configuration.java:166)
at iped.app.ui.AppMain.start(AppMain.java:181)
at iped.app.ui.AppMain.start(AppMain.java:91)
at iped.app.ui.AppMain.main(AppMain.java:59)
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ ReportDialog.NoAttachments=Do not auto export email attachments
ReportDialog.noLinkedItems=Do not auto export chat attachments
ReportDialog.Output=Output folder:
ReportDialog.OutputRequired=Output folder required\!
ReportDialog.PropertiesButton=Properties
ReportDialog.PropertiesLabel=File properties to include
ReportDialog.Record=Lab Case Number
ReportDialog.RecordDate=Lab Case Date
ReportDialog.ReportDate=Report Date
Expand Down
15 changes: 15 additions & 0 deletions iped-app/src/main/java/iped/app/ui/ReportDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public class ReportDialog implements ActionListener, TableModelListener {
JTextField keywords = new JTextField();
JButton outButton = new JButton("..."); //$NON-NLS-1$
JButton infoButton = new JButton(Messages.getString("ReportDialog.FillInfo")); //$NON-NLS-1$
JButton propertiesButton = new JButton(Messages.getString("ReportDialog.PropertiesButton"));
JButton propertiesLabel = new JButton(Messages.getString("ReportDialog.PropertiesLabel"));
JButton keywordsButton = new JButton("..."); //$NON-NLS-1$
JButton generate = new JButton(Messages.getString("ReportDialog.Create")); //$NON-NLS-1$
JCheckBox noAttachs = new JCheckBox(Messages.getString("ReportDialog.NoAttachments")); //$NON-NLS-1$
Expand Down Expand Up @@ -87,6 +89,13 @@ public ReportDialog() {
bpanel.add(infoButton, BorderLayout.WEST);
footer2.add(bpanel, BorderLayout.SOUTH);

JPanel propertiesFooter = new JPanel(new BorderLayout());
propertiesFooter.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0));
propertiesFooter.add(new JLabel(Messages.getString("ReportDialog.PropertiesLabel")), BorderLayout.CENTER); //$NON-NLS-1$
bpanel = new JPanel(new BorderLayout());
bpanel.add(propertiesButton, BorderLayout.WEST);
propertiesFooter.add(bpanel, BorderLayout.SOUTH);

JPanel footer3 = new JPanel(new BorderLayout());
footer3.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0));
footer3.add(new JLabel(Messages.getString("ReportDialog.KeywordsFile")), BorderLayout.NORTH); //$NON-NLS-1$
Expand All @@ -106,6 +115,7 @@ public ReportDialog() {
footer.add(append);
footer.add(footer3);
footer.add(footer2);
footer.add(propertiesFooter);
footer.add(okPanel);

for (Component c : footer.getComponents())
Expand All @@ -119,6 +129,7 @@ public ReportDialog() {
panel.add(footer, BorderLayout.SOUTH);

outButton.addActionListener(this);
propertiesButton.addActionListener(this);
infoButton.addActionListener(this);
keywordsButton.addActionListener(this);
generate.addActionListener(this);
Expand Down Expand Up @@ -218,6 +229,10 @@ public void actionPerformed(ActionEvent e) {
if (e.getSource() == infoButton) {
caseInfo.setVisible(true);
}

if (e.getSource() == propertiesButton) {
ColumnsManagerUI.getInstance().setVisible();
}

if (e.getSource() == keywordsButton) {
JFileChooser fileChooser = new JFileChooser();
Expand Down

0 comments on commit 4d9a15c

Please sign in to comment.