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

CSkin Class Reference

#include <Skin.h>

List of all members.

Public Member Functions

 CSkin ()
virtual ~CSkin ()
void Apply ()
void Clear ()
BOOL LoadFromFile (LPCTSTR pszFile)
BOOL LoadFromResource (HINSTANCE hInstance, UINT nResourceID)
BOOL LoadFromString (const CString &strXML, const CString &strPath)
BOOL LoadFromXML (CXMLElement *pXML, const CString &strPath)
BOOL SelectCaption (CWnd *pWnd, int nIndex)
BOOL SelectCaption (CString &strCaption, int nIndex)
void DrawWrappedText (CDC *pDC, CRect *pBox, LPCTSTR pszText, CPoint ptStart, BOOL bExclude=TRUE)
BOOL LoadString (CString &str, UINT nStringID)
int GetTextFlowChange (LPCTSTR pszText, BOOL *bIsRTL)
CMenu * GetMenu (LPCTSTR pszName)
UINT TrackPopupMenu (LPCTSTR pszMenu, const CPoint &point, UINT nDefaultID=0, UINT nFlags=0)
BOOL CreateToolBar (LPCTSTR pszName, CCoolBarCtrl *pBar)
CXMLElementGetDocument (LPCTSTR pszName)
HBITMAP GetWatermark (LPCTSTR pszName)
BOOL GetWatermark (CBitmap *pBitmap, LPCTSTR pszName)
BOOL Translate (LPCTSTR pszName, CHeaderCtrl *pCtrl)
BOOL Apply (LPCTSTR pszName, CDialog *pDialog, UINT nIconID=0)
CString GetDialogCaption (LPCTSTR pszName)
CSkinWindowGetWindowSkin (LPCTSTR pszWindow, LPCTSTR pszAppend=NULL)
CSkinWindowGetWindowSkin (CWnd *pWnd)

Public Attributes

CMapStringToPtr m_pMenus
CMapStringToPtr m_pToolbars
COLORREF m_crDialog
CBrush m_brDialog
COLORREF m_crPanelBack
CBitmap m_bmPanelMark
COLORREF m_crPanelText
COLORREF m_crPanelBorder
COLORREF m_crBannerBack
COLORREF m_crBannerText
COLORREF m_crSchemaRow [2]

Protected Member Functions

void ApplyRecursive (LPCTSTR pszPath)
void CreateDefault ()
void Finalise ()
HBITMAP LoadBitmap (CString &strName)
BOOL LoadStrings (CXMLElement *pBase)
BOOL LoadMenus (CXMLElement *pBase)
BOOL LoadMenu (CXMLElement *pXML)
BOOL CreateMenu (CXMLElement *pXML, HMENU hMenu)
BOOL LoadToolbars (CXMLElement *pBase)
BOOL CreateToolBar (CXMLElement *pElement)
BOOL LoadDocuments (CXMLElement *pBase)
BOOL LoadWatermarks (CXMLElement *pSub, const CString &strPath)
BOOL LoadListColumns (CXMLElement *pBase)
BOOL LoadDialogs (CXMLElement *pBase)
BOOL LoadWindowSkins (CXMLElement *pSub, const CString &strPath)
BOOL LoadColourScheme (CXMLElement *pBase)
BOOL LoadFonts (CXMLElement *pBase, const CString &strPath)
UINT LookupCommandID (CXMLElement *pXML, LPCTSTR pszName=NULL)
BOOL LoadCommandMap (CXMLElement *pBase)
BOOL LoadCommandImages (CXMLElement *pBase, const CString &strPath)
BOOL LoadCommandBitmap (CXMLElement *pBase, const CString &strPath)

Protected Attributes

CMap< UINT, UINT, CString,
CString & > 
m_pStrings
CMenu m_mnuDefault
CMapStringToPtr m_pDocuments
CMapStringToString m_pWatermarks
CMapStringToString m_pLists
CMapStringToPtr m_pDialogs
CPtrList m_pSkins
CStringList m_pFontPaths

