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

CLanguageDlg Class Reference

#include <DlgLanguage.h>

Inheritance diagram for CLanguageDlg:

CSkinDialog List of all members.

Public Types

enum  { IDD = IDD_LANGUAGE }

Public Member Functions

 CLanguageDlg (CWnd *pParent=NULL)
virtual BOOL PreTranslateMessage (MSG *pMsg)

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
void PaintItem (int nItem, CDC *pDC, CRect *pRect)
void DrawWrappedText (CDC *pDC, CRect *pBox, LPCTSTR pszText)
void AddEnglishDefault ()
void Enumerate (LPCTSTR pszPath=NULL)
BOOL AddSkin (LPCTSTR pszPath, LPCTSTR pszName)
void Execute (int nItem)
virtual BOOL OnInitDialog ()
afx_msg BOOL OnEraseBkgnd (CDC *pDC)
afx_msg void OnPaint ()
afx_msg void OnVScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
afx_msg BOOL OnMouseWheel (UINT nFlags, short zDelta, CPoint pt)
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
afx_msg void OnTimer (UINT nIDEvent)
afx_msg void OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
afx_msg BOOL OnSetCursor (CWnd *pWnd, UINT nHitTest, UINT message)
afx_msg void OnDestroy ()
afx_msg void OnClose ()
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)

Protected Attributes

CStringArray m_pPaths
CStringArray m_pTitles
CStringArray m_pPrompts
CStringArray m_pGUIDirs
CStringArray m_pLangCodes
CImageList m_pImages
int m_nHover
int m_nDown
BOOL m_bKeyMode
CFont m_fntNormal
CFont m_fntBold
CFont m_fntSmall
HCURSOR m_hArrow
HCURSOR m_hHand
CBitmap m_bmHeader

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
IDD 

Definition at line 39 of file DlgLanguage.h.


Constructor & Destructor Documentation

CLanguageDlg::CLanguageDlg CWnd *  pParent = NULL  ) 
 

Definition at line 62 of file DlgLanguage.cpp.


Member Function Documentation

void CLanguageDlg::AddEnglishDefault  )  [protected]
 

Definition at line 486 of file DlgLanguage.cpp.

References IDI_FLAG_ENGLISH, m_pImages, m_pPaths, m_pPrompts, m_pTitles, and theApp.

Referenced by OnInitDialog().

BOOL CLanguageDlg::AddSkin LPCTSTR  pszPath,
LPCTSTR  pszName
[protected]
 

Definition at line 531 of file DlgLanguage.cpp.

References CXMLElement::AddElement(), CXMLElement::FromString(), CSettings::General, CXMLElement::GetAttributeValue(), CXMLElement::GetElementByName(), IDR_MAINFRAME, CXMLNode::IsNamed(), m_pGUIDirs, m_pImages, m_pLangCodes, m_pPaths, m_pPrompts, m_pTitles, NULL, CSettings::sGeneral::Path, Settings, and theApp.

Referenced by Enumerate().

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

Reimplemented from CSkinDialog.

Definition at line 68 of file DlgLanguage.cpp.

References CSkinDialog::DoDataExchange().

void CLanguageDlg::DrawWrappedText CDC *  pDC,
CRect *  pBox,
LPCTSTR  pszText
[protected]
 

Definition at line 270 of file DlgLanguage.cpp.

References NULL.

Referenced by PaintItem().

void CLanguageDlg::Enumerate LPCTSTR  pszPath = NULL  )  [protected]
 

Definition at line 494 of file DlgLanguage.cpp.

References _tcsistr(), AddSkin(), CSettings::General, NULL, CSettings::sGeneral::Path, and Settings.

Referenced by OnInitDialog().

void CLanguageDlg::Execute int  nItem  )  [protected]
 

Definition at line 671 of file DlgLanguage.cpp.

References CSettings::General, IDS_GENERAL_RTL_NOTSUPPORTED, IDS_GENERAL_RTL_WARNING, CSettings::sGeneral::Language, LoadString(), CShareazaApp::m_bRTL, CShareazaApp::m_dwWindowsVersion, m_pGUIDirs, m_pLangCodes, m_pPaths, NULL, Settings, and theApp.

Referenced by OnKeyDown(), and OnLButtonUp().

void CLanguageDlg::OnClose  )  [protected]
 

Definition at line 715 of file DlgLanguage.cpp.

int CLanguageDlg::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Reimplemented from CSkinDialog.

Definition at line 720 of file DlgLanguage.cpp.

void CLanguageDlg::OnDestroy  )  [protected]
 

Definition at line 147 of file DlgLanguage.cpp.

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

Reimplemented from CSkinDialog.

Definition at line 153 of file DlgLanguage.cpp.

BOOL CLanguageDlg::OnInitDialog  )  [protected, virtual]
 

Reimplemented from CSkinDialog.

Definition at line 78 of file DlgLanguage.cpp.

References AddEnglishDefault(), Enumerate(), HEADING_HEIGHT, IDB_WIZARD, IDC_HAND, ITEM_HEIGHT, m_bKeyMode, m_bmHeader, m_fntBold, m_fntNormal, m_fntSmall, m_hArrow, m_hHand, CShareazaApp::m_nDefaultFontSize, m_nDown, m_nHover, m_pImages, m_pPaths, CShareazaApp::m_sDefaultFont, NULL, CSkinDialog::OnInitDialog(), and theApp.

void CLanguageDlg::OnKeyDown UINT  nChar,
UINT  nRepCnt,
UINT  nFlags
[protected]
 

