home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / dspppage.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  5.5 KB  |  212 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. // dspppage.h : header file
  20. //
  21. #include "property.h"
  22. #include "msgcom.h"
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CDiskSpacePropertyPage dialog
  25. class CMoreChoicesDlg;
  26. class CNewsFolderPropertySheet;
  27.  
  28. class CDiskSpacePropertyPage : public CNetscapePropertyPage
  29. {
  30.  
  31.  
  32. public:
  33.     CMoreChoicesDlg *m_pMoreDlg;
  34. // Construction
  35. public:
  36.     CDiskSpacePropertyPage(CNewsFolderPropertySheet *pParent,BOOL bDefaultPref=FALSE,int nSelection = 0, int nDays=30, 
  37.                            int nKeepNew=500,BOOL bKeepUnread=FALSE);
  38.     ~CDiskSpacePropertyPage();
  39.     void SetFolderInfo(MSG_FolderInfo *folderInfo);
  40.     virtual BOOL OnSetActive();
  41.     virtual BOOL OnInitDialog();
  42.     void EnableDisableItem(BOOL bState, UINT nIDC);
  43.     void DisableOthers(BOOL bChecked);
  44. // Dialog Data
  45.     //{{AFX_DATA(CDiskSpacePropertyPage)
  46.     enum { IDD = IDD_PP_FOLDER_DISKSPACE };
  47.     int        m_nKeepSelection;
  48.     UINT    m_nDays;
  49.     UINT    m_nKeepNew;
  50.     BOOL    m_bCheckUnread;
  51.     BOOL    m_bCheckDefault;
  52.     //}}AFX_DATA
  53.  
  54.  
  55. // Overrides
  56.     // ClassWizard generate virtual function overrides
  57.     //{{AFX_VIRTUAL(CDiskSpacePropertyPage)
  58.     public:
  59.     virtual void OnOK();
  60.     protected:
  61.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  62.     //}}AFX_VIRTUAL
  63.  
  64. // Implementation
  65. protected:
  66.     CNewsFolderPropertySheet *m_pParent;
  67.     MSG_FolderInfo        *m_folderInfo;
  68.     // Generated message map functions
  69.     //{{AFX_MSG(CDiskSpacePropertyPage)
  70.     afx_msg void OnCheckUnread();
  71.     afx_msg void OnDownloadNow();
  72.     afx_msg void OnBtnMore();
  73.     afx_msg void OnRdKeepUnread();
  74.     afx_msg void OnChangeEditDays();
  75.     afx_msg void OnRdKeepDays();
  76.     afx_msg void OnRdKeepNew();
  77.     afx_msg void OnRdKeepall();
  78.     afx_msg void OnChangeEditNewest();
  79.     //}}AFX_MSG
  80.     DECLARE_MESSAGE_MAP()
  81.  
  82. };
  83.  
  84.  
  85. /////////////////////////////////////////////////////////////////////////////
  86. // CMoreChoicesDlg dialog
  87.  
  88. class CMoreChoicesDlg : public CDialog
  89. {
  90. public:
  91.     CMoreChoicesDlg(CWnd* pParent = NULL);   // standard constructor
  92.     CDiskSpacePropertyPage *m_pParent; 
  93.  
  94.     //{{AFX_DATA(CMoreChoicesDlg)
  95.     enum { IDD = IDD_MORE_DISK_CHOICES };
  96.     BOOL    m_bCheck;
  97.     UINT    m_nDays;
  98.     //}}AFX_DATA
  99.     // ClassWizard generated virtual function overrides
  100.     //{{AFX_VIRTUAL(CMoreChoicesDlg)
  101.     protected:
  102.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  103.     //}}AFX_VIRTUAL
  104. protected:
  105.     // Generated message map functions
  106.     //{{AFX_MSG(CMoreChoicesDlg)
  107.     afx_msg void OnCheck();
  108.     afx_msg void OnChangeEdit();
  109.     virtual void OnCancel();
  110.     virtual void OnOK();
  111.     //}}AFX_MSG
  112.     DECLARE_MESSAGE_MAP()
  113. };
  114.  
  115.  
  116.  
  117.  
  118.  
  119. class CDownLoadPPNews : public CNetscapePropertyPage
  120. {
  121.  
  122. // Construction
  123. public:
  124.     CDownLoadPPNews(CNewsFolderPropertySheet *pParent);
  125.     ~CDownLoadPPNews();
  126.  
  127.     void DisableOthers(BOOL bChecked);
  128.     void EnableDisableItem(BOOL bState, UINT nIDC);
  129.     void SetFolderInfo(MSG_FolderInfo *folderInfo);
  130.     virtual BOOL OnInitDialog();
  131.  
  132.     // Dialog Data
  133.     //{{AFX_DATA(CDownLoadPPNews)
  134.     enum { IDD = IDD_PP_DOWNLOAD_DISCUS };
  135.     CString    m_strComboArticles;
  136.     BOOL    m_bCheckArticles;
  137.     BOOL    m_bCheckDefault;
  138.     BOOL    m_bCheckDownLoad;
  139.     BOOL    m_bCheckByDate;
  140.     UINT    m_nDaysAgo;
  141.     int        m_nRadioValue;
  142.     //}}AFX_DATA
  143.  
  144.  
  145. // Overrides
  146.     // ClassWizard generate virtual function overrides
  147.     //{{AFX_VIRTUAL(CDownLoadPPNews)
  148.     public:
  149.     virtual void OnOK();
  150.     virtual BOOL OnSetActive();
  151.     protected:
  152.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  153.     //}}AFX_VIRTUAL
  154.  
  155. // Implementation
  156. protected:
  157.     MSG_FolderInfo        *m_folderInfo;
  158.     CNewsFolderPropertySheet *m_pParent;
  159.     // Generated message map functions
  160.     //{{AFX_MSG(CDownLoadPPNews)
  161.     afx_msg void OnCheckDefault();
  162.     afx_msg void OnDownloadNow();
  163.     afx_msg void OnSetfocusCombo2();
  164.     afx_msg void OnSelchangeCombo2();
  165.     afx_msg void OnChangeEditDaysAgo();
  166.     afx_msg void OnRadioSince();
  167.     afx_msg void OnRadioFrom();
  168.     afx_msg void OnCheckByArticles();
  169.     afx_msg void OnCheckByDate();
  170.     //}}AFX_MSG
  171.     DECLARE_MESSAGE_MAP()
  172.  
  173. };
  174.  
  175.  
  176. class CDownLoadPPMail : public CNetscapePropertyPage
  177. {
  178.  
  179. // Construction
  180. public:
  181.     CDownLoadPPMail();
  182.     ~CDownLoadPPMail();
  183.  
  184. // Dialog Data
  185.     //{{AFX_DATA(CDownLoadPPMail)
  186.     enum { IDD = IDD_PP_DOWNLOAD_MAIL };
  187.     BOOL m_bCheckDownLoadMail;
  188.     //}}AFX_DATA
  189.     MSG_FolderInfo *m_pfolderInfo;
  190.  
  191.     void SetFolderInfo(MSG_FolderInfo *pfolderInfo);
  192.  
  193. // Overrides
  194.     // ClassWizard generate virtual function overrides
  195.     //{{AFX_VIRTUAL(CDownLoadPPMail)
  196.     public:
  197.     virtual void OnOK();
  198.     virtual BOOL OnInitDialog();
  199.     protected:
  200.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  201.     //}}AFX_VIRTUAL
  202.  
  203. // Implementation
  204. protected:
  205.     // Generated message map functions
  206.     //{{AFX_MSG(CDownLoadPPMail)
  207.     afx_msg void OnCheckDownLoad();
  208.     //}}AFX_MSG
  209.     DECLARE_MESSAGE_MAP()
  210.  
  211. };
  212.