home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / ABNameConTab.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.9 KB  |  86 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.    ABNameConTabView.h -- class definition for ABNameConTabView
  20.    Created: Tao Cheng <tao@netscape.com>, 12-nov-96
  21.  */
  22.  
  23. #ifndef _xfe_abnamecontabview_h
  24. #define _xfe_abnamecontabview_h
  25.  
  26. #include "PropertyTabView.h"
  27.  
  28. class XFE_ABNameConTabView: public XFE_PropertyTabView {
  29. public:
  30.   XFE_ABNameConTabView(XFE_Component *top,
  31.                XFE_View      *view /* the parent view */);
  32.   virtual ~XFE_ABNameConTabView();
  33.  
  34.  
  35.   virtual void setDlgValues();
  36. #if 1
  37.   enum {AB_ADDRESS = 0, 
  38.         AB_CITY, 
  39.         AB_STATE, 
  40.         AB_ZIP, 
  41.         AB_COUNTRY,
  42.  
  43.         AB_WORKPHONE, 
  44.         AB_HOMEPHONE, 
  45.         AB_FAXPHONE, 
  46.         AB_PAGER, 
  47.         AB_CELLULAR,
  48.  
  49.         AB_LAST
  50.   } GEN_TEXTF;
  51. #else
  52.   enum {AB_ADDRESS = 0, 
  53.         AB_CITY, 
  54.         AB_STATE, 
  55.         AB_ZIP, 
  56.         AB_COUNTRY,
  57.  
  58.         AB_WORKPHONE, 
  59.         AB_FAXPHONE, 
  60.         AB_HOMEPHONE, 
  61.  
  62.         AB_LAST
  63.   } GEN_TEXTF;
  64. #endif
  65.  
  66. protected:
  67.   virtual void apply();
  68.   virtual void getDlgValues();
  69.  
  70. private:
  71.   /* m_widget is the tab form
  72.    */
  73.   Widget m_textFs[AB_LAST];
  74.   Widget m_labels[AB_LAST];
  75.   Widget m_addr2TextF;    
  76. }; /* XFE_ABNameConTabView */
  77.  
  78. #endif /* _xfe_abnamecontabview_h */
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.