Definition at line 453 of file DlgLanguage.cpp.

References Execute(), m_bKeyMode, m_nDown, m_nHover, and m_pPaths.

Referenced by PreTranslateMessage().

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

Definition at line 404 of file DlgLanguage.cpp.

References m_nDown, and m_nHover.

void CLanguageDlg::OnLButtonUp UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 411 of file DlgLanguage.cpp.

References Execute(), m_nDown, and m_nHover.

void CLanguageDlg::OnMouseMove UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 359 of file DlgLanguage.cpp.

References HEADING_HEIGHT, ITEM_HEIGHT, m_bKeyMode, and m_nHover.

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

Definition at line 353 of file DlgLanguage.cpp.

References NULL, and OnVScroll().

void CLanguageDlg::OnPaint  )  [protected]
 

Definition at line 158 of file DlgLanguage.cpp.

References HEADING_HEIGHT, m_bmHeader, m_fntNormal, m_pPaths, and PaintItem().

BOOL CLanguageDlg::OnSetCursor CWnd *  pWnd,
UINT  nHitTest,
UINT  message
[protected]
 

Definition at line 388 of file DlgLanguage.cpp.

References HEADING_HEIGHT, m_hArrow, and m_hHand.

void CLanguageDlg::OnTimer UINT  nIDEvent  )  [protected]
 

Definition at line 424 of file DlgLanguage.cpp.

References m_bKeyMode, and m_nHover.

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

Definition at line 307 of file DlgLanguage.cpp.

References m_nDown, and m_nHover.

Referenced by OnMouseWheel().

void CLanguageDlg::PaintItem int  nItem,
CDC *  pDC,
CRect *  pRect
[protected]
 

Definition at line 193 of file DlgLanguage.cpp.

References CoolInterface, DrawWrappedText(), ITEM_HEIGHT, CCoolInterface::m_crBackCheckSel, CCoolInterface::m_crBackNormal, CCoolInterface::m_crBackSel, CCoolInterface::m_crBorder, CCoolInterface::m_crCmdText, CCoolInterface::m_crCmdTextSel, CCoolInterface::m_crShadow, m_fntBold, m_fntSmall, m_nDown, m_nHover, m_pImages, m_pPrompts, m_pTitles, NULL, and TEXT_MARGIN.

Referenced by OnPaint().

BOOL CLanguageDlg::PreTranslateMessage MSG *  pMsg  )  [virtual]
 

Definition at line 442 of file DlgLanguage.cpp.

References OnKeyDown().


Member Data Documentation

BOOL CLanguageDlg::m_bKeyMode [protected]
 

Definition at line 50 of file DlgLanguage.h.

Referenced by OnInitDialog(), OnKeyDown(), OnMouseMove(), and OnTimer().

CBitmap CLanguageDlg::m_bmHeader [protected]
 

Definition at line 57 of file DlgLanguage.h.

Referenced by OnInitDialog(), and OnPaint().

CFont CLanguageDlg::m_fntBold [protected]
 

Definition at line 53 of file DlgLanguage.h.

Referenced by OnInitDialog(), and PaintItem().

CFont CLanguageDlg::m_fntNormal [protected]
 

Definition at line 52 of file DlgLanguage.h.

Referenced by OnInitDialog(), and OnPaint().

CFont CLanguageDlg::m_fntSmall [protected]
 

Definition at line 54 of file DlgLanguage.h.

Referenced by OnInitDialog(), and PaintItem().

HCURSOR CLanguageDlg::m_hArrow [protected]
 

Definition at line 55 of file DlgLanguage.h.

Referenced by OnInitDialog(), and OnSetCursor().

HCURSOR CLanguageDlg::m_hHand [protected]
 

Definition at line 56 of file DlgLanguage.h.

Referenced by OnInitDialog(), and OnSetCursor().

int CLanguageDlg::m_nDown [protected]
 

Definition at line 49 of file DlgLanguage.h.

Referenced by OnInitDialog(), OnKeyDown(), OnLButtonDown(), OnLButtonUp(), OnVScroll(), and PaintItem().

int CLanguageDlg::m_nHover [protected]
 

Definition at line 48 of file DlgLanguage.h.

Referenced by OnInitDialog(), OnKeyDown(), OnLButtonDown(), OnLButtonUp(), OnMouseMove(), OnTimer(), OnVScroll(), and PaintItem().

CStringArray CLanguageDlg::m_pGUIDirs [protected]
 

Definition at line 45 of file DlgLanguage.h.

Referenced by AddSkin(), and Execute().

CImageList CLanguageDlg::m_pImages [protected]
 

Definition at line 47 of file DlgLanguage.h.

Referenced by AddEnglishDefault(), AddSkin(), OnInitDialog(), and PaintItem().

CStringArray CLanguageDlg::m_pLangCodes [protected]
 

Definition at line 46 of file DlgLanguage.h.

Referenced by AddSkin(), and Execute().

CStringArray CLanguageDlg::m_pPaths [protected]
 

Definition at line 42 of file DlgLanguage.h.

Referenced by AddEnglishDefault(), AddSkin(), Execute(), OnInitDialog(), OnKeyDown(), and OnPaint().

CStringArray CLanguageDlg::m_pPrompts [protected]
 

Definition at line 44 of file DlgLanguage.h.

Referenced by AddEnglishDefault(), AddSkin(), and PaintItem().

CStringArray CLanguageDlg::m_pTitles [protected]
 

Definition at line 43 of file DlgLanguage.h.

Referenced by AddEnglishDefault(), AddSkin(), and PaintItem().


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