home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / ComposeFolderView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.8 KB  |  97 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.    ComposeFolderView.h -- class definition for ComposeFolderView
  20.    Created: Dora Hsu<dora@netscape.com>, 23-Sept-96.
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _xfe_composefolderview_h
  26. #define _xfe_composefolderview_h
  27.  
  28.  
  29. #include "MNView.h"
  30.  
  31. #include "AddressFolderView.h"
  32. #include "OptionFolderView.h"
  33. #include "ComposeAttachFolderView.h"
  34.  
  35. #include "msgcom.h"
  36. #include <Xm/Xm.h>
  37.  
  38. /* Compose Folder View */
  39.  
  40.  
  41. class XFE_ComposeFolderView : public XFE_MNView
  42. {
  43. public:
  44.   XFE_ComposeFolderView(XFE_Component *toplevel_component, XFE_View *parent_view,
  45.             MSG_Pane *p = NULL, MWContext *context = NULL);
  46.  
  47.  
  48.   // Public functions
  49.   XFE_AddressFolderView* getAddrFolderView() { 
  50.     return m_addressFolderViewAlias;}
  51.   XFE_ComposeAttachFolderView* getAttachFolderView() { 
  52.     return m_attachFolderViewAlias;}
  53.  
  54.   virtual XP_Bool isCommandSelected(CommandType cmd, void* calldata = NULL,
  55.                                     XFE_CommandInfo* i = NULL);
  56.   virtual Boolean isCommandEnabled(CommandType command, void *calldata = NULL,
  57.                                    XFE_CommandInfo* i = NULL);
  58.   virtual Boolean handlesCommand(CommandType command, void *calldata = NULL,
  59.                                    XFE_CommandInfo* i = NULL);
  60.   virtual void doCommand(CommandType command, void *calldata = NULL,
  61.                                    XFE_CommandInfo* i = NULL);
  62.  
  63.   void   createWidgets(Widget parent, XP_Bool usePlainText);
  64.   void   updateHeaderInfo();
  65.   void      selectPriority(MSG_PRIORITY priority);
  66.   Boolean isPrioritySelected(MSG_PRIORITY priority );
  67.  
  68. protected:
  69.  
  70. private:
  71.     Widget  m_tabGroupW;
  72.     Widget     m_addressFormW;
  73.     Widget     m_attachFormW;
  74.     Widget    m_frameW;
  75.  
  76.     int    m_tabNumber;
  77.     Widget  m_optionFormW;
  78.     Widget  m_optionW;
  79.     MSG_PRIORITY     m_selectedPriority;
  80.     static fe_icon *addressIcon;
  81.     static fe_icon *attachIcon;
  82.     static fe_icon *optionIcon;
  83.  
  84.   XFE_AddressFolderView *m_addressFolderViewAlias;
  85.   XFE_OptionFolderView *m_optionFolderViewAlias;
  86.   XFE_ComposeAttachFolderView *m_attachFolderViewAlias;
  87.  
  88.   void     setupIcons();
  89.   void     folderActivate(int);
  90.  
  91.  
  92.   static void folderActivateCallback(Widget, XtPointer, XtPointer);
  93. };
  94.  
  95.  
  96. #endif /* _xfe_composefolderview_h */
  97.