Static Protected Attributes

static LPCTSTR m_pszModeSuffix [3][4]


Constructor & Destructor Documentation

CSkin::CSkin  ) 
 

Definition at line 48 of file Skin.cpp.

CSkin::~CSkin  )  [virtual]
 

Definition at line 52 of file Skin.cpp.

References Clear().


Member Function Documentation

BOOL CSkin::Apply LPCTSTR  pszName,
CDialog *  pDialog,
UINT  nIconID = 0
 

Definition at line 801 of file Skin.cpp.

References _tcsistr(), CoolInterface, CCoolInterface::ExtractIcon(), CXMLElement::GetAttributeValue(), CXMLNode::IsNamed(), CShareazaApp::m_bRTL, m_pDialogs, NULL, Replace(), Split(), and theApp.

void CSkin::Apply  ) 
 

Definition at line 60 of file Skin.cpp.

References ApplyRecursive(), CreateDefault(), Finalise(), and NULL.

Referenced by CSettingsPage::OnInitDialog(), CWizardWelcomePage::OnInitDialog(), CWizardSharePage::OnInitDialog(), CWizardProfilePage::OnInitDialog(), CWizardNetworksPage::OnInitDialog(), CWizardInterfacePage::OnInitDialog(), CWizardFinishedPage::OnInitDialog(), CWizardConnectionPage::OnInitDialog(), CRichSettingsPage::OnInitDialog(), CFilePropertiesPage::OnInitDialog(), CMainWnd::OnSkinChanged(), and CSkinDialog::SkinMe().

void CSkin::ApplyRecursive LPCTSTR  pszPath  )  [protected]
 

Definition at line 165 of file Skin.cpp.

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

Referenced by Apply().

void CSkin::Clear  ) 
 

Definition at line 70 of file Skin.cpp.

References m_bmPanelMark, m_brDialog, m_pDialogs, m_pDocuments, m_pFontPaths, m_pLists, m_pMenus, m_pSkins, m_pStrings, m_pToolbars, m_pWatermarks, and NULL.

Referenced by CreateDefault(), CShareazaApp::ExitInstance(), and ~CSkin().

void CSkin::CreateDefault  )  [protected]
 

Definition at line 1437 of file Skin.cpp.

References CCoolInterface::AddIcon(), CCoolInterface::CalculateColours(), CCoolInterface::Clear(), Clear(), CoolInterface, CCoolInterface::CopyIcon(), CCoolInterface::CreateFonts(), CreateMirroredIcon(), CSettings::General, CCoolInterface::GetDialogBkColor(), ID_CHECKMARK, ID_HELP_FAQ, ID_HELP_GUIDE, ID_HELP_UPDATE, ID_HELP_WEB_1, ID_HELP_WEB_2, ID_HELP_WEB_3, ID_HELP_WEB_4, ID_HELP_WEB_5, ID_HELP_WEB_6, IDI_CHECKMARK, IDR_MAINFRAME, IDR_POPUPS, IDR_XML_DEFAULT, IDR_XML_DEFINITIONS, CSettings::sGeneral::Language, LoadFromResource(), CShareazaApp::m_bRTL, m_crBannerBack, m_crBannerText, m_crDialog, m_crPanelBack, m_crPanelBorder, m_crPanelText, m_crSchemaRow, m_mnuDefault, m_pMenus, NULL, Plugins, CPlugins::RegisterCommands(), Settings, and theApp.

Referenced by Apply().

BOOL CSkin::CreateMenu CXMLElement pXML,
HMENU  hMenu
[protected]
 

Definition at line 476 of file Skin.cpp.

References CXMLElement::GetAttributeValue(), ID_SEPARATOR, CXMLNode::IsNamed(), LookupCommandID(), and NULL.

Referenced by LoadMenu().

BOOL CSkin::CreateToolBar CXMLElement pElement  )  [protected]
 

Definition at line 577 of file Skin.cpp.

