blob: cc784f9c7f0de5cb0ab79c6a93eb530e51c565eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
/*
* (C) 2003-2006 Gabest
* (C) 2006-2014 see Authors.txt
*
* This file is part of MPC-HC.
*
* MPC-HC is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* MPC-HC is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#pragma once
#include "mplayerc.h"
#include "PPagePlayer.h"
#include "PPageFormats.h"
#include "PPageAccelTbl.h"
#include "PPageLogo.h"
#include "PPagePlayback.h"
#include "PPageDVD.h"
#include "PPageOutput.h"
#include "PPageFullscreen.h"
#include "PPageSync.h"
#include "PPageWebServer.h"
#include "PPageInternalFilters.h"
#include "PPageAudioSwitcher.h"
#include "PPageExternalFilters.h"
#include "PPageSubtitles.h"
#include "PPageSubStyle.h"
#include "PPageSubMisc.h"
#include "PPageTweaks.h"
#include "PPageMisc.h"
#include "PPageCapture.h"
#include "PPageShaders.h"
#include "PPageAdvanced.h"
#include "TreePropSheet/TreePropSheet.h"
// CTreePropSheetTreeCtrl
class CTreePropSheetTreeCtrl : public CTreeCtrl
{
DECLARE_DYNAMIC(CTreePropSheetTreeCtrl)
public:
CTreePropSheetTreeCtrl();
virtual ~CTreePropSheetTreeCtrl();
protected:
DECLARE_MESSAGE_MAP()
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
};
// CPPageSheet
class CPPageSheet : public TreePropSheet::CTreePropSheet
{
DECLARE_DYNAMIC(CPPageSheet)
public:
enum {
APPLY_LANGUAGE_CHANGE = 100, // 100 is a magic number than won't collide with WinAPI constants
RESET_SETTINGS
};
private:
bool m_bLockPage;
bool m_bLanguageChanged;
CPPagePlayer m_player;
CPPageFormats m_formats;
CPPageAccelTbl m_acceltbl;
CPPageLogo m_logo;
CPPageWebServer m_webserver;
CPPagePlayback m_playback;
CPPageDVD m_dvd;
CPPageOutput m_output;
CPPageShaders m_shaders;
CPPageFullscreen m_fullscreen;
CPPageSync m_sync;
CPPageCapture m_tuner;
#ifndef MPCHC_LITE
CPPageInternalFilters m_internalfilters;
#endif
CPPageAudioSwitcher m_audioswitcher;
CPPageExternalFilters m_externalfilters;
CPPageSubtitles m_subtitles;
CPPageSubStyle m_substyle;
CPPageSubMisc m_subMisc;
CPPageTweaks m_tweaks;
CPPageMisc m_misc;
CPPageAdvanced m_advance;
EventClient m_eventc;
void EventCallback(MpcEvent ev);
CTreeCtrl* CreatePageTreeObject();
public:
CPPageSheet(LPCTSTR pszCaption, IFilterGraph* pFG, CWnd* pParentWnd, UINT idPage = 0);
virtual ~CPPageSheet();
void LockPage() { m_bLockPage = true; };
protected:
DPI m_dpi;
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnApply();
};
|