Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CSchemaCtrl Class Reference

#include <CtrlSchema.h>

List of all members.

Public Member Functions

 CSchemaCtrl ()
virtual ~CSchemaCtrl ()
void SetSchema (CSchema *pSchema, BOOL bPromptOnly=FALSE)
BOOL UpdateData (CXMLElement *pBase, BOOL bSaveAndValidate)
void Disable ()
void Enable ()
BOOL OnTab ()
void ScrollBy (int nDelta)
virtual BOOL Create (DWORD dwStyle, const RECT &rect, CWnd *pParentWnd, UINT nID)

Public Attributes

int m_nCaptionWidth
int m_nItemHeight
BOOL m_bShowBorder

Protected Member Functions

void Layout ()
void SetFocusTo (CWnd *pCtrl)
virtual BOOL OnCommand (WPARAM wParam, LPARAM lParam)
afx_msg BOOL OnEraseBkgnd (CDC *pDC)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDestroy ()
afx_msg void OnPaint ()
afx_msg void OnVScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnNcPaint ()
afx_msg void OnSetFocus (CWnd *pOldWnd)
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg BOOL OnMouseWheel (UINT nFlags, short zDelta, CPoint pt)
afx_msg void OnControlEdit ()

Protected Attributes

CSchemam_pSchema
CObArray m_pControls
CStringArray m_pCaptions
int m_nScroll
int m_nScrollWheelLines
CString strMultipleString


Constructor & Destructor Documentation

CSchemaCtrl::CSchemaCtrl  ) 
 

Definition at line 56 of file CtrlSchema.cpp.

References IDS_MULTIPLE_VALUES, LoadString(), and NULL.

CSchemaCtrl::~CSchemaCtrl  )  [virtual]
 

Definition at line 74 of file CtrlSchema.cpp.


Member Function Documentation

BOOL CSchemaCtrl::Create DWORD  dwStyle,
const RECT &  rect,
CWnd *  pParentWnd,
UINT  nID
[virtual]
 

Definition at line 81 of file CtrlSchema.cpp.

References CShareazaApp::m_bRTL, NULL, and theApp.

Referenced by CSearchPadWnd::OnCreate(), CSearchSchemaBox::OnCreate(), CFileMetadataPage::OnInitDialog(), CNewSearchDlg::OnInitDialog(), CFolderPropertiesDlg::OnInitDialog(), and CFilePropertiesDlg::OnInitDialog().

void CSchemaCtrl::Disable  ) 
 

Definition at line 302 of file CtrlSchema.cpp.

References CSchema::GetMemberIterator(), m_pControls, m_pSchema, and NULL.

Referenced by CSearchPanel::Disable().

void CSchemaCtrl::Enable  ) 
 

Definition at line 320 of file CtrlSchema.cpp.

References CSchema::GetMemberIterator(), m_pControls, m_pSchema, and NULL.

Referenced by CSearchPanel::Enable().

void CSchemaCtrl::Layout  )  [protected]
 

Definition at line 236 of file CtrlSchema.cpp.

References CShareazaApp::m_bRTL, m_nCaptionWidth, m_nItemHeight, m_nScroll, m_pControls, NULL, and theApp.

Referenced by OnSize(), ScrollBy(), and SetSchema().

BOOL CSchemaCtrl::OnCommand WPARAM  wParam,
LPARAM  lParam
[protected, virtual]
 

Definition at line 559 of file CtrlSchema.cpp.

References CSchemaMember::m_bNumeric, and strMultipleString.

void CSchemaCtrl::OnControlEdit  )  [protected]
 

Definition at line 613 of file CtrlSchema.cpp.

int CSchemaCtrl::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Definition at line 88 of file CtrlSchema.cpp.

void CSchemaCtrl::OnDestroy  )  [protected]
 

Definition at line 94 of file CtrlSchema.cpp.

References NULL, and SetSchema().

BOOL CSchemaCtrl::OnEraseBkgnd CDC *  pDC  )  [protected]
 

Definition at line 412 of file CtrlSchema.cpp.

void CSchemaCtrl::OnLButtonDown UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 398 of file CtrlSchema.cpp.

BOOL CSchemaCtrl::OnMouseWheel UINT  nFlags,
short  zDelta,
CPoint  pt
[protected]
 

Definition at line 403 of file CtrlSchema.cpp.

References m_nScrollWheelLines, NULL, and OnVScroll().

void CSchemaCtrl::OnNcPaint  )  [protected]
 

Definition at line 417 of file CtrlSchema.cpp.

References m_bShowBorder.

void CSchemaCtrl::OnPaint  )  [protected]
 

Definition at line 434 of file CtrlSchema.cpp.

References CSkin::m_crSchemaRow, CShareazaApp::m_gdiFont, m_nCaptionWidth, m_nItemHeight, m_nScroll, m_pCaptions, m_pControls, NULL, Skin, and theApp.

void CSchemaCtrl::OnSetFocus CWnd *  pOldWnd  )  [protected]
 

Definition at line 602 of file CtrlSchema.cpp.

References m_pControls, and SetFocusTo().

void CSchemaCtrl::OnSize UINT  nType,
int  cx,
int  cy
[protected]
 

Definition at line 100 of file CtrlSchema.cpp.

References Layout(), and m_nScroll.

