home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / ComposeAttachDialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  3.1 KB  |  110 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.    ComposeAttachDialog.h -- class definitions for compose attachment dialogs
  20.    Created: Alastair Gourlay(SGI) c/o Dora Hsu<dora@netscape.com>, 26 Nov 1996
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _COMPOSE_ATTACH_DIALOG_H
  26. #define _COMPOSE_ATTACH_DIALOG_H
  27.  
  28. // Classes in this file:
  29. //      XFE_ComposeAttachLocationDialog
  30. //      XFE_ComposeAttachFileDialog
  31. //
  32.  
  33. #include "Component.h"
  34. #include <Xm/Xm.h>
  35. #include "ComposeAttachFolderView.h"
  36.  
  37. class XFE_ComposeAttachFolderView;
  38.  
  39. //
  40. // XFE_ComposeAttachLocationDialog - enter URL attachment
  41. //
  42.  
  43. class XFE_ComposeAttachLocationDialog : public XFE_Component {
  44. public:
  45.     XFE_ComposeAttachLocationDialog(XFE_ComposeAttachFolderView*);
  46.     virtual ~XFE_ComposeAttachLocationDialog();
  47.  
  48.     // widget interfaces
  49.     virtual void createWidgets(Widget);
  50.     operator Widget() { return getBaseWidget(); };
  51.     void show();
  52. protected:
  53.     // Motif information
  54.     Widget _parent;
  55.     Widget _dialog;
  56.     Widget _locationText;
  57.     
  58.     // panel contents    
  59.     XFE_ComposeAttachFolderView *_attachFolder;
  60.     
  61.     // internal callback stubs
  62.     static void OkCb(Widget,XtPointer,XtPointer);
  63.     static void ClearCb(Widget,XtPointer,XtPointer);
  64.     static void CancelCb(Widget,XtPointer,XtPointer);
  65.  
  66.     // internal callback methods
  67.     void okCb();
  68.     void clearCb();
  69.     void cancelCb();
  70. private:
  71. };
  72.  
  73. //
  74. // XFE_ComposeAttachFileDialog - select file attachment
  75. //
  76.  
  77. class XFE_ComposeAttachFileDialog : public XFE_Component {
  78. public:
  79.     XFE_ComposeAttachFileDialog(XFE_ComposeAttachFolderView*);
  80.     virtual ~XFE_ComposeAttachFileDialog();
  81.  
  82.     // widget interfaces
  83.     virtual void createWidgets(Widget);
  84.     operator Widget() { return getBaseWidget(); };
  85.     void show();
  86. protected:
  87.     // Motif information
  88.     Widget _parent;
  89.     Widget _dialog;
  90.     Widget _attachEncodingMenu;
  91.     Widget _attachBinaryButton;
  92.     
  93.     // panel contents    
  94.     XFE_ComposeAttachFolderView *_attachFolder;
  95.     
  96.     // internal callback stubs
  97.     static void OkCb(Widget,XtPointer,XtPointer);
  98.     static void CancelCb(Widget,XtPointer,XtPointer);
  99.     static void SetFileAttachBinaryCb(Widget,XtPointer,XtPointer);
  100.  
  101.     // internal callback methods
  102.     void okCb(const char*);
  103.     void cancelCb();
  104.     void setFileAttachBinaryCb(XtPointer);
  105. private:
  106. };
  107.  
  108.  
  109. #endif // _COMPOSE_ATTACH_DIALOG_H
  110.