Skip to content

Commit 88d8f00

Browse files
author
felfert
committed
- Update to v2.5b1
1 parent 5b2b247 commit 88d8f00

File tree

9 files changed

+543
-0
lines changed

9 files changed

+543
-0
lines changed

CamStudio/EffectsOptions.cpp

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
// EffectsOptions.cpp : implementation file
2+
//
3+
4+
#include "stdafx.h"
5+
#include "vscap.h"
6+
#include "EffectsOptions.h"
7+
#include ".\effectsoptions.h"
8+
9+
10+
// CEffectsOptions dialog
11+
12+
IMPLEMENT_DYNAMIC(CEffectsOptions, CDialog)
13+
CEffectsOptions::CEffectsOptions(CWnd* pParent /*=NULL*/)
14+
: CDialog(CEffectsOptions::IDD, pParent)
15+
// , m_Position(TOP_LEFT)
16+
{
17+
}
18+
19+
CEffectsOptions::~CEffectsOptions()
20+
{
21+
}
22+
23+
void CEffectsOptions::DoDataExchange(CDataExchange* pDX)
24+
{
25+
int* pPos = (int*)(&m_params.position);
26+
int& pos = *pPos;
27+
CDialog::DoDataExchange(pDX);
28+
//DDX_Radio(pDX, IDC_RADIO_TOP_LEFT, m_Position);
29+
DDX_Radio(pDX, IDC_RADIO_TOP_LEFT, pos);
30+
}
31+
32+
33+
BEGIN_MESSAGE_MAP(CEffectsOptions, CDialog)
34+
ON_BN_CLICKED(IDC_BUTTON_BACKGROUND_COLOR, OnBnClickedButtonBackgroundColor)
35+
ON_BN_CLICKED(IDC_BUTTON_TEXT_COLOR, OnBnClickedButtonTextColor)
36+
ON_BN_CLICKED(IDC_BUTTON_FONT, OnBnClickedButtonFont)
37+
END_MESSAGE_MAP()
38+
39+
40+
// CEffectsOptions message handlers
41+
42+
void CEffectsOptions::OnBnClickedButtonBackgroundColor()
43+
{
44+
// TODO: Add your control notification handler code here
45+
CColorDialog dlg;
46+
dlg.m_cc.Flags |= CC_FULLOPEN | CC_RGBINIT;
47+
dlg.m_cc.rgbResult = m_params.backgroundColor;
48+
if(dlg.DoModal() == IDOK){
49+
m_params.backgroundColor = dlg.GetColor();
50+
}
51+
}
52+
53+
void CEffectsOptions::OnBnClickedButtonTextColor()
54+
{
55+
// TODO: Add your control notification handler code here
56+
CColorDialog dlg;
57+
dlg.m_cc.Flags |= CC_FULLOPEN | CC_RGBINIT;
58+
dlg.m_cc.rgbResult = m_params.textColor;
59+
if(dlg.DoModal() == IDOK){
60+
m_params.textColor = dlg.GetColor();
61+
}
62+
}
63+
64+
65+
void CEffectsOptions::OnBnClickedButtonFont()
66+
{
67+
// TODO: Add your control notification handler code here
68+
CFontDialog dlg(&m_params.logfont);
69+
if(dlg.DoModal() == IDOK){
70+
memcpy(&m_params.logfont, dlg.m_cf.lpLogFont, sizeof(LOGFONT));
71+
m_params.isFontSelected = 1;
72+
}
73+
}

