Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / programs / dtprintinfo / UI / DtSetModList.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
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)
10  * any later version.
11  *
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
16  * details.
17  *
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
22  */
23 /* $XConsortium: DtSetModList.h /main/3 1995/11/06 09:36:56 rswiston $ */
24 /*                                                                      *
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.                                *
29  */
30
31 #ifndef DTSETMODLIST_H
32 #define DTSETMODLIST_H
33
34 #include "Dialog.h"
35
36 class Button;
37 class Container;
38 class LabelObj;
39 class DtMainW;
40
41 class DtSetModList : public Dialog {
42
43    friend void OkCB(void *);
44    friend void ApplyCB(void *);
45    friend void CancelCB(void *);
46    friend void HelpCB(void *);
47    friend void SelectAllCB(void *);
48    friend void UnSelectAllCB(void *);
49
50  private:
51
52    boolean _has_been_posted;
53    Container *_container;
54    DtMainW *mainw;
55    Container *_workarea;
56    LabelObj *_info;
57    Button *select_all;
58    Button *unselect_all;
59
60    // dialog buttons
61    Button *ok;
62    Button *apply;
63    Button *cancel;
64    Button *help;
65
66    static void OkCB(void *);
67    static void ApplyCB(void *);
68    static void CancelCB(void *);
69    static void HelpCB(void *);
70    static void SelectAllCB(void *);
71    static void UnSelectAllCB(void *);
72
73    boolean SetVisiblity(boolean flag);
74    ButtonCallback _filterCB;
75    void CloseCB();
76
77    void Apply();
78    void Cancel();
79    boolean HandleHelpRequest();
80
81  public:
82
83    DtSetModList(AnyUI *parent, char *name, BaseUI *container,
84                 ButtonCallback filterCB);
85    virtual ~DtSetModList();
86    void Reset();
87
88 };
89
90 #endif /* DTSETMODLIST_H */