#include <Skin.h>
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) |
CXMLElement * | GetDocument (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) |
CSkinWindow * | GetWindowSkin (LPCTSTR pszWindow, LPCTSTR pszAppend=NULL) |
CSkinWindow * | GetWindowSkin (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] |
|
|
|
Definition at line 52 of file Skin.cpp. References Clear(). |
|
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. |
|
|
Definition at line 165 of file Skin.cpp. References _tcsistr(), CSettings::General, LoadFromFile(), NULL, CSettings::sGeneral::Path, Settings, and theApp. Referenced by Apply(). |
|
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(). |
|
|
Definition at line 476 of file Skin.cpp. References CXMLElement::GetAttributeValue(), ID_SEPARATOR, CXMLNode::IsNamed(), LookupCommandID(), and NULL. Referenced by LoadMenu(). |
|
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(). |
|
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
Definition at line 1544 of file Skin.cpp. References TS_FALSE, TS_TRUE, and TS_UNKNOWN. Referenced by DrawWrappedText(), and CCoolBarCtrl::OnToolHitTest(). |
|
Definition at line 692 of file Skin.cpp. References GetWatermark(), and NULL. |
|
|
Definition at line 1043 of file Skin.cpp. References CSettings::General, GetWindowSkin(), CSettings::sGeneral::GUIMode, CChildWnd::m_bPanelMode, m_pszModeSuffix, NULL, and Settings. |
|
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(). |
|
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(). |
|
|
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(). |
|
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(). |
|
Definition at line 1215 of file Skin.cpp. References CoolInterface, CXMLElement::GetAttributeValue(), CXMLNode::IsNamed(), and CCoolInterface::NameCommand(). Referenced by LoadFromXML(). |
|
Definition at line 1005 of file Skin.cpp. References CXMLElement::Detach(), CXMLElement::GetAttributeValue(), CXMLNode::IsNamed(), and m_pDialogs. Referenced by LoadFromXML(). |
|
Definition at line 655 of file Skin.cpp. References CXMLElement::Detach(), CXMLElement::GetAttributeValue(), CXMLNode::IsNamed(), m_pDocuments, and NULL. Referenced by LoadFromXML(). |
|
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(). |
|
Definition at line 210 of file Skin.cpp. References CXMLElement::FromFile(), LoadFromXML(), and NULL. Referenced by ApplyRecursive(). |
|
Definition at line 226 of file Skin.cpp. References LoadFromString(), and NULL. Referenced by CreateDefault(). |
|
Definition at line 251 of file Skin.cpp. References CXMLElement::FromString(), LoadFromXML(), and NULL. Referenced by LoadFromResource(). |
|
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(). |
|
Definition at line 764 of file Skin.cpp. References CXMLElement::GetAttributeValue(), CXMLElement::GetElementIterator(), CXMLElement::GetNextElement(), CXMLNode::IsNamed(), and m_pLists. Referenced by LoadFromXML(). |
|
Definition at line 440 of file Skin.cpp. References CreateMenu(), CXMLElement::GetAttributeValue(), m_pMenus, and NULL. Referenced by LoadMenus(). |
|
Definition at line 429 of file Skin.cpp. References CXMLNode::IsNamed(), and LoadMenu(). Referenced by LoadFromXML(). |
|
|
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(). |
|
Definition at line 566 of file Skin.cpp. References CreateToolBar(), and CXMLNode::IsNamed(). Referenced by LoadFromXML(). |
|
Definition at line 701 of file Skin.cpp. References CXMLElement::GetAttributeValue(), CXMLNode::IsNamed(), and m_pWatermarks. Referenced by LoadFromXML(). |
|
Definition at line 1081 of file Skin.cpp. References CXMLNode::IsNamed(), m_pSkins, and CSkinWindow::Parse(). Referenced by LoadFromXML(). |
|
Definition at line 1195 of file Skin.cpp. References CoolInterface, and CCoolInterface::NameToID(). Referenced by CreateMenu(), CreateToolBar(), LoadCommandBitmap(), LoadCommandImages(), and LoadStrings(). |
|
|
|
Definition at line 130 of file Skin.cpp. Referenced by CSearchResultsBox::OnPaint(), and CSkinDialog::SelectCaption(). |
|
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(). |
|
|
Definition at line 128 of file Skin.h. Referenced by Clear(), Finalise(), and CPanelWnd::PaintCaption(). |
|
Definition at line 126 of file Skin.h. Referenced by Clear(), Finalise(), CSettingsPage::OnCtlColor(), CSkinDialog::OnCtlColor(), and CFilePropertiesPage::OnCtlColor(). |
|
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(). |
|
Definition at line 132 of file Skin.h. Referenced by CreateDefault(), CLibraryHeaderPanel::DoPaint(), CBrowseHeaderCtrl::DoPaint(), LoadColourScheme(), CSearchWnd::OnPaint(), CLibraryHistoryPanel::OnPaint(), and CFilePropertiesPage::PaintStaticHeader(). |
|
|
Definition at line 127 of file Skin.h. Referenced by CreateDefault(), Finalise(), LoadColourScheme(), CSearchPadWnd::OnPaint(), and CPanelWnd::PaintCaption(). |
|
Definition at line 130 of file Skin.h. Referenced by CreateDefault(), LoadColourScheme(), and CPanelWnd::PaintCaption(). |
|
Definition at line 129 of file Skin.h. Referenced by CreateDefault(), LoadColourScheme(), and CPanelWnd::PaintCaption(). |
|
Definition at line 133 of file Skin.h. Referenced by CreateDefault(), LoadColourScheme(), CSchemaCtrl::OnPaint(), CLibraryHistoryPanel::OnPaint(), CLibraryAlbumView::OnPaint(), and CMetaPanel::Paint(). |
|
Definition at line 75 of file Skin.h. Referenced by CreateDefault(), and GetMenu(). |
|
Definition at line 113 of file Skin.h. Referenced by Apply(), Clear(), GetDialogCaption(), and LoadDialogs(). |
|
Definition at line 90 of file Skin.h. Referenced by Clear(), GetDocument(), and LoadDocuments(). |
|
Definition at line 139 of file Skin.h. Referenced by Clear(), and LoadFonts(). |
|
Definition at line 105 of file Skin.h. Referenced by Clear(), LoadListColumns(), and Translate(). |
|
Definition at line 70 of file Skin.h. Referenced by Clear(), CreateDefault(), GetMenu(), and LoadMenu(). |
|
Definition at line 121 of file Skin.h. Referenced by Clear(), GetWindowSkin(), and LoadWindowSkins(). |
|
Definition at line 64 of file Skin.h. Referenced by Clear(), LoadString(), and LoadStrings(). |
|
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(). |
|
Definition at line 80 of file Skin.h. Referenced by Clear(), and CreateToolBar(). |
|
Definition at line 98 of file Skin.h. Referenced by Clear(), CreateToolBar(), GetWatermark(), and LoadWatermarks(). |