home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / PropertyTabView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.8 KB  |  67 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.    XmlTabView.h -- class definition for XFE_XmlTabView
  20.    Created: Tao Cheng <tao@netscape.com>, 12-nov-96
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _xfe_xmltabview_h
  26. #define _xfe_xmltabview_h
  27.  
  28. #include "View.h"
  29.  
  30. /* This is a general wrapper of property tab form (goes in a property sheet) */
  31.  
  32. class XFE_PropertyTabView: public XFE_View {
  33. public:
  34.   XFE_PropertyTabView(XFE_Component *top, /* the parent folderDialog */
  35.          XFE_View *view, /* the parent view */
  36.                  int tab_string_id);
  37.  
  38.   virtual ~XFE_PropertyTabView();
  39.  
  40.   virtual void setDlgValues() {};
  41.   virtual void getDlgValues() {};
  42.   virtual void apply(){};
  43.  
  44. protected:
  45.   Dimension m_labelWidth;
  46.  
  47. private:
  48.   /* m_widget is the tab form
  49.    */
  50. }; /* XFE_PropertyTabView */
  51.  
  52. /* Offsets between widgets when hardwired is needed
  53.  */
  54. const int labelWidth = 125;
  55. const int labelHeight = 30;
  56. const int textFWidth = 175;
  57. const int textFHeight = 30;
  58.  
  59. const int separatorHeight = 10;
  60.  
  61. const int majorVSpac = 6;
  62. const int minorVSpac = 3;
  63. const int majorHSpac = 6;
  64. const int minorHSpac = 3;
  65.  
  66. #endif /* _xfe_xmltabview_h */
  67.