home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / ReadAttachPanel.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.4 KB  |  90 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.    ReadAttachPanel.h -- class definitions for read window attachment panel
  20.    Created: Alastair Gourlay(SGI) c/o Dora Hsu<dora@netscape.com>, 26 Nov 1996
  21.  */
  22.  
  23. #ifndef _READ_ATTACH_PANEL_H
  24. #define _READ_ATTACH_PANEL_H
  25.  
  26. // Classes in this file:
  27. //      XFE_ReadAttachPanel
  28. //      XFE_ReadDragAttach (nyi)
  29. //
  30.  
  31. #include "AttachPanel.h"
  32. #include "ReadAttachDrag.h"
  33.  
  34. //
  35. // XFE_ReadAttachPanel
  36. //
  37.  
  38. class XFE_ReadAttachPanel : public XFE_AttachPanel {
  39. public:
  40.     XFE_ReadAttachPanel(MWContext*);
  41.     ~XFE_ReadAttachPanel();
  42.     void createWidgets(Widget);
  43.  
  44.     // geometry
  45.     void setPaneHeight(int);
  46.     int getPaneHeight();
  47.     
  48.     // attachment list
  49.     void addAttachments(MSG_Pane*,MSG_AttachmentData*);
  50.     void removeAllAttachments();
  51. protected:
  52.     Widget _open;
  53.     Widget _save;
  54.     Widget _properties;
  55.  
  56.     Widget _propertiesDialog;
  57.     Widget _nameLabel;
  58.     Widget _nameValue;
  59.     Widget _typeLabel;
  60.     Widget _typeValue;
  61.     Widget _encLabel;
  62.     Widget _encValue;
  63.     Widget _descLabel;
  64.     Widget _descValue;
  65.  
  66.     XFE_ReadAttachDrag *_attachDrag;
  67.  
  68.     MSG_Pane *_pane;
  69.     MSG_AttachmentData *_attachments;
  70.     
  71.     // internal methods
  72.     virtual void updateSelectionUI();
  73.     void displayAttachmentProperties(int);
  74.     
  75.     // internal callback stubs
  76.     static void OpenCb(Widget,XtPointer,XtPointer);
  77.     static void SaveCb(Widget,XtPointer,XtPointer);
  78.     static void PropertiesCb(Widget,XtPointer,XtPointer);
  79.  
  80.     // internal callback methods
  81.     void doubleClickCb(int);
  82.     void openCb();
  83.     void saveCb();
  84.     void propertiesCb();
  85. private:
  86. };
  87.  
  88. #endif // _READ_ATTACH_PANEL_H
  89.  
  90.