Ignore:
Timestamp:
07/28/07 19:48:14 (5 years ago)
Author:
saua
Message:

This should fix Issue #13

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bbtracker/trunk/src/org/bbtracker/mobile/gui/OptionsForm.java

    r24 r36  
    3434        private final ChoiceGroup exportFormatGroup; 
    3535 
     36        private final ChoiceGroup unitsGroup; 
     37 
    3638        public OptionsForm(final TrackManager trackManager) { 
    3739                super("Options"); 
     
    4345                sampleField = new TextField("Sample Interval in seconds: ", String.valueOf(pref.getSampleInterval()), 5, 
    4446                                TextField.NUMERIC); 
    45                 startTypeGroup = new ChoiceGroup("Startup action: ", Choice.EXCLUSIVE, Preferences.START_ACTIONS, null); 
     47 
     48                unitsGroup = new ChoiceGroup("Units: ", Choice.POPUP, Preferences.UNITS, null); 
     49                unitsGroup.setSelectedIndex(pref.getUnits(), true); 
     50 
     51                startTypeGroup = new ChoiceGroup("Startup action: ", Choice.POPUP, Preferences.START_ACTIONS, null); 
    4652                startTypeGroup.setSelectedIndex(pref.getStartAction(), true); 
     53 
    4754                directoryField = new TextField("Export directory: ", pref.getExportDirectory(), 100, TextField.URL); 
    4855                browseCommand = new Command("Browse", Command.ITEM, 1); 
     
    5663 
    5764                append(sampleField); 
     65                append(unitsGroup); 
    5866                append(startTypeGroup); 
    5967                append(directoryField); 
     
    8088                                        pref.setExportFormat(i, exportFormatGroup.isSelected(i)); 
    8189                                } 
     90 
     91                                pref.setUnits(unitsGroup.getSelectedIndex()); 
    8292 
    8393                                pref.store(); 
Note: See TracChangeset for help on using the changeset viewer.