CHelpDownloadWebDialog Class Reference

#include <helpdownloadwebdialog.h>

List of all members.

Public Member Functions

 CHelpDownloadWebDialog (TCHAR *WebFile)
 Construct a CHelpDownloadWebDialog.

Public Attributes

BOOL m_bFastConnection

Protected Member Functions

virtual afx_msg void OnWebCommandDoCommand (LPCTSTR Command, LPCTSTR CommandInfo)
 override the handling of web dialog events
virtual BOOL OnInitDialog ()


Detailed Description

Definition at line 110 of file helpdownloadwebdialog.h.


Constructor & Destructor Documentation

CHelpDownloadWebDialog::CHelpDownloadWebDialog TCHAR WebFile  ) 
 

Construct a CHelpDownloadWebDialog.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
14/4/2004

Definition at line 133 of file helpdownloadwebdialog.cpp.

00134     : CWebDialogDlg(FALSE,WebFile,NULL,FALSE,0)
00135 {
00136     m_bFastConnection = (InternetManager::GetConnectionType()>=CONNECTION_ISDN);
00137 }


Member Function Documentation

BOOL CHelpDownloadWebDialog::OnInitDialog  )  [protected, virtual]
 

Definition at line 141 of file helpdownloadwebdialog.cpp.

00142 {
00143 TRACEUSER( "Phil", _T("CHDlWDlg::InitDialog Entry\n"));
00144     CWebDialogDlg::OnInitDialog();
00145 TRACEUSER( "Phil", _T("CHDlWDlg::InitDialog 2\n"));
00146 
00147     if (m_bFastConnection)
00148     {
00149         m_WebCommand.SetLayerVisibility("fast", TRUE);
00150         m_WebCommand.SetLayerVisibility("slow", FALSE);
00151     }
00152     else
00153     {
00154         m_WebCommand.SetLayerVisibility("fast", FALSE);
00155         m_WebCommand.SetLayerVisibility("slow", TRUE);
00156     }
00157 
00158 TRACEUSER( "Phil", _T("CHDlWDlg::InitDialog Exit\n"));
00159     return FALSE;  // return TRUE  unless you set the focus to a control
00160 }

void CHelpDownloadWebDialog::OnWebCommandDoCommand LPCTSTR  Command,
LPCTSTR  CommandInfo
[protected, virtual]
 

override the handling of web dialog events

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
14/4/2004

Definition at line 172 of file helpdownloadwebdialog.cpp.

00173 {
00174     CString sCommand = Command;
00175     CString sCommandInfo = CommandInfo;
00176     TRACE( _T("Received Command:%s\n"), sCommand );
00177     if (sCommand == "close" || sCommand == "exit" || sCommand == "later")
00178     {
00179         EndDialog(IDCANCEL);
00180     }
00181     else if ( sCommand == "yes" || sCommand == "download" || sCommand == "ok" )
00182     {
00183         EndDialog(IDOK);
00184     }
00185     else if ( sCommand == "ignore" )
00186     {
00187         EndDialog(_R(IDB_IGNORE));
00188     }
00189     else if ( sCommand == "fast")
00190     {
00191         m_WebCommand.SetLayerVisibility("fast", TRUE);
00192         m_WebCommand.SetLayerVisibility("slow", FALSE);
00193         m_bFastConnection = TRUE;
00194     }
00195     else if ( sCommand == "slow" )
00196     {
00197         m_WebCommand.SetLayerVisibility("fast", FALSE);
00198         m_WebCommand.SetLayerVisibility("slow", TRUE);
00199         m_bFastConnection = FALSE;
00200     }
00201     else if ( sCommand == "help" )
00202     {
00203         HelpUserTopic(_R(IDS_HELPPATH_Misc_Xara_Ltd)/*23106*/);
00204     }
00205 }


Member Data Documentation

BOOL CHelpDownloadWebDialog::m_bFastConnection
 

Definition at line 123 of file helpdownloadwebdialog.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:52:32 2007 for Camelot by  doxygen 1.4.4