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

  1. /* -*- Mode: C++; tab-width: 4; 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.    ABNameGeneralTabView.h -- class definition for ABNameGeneralTabView
  20.    Created: Tao Cheng <tao@netscape.com>, 12-nov-96
  21.  */
  22.  
  23. #ifndef _xfe_abnamegentabview_h
  24. #define _xfe_abnamegentabview_h
  25.  
  26. #include "PropertyTabView.h"
  27.  
  28. class XFE_ABNameGenTabView: public XFE_PropertyTabView {
  29. public:
  30.   XFE_ABNameGenTabView(XFE_Component *top,
  31.                XFE_View      *view/* the parent view */);
  32.   virtual ~XFE_ABNameGenTabView();
  33.  
  34.   virtual void setDlgValues();
  35.  
  36. #if 1
  37.   enum {AB_FIRST_NAME =  0, 
  38.         AB_LAST_NAME, 
  39.         AB_DISPLAY_NAME, 
  40.         AB_EMAIL, 
  41.         AB_NICKNAME, 
  42.         AB_TITLE, 
  43.         AB_COMPANY_NAME, 
  44.         AB_LAST
  45.   } GEN_TEXTF;
  46. #else
  47.   enum {AB_FIRST_NAME =  0, 
  48.         AB_LAST_NAME, 
  49.         AB_COMPANY_NAME, 
  50.         AB_TITLE, 
  51.         AB_EMAIL, 
  52.         AB_NICKNAME, 
  53.         AB_LAST
  54.   } GEN_TEXTF;
  55. #endif
  56. protected:
  57.   virtual void apply(){};
  58.   virtual void getDlgValues();
  59.  
  60. private:
  61.   /* m_widget is the tab form
  62.    */
  63.  
  64.   /* widgets in this tab
  65.    */
  66.   Widget m_textFs[AB_LAST+1];
  67.   Widget m_labels[AB_LAST+1];
  68.   Widget m_notesTxt;
  69.   Widget m_prefHTMLTog;
  70.  
  71. }; /* XFE_ABNameGenTabView */
  72.  
  73. #endif /* _xfe_abnamegentabview_h */
  74.