-
Notifications
You must be signed in to change notification settings - Fork 2
/
TIPicViewDlg.h
125 lines (109 loc) · 3.33 KB
/
TIPicViewDlg.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
// TIPicViewDlg.h : header file
//
#include "afxwin.h"
#include "afxcmn.h"
#if !defined(AFX_TIPICVIEWDLG_H__B6982AC5_ECCF_44C3_B525_9A2ADEE846F2__INCLUDED_)
#define AFX_TIPICVIEWDLG_H__B6982AC5_ECCF_44C3_B525_9A2ADEE846F2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CTIPicViewDlg dialog
class CTIPicViewDlg : public CDialog
{
// Construction
public:
CTIPicViewDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTIPicViewDlg)
enum { IDD = IDD_TIPICVIEW_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTIPicViewDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
unsigned char *RLEEncode(unsigned char *cbuf, int *nSize, int nInSize);
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CTIPicViewDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnOK();
virtual void OnCancel();
afx_msg void OnButton1();
afx_msg void OnButton2();
afx_msg void OnCheck1();
afx_msg void OnRnd();
afx_msg void OnClose();
afx_msg void OnButton4();
afx_msg void OnDoubleclickedRnd();
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnDropFiles(HDROP hDropInfo);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedButton3();
afx_msg void OnBnClickedButton5();
afx_msg void OnBnClickedPercept();
afx_msg void OnBnClickedToon();
CComboBox m_ctrlList;
afx_msg void OnBnClickedReload();
afx_msg void OnCbnSelchangeCombo1();
afx_msg void OnBnClickedPalette();
void MakeConversionModeValid();
bool ResetToValidConversion();
void ResetControls();
void EnableItem(int Ctrl);
void DisableItem(int Ctrl);
void LaunchMain(int mode, CString pFile); // wrapper for maincode()
// old ErrDistDlg
virtual void PrepareData();
void EnableDitherCtrls(bool enable);
void untoggleOrdered();
afx_msg void OnBnClickedFloyd();
afx_msg void OnBnClickedPerpreset();
afx_msg void OnBnClickedPattern();
afx_msg void OnBnClickedNodither();
afx_msg void OnBnClickedAtkinson();
afx_msg void CollectData();
DWORD m_pixelF;
DWORD m_pixelE;
DWORD m_pixelD;
DWORD m_pixelC;
DWORD m_pixelB;
DWORD m_pixelA;
int m_nFilter;
int m_nPortraitMode;
int m_ErrMode;
int m_MaxDiff;
int m_MaxColDiff;
int m_PercepR;
int m_PercepG;
int m_PercepB;
int m_Popularity;
int m_StaticCols;
afx_msg void OnTimer(UINT_PTR nIDEvent);
// psuedo mutex used to track state that may or may not be on different threads
// This code is getting pretty crappy over the years!
volatile LONG cs;
int m_Luma;
int m_Gamma;
afx_msg void OnBnClickedOrdered();
afx_msg void OnBnClickedOrdered2();
int m_nOrderSlide;
CSliderCtrl ctrlOrderSlide;
afx_msg void OnBnClickedDiag();
afx_msg void OnBnClickedOrdered3();
afx_msg void OnBnClickedOrdered4();
// // when true, reduce size of image to 240x160
BOOL m_chkPowerPaint;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TIPICVIEWDLG_H__B6982AC5_ECCF_44C3_B525_9A2ADEE846F2__INCLUDED_)