home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / mucwiz.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  6.2 KB  |  262 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. #ifndef MUCWIZ_H
  20. #define MUCWIZ_H
  21.  
  22. #include "property.h"
  23. #include "resource.h"
  24.  
  25. class CMucViewWizard;
  26. class CNewProfileWizard;
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CMucIntroPage dialog
  30. #ifdef XP_WIN32
  31. class CMucIntroPage : public CNetscapePropertyPage
  32. #else
  33. class CMucIntroPage : public CDialog
  34. #endif XP_WIN32
  35. {
  36. public:
  37.  
  38.     CMucIntroPage(CWnd* pParent);   // standard constructor
  39.     enum { IDD = IDD_MUCWIZARD_INTRO };
  40. #ifndef XP_WIN32
  41.     BOOL Create(UINT nID, CWnd *pWnd);
  42.     virtual void PostNcDestroy(){delete this;}
  43. #endif
  44.     void SetMove(int x,int y, int nShowCmd);
  45.  
  46. protected:
  47.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  48.     virtual BOOL OnInitDialog();
  49.     afx_msg void OnMucIntroAcctExist();
  50.     afx_msg void OnMucIntroAcctSys();
  51.     afx_msg void OnMucIntroAcctAdd();
  52. #ifdef XP_WIN32
  53.     virtual BOOL OnSetActive();
  54. #endif
  55.     CNewProfileWizard* m_pParent;
  56.     void MucIntroProc(int);
  57.  
  58.     DECLARE_MESSAGE_MAP()
  59.  
  60. private:
  61.     CString         m_tmpProfilePath;
  62.     enum{
  63.         m_OptAdd,
  64.         m_OptExist,
  65.         m_OptSys
  66.     };
  67.     int             m_height;
  68.     int             m_width;
  69.  
  70. };
  71.  
  72.  
  73. /////////////////////////////////////////////////////////////////////////////
  74. // CASWReadyPage  
  75. #ifdef XP_WIN32
  76. class CASWReadyPage : public CNetscapePropertyPage
  77. #else
  78. class CASWReadyPage : public CDialog
  79. #endif
  80. {
  81. public:
  82.  
  83.     CASWReadyPage(CWnd *pParent);
  84.     enum { IDD = IDD_MUCWIZARD_ASWREADY };
  85. #ifndef XP_WIN32
  86.     BOOL Create(UINT nID, CWnd *pWnd);
  87.     virtual void PostNcDestroy(){delete this;}
  88. #endif
  89.     afx_msg void DoFinish();
  90.     void SetMove(int x,int y,int nShowCmd);
  91.  
  92. protected:
  93.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  94.     virtual BOOL OnInitDialog();
  95. #ifdef XP_WIN32
  96.     virtual BOOL OnSetActive();
  97. #endif
  98.  
  99.     CNewProfileWizard* m_pParent;
  100.  
  101.     DECLARE_MESSAGE_MAP()
  102.  
  103. private:
  104.     int             m_height;
  105.     int             m_width;
  106.  
  107. };
  108. /////////////////////////////////////////////////////////////////////////////
  109. // CMucReadyPage  
  110. #ifdef XP_WIN32
  111. class CMucReadyPage : public CNetscapePropertyPage
  112. #else
  113. class CMucReadyPage : public CDialog
  114. #endif
  115. {
  116. public:
  117.  
  118.     CMucReadyPage(CWnd *pParent);
  119.     enum { IDD = IDD_MUCWIZARD_MUCREADY };
  120. #ifndef XP_WIN32
  121.     BOOL Create(UINT nID, CWnd *pWnd);
  122.     virtual void PostNcDestroy(){delete this;}
  123. #endif
  124.     void SetMove(int x,int y,int nShowCmd);
  125.  
  126. protected:
  127.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  128.     virtual BOOL OnInitDialog();
  129.     CNewProfileWizard* m_pParent;
  130. #ifdef XP_WIN32
  131.     virtual BOOL OnSetActive();
  132. #endif
  133.  
  134.     DECLARE_MESSAGE_MAP()
  135.  
  136. private:
  137.     int             m_height;
  138.     int             m_width;
  139. };
  140.  
  141. /////////////////////////////////////////////////////////////////////////////
  142. // CMucEditPage  
  143. #ifdef XP_WIN32
  144. class CMucEditPage : public CNetscapePropertyPage
  145. #else
  146. class CMucEditPage : public CDialog
  147. #endif
  148. {
  149. public:
  150.  
  151.     CMucEditPage(CWnd *pParent, BOOL bEditView);
  152.    ~CMucEditPage();
  153. // Dialog Data
  154.     //{{AFX_DATA(CMucEditPage)
  155.     enum { IDD = IDD_MUCWIZARD_EDIT };
  156.     CListBox       *m_acctName;
  157.     //}}AFX_DATA
  158.  
  159. #ifndef XP_WIN32
  160.     BOOL Create(UINT nID, CWnd *pWnd);
  161.     virtual void PostNcDestroy(){delete this;}
  162. #endif
  163.     void SetMove(int x,int y,int nShowCmd);
  164.     afx_msg void DoFinish();
  165.  
  166. protected:
  167. // Overrides
  168.     // ClassWizard generated virtual function overrides
  169.     //{{AFX_VIRTUAL(CMucEditPage)
  170.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  171.     //}}AFX_VIRTUAL
  172.     virtual BOOL OnInitDialog();
  173.     afx_msg void OnSelectAcctlist();
  174.     afx_msg void OnCheckDialerFlag();
  175. //      afx_msg void OnSelectModemlist();
  176.  
  177.     CMucViewWizard*         m_pViewParent;
  178.     CNewProfileWizard*      m_pEditParent;
  179. #ifdef XP_WIN32
  180.     virtual BOOL OnSetActive();
  181. #endif
  182.  
  183.     DECLARE_MESSAGE_MAP()
  184.  
  185. protected:
  186.     void CheckConfig();
  187.     void SetViewPageState(BOOL m_bState);
  188.     void UpdateList();
  189.  
  190. private:
  191.     BOOL                    m_bEditView;
  192.     BOOL                    m_bCheckState;
  193.     CString                 m_acctSelect;
  194.     CString                 m_modemSelect;
  195.     CStringArray    m_acctList;
  196.     CStringArray    m_modemList;
  197.     char            m_tmpProfilePath[MAX_PATH+1];
  198.     int             m_height;
  199.     int             m_width;
  200.  
  201. };
  202.  
  203. /////////////////////////////////////////////////////////////////////////////
  204. // CMucViewWizard
  205. #ifdef XP_WIN32
  206. class CMucViewWizard : public CNetscapePropertySheet
  207. {
  208. public:
  209.  
  210.     CMucViewWizard(CWnd *pParent, CString strProfile, 
  211.                 CString strAcct, CString strModem);
  212.     ~CMucViewWizard();
  213.  
  214.     virtual BOOL OnInitDialog();
  215.     afx_msg void DoFinish();
  216.  
  217.     CString m_pProfileName;
  218.     CString m_pAcctName;
  219.     CString m_pModemName;
  220.  
  221. protected:  
  222.     
  223.     CMucEditPage            *m_pMucEditPage;
  224.  
  225.     DECLARE_MESSAGE_MAP()
  226.  
  227. };
  228. #else
  229. /////////////////////////////////////////////////////////////////////////////
  230. class CMucViewWizard : public CDialog
  231. {
  232. public:
  233.     CMucViewWizard(CWnd* pParent, CString strProfile, 
  234.                     CString strAcct, CString strModem);     
  235.  
  236.     enum { IDD = IDD_MUCWIZARD_WIN16 };
  237.  
  238.     CString m_pProfileName;
  239.     CString m_pAcctName;
  240.     CString m_pModemName;
  241.  
  242. protected:
  243.     virtual void DoDataExchange(CDataExchange* pDX);        // DDX/DDV support
  244.     virtual BOOL OnInitDialog();
  245.     virtual void OnOK();
  246.     virtual void OnCancel();
  247.     afx_msg void OnMove(int x, int y);
  248.  
  249.     CMucEditPage            *m_pMucEditPage;
  250.  
  251.     DECLARE_MESSAGE_MAP()
  252.  
  253. private:
  254.     int             m_curPage;
  255.     int             m_height;
  256.     int             m_width;
  257. };
  258.  
  259. #endif XP_WIN32
  260.  
  261. #endif MUCWIZ_H
  262.