Changeset 260 for trunk/hiptop/pester


Ignore:
Timestamp:
07/20/06 02:57:15 (18 years ago)
Author:
Nicholas Riley
Message:

Discard alarm confirmation.

Location:
trunk/hiptop/pester
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/hiptop/pester/locale/en_US/Pester.rsrc

    r253 r260  
    4949                title = "Discard"
    5050                shortcut = deleteKey
    51                 event = EVENT_DISCARD_ALARM
     51                event = EVENT_CONFIRM_DISCARD_ALARM
    5252endMenu
    5353screen ID_ALARM_LIST_SCREEN
     
    216216        button
    217217                event = EVENT_DISMISS_ALARM
    218                 title = "OK"
     218                title = okButton
    219219                position = buttonBottom1
    220220                shortcut = doneButton
    221221endAlert
     222
     223alert ID_DISCARD_ALERT
     224        appAlertStyle
     225        title = "Discard Alarm?"
     226        icon = stopIcon
     227        text = "Permanently discard this alarm?"
     228        button
     229                event = EVENT_DISCARD_ALARM
     230                title = discardButton
     231                position = buttonBottom2
     232        button
     233                title = backButton
     234                position = buttonBottom1
     235                shortcut = doneButton
     236endAlert
  • trunk/hiptop/pester/net/sabi/pester/AlarmListView.java

    r259 r260  
    33import danger.app.Application;
    44import danger.app.Event;
     5import danger.ui.AlertWindow;
    56import danger.ui.ActiveListView;
    67import danger.util.ActiveList;
     
    4142            alarmSetDialog().editAlarm(new Alarm(), true);
    4243            return true;
     44        case EVENT_CONFIRM_DISCARD_ALARM:
     45            AlertWindow alert =
     46                Application.getCurrentApp().getAlert(ID_DISCARD_ALERT, this);
     47            // XXX localize
     48            alert.setMessage("Permanently discard \u201c" +
     49                             ((Alarm)getFocusedItem()).getMessage() +
     50                             "\u201d?");
     51            alert.show();
     52            return true;
    4353        case EVENT_DISCARD_ALARM:
    44             // XXX prompt for confirmation
    4554            Alarms.removeAlarm((Alarm)getFocusedItem());
    4655            return true;
Note: See TracChangeset for help on using the changeset viewer.