Changeset 24677 in osm for applications/editors/josm/plugins/smed
- Timestamp:
- 2010-12-09T23:48:49+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/harbour/src/harbour
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/harbour/src/harbour/dialogs/HarbourAction.java
r24574 r24677 60 60 private JToggleButton chartButton = null; 61 61 private JPanel curPanel = null; 62 private PanelSearchPois panelSearchPois = null; 62 63 private static LayerHarbour curLayer = new LayerHarbour("Harbour"); 63 64 64 65 public HarbourAction() { 66 Rectangle rect = new Rectangle(2, 56, 330, 270); 67 65 68 panelGeneral= new PanelGeneral(); 66 panelGeneral.setBounds( new Rectangle(2, 56, 330, 270));69 panelGeneral.setBounds(rect); 67 70 panelGeneral.setVisible(true); 68 71 curPanel = panelGeneral; 69 72 70 73 panelLimits = new PanelLimits(); 71 panelLimits.setBounds( new Rectangle(2, 56, 330, 270));74 panelLimits.setBounds(rect); 72 75 panelLimits.setVisible(false); 73 76 74 77 panelServices = new PanelServices(); 75 panelServices.setBounds( new Rectangle(2, 56, 330, 270));78 panelServices.setBounds(rect); 76 79 panelServices.setVisible(false); 77 80 78 81 panelEnv = new PanelEnv(); 79 panelEnv.setBounds( new Rectangle(2, 56, 330, 270));82 panelEnv.setBounds(rect); 80 83 panelEnv.setVisible(false); 81 84 82 85 panelRelations = new PanelRelations(); 83 panelRelations.setBounds( new Rectangle(2, 56, 330, 270));86 panelRelations.setBounds(rect); 84 87 panelRelations.setVisible(false); 88 89 panelSearchPois = new PanelSearchPois(); 90 panelSearchPois.setBounds(rect); 91 panelSearchPois.setVisible(false); 85 92 } 86 93 … … 123 130 harbourPanel.add(panelEnv, null); 124 131 harbourPanel.add(panelRelations, null); 132 harbourPanel.add(panelSearchPois, null); 125 133 harbourPanel.add(getComButton(), null); 126 134 harbourPanel.add(getRestButton(), null); … … 500 508 chartButton = new JToggleButton(); 501 509 chartButton.setBounds(new Rectangle(367, 5, 28, 18)); 510 chartButton.setSelected(false); 502 511 chartButton.setEnabled(false); 512 chartButton.addActionListener(new java.awt.event.ActionListener() { 513 public void actionPerformed(java.awt.event.ActionEvent e) { 514 comButton.setEnabled(false); 515 if(chartButton.isSelected()) { 516 comButton.setEnabled(false); 517 restButton.setEnabled(false); 518 servButton.setEnabled(false); 519 envButton.setEnabled(false); 520 relButton.setEnabled(false); 521 522 if(curPanel == panelEnv) { 523 panelEnv.setVisible(false); 524 panelSearchPois.setVisible(true); 525 } else if(curPanel == panelRelations) panelRelations.setVisible(false); 526 } else { 527 comButton.setEnabled(true); 528 restButton.setEnabled(true); 529 servButton.setEnabled(true); 530 envButton.setEnabled(true); 531 relButton.setEnabled(true); 532 533 if(curPanel == panelEnv) { 534 panelEnv.setVisible(true); 535 panelSearchPois.setVisible(false); 536 } else if(curPanel == panelRelations) panelRelations.setVisible(true); 537 } 538 } 539 }); 503 540 } 504 541 return chartButton;
Note:
See TracChangeset
for help on using the changeset viewer.