mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-18 10:37:43 +00:00
Added zoom buttons to geolocation map panel
This commit is contained in:
parent
94e67d8428
commit
ea9d15b5fb
@ -35,4 +35,5 @@ GeolocationSettingsPanel.zipFileBrowseBnt.text=Browse
|
||||
GeolocationSettingsPanel.mbtileTestBtn.text=Test
|
||||
GeolocationTopComponent.reportButton.text=KML Report
|
||||
GeolocationTopComponent.coordLabel.text=
|
||||
|
||||
MapPanel.zoomInBtn.text=
|
||||
MapPanel.zoomOutBtn.text=
|
||||
|
@ -11,7 +11,7 @@ GeolocationSettings_mbtile_test_success_message=The supplied file is a valid mbt
|
||||
GeolocationSettings_mbtile_test_success_title=Success
|
||||
GeolocationSettings_path_not_valid_message=The supplied file path is empty.\nPlease supply a valid file path.
|
||||
GeolocationSettings_path_not_valid_title=File Not Valid
|
||||
GeolocationSettingsPanel_malformed_url_message=The supplies OSM tile server address is invalid.\nPlease supply a well formed url prefixed with http://
|
||||
GeolocationSettingsPanel_malformed_url_message=The supplied OSM tile server address is invalid.\nPlease supply a well formed url prefixed with http://
|
||||
GeolocationSettingsPanel_malformed_url_message_tile=Malformed URL
|
||||
GeolocationSettingsPanel_osm_server_test_fail_message=OSM tile server test failed.\nUnable to connect to server.
|
||||
GeolocationSettingsPanel_osm_server_test_fail_message_title=Error
|
||||
@ -24,16 +24,16 @@ GeolocationTC_KML_report_title=KML Report
|
||||
GeolocationTC_report_progress_title=KML Report Progress
|
||||
GeoTopComponent_filer_data_invalid_msg=Unable to run waypoint filter.\nPlease select one or more data sources.
|
||||
GeoTopComponent_filer_data_invalid_Title=Filter Failure
|
||||
GeoTopComponent_filter_exception_msg=Exception occured during waypoint filtering.
|
||||
GeoTopComponent_filter_exception_msg=Exception occurred during waypoint filtering.
|
||||
GeoTopComponent_filter_exception_Title=Filter Failure
|
||||
GeoTopComponent_no_waypoints_returned_mgs=Applied filter failed to find waypoints that matched criteria.\nRevise filter options and try again.
|
||||
GeoTopComponent_no_waypoints_returned_Title=No Waypoints Found
|
||||
GLTopComponent_initilzation_error=An error occurred during waypoint initilization. Geolocation data maybe incomplete.
|
||||
GLTopComponent_initilzation_error=An error occurred during waypoint initialization, Geolocation data maybe incomplete.
|
||||
GLTopComponent_name=Geolocation
|
||||
HidingPane_default_title=Filters
|
||||
MapPanel_connection_failure_message=Failed to connect to new geolocation map tile source.
|
||||
MapPanel_connection_failure_message_title=Connection Failure
|
||||
MayWaypoint_ExternalViewer_label=Open in ExternalViewer
|
||||
MayWaypoint_ExternalViewer_label=Open in External Viewer
|
||||
OpenGeolocationAction_displayName=Geolocation
|
||||
OpenGeolocationAction_name=Geolocation
|
||||
RefreshPanel.refreshLabel.text=The geolocation data has been updated, the visualization may be out of date.
|
||||
@ -70,5 +70,6 @@ GeolocationSettingsPanel.zipFileBrowseBnt.text=Browse
|
||||
GeolocationSettingsPanel.mbtileTestBtn.text=Test
|
||||
GeolocationTopComponent.reportButton.text=KML Report
|
||||
GeolocationTopComponent.coordLabel.text=
|
||||
|
||||
MapPanel.zoomInBtn.text=
|
||||
MapPanel.zoomOutBtn.text=
|
||||
WaypointExtractAction_label=Extract Files(s)
|
||||
|
@ -14,7 +14,7 @@
|
||||
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
|
||||
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
|
||||
<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,-84,0,0,0,58"/>
|
||||
<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,-84,0,0,0,-47"/>
|
||||
</AuxValues>
|
||||
|
||||
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
|
||||
@ -46,26 +46,7 @@
|
||||
</Constraint>
|
||||
</Constraints>
|
||||
|
||||
<Layout>
|
||||
<DimensionLayout dim="0">
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
|
||||
<Component id="zoomSlider" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace max="32767" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
</DimensionLayout>
|
||||
<DimensionLayout dim="1">
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Group type="102" alignment="1" attributes="0">
|
||||
<EmptySpace max="32767" attributes="0"/>
|
||||
<Component id="zoomSlider" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
</DimensionLayout>
|
||||
</Layout>
|
||||
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/>
|
||||
<SubComponents>
|
||||
<Component class="javax.swing.JSlider" name="zoomSlider">
|
||||
<Properties>
|
||||
@ -86,6 +67,61 @@
|
||||
<Events>
|
||||
<EventHandler event="stateChanged" listener="javax.swing.event.ChangeListener" parameters="javax.swing.event.ChangeEvent" handler="zoomSliderStateChanged"/>
|
||||
</Events>
|
||||
<Constraints>
|
||||
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
|
||||
<GridBagConstraints gridX="0" gridY="1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/>
|
||||
</Constraint>
|
||||
</Constraints>
|
||||
</Component>
|
||||
<Component class="javax.swing.JButton" name="zoomInBtn">
|
||||
<Properties>
|
||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
||||
<Image iconType="3" name="/org/sleuthkit/autopsy/images/plus-grey.png"/>
|
||||
</Property>
|
||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||
<ResourceString bundle="org/sleuthkit/autopsy/geolocation/Bundle.properties" key="MapPanel.zoomInBtn.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||
</Property>
|
||||
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
||||
<Border info="null"/>
|
||||
</Property>
|
||||
<Property name="borderPainted" type="boolean" value="false"/>
|
||||
<Property name="focusPainted" type="boolean" value="false"/>
|
||||
<Property name="requestFocusEnabled" type="boolean" value="false"/>
|
||||
<Property name="rolloverEnabled" type="boolean" value="false"/>
|
||||
</Properties>
|
||||
<Events>
|
||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="zoomInBtnActionPerformed"/>
|
||||
</Events>
|
||||
<Constraints>
|
||||
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
|
||||
<GridBagConstraints gridX="0" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/>
|
||||
</Constraint>
|
||||
</Constraints>
|
||||
</Component>
|
||||
<Component class="javax.swing.JButton" name="zoomOutBtn">
|
||||
<Properties>
|
||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
||||
<Image iconType="3" name="/org/sleuthkit/autopsy/images/minus-grey.png"/>
|
||||
</Property>
|
||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||
<ResourceString bundle="org/sleuthkit/autopsy/geolocation/Bundle.properties" key="MapPanel.zoomOutBtn.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||
</Property>
|
||||
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
||||
<Border info="null"/>
|
||||
</Property>
|
||||
<Property name="borderPainted" type="boolean" value="false"/>
|
||||
<Property name="focusPainted" type="boolean" value="false"/>
|
||||
<Property name="requestFocusEnabled" type="boolean" value="false"/>
|
||||
<Property name="rolloverEnabled" type="boolean" value="false"/>
|
||||
</Properties>
|
||||
<Events>
|
||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="zoomOutBtnActionPerformed"/>
|
||||
</Events>
|
||||
<Constraints>
|
||||
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
|
||||
<GridBagConstraints gridX="0" gridY="2" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/>
|
||||
</Constraint>
|
||||
</Constraints>
|
||||
</Component>
|
||||
</SubComponents>
|
||||
</Container>
|
||||
|
@ -548,6 +548,8 @@ final public class MapPanel extends javax.swing.JPanel {
|
||||
mapViewer = new org.jxmapviewer.JXMapViewer();
|
||||
zoomPanel = new javax.swing.JPanel();
|
||||
zoomSlider = new javax.swing.JSlider();
|
||||
zoomInBtn = new javax.swing.JButton();
|
||||
zoomOutBtn = new javax.swing.JButton();
|
||||
|
||||
setFocusable(false);
|
||||
setLayout(new java.awt.BorderLayout());
|
||||
@ -573,6 +575,7 @@ final public class MapPanel extends javax.swing.JPanel {
|
||||
zoomPanel.setFocusable(false);
|
||||
zoomPanel.setOpaque(false);
|
||||
zoomPanel.setRequestFocusEnabled(false);
|
||||
zoomPanel.setLayout(new java.awt.GridBagLayout());
|
||||
|
||||
zoomSlider.setMaximum(15);
|
||||
zoomSlider.setMinimum(10);
|
||||
@ -588,23 +591,44 @@ final public class MapPanel extends javax.swing.JPanel {
|
||||
zoomSliderStateChanged(evt);
|
||||
}
|
||||
});
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 0;
|
||||
gridBagConstraints.gridy = 1;
|
||||
zoomPanel.add(zoomSlider, gridBagConstraints);
|
||||
|
||||
javax.swing.GroupLayout zoomPanelLayout = new javax.swing.GroupLayout(zoomPanel);
|
||||
zoomPanel.setLayout(zoomPanelLayout);
|
||||
zoomPanelLayout.setHorizontalGroup(
|
||||
zoomPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addGroup(zoomPanelLayout.createSequentialGroup()
|
||||
.addGap(0, 0, 0)
|
||||
.addComponent(zoomSlider, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||
);
|
||||
zoomPanelLayout.setVerticalGroup(
|
||||
zoomPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, zoomPanelLayout.createSequentialGroup()
|
||||
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(zoomSlider, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addGap(0, 0, 0))
|
||||
);
|
||||
zoomInBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/sleuthkit/autopsy/images/plus-grey.png"))); // NOI18N
|
||||
org.openide.awt.Mnemonics.setLocalizedText(zoomInBtn, org.openide.util.NbBundle.getMessage(MapPanel.class, "MapPanel.zoomInBtn.text")); // NOI18N
|
||||
zoomInBtn.setBorder(null);
|
||||
zoomInBtn.setBorderPainted(false);
|
||||
zoomInBtn.setFocusPainted(false);
|
||||
zoomInBtn.setRequestFocusEnabled(false);
|
||||
zoomInBtn.setRolloverEnabled(false);
|
||||
zoomInBtn.addActionListener(new java.awt.event.ActionListener() {
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||
zoomInBtnActionPerformed(evt);
|
||||
}
|
||||
});
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 0;
|
||||
gridBagConstraints.gridy = 0;
|
||||
zoomPanel.add(zoomInBtn, gridBagConstraints);
|
||||
|
||||
zoomOutBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/sleuthkit/autopsy/images/minus-grey.png"))); // NOI18N
|
||||
org.openide.awt.Mnemonics.setLocalizedText(zoomOutBtn, org.openide.util.NbBundle.getMessage(MapPanel.class, "MapPanel.zoomOutBtn.text")); // NOI18N
|
||||
zoomOutBtn.setBorder(null);
|
||||
zoomOutBtn.setBorderPainted(false);
|
||||
zoomOutBtn.setFocusPainted(false);
|
||||
zoomOutBtn.setRequestFocusEnabled(false);
|
||||
zoomOutBtn.setRolloverEnabled(false);
|
||||
zoomOutBtn.addActionListener(new java.awt.event.ActionListener() {
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||
zoomOutBtnActionPerformed(evt);
|
||||
}
|
||||
});
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 0;
|
||||
gridBagConstraints.gridy = 2;
|
||||
zoomPanel.add(zoomOutBtn, gridBagConstraints);
|
||||
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHWEST;
|
||||
@ -652,9 +676,21 @@ final public class MapPanel extends javax.swing.JPanel {
|
||||
}
|
||||
}//GEN-LAST:event_mapViewerMouseClicked
|
||||
|
||||
private void zoomInBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_zoomInBtnActionPerformed
|
||||
int currentValue = mapViewer.getZoom();
|
||||
setZoom(currentValue-1);
|
||||
}//GEN-LAST:event_zoomInBtnActionPerformed
|
||||
|
||||
private void zoomOutBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_zoomOutBtnActionPerformed
|
||||
int currentValue = mapViewer.getZoom();
|
||||
setZoom(currentValue+1);
|
||||
}//GEN-LAST:event_zoomOutBtnActionPerformed
|
||||
|
||||
|
||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||
private org.jxmapviewer.JXMapViewer mapViewer;
|
||||
private javax.swing.JButton zoomInBtn;
|
||||
private javax.swing.JButton zoomOutBtn;
|
||||
private javax.swing.JPanel zoomPanel;
|
||||
private javax.swing.JSlider zoomSlider;
|
||||
// End of variables declaration//GEN-END:variables
|
||||
|
BIN
Core/src/org/sleuthkit/autopsy/images/minus-grey.png
Executable file
BIN
Core/src/org/sleuthkit/autopsy/images/minus-grey.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 128 B |
BIN
Core/src/org/sleuthkit/autopsy/images/plus-grey.png
Executable file
BIN
Core/src/org/sleuthkit/autopsy/images/plus-grey.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 197 B |
Loading…
x
Reference in New Issue
Block a user