dtinfo subtree dtinfo
[oweals/cde.git] / cde / programs / dtinfo / dtinfo / src / Managers / SearchScopeMgr.hh
1 /*
2  * $XConsortium: SearchScopeMgr.hh /main/5 1996/09/14 13:09:26 cde-hal $
3  *
4  * Copyright (c) 1991 HaL Computer Systems, Inc.  All rights reserved.
5  * UNPUBLISHED -- rights reserved under the Copyright Laws of the United
6  * States.  Use of a copyright notice is precautionary only and does not
7  * imply publication or disclosure.
8  * 
9  * This software contains confidential information and trade secrets of HaL
10  * Computer Systems, Inc.  Use, disclosure, or reproduction is prohibited
11  * without the prior express written permission of HaL Computer Systems, Inc.
12  * 
13  *                         RESTRICTED RIGHTS LEGEND
14  * Use, duplication, or disclosure by the Government is subject to
15  * restrictions as set forth in subparagraph (c)(l)(ii) of the Rights in
16  * Technical Data and Computer Software clause at DFARS 252.227-7013.
17  *                        HaL Computer Systems, Inc.
18  *                  1315 Dell Avenue, Campbell, CA  95008
19  * 
20  */
21
22 class List;
23 class SearchScopeAgent;
24 class ScopePopup;
25 class QueryEditor;
26 class UAS_SearchScope;
27 template <class T> class xList;
28
29 class SearchScopeMgr : public Long_Lived
30 {
31 public: // functions
32   SearchScopeMgr();
33   void display();
34   void insert(UAS_Pointer<UAS_Common> &lib);
35   void remove(UAS_Pointer<UAS_Common> &lib);
36
37   xList<UAS_SearchScope *> &scope_list();
38
39   bool infolib_selected (BitHandle handle);
40
41   void option_menu(QueryEditor *menu);
42
43   void show_warning(bool show) { f_show_warning = show; }
44   bool show_warning() { return f_show_warning; }
45
46 private: // functions
47
48 private: //variables
49   SearchScopeAgent *f_search_scope_agent;
50
51   bool f_show_warning; // show invalid scope warning dialog?
52
53 private:
54   LONG_LIVED_HH(SearchScopeMgr,search_scope_mgr);
55 };
56
57 LONG_LIVED_HH2(SearchScopeMgr,search_scope_mgr);
58