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: IconObj.h /main/3 1995/11/06 09:41:52 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. *
43 LabelType *alignments;
47 } IconFieldsRec, *IconFields, **IconFieldsList;
61 class IconObj : public MotifUI {
65 static void SingleClickCB(Widget, XtPointer, XtPointer);
66 static void DoubleClickCB(Widget, XtPointer, XtPointer);
72 IconStyle _previous_style;
78 StateGravity _state_gravity;
82 void SetStateIconFile(IconStyle);
83 void CreateIconObj(MotifUI *, char *, char *, char *, char *, char *,
88 // Override SetView and SetOpen for icon
89 virtual boolean SetIcon(IconStyle);
90 virtual boolean SetOpen(boolean);
91 virtual boolean SetName(char *);
96 IconObj(MotifUI *parent,
100 char *topString = NULL,
101 char *bottomString = NULL,
102 IconFields fields = NULL);
104 IconObj(char *category,
108 char *details = NULL,
109 char *topString = NULL,
110 char *bottomString = NULL,
111 IconFields fields = NULL);
115 void Details(char *); // Set details
116 char *Details() { return _details; } // Access details
117 void TopString(char *); // Set top string
118 char *TopString() { return _topString; } // Access top string
119 void BottomString(char *); // Set bottom string
120 char *BottomString() { return _bottomString; } // Access bottom string
121 void IconFile(char *); // Set top string
122 char *IconFile() { return _iconFile; } // Access top string
123 void StateIconFile(char *); // Set top string
124 char *StateIconFile() { return _stateIconName; }// Access top string
125 void StateIconGravity(StateGravity);
126 StateGravity StateIconGravity() { return _state_gravity; }
127 void Field(int index, char *string, int width, boolean visible = true,
128 boolean active = true);
129 void Field(int index, char **string, int *width, boolean *visible,
133 const UI_Class UIClass() { return ICON; }
134 const char *const UIClassName() { return "IconObj"; }
138 #endif /* ICONOBJ_H */