References CCoolBarCtrl::Add(), CXMLElement::GetAttributeValue(), CXMLElement::GetElementIterator(), CXMLElement::GetNextElement(), ID_RIGHTALIGN, ID_SEPARATOR, CXMLNode::IsNamed(), LookupCommandID(), CCoolBarItem::m_crText, m_pToolbars, NULL, CCoolBarItem::SetTip(), and CCoolBarItem::Show().

BOOL CSkin::CreateToolBar LPCTSTR  pszName,
CCoolBarCtrl pBar
 

Definition at line 521 of file Skin.cpp.

References CCoolBarCtrl::Clear(), CCoolBarCtrl::Copy(), CSettings::General, CSettings::sGeneral::GUIMode, LoadBitmap(), m_pszModeSuffix, m_pToolbars, m_pWatermarks, NULL, Settings, and CCoolBarCtrl::SetWatermark().

Referenced by LoadToolbars(), CUploadsWnd::OnSkinChange(), CSearchWnd::OnSkinChange(), CNeighboursWnd::OnSkinChange(), CHostCacheWnd::OnSkinChange(), CHitMonitorWnd::OnSkinChange(), CHelpWnd::OnSkinChange(), CDownloadsWnd::OnSkinChange(), CBrowseHostWnd::OnSkinChange(), CPrivateChatFrame::OnSkinChange(), CMediaFrame::OnSkinChange(), CLibraryFrame::OnSkinChange(), CBrowseHeaderCtrl::OnSkinChange(), CBrowseFrameCtrl::OnSkinChange(), CMainWnd::OnSkinChanged(), and CLibraryFrame::SetView().

void CSkin::DrawWrappedText CDC *  pDC,
CRect *  pBox,
LPCTSTR  pszText,
CPoint  ptStart,
BOOL  bExclude = TRUE
 

Definition at line 1610 of file Skin.cpp.

References GetTextFlowChange(), CShareazaApp::m_bRTL, NULL, and theApp.

Referenced by CLibraryHeaderPanel::DoPaint(), CBrowseHeaderCtrl::DoPaint(), CMetaPanel::Layout(), and CMetaPanel::Paint().

void CSkin::Finalise  )  [protected]
 

Definition at line 1495 of file Skin.cpp.

References CoolMenu, GetWatermark(), IDB_PANEL_MARK, m_bmPanelMark, m_brDialog, m_crDialog, m_crPanelBack, CPlugins::OnSkinChanged(), Plugins, and CCoolMenu::SetWatermark().

Referenced by Apply().

CString CSkin::GetDialogCaption LPCTSTR  pszName  ) 
 

Definition at line 992 of file Skin.cpp.

References m_pDialogs, and NULL.

Referenced by CSettingsManagerDlg::AddGroup(), CProfileManagerDlg::AddGroup(), CSettingsManagerDlg::AddPage(), CProfileManagerDlg::AddPage(), and CFilePropertiesSheet::DoModal().

CXMLElement * CSkin::GetDocument LPCTSTR  pszName  ) 
 

Definition at line 673 of file Skin.cpp.

References m_pDocuments, and NULL.

Referenced by CRichSettingsPage::CRichSettingsPage(), CIdentityProfilePage::GetGenderTranslations(), CHelpDlg::OnInitDialog(), CBrowseProfileCtrl::OnSkinChange(), CHomeViewCtrl::Setup(), CHomeTorrentsBox::Setup(), CHomeConnectionBox::Setup(), CHomeUploadsBox::Setup(), CHomeLibraryBox::Setup(), and CHomeDownloadsBox::Setup().

CMenu * CSkin::GetMenu LPCTSTR  pszName  ) 
 

Definition at line 402 of file Skin.cpp.

References CSettings::General, CSettings::sGeneral::GUIMode, m_mnuDefault, m_pMenus, m_pszModeSuffix, NULL, and Settings.

