Skip to content

Commit

Permalink
fix #24016 - better visibility of correlation status, patch by StephaneP
Browse files Browse the repository at this point in the history
git-svn-id: https://josm.openstreetmap.de/svn/trunk@19327 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
stoecker committed Feb 19, 2025
1 parent f78cc24 commit d5da2aa
Showing 1 changed file with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -616,25 +616,31 @@ public void actionPerformed(ActionEvent ae) {

gbc = GBC.eol();
gbc.gridx = 0;
gbc.gridy = y;
gbc.gridy = y++;
panelTf.add(cbShowThumbs, gbc);

gbc = GBC.eol().fill(GridBagConstraints.HORIZONTAL).insets(0, 12, 0, 0);
sepDirectionPosition = new JSeparator(SwingConstants.HORIZONTAL);
gbc.gridy = y++;
panelTf.add(sepDirectionPosition, gbc);

gbc = GBC.eol();
gbc.gridwidth = 3;
gbc.gridy = y++;
pDirectionPosition = ImageDirectionPositionPanel.forGpxTrace();
panelTf.add(pDirectionPosition, gbc);

expertChanged(ExpertToggleAction.isExpert());

final JPanel statusBar = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
statusBar.setBorder(BorderFactory.createLoweredBevelBorder());
final JPanel statusPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 10, 10));
statusPanel.setBorder(BorderFactory.createLoweredBevelBorder());
statusBarText = new JLabel(" ");
statusBarText.setFont(statusBarText.getFont().deriveFont(Font.PLAIN, 8));
statusBar.add(statusBarText);
statusBarText.setFont(statusBarText.getFont().deriveFont(Font.PLAIN, 12));
statusPanel.add(statusBarText);

gbc = GBC.eol().fill(GridBagConstraints.HORIZONTAL).insets(20, 12, 20, 0);
gbc.gridy = y;
panelTf.add(statusPanel, gbc);

expertChanged(ExpertToggleAction.isExpert());

RepaintTheMapListener repaintTheMap = new RepaintTheMapListener(yLayer);
pDirectionPosition.addFocusListenerOnComponent(repaintTheMap);
Expand All @@ -649,7 +655,6 @@ public void actionPerformed(ActionEvent ae) {
pDirectionPosition.addItemListenerOnComponents(statusBarUpdaterWithRepaint);

outerPanel = new JPanel(new BorderLayout());
outerPanel.add(statusBar, BorderLayout.PAGE_END);

if (!GraphicsEnvironment.isHeadless()) {
forEachLayer(CorrelateGpxWithImages::closeDialog);
Expand Down

0 comments on commit d5da2aa

Please sign in to comment.