Back to index

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

#include <PickerDlg.h>

List of all members.

Public Types

enum  { IDD = IDD_PICKBROWSER }

Public Member Functions

 CPickerDlg (CWnd *pParent=NULL)

Public Attributes

CListBox m_lbPicker
CString m_szTestURL
CString m_szTestCGI
BOOL m_bDebugging
CString m_sDebugFlags
BOOL m_bUseCustom
CLSID m_clsid

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
afx_msg void OnOk ()
virtual BOOL OnInitDialog ()
afx_msg void OnDblclkListbrowser ()

Detailed Description

Definition at line 13 of file PickerDlg.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
IDD 

Definition at line 21 of file PickerDlg.h.


Constructor & Destructor Documentation

CPickerDlg::CPickerDlg ( CWnd *  pParent = NULL)

Definition at line 44 of file PickerDlg.cpp.

       : CDialog(CPickerDlg::IDD, pParent)
{
       //{{AFX_DATA_INIT(CPickerDlg)
       m_szTestURL = _T("");
       m_szTestCGI = _T("");
       m_bDebugging = FALSE;
       m_sDebugFlags = _T("");
       m_bUseCustom = FALSE;
       //}}AFX_DATA_INIT
       m_clsid = CLSID_NULL;

       CWinApp *pApp = AfxGetApp();
       m_szTestURL = pApp->GetProfileString(SECTION_TEST, KEY_TESTURL, KEY_TESTURL_DEFAULTVALUE);
       m_szTestCGI = pApp->GetProfileString(SECTION_TEST, KEY_TESTCGI, KEY_TESTCGI_DEFAULTVALUE);
       m_sDebugFlags = _T("NSPR_LOG_MODULES=nsComponentManager:5");
}

Member Function Documentation

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

Definition at line 62 of file PickerDlg.cpp.

{
       CDialog::DoDataExchange(pDX);
       //{{AFX_DATA_MAP(CPickerDlg)
       DDX_Control(pDX, IDC_LISTBROWSER, m_lbPicker);
       DDX_Text(pDX, IDC_TESTURL, m_szTestURL);
       DDX_Text(pDX, IDC_TESTCGI, m_szTestCGI);
       DDX_Check(pDX, IDC_CHECK1, m_bDebugging);
       DDX_Text(pDX, IDC_EDIT1, m_sDebugFlags);
       DDX_Check(pDX, IDC_OVERRIDE, m_bUseCustom);
       //}}AFX_DATA_MAP
}

Definition at line 128 of file PickerDlg.cpp.

{
       OnOk();
}

Here is the call graph for this function:

BOOL CPickerDlg::OnInitDialog ( ) [protected, virtual]

Definition at line 86 of file PickerDlg.cpp.

{
       CDialog::OnInitDialog();

       for (int i = 0; i < sizeof(aControls) / sizeof(aControls[0]); i++)
       {
              m_lbPicker.AddString(aControls[i].szName);
       }
       m_lbPicker.SetCurSel(0);
              
       return TRUE;  // return TRUE unless you set the focus to a control
                     // EXCEPTION: OCX Property Pages should return FALSE
}
void CPickerDlg::OnOk ( ) [protected]

Definition at line 101 of file PickerDlg.cpp.

{
       UpdateData();

       int nItem = m_lbPicker.GetCurSel();
       if (nItem == LB_ERR)
       {
              AfxMessageBox(IDS_CHOOSEBROWSER);
              return;
       }

       m_clsid = *aControls[nItem].clsid;

       CWinApp *pApp = AfxGetApp();
       pApp->WriteProfileString(SECTION_TEST, KEY_TESTURL, m_szTestURL);
       pApp->WriteProfileString(SECTION_TEST, KEY_TESTCGI, m_szTestCGI);

       if (m_bDebugging)
       {
              putenv("NSPR_LOG_FILE=.\\mozilla.log");
              putenv(m_sDebugFlags);
       }

       EndDialog(IDOK);
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 25 of file PickerDlg.h.

Definition at line 27 of file PickerDlg.h.

Definition at line 30 of file PickerDlg.h.

Definition at line 22 of file PickerDlg.h.

Definition at line 26 of file PickerDlg.h.

Definition at line 24 of file PickerDlg.h.

Definition at line 23 of file PickerDlg.h.


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