Referenced by CMainWnd::OnContextMenu(), CDownloadMonitorDlg::OnContextMenu(), CDownloadsWnd::OnDownloadsFilterMenu(), CMediaFrame::OnMediaZoom(), CRemoteWnd::OnRButtonDown(), CMainWnd::OnSkinChanged(), CMainWnd::OnTray(), CUploadsWnd::OnUploadsFilterMenu(), and TrackPopupMenu().

int CSkin::GetTextFlowChange LPCTSTR  pszText,
BOOL *  bIsRTL
 

Definition at line 1544 of file Skin.cpp.

References TS_FALSE, TS_TRUE, and TS_UNKNOWN.

Referenced by DrawWrappedText(), and CCoolBarCtrl::OnToolHitTest().

BOOL CSkin::GetWatermark CBitmap *  pBitmap,
LPCTSTR  pszName
 

Definition at line 692 of file Skin.cpp.

References GetWatermark(), and NULL.

HBITMAP CSkin::GetWatermark LPCTSTR  pszName  ) 
 

Definition at line 685 of file Skin.cpp.

References LoadBitmap(), m_pWatermarks, and NULL.

Referenced by CWebCtrl::EnableCoolMenu(), Finalise(), GetWatermark(), CPacketWnd::OnContextMenu(), CBaseMatchWnd::OnContextMenu(), CLibraryDetailView::OnContextMenu(), CLibraryHeaderBar::OnLibraryView(), CSearchPanel::OnSkinChange(), CMonitorBarCtrl::OnSkinChange(), CLibraryHeaderPanel::OnSkinChange(), CMainWnd::OnSkinChanged(), CHomeViewCtrl::Setup(), CHomeTorrentsBox::Setup(), CHomeConnectionBox::Setup(), CHomeUploadsBox::Setup(), CHomeLibraryBox::Setup(), CHomeDownloadsBox::Setup(), and CHomePanel::Setup().

CSkinWindow * CSkin::GetWindowSkin CWnd *  pWnd  ) 
 

Definition at line 1043 of file Skin.cpp.

References CSettings::General, GetWindowSkin(), CSettings::sGeneral::GUIMode, CChildWnd::m_bPanelMode, m_pszModeSuffix, NULL, and Settings.

CSkinWindow * CSkin::GetWindowSkin LPCTSTR  pszWindow,
LPCTSTR  pszAppend = NULL
 

Definition at line 1029 of file Skin.cpp.

References m_pSkins, CSkinWindow::m_sTargets, and NULL.

Referenced by GetWindowSkin(), CFilePropertiesSheet::OnInitDialog(), CPluginWnd::OnSkinChange(), CRemoteWnd::OnSkinChange(), CChildWnd::OnSkinChange(), CMainTabBarCtrl::OnSkinChange(), CMainWnd::OnSkinChanged(), and CSkinDialog::SkinMe().

HBITMAP CSkin::LoadBitmap CString &  strName  )  [protected]
 

Definition at line 1745 of file Skin.cpp.

References CImageFile::CreateBitmap(), CImageFile::EnsureRGB(), CImageFile::LoadFromFile(), CImageFile::LoadFromResource(), and NULL.

Referenced by CreateToolBar(), GetWatermark(), and LoadCommandBitmap().

BOOL CSkin::LoadColourScheme CXMLElement pBase  )  [protected]
 

Definition at line 1108 of file Skin.cpp.

