1 /* $XConsortium: DtWorkArea.C /main/2 1995/07/17 14:04:34 drk $ */
3 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
4 * (c) Copyright 1993, 1994 International Business Machines Corp. *
5 * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
6 * (c) Copyright 1993, 1994 Novell, Inc. *
9 #include "DtWorkArea.h"
11 #include "DtActions.h"
13 DtWorkArea::DtWorkArea(char *category,
16 ContainerType container_type,
17 SelectionType select_type)
18 : Container(category, parent, name, container_type, select_type)
20 _mainW = (DtMainW *) parent->Parent();
23 void DtWorkArea::NotifySelected(BaseUI *obj)
25 Container::NotifySelected(obj);
27 if (_mainW->UIClass() != MAIN_WINDOW)
32 Selection(&n_items, &selection);
34 _mainW->actionsMenu->UpdateActions(n_items, selection[0]);
36 _mainW->actionsMenu->UpdateActions(n_items, NULL);
40 void DtWorkArea::NotifyOpen(BaseUI *obj)
42 if (_mainW->UIClass() != MAIN_WINDOW)
45 _mainW->OpenClose(obj);