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

DlgLanguage.h

Go to the documentation of this file.
00001 //
00002 // DlgLanguage.h
00003 //
00004 // Copyright (c) Shareaza Development Team, 2002-2005.
00005 // This file is part of SHAREAZA (www.shareaza.com)
00006 //
00007 // Shareaza is free software; you can redistribute it
00008 // and/or modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 2 of
00010 // the License, or (at your option) any later version.
00011 //
00012 // Shareaza is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 //
00017 // You should have received a copy of the GNU General Public License
00018 // along with Shareaza; if not, write to the Free Software
00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 //
00021 
00022 #if !defined(AFX_DLGLANGUAGE_H__51A1B5F0_47F7_4FE8_BA61_A8A8AC421054__INCLUDED_)
00023 #define AFX_DLGLANGUAGE_H__51A1B5F0_47F7_4FE8_BA61_A8A8AC421054__INCLUDED_
00024 
00025 #pragma once
00026 
00027 #include "DlgSkinDialog.h"
00028 
00029 
00030 class CLanguageDlg : public CSkinDialog
00031 {
00032 // Construction
00033 public:
00034         CLanguageDlg(CWnd* pParent = NULL);
00035 
00036 // Dialog Data
00037 public:
00038         //{{AFX_DATA(CLanguageDlg)
00039         enum { IDD = IDD_LANGUAGE };
00040         //}}AFX_DATA
00041 protected:
00042         CStringArray    m_pPaths;
00043         CStringArray    m_pTitles;
00044         CStringArray    m_pPrompts;
00045         CStringArray    m_pGUIDirs;
00046         CStringArray    m_pLangCodes;
00047         CImageList              m_pImages;
00048         int                             m_nHover;
00049         int                             m_nDown;
00050         BOOL                    m_bKeyMode;
00051 protected:
00052         CFont                   m_fntNormal;
00053         CFont                   m_fntBold;
00054         CFont                   m_fntSmall;
00055         HCURSOR                 m_hArrow;
00056         HCURSOR                 m_hHand;
00057         CBitmap                 m_bmHeader;
00058 
00059 // Overrides
00060 public:
00061         //{{AFX_VIRTUAL(CLanguageDlg)
00062         public:
00063         virtual BOOL PreTranslateMessage(MSG* pMsg);
00064         protected:
00065         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00066         //}}AFX_VIRTUAL
00067 
00068         void    PaintItem(int nItem, CDC* pDC, CRect* pRect);
00069         void    DrawWrappedText(CDC* pDC, CRect* pBox, LPCTSTR pszText);
00070         void    AddEnglishDefault();
00071         void    Enumerate(LPCTSTR pszPath = NULL);
00072         BOOL    AddSkin(LPCTSTR pszPath, LPCTSTR pszName);
00073         void    Execute(int nItem);
00074 
00075 // Implementation
00076 protected:
00077         //{{AFX_MSG(CLanguageDlg)
00078         virtual BOOL OnInitDialog();
00079         afx_msg BOOL OnEraseBkgnd(CDC* pDC);
00080         afx_msg void OnPaint();
00081         afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
00082         afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
00083         afx_msg void OnMouseMove(UINT nFlags, CPoint point);
00084         afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00085         afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
00086         afx_msg void OnTimer(UINT nIDEvent);
00087         afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
00088         afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
00089         afx_msg void OnDestroy();
00090         afx_msg void OnClose();
00091         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00092         //}}AFX_MSG
00093         DECLARE_MESSAGE_MAP()
00094 
00095 };
00096 
00097 //{{AFX_INSERT_LOCATION}}
00098 
00099 #endif // !defined(AFX_DLGLANGUAGE_H__51A1B5F0_47F7_4FE8_BA61_A8A8AC421054__INCLUDED_)

Generated on Thu Dec 15 10:39:39 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2