References CCoolInterface::CalculateColours(), CoolInterface, CXMLElement::GetAttributeValue(), CXMLNode::IsNamed(), CCoolInterface::m_crBackCheck, CCoolInterface::m_crBackCheckSel, CCoolInterface::m_crBackNormal, CCoolInterface::m_crBackSel, m_crBannerBack, m_crBannerText, CCoolInterface::m_crBorder, CCoolInterface::m_crCmdText, CCoolInterface::m_crCmdTextSel, m_crDialog, CCoolInterface::m_crDisabled, CCoolInterface::m_crHighlight, CCoolInterface::m_crHiText, CCoolInterface::m_crMargin, CCoolInterface::m_crMidtone, m_crPanelBack, m_crPanelBorder, m_crPanelText, m_crSchemaRow, CCoolInterface::m_crShadow, CCoolInterface::m_crTaskBoxCaptionBack, CCoolInterface::m_crTaskBoxCaptionHover, CCoolInterface::m_crTaskBoxCaptionText, CCoolInterface::m_crTaskBoxClient, CCoolInterface::m_crTaskBoxPrimaryBack, CCoolInterface::m_crTaskBoxPrimaryText, CCoolInterface::m_crTaskPanelBack, CCoolInterface::m_crText, CCoolInterface::m_crTipBack, CCoolInterface::m_crTipBorder, CCoolInterface::m_crTipText, CCoolInterface::m_crTipWarnings, and CCoolInterface::m_crWindow.

Referenced by LoadFromXML().

BOOL CSkin::LoadCommandBitmap CXMLElement pBase,
const CString &  strPath
[protected]
 

Definition at line 1371 of file Skin.cpp.

References CCoolInterface::ConfirmImageList(), CoolInterface, CreateMirroredBitmap(), CXMLElement::GetAttributeValue(), CXMLNode::IsNamed(), LoadBitmap(), LookupCommandID(), CShareazaApp::m_bRTL, CCoolInterface::m_pImageMap, CCoolInterface::m_pImages, NULL, and theApp.

Referenced by LoadCommandImages().

BOOL CSkin::LoadCommandImages CXMLElement pBase,
const CString &  strPath
[protected]
 

Definition at line 1323 of file Skin.cpp.

References CCoolInterface::AddIcon(), CoolInterface, CreateMirroredIcon(), CXMLNode::IsNamed(), LoadCommandBitmap(), LookupCommandID(), CShareazaApp::m_bRTL, NULL, and theApp.

Referenced by LoadFromXML().

BOOL CSkin::LoadCommandMap CXMLElement pBase  )  [protected]
 

Definition at line 1215 of file Skin.cpp.

References CoolInterface, CXMLElement::GetAttributeValue(), CXMLNode::IsNamed(), and CCoolInterface::NameCommand().

Referenced by LoadFromXML().

BOOL CSkin::LoadDialogs CXMLElement pBase  )  [protected]
 

Definition at line 1005 of file Skin.cpp.

References CXMLElement::Detach(), CXMLElement::GetAttributeValue(), CXMLNode::IsNamed(), and m_pDialogs.

Referenced by LoadFromXML().

BOOL CSkin::LoadDocuments CXMLElement pBase  )  [protected]
 

Definition at line 655 of file Skin.cpp.

References CXMLElement::Detach(), CXMLElement::GetAttributeValue(), CXMLNode::IsNamed(), m_pDocuments, and NULL.

Referenced by LoadFromXML().

BOOL CSkin::LoadFonts CXMLElement pBase,
const CString &  strPath
[protected]
 

Definition at line 1241 of file Skin.cpp.

References CoolInterface, CXMLElement::GetAttributeValue(), CXMLNode::IsNamed(), CCoolInterface::m_fntBold, CCoolInterface::m_fntCaption, CCoolInterface::m_fntNormal, m_pFontPaths, and NULL.

Referenced by LoadFromXML().

BOOL CSkin::LoadFromFile LPCTSTR  pszFile  ) 
 

Definition at line 210 of file Skin.cpp.

References CXMLElement::FromFile(), LoadFromXML(), and NULL.

Referenced by ApplyRecursive().

BOOL CSkin::LoadFromResource HINSTANCE  hInstance,
UINT  nResourceID
 

Definition at line 226 of file Skin.cpp.

References LoadFromString(), and NULL.

Referenced by CreateDefault().

BOOL CSkin::LoadFromString const CString &  strXML,
const CString &  strPath
 

Definition at line 251 of file Skin.cpp.

References CXMLElement::FromString(), LoadFromXML(), and NULL.

Referenced by LoadFromResource().

