home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / ThreePaneView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.6 KB  |  71 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.    ThreePaneView.h -- class definition for ThreePaneView
  20.    Created: Chris Toshok <toshok@netscape.com>, 7-Aug-96.
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _xfe_threepaneview_h
  26. #define _xfe_threepaneview_h
  27.  
  28. #include "FolderView.h"
  29. #include "ThreadView.h"
  30. #include "View.h"
  31. #include "Command.h"
  32.  
  33. class XFE_ThreePaneView : public XFE_View
  34. {
  35. public:
  36.   XFE_ThreePaneView(XFE_Component *toplevel_component, Widget parent, 
  37.              XFE_View *parent_view, MWContext *context);
  38.  
  39.   virtual ~XFE_ThreePaneView();
  40.  
  41.   virtual Boolean isCommandEnabled(CommandType command, void *calldata = NULL,
  42.                                                                    XFE_CommandInfo* i = NULL);
  43.   virtual Boolean isCommandSelected(CommandType command, void *calldata = NULL,
  44.                                                                    XFE_CommandInfo* i = NULL);
  45.   virtual Boolean handlesCommand(CommandType command, void *calldata = NULL,
  46.                                                                    XFE_CommandInfo* i = NULL);
  47.   virtual void doCommand(CommandType command, void *calldata = NULL,
  48.                                                                    XFE_CommandInfo* i = NULL);
  49.  
  50.   virtual char *commandToString(CommandType command,
  51.                                                                 void *calldata = NULL,
  52.                                                                 XFE_CommandInfo* i = NULL);
  53.  
  54.   static const char *ShowFolder;
  55.   void selectFolder(MSG_FolderInfo *info);
  56.   XFE_View* getThreadView();
  57.   XFE_View* getFolderView();
  58.  
  59.   XFE_CALLBACK_DECL(userClickedFolder)
  60.   XFE_CALLBACK_DECL(twoPaneView)
  61.   XFE_CALLBACK_DECL(changeFocus)
  62.  
  63. private:
  64.  
  65.   XFE_MNListView *m_focusview;
  66.   XFE_FolderView *m_folderview;
  67.   XFE_ThreadView *m_threadview;
  68. };
  69.  
  70. #endif /* _xfe_folderview_h */
  71.