forked from sabrogden/Ditto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOptionsGeneral.h
107 lines (92 loc) · 2.83 KB
/
OptionsGeneral.h
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
#if !defined(AFX_OPTIONSGENERAL_H__A13ABBF6_7636_4426_9A31_0189D4CA8F2F__INCLUDED_)
#define AFX_OPTIONSGENERAL_H__A13ABBF6_7636_4426_9A31_0189D4CA8F2F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// OptionsGeneral.h : header file
//
#include "stdafx.h"
#include "CP_Main.h"
#include "OptionsSheet.h"
#include "NumberEdit.h"
#include "afxwin.h"
#include "HyperLink.h"
/////////////////////////////////////////////////////////////////////////////
// COptionsGeneral dialog
class COptionsGeneral : public CPropertyPage
{
DECLARE_DYNCREATE(COptionsGeneral)
// Construction
public:
COptionsGeneral();
~COptionsGeneral();
// Dialog Data
//{{AFX_DATA(COptionsGeneral)
enum { IDD = IDD_OPTIONS_GENERAL };
//CButton m_EnsureConnected;
CNumberEdit m_SaveDelay;
CComboBox m_cbLanguage;
CEdit m_MaxClipSize;
CButton m_btSendPasteMessage;
CButton m_btHideDittoOnHotKey;
CNumberEdit m_DescTextSize;
CEdit m_ePath;
CNumberEdit m_eExpireAfter;
CNumberEdit m_eMaxSavedCopies;
CButton m_btMaximumCheck;
CButton m_btExpire;
CButton m_btShowIconInSysTray;
CButton m_btRunOnStartup;
CButton m_btSaveMultiPaste;
CString m_csPlaySound;
CEdit m_ClipSeparator;
CEdit m_copyAppInclude;
CEdit m_copyAppExclude;
CMFCLinkCtrl m_envVarLink;
//}}AFX_DATA
// Overrides
// ClassWizard generate virtual function overrides
//{{AFX_VIRTUAL(COptionsGeneral)
public:
virtual BOOL OnSetActive();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnApply();
//}}AFX_VIRTUAL
// Implementation
protected:
COptionsSheet *m_pParent;
CString m_csTitle;
CBrush m_brush;
LOGFONT m_LogFont;
CFont m_envVarFont;
CString m_originalEnvVariables;
void FillThemes();
void FillLanguages();
int GetFontSize(HWND hWnd, const LOGFONT& lf);
// Generated message map functions
//{{AFX_MSG(COptionsGeneral)
virtual BOOL OnInitDialog();
afx_msg void OnGetPath();
afx_msg void OnButtonAbout();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedButtonAdvanced();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnBnClickedButtonTheme();
afx_msg void OnBnClickedButtonDefaultFault();
afx_msg void OnBnClickedButtonFont();
CComboBox m_cbTheme;
CButton m_btFont;
CButton m_btDefaultButton;
CComboBox m_popupPositionCombo;
//afx_msg void OnNMClickSyslinkEnvVarInfo(NMHDR *pNMHDR, LRESULT *pResult);
//afx_msg void OnEnChangePath();
afx_msg void OnEnChangePath();
afx_msg void OnClickedMaximumEntries();
afx_msg void OnClickedExpireEntries();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_OPTIONSGENERAL_H__A13ABBF6_7636_4426_9A31_0189D4CA8F2F__INCLUDED_)