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: DtFindD.h /main/3 1995/11/06 09:35:06 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. *
35 #include "Container.h"
44 class DtJobList : public Container
50 void NotifySelected(BaseUI *obj);
54 DtJobList(AnyUI *parent);
58 class DtFindD : public Dialog {
60 friend class DtJobList;
62 friend void StartCB(void *);
63 friend void StopCB(void *);
64 friend void CancelCB(void *);
65 friend void GotoCB(void *);
66 friend void CancelJobsCB(void *);
67 friend void HelpCB(void *);
68 friend void CheckQueue(BaseUI *, void *);
72 boolean _has_been_posted;
86 Button *match_any_user;
87 DtJobList *found_container;
93 SelectProc _select_proc;
96 boolean _prev_visible;
98 static void StartCB(void *);
99 static void StopCB(void *);
100 static void CancelCB(void *);
101 static void GotoCB(void *);
102 static void CancelJobsCB(void *);
103 static void HelpCB(void *);
104 static void CheckQueue(BaseUI *, void *);
106 boolean SetVisiblity(boolean flag);
113 BaseUI *FindJob(BaseUI *obj);
114 boolean HandleHelpRequest();
118 DtFindD(AnyUI *parent, char *name, SelectProc select_proc);
119 boolean Working() { return _working; }
120 boolean MatchAnyUser();
121 void UpdateMatchAnyUser();
122 void DeleteJobFromList(BaseUI *);
123 void UpdatePrinter(BaseUI *printer);
124 void UpdatePositions(BaseUI *printer);
129 #endif /* DTFINDD_H */