BOOL CSkin::LoadFromXML CXMLElement pXML,
const CString &  strPath
 

Definition at line 262 of file Skin.cpp.

References CSettings::General, CXMLElement::GetAttributeValue(), CXMLElement::GetElementIterator(), CXMLElement::GetNextElement(), CXMLNode::IsNamed(), CSettings::sGeneral::Language, LoadColourScheme(), LoadCommandImages(), LoadCommandMap(), LoadDialogs(), LoadDocuments(), LoadFonts(), LoadListColumns(), LoadMenus(), LoadStrings(), LoadToolbars(), LoadWatermarks(), LoadWindowSkins(), CShareazaApp::m_bRTL, Settings, and theApp.

Referenced by LoadFromFile(), and LoadFromString().

BOOL CSkin::LoadListColumns CXMLElement pBase  )  [protected]
 

Definition at line 764 of file Skin.cpp.

References CXMLElement::GetAttributeValue(), CXMLElement::GetElementIterator(), CXMLElement::GetNextElement(), CXMLNode::IsNamed(), and m_pLists.

Referenced by LoadFromXML().

BOOL CSkin::LoadMenu CXMLElement pXML  )  [protected]
 

Definition at line 440 of file Skin.cpp.

References CreateMenu(), CXMLElement::GetAttributeValue(), m_pMenus, and NULL.

Referenced by LoadMenus().

BOOL CSkin::LoadMenus CXMLElement pBase  )  [protected]
 

Definition at line 429 of file Skin.cpp.

References CXMLNode::IsNamed(), and LoadMenu().

Referenced by LoadFromXML().

BOOL CSkin::LoadString CString &  str,
UINT  nStringID
 

Definition at line 345 of file Skin.cpp.

References m_pStrings.

Referenced by CMatchCtrl::DrawEmptyMessage(), CFileExecutor::Execute(), LoadSourcesString(), LoadString(), CGraphItemDlg::OnInitDialog(), CLibraryTileView::OnLibraryAlbumDelete(), CLibraryFileView::OnLibraryBitziDownload(), CBaseMatchWnd::OnLibraryBitziWeb(), CLibraryTreeView::OnLibraryFolderDelete(), CLibraryHeaderBar::OnLibraryView(), CMediaListCtrl::OnMediaAdd(), CMediaListCtrl::OnMediaOpen(), CWizardSharePage::OnShareAdd(), CShareManagerDlg::OnShareAdd(), CPluginWnd::OnSkinChange(), CSkinsSettingsPage::OnSkinsDelete(), CURLActionDlg::OnUrlDownload(), CWizardSharePage::OnWizardNext(), CMediaFrame::Prepare(), CGraphItem::SetCode(), CWndTabBar::SetMessage(), CMatchCtrl::SetMessage(), CFileExecutor::ShowBitziTicket(), CSystemWnd::ShowStartupText(), CLibraryHeaderBar::Update(), and CSearchWnd::UpdateMessages().

BOOL CSkin::LoadStrings CXMLElement pBase  )  [protected]
 

Definition at line 353 of file Skin.cpp.

References CXMLElement::GetAttributeValue(), IDS_DOWNLOAD_FRAGMENT_REQUEST, IDS_DOWNLOAD_USEFUL_RANGE, IDS_DOWNLOAD_VERIFY_DROP, IDS_UPLOAD_CONTENT, IDS_UPLOAD_PARTIAL_CONTENT, CXMLNode::IsNamed(), LookupCommandID(), m_pStrings, and Replace().

Referenced by LoadFromXML().

BOOL CSkin::LoadToolbars CXMLElement pBase  )  [protected]
 

Definition at line 566 of file Skin.cpp.

References CreateToolBar(), and CXMLNode::IsNamed().

Referenced by LoadFromXML().

BOOL CSkin::LoadWatermarks CXMLElement pSub,
const CString &  strPath
[protected]
 

Definition at line 701 of file Skin.cpp.