CamStudio/EffectsOptions.h

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#pragma once
2+
//#include "annotationeffectsoptions.h"
3+
4+
5+
// CEffectsOptions dialog
6+
7+
enum Position {
8+
TOP_LEFT = 0,
9+
TOP_CENTER = 1,
10+
TOP_RIGHT = 2,
11+
CENTER_LEFT = 3,
12+
CENTER_CENTER = 4,
13+
CENTER_RIGHT = 5,
14+
BOTTOM_LEFT = 6,
15+
BOTTOM_CENTER = 7,
16+
BOTTOM_RIGHT = 8,
17+
};
18+
19+
struct TextAttributes
20+
{
21+
Position position;
22+
CString text;
23+
COLORREF backgroundColor;
24+
COLORREF textColor;
25+
int isFontSelected;
26+
LOGFONT logfont;
27+
const TextAttributes& operator=(const TextAttributes& obj)
28+
{
29+
text = obj.text;
30+
memcpy(&logfont, &obj.logfont, sizeof(LOGFONT));
31+
isFontSelected = obj.isFontSelected;
32+
backgroundColor = obj.backgroundColor;
33+
textColor = obj.textColor;
34+
position = obj.position;
35+
return *this;
36+
}
37+
};
38+
39+
class CEffectsOptions : public CDialog
40+
{
41+
DECLARE_DYNAMIC(CEffectsOptions)
42+
43+
public:
44+
CEffectsOptions(CWnd* pParent = NULL); // standard constructor
45+
virtual ~CEffectsOptions();
46+
47+
// Dialog Data
48+
enum { IDD = IDD_EFFECTS_OPTIONS };
49+
50+
protected:
51+
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
52+
53+
DECLARE_MESSAGE_MAP()
54+
public:
55+
afx_msg void OnBnClickedButtonBackgroundColor();
56+
afx_msg void OnBnClickedButtonTextColor();
57+
afx_msg void OnBnClickedButtonFont();
58+
//int m_Position;
59+
TextAttributes m_params;
60+
};

CamStudio/EffectsOptions2.cpp

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// EffectsOptions2.cpp : implementation file
2+
//
3+
4+
#include "stdafx.h"
5+
#include "vscap.h"
6+
#include "EffectsOptions2.h"
7+
8+
9+
// CEffectsOptions2 dialog
10+
11+
IMPLEMENT_DYNAMIC(CEffectsOptions2, CDialog)
12+
CEffectsOptions2::CEffectsOptions2(CWnd* pParent /*=NULL*/)
13+
: CDialog(CEffectsOptions2::IDD, pParent)
14+
{
15+
}
16+
17+
CEffectsOptions2::~CEffectsOptions2()
18+
{
19+
}
20+
21+
void CEffectsOptions2::DoDataExchange(CDataExchange* pDX)
22+
{
23+
int* pPos = (int*)(&m_params.position);
24+
int& pos = *pPos;
25+
CDialog::DoDataExchange(pDX);
26+
DDX_Radio(pDX, IDC_RADIO_TOP_LEFT, pos);
27+
}
28+
29+
30+
BEGIN_MESSAGE_MAP(CEffectsOptions2, CDialog)
31+
END_MESSAGE_MAP()
32+
33+
34+
// CEffectsOptions2 message handlers

CamStudio/EffectsOptions2.h

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#pragma once
2+
3+
#include "EffectsOptions.h"
4+
5+
struct ImageAttributes
6+
{
7+
Position position;
8+
CString text;
9+
const ImageAttributes& operator=(const ImageAttributes& obj)
10+
{
11+
text = obj.text;
12+
position = obj.position;
13+
return *this;
14+
}
15+
};
16+
17+
// CEffectsOptions2 dialog
18+
19+
class CEffectsOptions2 : public CDialog
20+
{
21+
DECLARE_DYNAMIC(CEffectsOptions2)
22+
23+
public:
24+
CEffectsOptions2(CWnd* pParent = NULL); // standard constructor
25+
virtual ~CEffectsOptions2();
26+
27+
// Dialog Data
28+
enum { IDD = IDD_EFFECTS_OPTIONS2 };
29+
30+
protected:
31+
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
32+
33+
DECLARE_MESSAGE_MAP()
34+
public:
35+
ImageAttributes m_params;
36+
};

CamStudio/Logo.psd

337 KB
Binary file not shown.

CamStudio/PlayerPlus/About.psd

79.1 KB
Binary file not shown.

CamStudio/Producer/ABOUTDUBBER.psd

76.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)