Back to index

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

#include <QaUtils.h>

List of all members.

Public Types

enum  { IDD = IDD_RUNTESTSDLG }

Public Member Functions

 CShowTestResults (CWnd *pParent=NULL)
void AddItemToList (LPCTSTR szTestCaseName, BOOL bResult)

Public Attributes

CListCtrl m_ListResults

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
virtual BOOL OnInitDialog ()

Private Attributes

LPCTSTR m_TitleString

Detailed Description

Definition at line 77 of file QaUtils.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
IDD 

Definition at line 86 of file QaUtils.h.


Constructor & Destructor Documentation

Definition at line 448 of file QaUtils.cpp.

       : CDialog(CShowTestResults::IDD, pParent)
{

       //{{AFX_DATA_INIT(CShowTestResults)
              // NOTE: the ClassWizard will add member initialization here
       //}}AFX_DATA_INIT

}

Member Function Documentation

void CShowTestResults::AddItemToList ( LPCTSTR  szTestCaseName,
BOOL  bResult 
)

Definition at line 489 of file QaUtils.cpp.

{
       LV_ITEM lvitem ;
              
       lvitem.mask = LVIF_TEXT;
       lvitem.iItem = m_ListResults.GetItemCount();
       lvitem.iSubItem = 0;
       lvitem.pszText = (LPTSTR)szTestCaseName ;
       //Insert the main item
       m_ListResults.InsertItem(&lvitem);

       if (bResult)
       m_ListResults.SetItemText(m_ListResults.GetItemCount()-1,1,"Passed");
       else
       m_ListResults.SetItemText(m_ListResults.GetItemCount()-1,1,"Failed");

       //Insert the sub item
       //m_ListResults.InsertItem(&lvitem);

}

Here is the caller graph for this function:

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

Definition at line 459 of file QaUtils.cpp.

{
       CDialog::DoDataExchange(pDX);
       //{{AFX_DATA_MAP(CShowTestResults)
       DDX_Control(pDX, IDC_LIST1, m_ListResults);
       //}}AFX_DATA_MAP
}
BOOL CShowTestResults::OnInitDialog ( ) [protected, virtual]

Definition at line 476 of file QaUtils.cpp.

{
       
       CDialog::OnInitDialog();
       
       m_ListResults.InsertColumn(0,"Test Case",LVCFMT_LEFT,360);
       m_ListResults.InsertColumn(1,"Result",LVCFMT_LEFT,100);
       
       return TRUE;  // return TRUE unless you set the focus to a control
                     // EXCEPTION: OCX Property Pages should return FALSE
}

Member Data Documentation

Definition at line 87 of file QaUtils.h.

Definition at line 100 of file QaUtils.h.


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