BOOL CSchemaCtrl::OnTab  ) 
 

Definition at line 477 of file CtrlSchema.cpp.

References m_pControls, NULL, and SetFocusTo().

Referenced by CSearchPadWnd::PreTranslateMessage(), CFileMetadataPage::PreTranslateMessage(), CNewSearchDlg::PreTranslateMessage(), CFolderPropertiesDlg::PreTranslateMessage(), CFilePropertiesDlg::PreTranslateMessage(), and CSearchSchemaBox::PreTranslateMessage().

void CSchemaCtrl::OnVScroll UINT  nSBCode,
UINT  nPos,
CScrollBar *  pScrollBar
[protected]
 

Definition at line 338 of file CtrlSchema.cpp.

References m_nScroll, and ScrollBy().

Referenced by OnMouseWheel().

void CSchemaCtrl::ScrollBy int  nDelta  ) 
 

Definition at line 380 of file CtrlSchema.cpp.

References Layout(), m_nScroll, and NULL.

Referenced by OnVScroll(), and SetFocusTo().

void CSchemaCtrl::SetFocusTo CWnd *  pCtrl  )  [protected]
 

Definition at line 536 of file CtrlSchema.cpp.

References ScrollBy().

Referenced by OnSetFocus(), and OnTab().

void CSchemaCtrl::SetSchema CSchema pSchema,
BOOL  bPromptOnly = FALSE
 

Definition at line 111 of file CtrlSchema.cpp.

References CSchemaMember::GetItemCount(), CSchemaMember::GetItemIterator(), CSchema::GetMemberIterator(), CSchemaMember::GetNextItem(), CSchema::GetNextMember(), IDC_METADATA_CONTROL, Layout(), CSchemaMember::m_bPrompt, CShareazaApp::m_gdiFont, CSchemaMember::m_nMaxLength, m_nScroll, m_pCaptions, m_pControls, m_pSchema, CSchemaMember::m_sTitle, NULL, and theApp.

Referenced by CSearchPadWnd::ClearSearch(), OnDestroy(), CSearchPanel::OnSchemaChange(), CSearchPadWnd::OnSelChangeSchemas(), CFileMetadataPage::OnSelChangeSchemas(), CNewSearchDlg::OnSelChangeSchemas(), CFolderPropertiesDlg::OnSelChangeSchemas(), and CFilePropertiesDlg::OnSelChangeSchemas().

BOOL CSchemaCtrl::UpdateData CXMLElement pBase,
BOOL  bSaveAndValidate
 

Definition at line 185 of file CtrlSchema.cpp.

References CSchema::GetMemberIterator(), CXMLNode::GetName(), CSchema::GetNextMember(), CSchemaMember::GetValueFrom(), m_pControls, m_pSchema, CSchema::m_sSingular, NULL, CSchemaMember::SetValueTo(), and strMultipleString.

Referenced by CFolderPropertiesDlg::DoApply(), CSearchPadWnd::GetSearch(), CSearchPanel::GetSearch(), CFolderPropertiesDlg::OnChangeData(), CFolderPropertiesDlg::OnChangeTitle(), CFileMetadataPage::OnInitDialog(), CNewSearchDlg::OnInitDialog(), CFolderPropertiesDlg::OnInitDialog(), CFileMetadataPage::OnOK(), CNewSearchDlg::OnOK(), CFilePropertiesDlg::OnOK(), CSearchPanel::ShowSearch(), and CFilePropertiesDlg::Update().


Member Data Documentation

BOOL CSchemaCtrl::m_bShowBorder
 

Definition at line 42 of file CtrlSchema.h.

Referenced by CSearchSchemaBox::OnCreate(), and OnNcPaint().

int CSchemaCtrl::m_nCaptionWidth
 

Definition at line 40 of file CtrlSchema.h.

Referenced by Layout(), CSearchSchemaBox::OnCreate(), and OnPaint().

int CSchemaCtrl::m_nItemHeight
 

Definition at line 41 of file CtrlSchema.h.

Referenced by Layout(), CSearchSchemaBox::OnCreate(), and OnPaint().

int CSchemaCtrl::m_nScroll [protected]
 

Definition at line 47 of file CtrlSchema.h.

Referenced by Layout(), OnPaint(), OnSize(), OnVScroll(), ScrollBy(), and SetSchema().

int CSchemaCtrl::m_nScrollWheelLines [protected]
 

Definition at line 48 of file CtrlSchema.h.

Referenced by OnMouseWheel().

CStringArray CSchemaCtrl::m_pCaptions [protected]
 

Definition at line 46 of file CtrlSchema.h.

Referenced by OnPaint(), and SetSchema().

CObArray CSchemaCtrl::m_pControls [protected]
 

Definition at line 45 of file CtrlSchema.h.

Referenced by Disable(), Enable(), Layout(), OnPaint(), OnSetFocus(), OnTab(), SetSchema(), and UpdateData().

CSchema* CSchemaCtrl::m_pSchema [protected]
 

Definition at line 44 of file CtrlSchema.h.

Referenced by Disable(), Enable(), SetSchema(), and UpdateData().

CString CSchemaCtrl::strMultipleString [protected]
 

Definition at line 49 of file CtrlSchema.h.

Referenced by OnCommand(), and UpdateData().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:11 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2