References CXMLElement::GetAttributeValue(), CXMLNode::IsNamed(), and m_pWatermarks.

Referenced by LoadFromXML().

BOOL CSkin::LoadWindowSkins CXMLElement pSub,
const CString &  strPath
[protected]
 

Definition at line 1081 of file Skin.cpp.

References CXMLNode::IsNamed(), m_pSkins, and CSkinWindow::Parse().

Referenced by LoadFromXML().

UINT CSkin::LookupCommandID CXMLElement pXML,
LPCTSTR  pszName = NULL
[protected]
 

Definition at line 1195 of file Skin.cpp.

References CoolInterface, and CCoolInterface::NameToID().

Referenced by CreateMenu(), CreateToolBar(), LoadCommandBitmap(), LoadCommandImages(), and LoadStrings().

BOOL CSkin::SelectCaption CString &  strCaption,
int  nIndex
 

Definition at line 144 of file Skin.cpp.

BOOL CSkin::SelectCaption CWnd *  pWnd,
int  nIndex
 

Definition at line 130 of file Skin.cpp.

Referenced by CSearchResultsBox::OnPaint(), and CSkinDialog::SelectCaption().

UINT CSkin::TrackPopupMenu LPCTSTR  pszMenu,
const CPoint &  point,
UINT  nDefaultID = 0,
UINT  nFlags = 0
 

Definition at line 1516 of file Skin.cpp.

References GetMenu(), and NULL.

Referenced by CPrivateChatFrame::OnContextMenu(), CMediaListCtrl::OnContextMenu(), CMediaFrame::OnContextMenu(), CLibraryTreeView::OnContextMenu(), CLibraryTileView::OnContextMenu(), CLibraryFileView::OnContextMenu(), CDownloadTabBar::OnRButtonUp(), CLibraryCollectionView::OnWebContextMenu(), and CChildWnd::TrackPopupMenu().

BOOL CSkin::Translate LPCTSTR  pszName,
CHeaderCtrl *  pCtrl
 

Definition at line 726 of file Skin.cpp.

References _tcsistr(), CShareazaApp::m_bRTL, m_pLists, and theApp.

Referenced by CSettings::LoadList(), CLibraryDetailView::OnCreate(), CUploadsSettingsPage::OnInitDialog(), CAdvancedSettingsPage::OnInitDialog(), CFavouritesProfilePage::OnInitDialog(), CFileSourcesPage::OnInitDialog(), CTorrentTrackerDlg::OnInitDialog(), CDownloadReviewDlg::OnInitDialog(), CUploadsWnd::OnSkinChange(), CSearchWnd::OnSkinChange(), CHitMonitorWnd::OnSkinChange(), CDownloadsWnd::OnSkinChange(), and CBrowseFrameCtrl::OnSkinChange().


Member Data Documentation

CBitmap CSkin::m_bmPanelMark
 

Definition at line 128 of file Skin.h.

Referenced by Clear(), Finalise(), and CPanelWnd::PaintCaption().

CBrush CSkin::m_brDialog
 

Definition at line 126 of file Skin.h.

Referenced by Clear(), Finalise(), CSettingsPage::OnCtlColor(), CSkinDialog::OnCtlColor(), and CFilePropertiesPage::OnCtlColor().

COLORREF CSkin::m_crBannerBack
 

Definition at line 131 of file Skin.h.

Referenced by CreateDefault(), CBrowseHeaderCtrl::DoPaint(), LoadColourScheme(), CSearchWnd::OnPaint(), CLibraryHistoryPanel::OnPaint(), CLibraryHeaderPanel::OnPaint(), CLibraryHeaderPanel::OnSkinChange(), CBrowseHeaderCtrl::OnSkinChange(), and CFilePropertiesPage::PaintStaticHeader().

COLORREF CSkin::m_crBannerText
 

Definition at line 132 of file Skin.h.

