diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-07-05 16:58:42 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-07-05 16:58:42 +0400 |
commit | f6883a2c09507d0acb9ccbf0156e5948211dc480 (patch) | |
tree | 7789b4fecd6b2e846f070e2e0bdb1e16ea7555e9 /src/apps/mplayerc/PPageSheet.cpp | |
parent | e9b446380bc3bc122e3e3a1d0622163a5f1920a3 (diff) |
astyle formatting
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2103 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PPageSheet.cpp')
-rw-r--r-- | src/apps/mplayerc/PPageSheet.cpp | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/src/apps/mplayerc/PPageSheet.cpp b/src/apps/mplayerc/PPageSheet.cpp index e52777594..bc1a9d862 100644 --- a/src/apps/mplayerc/PPageSheet.cpp +++ b/src/apps/mplayerc/PPageSheet.cpp @@ -31,48 +31,48 @@ IMPLEMENT_DYNAMIC(CPPageSheet, CTreePropSheet)
CPPageSheet::CPPageSheet(LPCTSTR pszCaption, IFilterGraph* pFG, CWnd* pParentWnd, UINT idPage)
- : CTreePropSheet(pszCaption, pParentWnd, 0)
- , m_audioswitcher(pFG)
- , m_bLockPage(false)
+ : CTreePropSheet(pszCaption, pParentWnd, 0)
+ , m_audioswitcher(pFG)
+ , m_bLockPage(false)
{
- SetTreeWidth(180);
- AddPage(&m_player);
- AddPage(&m_formats);
- AddPage(&m_acceltbl);
- AddPage(&m_logo);
- AddPage(&m_playback);
- AddPage(&m_dvd);
- AddPage(&m_output);
- AddPage(&m_fullscreen);
- AddPage(&m_sync);
- AddPage(&m_tuner);
- AddPage(&m_webserver);
- AddPage(&m_internalfilters);
- AddPage(&m_audioswitcher);
- AddPage(&m_externalfilters);
- AddPage(&m_subtitles);
- AddPage(&m_substyle);
- AddPage(&m_subdb);
- AddPage(&m_tweaks);
- AddPage(&m_casimir);
-
- EnableStackedTabs(FALSE);
-
- SetTreeViewMode(TRUE, TRUE, FALSE);
+ SetTreeWidth(180);
+ AddPage(&m_player);
+ AddPage(&m_formats);
+ AddPage(&m_acceltbl);
+ AddPage(&m_logo);
+ AddPage(&m_playback);
+ AddPage(&m_dvd);
+ AddPage(&m_output);
+ AddPage(&m_fullscreen);
+ AddPage(&m_sync);
+ AddPage(&m_tuner);
+ AddPage(&m_webserver);
+ AddPage(&m_internalfilters);
+ AddPage(&m_audioswitcher);
+ AddPage(&m_externalfilters);
+ AddPage(&m_subtitles);
+ AddPage(&m_substyle);
+ AddPage(&m_subdb);
+ AddPage(&m_tweaks);
+ AddPage(&m_casimir);
+
+ EnableStackedTabs(FALSE);
+
+ SetTreeViewMode(TRUE, TRUE, FALSE);
if(!idPage)
idPage = AfxGetApp()->GetProfileInt(IDS_R_SETTINGS, _T("LastUsedPage"), 0);
- if(idPage)
- {
- for(int i = 0; i < GetPageCount(); i++)
- {
- if(GetPage(i)->m_pPSP->pszTemplate == MAKEINTRESOURCE(idPage))
- {
- SetActivePage(i);
- break;
- }
- }
- }
+ if(idPage)
+ {
+ for(int i = 0; i < GetPageCount(); i++)
+ {
+ if(GetPage(i)->m_pPSP->pszTemplate == MAKEINTRESOURCE(idPage))
+ {
+ SetActivePage(i);
+ break;
+ }
+ }
+ }
}
CPPageSheet::~CPPageSheet()
@@ -81,32 +81,32 @@ CPPageSheet::~CPPageSheet() CTreeCtrl* CPPageSheet::CreatePageTreeObject()
{
- return DNew CTreePropSheetTreeCtrl();
+ return DNew CTreePropSheetTreeCtrl();
}
BEGIN_MESSAGE_MAP(CPPageSheet, CTreePropSheet)
- ON_WM_CONTEXTMENU()
+ ON_WM_CONTEXTMENU()
END_MESSAGE_MAP()
BOOL CPPageSheet::OnInitDialog()
{
- BOOL bResult = __super::OnInitDialog();
+ BOOL bResult = __super::OnInitDialog();
- if(CTreeCtrl* pTree = GetPageTreeControl())
- {
- for(HTREEITEM node = pTree->GetRootItem(); node; node = pTree->GetNextSiblingItem(node))
- pTree->Expand(node, TVE_EXPAND);
- }
+ if(CTreeCtrl* pTree = GetPageTreeControl())
+ {
+ for(HTREEITEM node = pTree->GetRootItem(); node; node = pTree->GetNextSiblingItem(node))
+ pTree->Expand(node, TVE_EXPAND);
+ }
- if (m_bLockPage)
- GetPageTreeControl()->EnableWindow (FALSE);
+ if (m_bLockPage)
+ GetPageTreeControl()->EnableWindow (FALSE);
- return bResult;
+ return bResult;
}
void CPPageSheet::OnContextMenu(CWnd* /*pWnd*/, CPoint /*point*/)
{
- // display your own context menu handler or do nothing
+ // display your own context menu handler or do nothing
}
// CTreePropSheetTreeCtrl
@@ -129,8 +129,8 @@ END_MESSAGE_MAP() BOOL CTreePropSheetTreeCtrl::PreCreateWindow(CREATESTRUCT& cs)
{
- cs.dwExStyle |= WS_EX_CLIENTEDGE;
+ cs.dwExStyle |= WS_EX_CLIENTEDGE;
// cs.style &= ~TVS_LINESATROOT;
- return __super::PreCreateWindow(cs);
+ return __super::PreCreateWindow(cs);
}
|