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: ButtonInterface.h /main/4 1996/04/21 19:46:03 drk $
25 * (c) Copyright 1996 Digital Equipment Corporation.
26 * (c) Copyright 1996 Hewlett-Packard Company.
27 * (c) Copyright 1996 International Business Machines Corp.
28 * (c) Copyright 1996 Sun Microsystems, Inc.
29 * (c) Copyright 1996 Novell, Inc.
30 * (c) Copyright 1996 FUJITSU LIMITED.
31 * (c) Copyright 1996 Hitachi.
36 * RESTRICTED CONFIDENTIAL INFORMATION:
38 * The information in this document is subject to special
39 * restrictions in a confidential disclosure agreement between
40 * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
41 * document outside HP, IBM, Sun, USL, SCO, or Univel without
42 * Sun's specific written approval. This document and all copies
43 * and derivative works thereof must be returned or destroyed at
46 * Copyright 1993 Sun Microsystems, Inc. All rights reserved.
51 ///////////////////////////////////////////////////////////////////////////////
52 //////////////////////////////////////////////////////////////////////////////
53 // This example code is from the book:
55 // Object-Oriented Programming with C++ and OSF/Motif
58 // Prentice Hall, 1992
61 // Copyright 1991 by Prentice Hall
62 // All Rights Reserved
64 // Permission to use, copy, modify, and distribute this software for
65 // any purpose except publication and without fee is hereby granted, provided
66 // that the above copyright notice appear in all copies of the software.
67 ///////////////////////////////////////////////////////////////////////////////
68 //////////////////////////////////////////////////////////////////////////////
71 //////////////////////////////////////////////////////////////
72 // ButtonInterface.h: A push button interface to a Cmd object
73 ///////////////////////////////////////////////////////////////
74 #ifndef BUTTONINTERFACE
75 #define BUTTONINTERFACE
77 #include "CmdInterface.h"
79 class ButtonInterface : public CmdInterface {
83 ButtonInterface ( Widget, Cmd * );
84 #ifndef CAN_INLINE_VIRTUALS
85 ~ButtonInterface ( void );
86 #endif /* CAN_INLINE_VIRTUALS */
88 static void mapName(const char * input, char * output);