Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Public Attributes | Protected Member Functions
CWebProgDlg Class Reference

#include <WebProgDlg.h>

Collaboration diagram for CWebProgDlg:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { IDD = IDD_WEBPROGDLG }

Public Member Functions

 CWebProgDlg (CWnd *pParent=NULL)

Public Attributes

unsigned long m_wpFlagValue
CComboBox m_webProgFlags
int m_wpFlagIndex

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
virtual BOOL OnInitWPDialog ()
afx_msg void OnSelectWPCombo ()

Detailed Description

Definition at line 13 of file WebProgDlg.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
IDD 

Definition at line 21 of file WebProgDlg.h.


Constructor & Destructor Documentation

CWebProgDlg::CWebProgDlg ( CWnd *  pParent = NULL)

Definition at line 19 of file WebProgDlg.cpp.

       : CDialog(CWebProgDlg::IDD, pParent)
{
       //{{AFX_DATA_INIT(CWebProgDlg)
       m_wpFlagValue = 0;
       m_wpFlagIndex = -1;
       //}}AFX_DATA_INIT
}

Member Function Documentation

void CWebProgDlg::DoDataExchange ( CDataExchange *  pDX) [protected, virtual]

Definition at line 29 of file WebProgDlg.cpp.

{
       CDialog::DoDataExchange(pDX);
       //{{AFX_DATA_MAP(CWebProgDlg)
       DDX_Control(pDX, IDC_WPCOMBO, m_webProgFlags);
       DDX_CBIndex(pDX, IDC_WPCOMBO, m_wpFlagIndex);
       //}}AFX_DATA_MAP
}
BOOL CWebProgDlg::OnInitWPDialog ( ) [protected, virtual]

Definition at line 48 of file WebProgDlg.cpp.

{
       CDialog::OnInitDialog();

       m_wpFlagIndex = 0;
       m_webProgFlags.SetCurSel(m_wpFlagIndex);

       return TRUE;
}

Definition at line 57 of file WebProgDlg.cpp.

{
       m_wpFlagIndex = m_webProgFlags.GetCurSel();      

       if (m_wpFlagIndex == 0) {
              m_wpFlagValue = nsIWebProgress::NOTIFY_STATE_REQUEST;
              QAOutput("Selected NOTIFY_STATE_REQUEST flag.", 1);
       }
       else if (m_wpFlagIndex == 1) {
              m_wpFlagValue = nsIWebProgress::NOTIFY_STATE_DOCUMENT;
              QAOutput("Selected NOTIFY_STATE_DOCUMENT flag.", 1);
       }
       else if (m_wpFlagIndex == 2) {
              m_wpFlagValue = nsIWebProgress::NOTIFY_STATE_NETWORK;
              QAOutput("Selected NOTIFY_STATE_NETWORK flag.", 1);
       }
       else if (m_wpFlagIndex == 3) {
              m_wpFlagValue = nsIWebProgress::NOTIFY_STATE_WINDOW;
              QAOutput("Selected NOTIFY_STATE_WINDOW flag.", 1);
       }
       else if (m_wpFlagIndex == 4) {
              m_wpFlagValue = nsIWebProgress::NOTIFY_STATE_ALL;
              QAOutput("Selected NOTIFY_STATE_ALL flag.", 1);
       }
       else if (m_wpFlagIndex == 5) {
              m_wpFlagValue = nsIWebProgress::NOTIFY_PROGRESS;
              QAOutput("Selected NOTIFY_PROGRESS flag.", 1);
       }
       else if (m_wpFlagIndex == 6) {
              m_wpFlagValue = nsIWebProgress::NOTIFY_STATUS;
              QAOutput("Selected NOTIFY_STATUS flag.", 1);
       }
       else if (m_wpFlagIndex == 7) {
              m_wpFlagValue = nsIWebProgress::NOTIFY_SECURITY;
              QAOutput("Selected NOTIFY_SECURITY flag.", 1);
       }
       else if (m_wpFlagIndex == 8) {
              m_wpFlagValue = nsIWebProgress::NOTIFY_LOCATION;
              QAOutput("Selected NOTIFY_LOCATION flag.", 1);
       }
       else if (m_wpFlagIndex == 9) {
              m_wpFlagValue = nsIWebProgress::NOTIFY_ALL;
              QAOutput("Selected NOTIFY_ALL flag.", 1);
       }
       else
              QAOutput("NO FLAG!!!.", 1);
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 22 of file WebProgDlg.h.

Definition at line 23 of file WebProgDlg.h.

Definition at line 18 of file WebProgDlg.h.


The documentation for this class was generated from the following files: