Ignore:
Timestamp:
2010-09-14T22:08:03+02:00 (14 years ago)
Author:
malcolmh
Message:

more lights

Location:
applications/editors/josm/plugins/toms/src/toms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/toms/src/toms/dialogs/SmpDialogAction.java

    r23162 r23166  
    11411141                                                it = it.substring(0, i1) + it.substring(i2+1);
    11421142                                        }
    1143 System.out.println(it + " " + c);
    11441143                                        if (!c.isEmpty())
    11451144                                                buoy.setLightGroup(c);;
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/Buoy.java

    r23162 r23166  
    525525                                        tmp = c.substring(i1, c.length());
    526526                                        c = c.substring(0, i1);
    527                                 }
    528                                 if (!getLightGroup().isEmpty())
     527                                        if (!getLightGroup().isEmpty()) {
     528                                                c = c + "(" + getLightGroup() + ")";
     529                                        }
     530                                        if (tmp != null)
     531                                                c = c + tmp;
     532                                }
     533                                dlg.cbM01Kennung.setSelectedItem(c);
     534                                if ((dlg.cbM01Kennung.getSelectedIndex() == 0) && !getLightGroup().isEmpty()) {
    529535                                        c = c + "(" + getLightGroup() + ")";
    530                                 if (tmp != null)
    531                                         c = c + tmp;
    532                                 dlg.cbM01Kennung.setSelectedItem(c);
     536                                        dlg.cbM01Kennung.setSelectedItem(c);
     537                                }
    533538                                c = c + " " + getLightColour();
    534539                                lp = getLightPeriod();
     
    539544                                dlg.lM01Kennung.setVisible(true);
    540545                                dlg.cbM01Kennung.setVisible(true);
    541                                 dlg.lM01Group.setVisible(true);
    542                                 dlg.tfM01Group.setVisible(true);
     546                                if (((String)dlg.cbM01Kennung.getSelectedItem()).contains("(")) {
     547                                        dlg.tfM01Group.setVisible(false);
     548                                        dlg.lM01Group.setVisible(false);
     549                                } else {
     550                                        dlg.lM01Group.setVisible(true);
     551                                        dlg.tfM01Group.setVisible(true);
     552                                }
    543553                                dlg.tfM01Group.setText(getLightGroup());
    544554                                dlg.lM01RepeatTime.setVisible(true);
Note: See TracChangeset for help on using the changeset viewer.