Next Previous Up Top Contents Index

5.3 Defining the callbacks

5.3.2 Adding and removing tasks from the task list

This section describes the functions and methods necessary for adding to the task list and removing tasks from the task list. A total of two methods and two functions are necessary.

frame-add-task

This prompts the user for the details of a new task and adds it to the list.
frame-remove-task

This removes the currently selected task from the list, prompting the user before removing it completely.
add-task

This adds an instance of <task> to an instance of <task-list>.

remove-task

This removes an instance of <task> from an instance of <task-list>.

As with the file handling code, DUIM code and non-DUIM code has been separated. The methods beginning with frame- deal with the GUI-related issues of adding and removing tasks, and the functions deal with the underlying data structures.

Add the definitions of the methods to frame.dylan, and the definitions of the functions to task-list.dylan.

5.3.2.1 - DUIM support for adding and removing tasks
5.3.2.2 - Non-DUIM support for adding and removing tasks

Building Applications Using DUIM - 26 May 1999

Next Previous Up Top Contents Index