Referenced by CreateDefault(), CLibraryHeaderPanel::DoPaint(), CBrowseHeaderCtrl::DoPaint(), LoadColourScheme(), CSearchWnd::OnPaint(), CLibraryHistoryPanel::OnPaint(), and CFilePropertiesPage::PaintStaticHeader().

COLORREF CSkin::m_crDialog
 

Definition at line 125 of file Skin.h.

Referenced by CreateDefault(), CDownloadMonitorDlg::DrawProgressBar(), Finalise(), LoadColourScheme(), CSettingsPage::OnCtlColor(), CSkinDialog::OnCtlColor(), CFilePropertiesPage::OnCtlColor(), CSettingsPage::OnEraseBkgnd(), CSkinDialog::OnEraseBkgnd(), CHelpDlg::OnInitDialog(), and CFilePropertiesSheet::OnInitDialog().

COLORREF CSkin::m_crPanelBack
 

Definition at line 127 of file Skin.h.

Referenced by CreateDefault(), Finalise(), LoadColourScheme(), CSearchPadWnd::OnPaint(), and CPanelWnd::PaintCaption().

COLORREF CSkin::m_crPanelBorder
 

Definition at line 130 of file Skin.h.

Referenced by CreateDefault(), LoadColourScheme(), and CPanelWnd::PaintCaption().

COLORREF CSkin::m_crPanelText
 

Definition at line 129 of file Skin.h.

Referenced by CreateDefault(), LoadColourScheme(), and CPanelWnd::PaintCaption().

COLORREF CSkin::m_crSchemaRow[2]
 

Definition at line 133 of file Skin.h.

Referenced by CreateDefault(), LoadColourScheme(), CSchemaCtrl::OnPaint(), CLibraryHistoryPanel::OnPaint(), CLibraryAlbumView::OnPaint(), and CMetaPanel::Paint().

CMenu CSkin::m_mnuDefault [protected]
 

Definition at line 75 of file Skin.h.

Referenced by CreateDefault(), and GetMenu().

CMapStringToPtr CSkin::m_pDialogs [protected]
 

Definition at line 113 of file Skin.h.

Referenced by Apply(), Clear(), GetDialogCaption(), and LoadDialogs().

CMapStringToPtr CSkin::m_pDocuments [protected]
 

Definition at line 90 of file Skin.h.

Referenced by Clear(), GetDocument(), and LoadDocuments().

CStringList CSkin::m_pFontPaths [protected]
 

Definition at line 139 of file Skin.h.

Referenced by Clear(), and LoadFonts().

CMapStringToString CSkin::m_pLists [protected]
 

Definition at line 105 of file Skin.h.

Referenced by Clear(), LoadListColumns(), and Translate().

CMapStringToPtr CSkin::m_pMenus
 

Definition at line 70 of file Skin.h.

Referenced by Clear(), CreateDefault(), GetMenu(), and LoadMenu().

CPtrList CSkin::m_pSkins [protected]
 

Definition at line 121 of file Skin.h.

Referenced by Clear(), GetWindowSkin(), and LoadWindowSkins().

CMap<UINT, UINT, CString, CString&> CSkin::m_pStrings [protected]
 

Definition at line 64 of file Skin.h.

Referenced by Clear(), LoadString(), and LoadStrings().

LPCTSTR CSkin::m_pszModeSuffix [static, protected]
 

Initial value:

{
        { _T(".Windowed"), _T(""), NULL, NULL },                        
        { _T(".Tabbed"), _T(""), NULL, NULL },                          
        { _T(".Basic"), _T(".Tabbed"), _T(""), NULL }           
}

Definition at line 1780 of file Skin.cpp.

Referenced by CreateToolBar(), GetMenu(), and GetWindowSkin().

CMapStringToPtr CSkin::m_pToolbars
 

Definition at line 80 of file Skin.h.

Referenced by Clear(), and CreateToolBar().

CMapStringToString CSkin::m_pWatermarks [protected]
 

Definition at line 98 of file Skin.h.

Referenced by Clear(), CreateToolBar(), GetWatermark(), and LoadWatermarks().


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