Back to index

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

#include <UrlDialog.h>

Collaboration diagram for CUrlDialog:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { IDD = IDD_URLDIALOG }

Public Member Functions

 CUrlDialog (CWnd *pParent=NULL)

Public Attributes

PRUint32 m_flagvalue
CButton m_chkFlags
CComboBox m_urlflags
CString m_urlfield
int m_flagIndex
int m_protocolIndex
BOOL m_chkValue
CComboBox m_protocol
CString m_protocolvalue

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
afx_msg void OnChangeUrlfield ()
afx_msg void OnChkurlflag ()
virtual BOOL OnInitDialog ()
afx_msg void OnSelchangeCombo1 ()
afx_msg void OnSelchangeCombo2 ()

Detailed Description

Definition at line 13 of file UrlDialog.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
IDD 

Definition at line 22 of file UrlDialog.h.


Constructor & Destructor Documentation

CUrlDialog::CUrlDialog ( CWnd *  pParent = NULL)

Definition at line 19 of file UrlDialog.cpp.

       : CDialog(CUrlDialog::IDD, pParent)
{
       //{{AFX_DATA_INIT(CUrlDialog)
       m_urlfield = _T("");
       m_flagvalue = 0;
       m_flagIndex = -1;
       m_chkValue = FALSE;
       //}}AFX_DATA_INIT
}

Member Function Documentation

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

Definition at line 31 of file UrlDialog.cpp.

{
       CDialog::DoDataExchange(pDX);
       //{{AFX_DATA_MAP(CUrlDialog)
       DDX_Control(pDX, IDC_CHKURLFLAG, m_chkFlags);
       DDX_Control(pDX, IDC_COMBO1, m_urlflags);
       DDX_Text(pDX, IDC_URLFIELD, m_urlfield);
       DDX_CBIndex(pDX, IDC_COMBO1, m_flagIndex);
       DDX_Check(pDX, IDC_CHKURLFLAG, m_chkValue);
       DDX_Control(pDX, IDC_COMBO2, m_protocol);
       //}}AFX_DATA_MAP
}

Definition at line 58 of file UrlDialog.cpp.

{
       // TODO: If this is a RICHEDIT control, the control will not
       // send this notification unless you override the CDialog::OnInitDialog()
       // function and call CRichEditCtrl().SetEventMask()
       // with the ENM_CHANGE flag ORed into the mask.
       
       // TODO: Add your control notification handler code here

}
void CUrlDialog::OnChkurlflag ( ) [protected]

Definition at line 69 of file UrlDialog.cpp.

{
       m_chkValue = ! m_chkValue ;
       m_urlflags.EnableWindow(m_chkValue);
}
BOOL CUrlDialog::OnInitDialog ( ) [protected, virtual]

Definition at line 75 of file UrlDialog.cpp.

{
       CDialog::OnInitDialog();
       
       m_flagIndex = 0;
       m_urlflags.SetCurSel(m_flagIndex);
       m_urlflags.EnableWindow(m_chkValue);

       
       return TRUE;  // return TRUE unless you set the focus to a control
                     // EXCEPTION: OCX Property Pages should return FALSE
}

Definition at line 88 of file UrlDialog.cpp.

{
   CString flagvalue;
// m_urlflags.GetLBText(m_flagIndex,flagvalue);
   m_flagIndex = m_urlflags.GetCurSel();

//   if (flagvalue == "NONE") {
   if (m_flagIndex == 0) {
          QAOutput("Selected NONE flag.", 1);
          m_flagvalue = nsIWebNavigation::LOAD_FLAGS_NONE;
   }
   else if (m_flagIndex == 1) {
              QAOutput("Selected MASK flag.", 1);
              m_flagvalue = nsIWebNavigation::LOAD_FLAGS_MASK;
   }
   else if (m_flagIndex == 2) {
              QAOutput("Selected IS_LINK flag.", 1);
              m_flagvalue = nsIWebNavigation::LOAD_FLAGS_IS_LINK;
   }
   else if (m_flagIndex == 3) {
              QAOutput("Selected BYPASS_HISTORY flag.", 1);
              m_flagvalue = nsIWebNavigation::LOAD_FLAGS_BYPASS_HISTORY;
   }
   else if (m_flagIndex == 4) {
              QAOutput("Selected REPLACE_HISTORY flag.", 1);
              m_flagvalue = nsIWebNavigation::LOAD_FLAGS_REPLACE_HISTORY;
   }
   else if (m_flagIndex == 5) {
              QAOutput("Selected BYPASS_CACHE flag.", 1);
              m_flagvalue = nsIWebNavigation::LOAD_FLAGS_BYPASS_CACHE;
   }
   else if (m_flagIndex == 6) {
              QAOutput("Selected BYPASS_PROXY flag.", 1);
              m_flagvalue = nsIWebNavigation::LOAD_FLAGS_BYPASS_PROXY;
   }
   else if (m_flagIndex == 7) {
              QAOutput("Selected CHARSET_CHANGE flag.", 1);
              m_flagvalue = nsIWebNavigation::LOAD_FLAGS_CHARSET_CHANGE;     
   }
   else if (m_flagIndex == 8) {
              QAOutput("Selected REFRESH flag.", 1);
              m_flagvalue = nsIWebNavigation::LOAD_FLAGS_IS_REFRESH;  
   }
   else
              QAOutput("NO FLAG!!!.", 1);
}

Here is the call graph for this function:

Definition at line 135 of file UrlDialog.cpp.

{
   m_protocolIndex = m_protocol.GetCurSel();

   if (m_protocolIndex == 0) {
              QAOutput("Selected http protocol.", 1);
              m_protocolvalue = "http";
   }
   else if (m_protocolIndex == 1) {
              QAOutput("Selected https protocol.", 1);
              m_protocolvalue = "https";
   }
   else if (m_protocolIndex == 2) {
              QAOutput("Selected ftp protocol.", 1);
              m_protocolvalue = "ftp";
   }
   else if (m_protocolIndex == 3) {
              QAOutput("Selected file protocol.", 1);
              m_protocolvalue = "file";
   }
   else if (m_protocolIndex == 4) {
              QAOutput("Selected javascript protocol.", 1);
              m_protocolvalue = "javascript";
   }
   else if (m_protocolIndex == 5) {
              QAOutput("Selected about protocol.", 1);
              m_protocolvalue = "about";
   }
   else if (m_protocolIndex == 6) {
              QAOutput("Selected data protocol.", 1);
              m_protocolvalue = "data";
   }
   else if (m_protocolIndex == 7) {
              QAOutput("Selected mailto protocol.", 1);
              m_protocolvalue = "mailto"; 
   }
   else if (m_protocolIndex == 8) {
              QAOutput("Selected imap protocol.", 1);
              m_protocolvalue = "imap";   
   }
   else
              QAOutput("NO PROTOCOL SELECTED!!!.", 1);
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 23 of file UrlDialog.h.

Definition at line 28 of file UrlDialog.h.

Definition at line 26 of file UrlDialog.h.

Definition at line 19 of file UrlDialog.h.

Definition at line 29 of file UrlDialog.h.

Definition at line 27 of file UrlDialog.h.

Definition at line 30 of file UrlDialog.h.

Definition at line 25 of file UrlDialog.h.

Definition at line 24 of file UrlDialog.h.


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