d67dd4fa3da9b3fca844ba76ef5705a595ed9026
[oweals/cde.git] / cde / programs / dtinfo / dtinfo / src / Managers / SearchScopeMgr.hh
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 libraries 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 /*
24  * $XConsortium: SearchScopeMgr.hh /main/5 1996/09/14 13:09:26 cde-hal $
25  *
26  * Copyright (c) 1991 HaL Computer Systems, Inc.  All rights reserved.
27  * UNPUBLISHED -- rights reserved under the Copyright Laws of the United
28  * States.  Use of a copyright notice is precautionary only and does not
29  * imply publication or disclosure.
30  * 
31  * This software contains confidential information and trade secrets of HaL
32  * Computer Systems, Inc.  Use, disclosure, or reproduction is prohibited
33  * without the prior express written permission of HaL Computer Systems, Inc.
34  * 
35  *                         RESTRICTED RIGHTS LEGEND
36  * Use, duplication, or disclosure by the Government is subject to
37  * restrictions as set forth in subparagraph (c)(l)(ii) of the Rights in
38  * Technical Data and Computer Software clause at DFARS 252.227-7013.
39  *                        HaL Computer Systems, Inc.
40  *                  1315 Dell Avenue, Campbell, CA  95008
41  * 
42  */
43
44 class List;
45 class SearchScopeAgent;
46 class ScopePopup;
47 class QueryEditor;
48 class UAS_SearchScope;
49 template <class T> class xList;
50
51 class SearchScopeMgr : public Long_Lived
52 {
53 public: // functions
54   SearchScopeMgr();
55   void display();
56   void insert(UAS_Pointer<UAS_Common> &lib);
57   void remove(UAS_Pointer<UAS_Common> &lib);
58
59   xList<UAS_SearchScope *> &scope_list();
60
61   bool infolib_selected (BitHandle handle);
62
63   void option_menu(QueryEditor *menu);
64
65   void show_warning(bool show) { f_show_warning = show; }
66   bool show_warning() { return f_show_warning; }
67
68 private: // functions
69
70 private: //variables
71   SearchScopeAgent *f_search_scope_agent;
72
73   bool f_show_warning; // show invalid scope warning dialog?
74
75 private:
76   LONG_LIVED_HH(SearchScopeMgr,search_scope_mgr);
77 };
78
79 LONG_LIVED_HH2(SearchScopeMgr,search_scope_mgr);
80