home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / ABDirGenTabView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.9 KB  |  71 lines

  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /* 
  19.    ABDirGenTabView.h -- class definition for ABDirGenTabView
  20.    Created: Tao Cheng <tao@netscape.com>, 10-nov-97
  21.  */
  22.  
  23. #ifndef _ABDIRGENTABVIEW_H_
  24. #define _ABDIRGENTABVIEW_H_
  25.  
  26. #include "PropertyTabView.h"
  27. #include "addrbook.h"
  28.  
  29. class XFE_ABDirGenTabView: public XFE_PropertyTabView {
  30. public:
  31.     XFE_ABDirGenTabView(XFE_Component *top,
  32.                         XFE_View      *view/* the parent view */);
  33.     virtual ~XFE_ABDirGenTabView();
  34.     
  35.     virtual void setDlgValues();
  36.     
  37.     enum {ABDIR_DESCRIPTION = 0,
  38.           ABDIR_LDAPSERVER,
  39.           ABDIR_SEARCHROOT,
  40.           ABDIR_PORTNUMBER,
  41.           ABDIR_MAXHITS,
  42.           ABDIR_LAST
  43.     } GEN_TEXTF;
  44.  
  45.     enum {ABDIR_SECUR = 0,
  46.           ABDIR_USEPASSWD,
  47.           ABDIR_SAVEPASSWD,
  48.           ABDIR_SECLAST
  49.     } GEN_TOGGLE;
  50.  
  51.     static void usePasswdCallback(Widget w, 
  52.                                   XtPointer clientData, XtPointer callData);
  53. protected:
  54.     virtual void usePasswdCB(Widget w, XtPointer callData);
  55.  
  56.     virtual void apply(){};
  57.     virtual void getDlgValues();
  58.  
  59. private:
  60.     /* m_widget is the tab form
  61.      */
  62.     
  63.     /* widgets in this tab
  64.      */
  65.     Widget m_textFs[ABDIR_LAST+1];
  66.     Widget m_labels[ABDIR_LAST+1];
  67.     Widget m_toggles[3];
  68. }; /* XFE_ABDirGenTabView */
  69.  
  70. #endif /* _ABDIRGENTABVIEW_H_ */
  71.