import tim.prune.I18nManager;
import tim.prune.UpdateMessageBroker;
import tim.prune.config.Config;
import tim.prune.I18nManager;
import tim.prune.UpdateMessageBroker;
import tim.prune.config.Config;
import tim.prune.data.AltitudeRange;
import tim.prune.data.AudioClip;
import tim.prune.data.Coordinate;
import tim.prune.data.AltitudeRange;
import tim.prune.data.AudioClip;
import tim.prune.data.Coordinate;
// Units
private JComboBox<String> _coordFormatDropdown = null;
private JComboBox<String> _distUnitsDropdown = null;
// Units
private JComboBox<String> _coordFormatDropdown = null;
private JComboBox<String> _distUnitsDropdown = null;
UnitSet unitSet = UnitSetLibrary.getUnitSet(_distUnitsDropdown.getSelectedIndex());
String distUnitsStr = I18nManager.getText(unitSet.getDistanceUnit().getShortnameKey());
String speedUnitsStr = I18nManager.getText(unitSet.getSpeedUnit().getShortnameKey());
UnitSet unitSet = UnitSetLibrary.getUnitSet(_distUnitsDropdown.getSelectedIndex());
String distUnitsStr = I18nManager.getText(unitSet.getDistanceUnit().getShortnameKey());
String speedUnitsStr = I18nManager.getText(unitSet.getSpeedUnit().getShortnameKey());
if (_track == null || currentPoint == null)
{
_indexLabel.setText(I18nManager.getText("details.nopointselection"));
if (_track == null || currentPoint == null)
{
_indexLabel.setText(I18nManager.getText("details.nopointselection"));
(LABEL_POINT_ALTITUDE + currentPoint.getAltitude().getValue(altUnit) + " " +
I18nManager.getText(altUnit.getShortnameKey()))
: "");
(LABEL_POINT_ALTITUDE + currentPoint.getAltitude().getValue(altUnit) + " " +
I18nManager.getText(altUnit.getShortnameKey()))
: "");
- if (currentPoint.hasTimestamp()) {
- _ptDateLabel.setText(LABEL_POINT_DATE + currentPoint.getTimestamp().getDateText());
- _ptTimeLabel.setText(LABEL_POINT_TIME + currentPoint.getTimestamp().getTimeText());
+ if (currentPoint.hasTimestamp())
+ {
+ _ptDateLabel.setText(LABEL_POINT_DATE + currentPoint.getTimestamp().getDateText(_timezone));
+ _ptTimeLabel.setText(LABEL_POINT_TIME + currentPoint.getTimestamp().getTimeText(_timezone));
String shortPath = shortenPath(fullPath);
_photoPathLabel.setText(fullPath == null ? "" : LABEL_FULL_PATH + shortPath);
_photoPathLabel.setToolTipText(currentPhoto.getFullPath());
String shortPath = shortenPath(fullPath);
_photoPathLabel.setText(fullPath == null ? "" : LABEL_FULL_PATH + shortPath);
_photoPathLabel.setToolTipText(currentPhoto.getFullPath());
_photoConnectedLabel.setText(I18nManager.getText("details.media.connected") + ": "
+ (currentPhoto.getCurrentStatus() == Photo.Status.NOT_CONNECTED ?
I18nManager.getText("dialog.about.no"):I18nManager.getText("dialog.about.yes")));
_photoConnectedLabel.setText(I18nManager.getText("details.media.connected") + ": "
+ (currentPhoto.getCurrentStatus() == Photo.Status.NOT_CONNECTED ?
I18nManager.getText("dialog.about.no"):I18nManager.getText("dialog.about.yes")));
String shortPath = shortenPath(fullPath);
_audioPathLabel.setText(fullPath == null ? "" : LABEL_FULL_PATH + shortPath);
_audioPathLabel.setToolTipText(fullPath == null ? "" : fullPath);
String shortPath = shortenPath(fullPath);
_audioPathLabel.setText(fullPath == null ? "" : LABEL_FULL_PATH + shortPath);
_audioPathLabel.setToolTipText(fullPath == null ? "" : fullPath);
int audioLength = currentAudio.getLengthInSeconds();
_audioLengthLabel.setText(audioLength < 0?"":LABEL_RANGE_DURATION + DisplayUtils.buildDurationString(audioLength));
_audioConnectedLabel.setText(I18nManager.getText("details.media.connected") + ": "
int audioLength = currentAudio.getLengthInSeconds();
_audioLengthLabel.setText(audioLength < 0?"":LABEL_RANGE_DURATION + DisplayUtils.buildDurationString(audioLength));
_audioConnectedLabel.setText(I18nManager.getText("details.media.connected") + ": "
{
result = inCoord.substring(0, chopPos);
// Maybe there's an exponential in there too which needs to be appended
{
result = inCoord.substring(0, chopPos);
// Maybe there's an exponential in there too which needs to be appended