mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 02:07:42 +00:00
Merge pull request #381 from jawallace/proxy_options
Show proxy options
This commit is contained in:
commit
4e2c794115
@ -13,7 +13,8 @@
|
|||||||
<attr name="Menu\File\Separator4.instance_hidden\position" intvalue="400"/>-->
|
<attr name="Menu\File\Separator4.instance_hidden\position" intvalue="400"/>-->
|
||||||
|
|
||||||
<folder name="OptionsDialog">
|
<folder name="OptionsDialog">
|
||||||
<folder name="General.instance_hidden"/>
|
<!--<folder name="General.instance_hidden"/>-->
|
||||||
|
<file name="General.instance"/>
|
||||||
<folder name="Keymaps.instance_hidden"/> <!-- Keymap -->
|
<folder name="Keymaps.instance_hidden"/> <!-- Keymap -->
|
||||||
<folder name="Java.instance_hidden"/>
|
<folder name="Java.instance_hidden"/>
|
||||||
<folder name="Advanced.instance_hidden"/> <!-- Miscellaneous -->
|
<folder name="Advanced.instance_hidden"/> <!-- Miscellaneous -->
|
||||||
|
@ -1,3 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* Autopsy Forensic Browser
|
||||||
|
*
|
||||||
|
* Copyright 2013 Basis Technology Corp.
|
||||||
|
* Contact: carrier <at> sleuthkit <dot> org
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
package org.sleuthkit.autopsy.corecomponents;
|
package org.sleuthkit.autopsy.corecomponents;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
@ -1,6 +1,20 @@
|
|||||||
/*
|
/*
|
||||||
* To change this template, choose Tools | Templates
|
* Autopsy Forensic Browser
|
||||||
* and open the template in the editor.
|
*
|
||||||
|
* Copyright 2013 Basis Technology Corp.
|
||||||
|
* Contact: carrier <at> sleuthkit <dot> org
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.sleuthkit.autopsy.corecomponents;
|
package org.sleuthkit.autopsy.corecomponents;
|
||||||
|
|
||||||
@ -13,51 +27,60 @@ import org.openide.util.Lookup;
|
|||||||
|
|
||||||
@OptionsPanelController.TopLevelRegistration(
|
@OptionsPanelController.TopLevelRegistration(
|
||||||
categoryName = "#OptionsCategory_Name_General",
|
categoryName = "#OptionsCategory_Name_General",
|
||||||
iconBase = "org/sleuthkit/autopsy/corecomponents/general-options.png",
|
iconBase = "org/sleuthkit/autopsy/corecomponents/display-options.png",
|
||||||
position = 1,
|
position = 1,
|
||||||
keywords = "#OptionsCategory_Keywords_General",
|
keywords = "#OptionsCategory_Keywords_General",
|
||||||
keywordsCategory = "General")
|
keywordsCategory = "General")
|
||||||
@org.openide.util.NbBundle.Messages({"OptionsCategory_Name_General=General", "OptionsCategory_Keywords_General=general"})
|
@org.openide.util.NbBundle.Messages({"OptionsCategory_Name_General=Display", "OptionsCategory_Keywords_General=display"})
|
||||||
public final class GeneralOptionsPanelController extends OptionsPanelController {
|
public final class GeneralOptionsPanelController extends OptionsPanelController {
|
||||||
|
|
||||||
private GeneralPanel panel;
|
private GeneralPanel panel;
|
||||||
private final PropertyChangeSupport pcs = new PropertyChangeSupport(this);
|
private final PropertyChangeSupport pcs = new PropertyChangeSupport(this);
|
||||||
private boolean changed;
|
private boolean changed;
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update() {
|
public void update() {
|
||||||
getPanel().load();
|
getPanel().load();
|
||||||
changed = false;
|
changed = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void applyChanges() {
|
public void applyChanges() {
|
||||||
getPanel().store();
|
getPanel().store();
|
||||||
changed = false;
|
changed = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void cancel() {
|
public void cancel() {
|
||||||
// need not do anything special, if no changes have been persisted yet
|
// need not do anything special, if no changes have been persisted yet
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
return getPanel().valid();
|
return getPanel().valid();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isChanged() {
|
public boolean isChanged() {
|
||||||
return changed;
|
return changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public HelpCtx getHelpCtx() {
|
public HelpCtx getHelpCtx() {
|
||||||
return null; // new HelpCtx("...ID") if you have a help set
|
return null; // new HelpCtx("...ID") if you have a help set
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public JComponent getComponent(Lookup masterLookup) {
|
public JComponent getComponent(Lookup masterLookup) {
|
||||||
return getPanel();
|
return getPanel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void addPropertyChangeListener(PropertyChangeListener l) {
|
public void addPropertyChangeListener(PropertyChangeListener l) {
|
||||||
pcs.addPropertyChangeListener(l);
|
pcs.addPropertyChangeListener(l);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void removePropertyChangeListener(PropertyChangeListener l) {
|
public void removePropertyChangeListener(PropertyChangeListener l) {
|
||||||
pcs.removePropertyChangeListener(l);
|
pcs.removePropertyChangeListener(l);
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,20 @@
|
|||||||
/*
|
/*
|
||||||
* To change this template, choose Tools | Templates
|
* Autopsy Forensic Browser
|
||||||
* and open the template in the editor.
|
*
|
||||||
|
* Copyright 2013 Basis Technology Corp.
|
||||||
|
* Contact: carrier <at> sleuthkit <dot> org
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.sleuthkit.autopsy.corecomponents;
|
package org.sleuthkit.autopsy.corecomponents;
|
||||||
|
|
||||||
|
BIN
Core/src/org/sleuthkit/autopsy/corecomponents/display-options.png
Executable file
BIN
Core/src/org/sleuthkit/autopsy/corecomponents/display-options.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Loading…
x
Reference in New Issue
Block a user