2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: Container.h /main/3 1995/11/06 09:39:43 rswiston $ */
25 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
26 * (c) Copyright 1993, 1994 International Business Machines Corp. *
27 * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
28 * (c) Copyright 1993, 1994 Novell, Inc. *
36 const long OPEN_TIME = 40000L;
38 class Container : public MotifUI {
40 friend void UpdateAreaMessage(Widget, XtPointer, XEvent *, Boolean *);
41 friend void MakeChildVisible(Widget, XtPointer, XtPointer);
42 friend void ResizeTimeOut(void *, XtIntervalId *id);
43 friend void ResizeSW(Widget, XtPointer, XtPointer);
44 friend void ResizeRC(Widget, XEvent *, String *, int *);
47 static void UpdateAreaMessage(Widget, XtPointer, XEvent *, Boolean *);
48 static void MakeChildVisible(Widget, XtPointer, XtPointer);
49 static void ResizeTimeOut(void *, XtIntervalId *id);
50 static void ResizeSW(Widget, XtPointer, XtPointer);
51 static void ResizeRC(Widget, XEvent *, String *, int *);
60 XmString _xm_update_message;
61 BaseUI *_last_selected;
63 IconStyle _previous_style;
64 ContainerType _container_type;
65 SelectionType _select_type;
66 virtual boolean SetIcon(IconStyle);
68 void NotifySelected(BaseUI *);
69 void NotifyDelete(BaseUI *);
70 void NotifyVisiblity(BaseUI *);
73 void DoUpdateMessage(char *);
74 void CreateContainer(MotifUI *,char *, char *, ContainerType, SelectionType);
78 Container(MotifUI *parent,
80 ContainerType container_type = SCROLLED_WORK_AREA,
81 SelectionType select_type = SINGLE_SELECT);
83 Container(char *category,
86 ContainerType container_type = SCROLLED_WORK_AREA,
87 SelectionType select_type = SINGLE_SELECT);
89 void OpenAnimation(MotifUI *obj);
90 void SelectionPolicy(SelectionType);
91 const SelectionType SelectionPolicy() { return _select_type; }
92 const Widget InnerWidget() { return _workArea; }
94 const UI_Class UIClass() { return CONTAINER; }
95 const int UISubClass() { return _container_type; }
97 const char *const UIClassName() { return "Container"; }
100 #endif /* CONTAINER_H */