-
Notifications
You must be signed in to change notification settings - Fork 5
/
PreferencesDialog.h
executable file
·195 lines (159 loc) · 6.52 KB
/
PreferencesDialog.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
/**
* PreferencesDialog.h - PuTTYCS Preferences Dialog header
*
* Copyright (c) 2005 - 2008 Jason Millard ([email protected])
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* REVISION HISTORY:
*
* 11/07/2005: Initial version J. Millard
* 11/17/2005: Added UNICODE support J. Millard
* Added AltGr support
* 11/18/2005: Fixed AltGr support J. Millard
* 12/06/2005: Added mouse Copy/Paste emulation J. Millard
* 12/15/2005: Added minimize to system tray J. Millard
* Added tab completion
* 12/19/2005: Added window opacity J. Millard
* 11/20/2006: Added support for user defined J. Millard
* cascade size.
* 06/21/2007: Added scroll command history using J. Millard
* up/down arrow keys
* Added check for PuTTYCS update
* Added run on system startup
* 02/29/2008: Added tiling methods J. Millard
* Added post send transition delay
* Rearranged dialog
*/
#if !defined(AFX_PREFERENCESDLG_H__4CD996C9_091F_4F4D_BFE3_EDD9236AB74B__INCLUDED_)
#define AFX_PREFERENCESDLG_H__4CD996C9_091F_4F4D_BFE3_EDD9236AB74B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CPreferencesDialog : public CDialog
{
// Construction
public:
CPreferencesDialog(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CPreferencesDialog)
enum { IDD = IDD_PREFERENCES_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
int getAutoArrange();
void setAutoArrange( int iAutoArrange );
int getAutoMinimize();
void setAutoMinimize( int iAutoMinimize );
int getArrangeOnStartup();
void setArrangeOnStartup( int iArrangeOnStartup );
int getTileMethod();
void setTileMethod( int iTileMethod );
int getCascadeWidth();
void setCascadeWidth( int iCascadeWidth );
int getCascadeHeight();
void setCascadeHeight( int iCascadeHeight );
int getUnhideOnExit();
void setUnhideOnExit( int iUnhideOnExit);
int getToolWindow();
void setToolWindow( int iToolWindow );
int getAlwaysOnTop();
void setAlwaysOnTop( int iAlwaysOnTop );
int getMinimizeToSysTray();
void setMinimizeToSysTray( int iMinimizeToSysTray );
int getOpacity();
void setOpacity( int iOpacity );
int getTabCompletion();
void setTabCompletion( int iTabCompletion );
int getCmdHistoryScrollThrough();
void setCmdHistoryScrollThrough( int iCmdHistoryScrollThrough );
int getEmulateCopyPaste();
void setEmulateCopyPaste( int iEmulateCopyPaste );
int getTransition();
void setTransition( int iTransition );
int getPostSendDelay();
void setPostSendDelay( int iPostSendDelay );
int getSavePassword();
void setSavePassword( int iSavePassword );
int getRunOnSystemStartup();
void setRunOnSystemStartup( int iRunOnSystemStartup );
int getCheckForUpdates();
void setCheckForUpdates( int iCheckForUpdates );
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPreferencesDialog)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
int m_iAutoArrange;
int m_iAutoMinimize;
int m_iArrangeOnStartup;
int m_iTileMethod;
int m_iCascadeWidth;
int m_iCascadeHeight;
int m_iUnhideOnExit;
int m_iToolWindow;
int m_iAlwaysOnTop;
int m_iMinimizeToSysTray;
int m_iOpacity;
int m_iEmulateCopyPaste;
int m_iCmdHistoryScrollThrough;
int m_iTabCompletion;
int m_iTransition;
int m_iPostSendDelay;
int m_iSavePassword;
int m_iRunOnSystemStartup;
int m_iCheckForUpdates;
// Generated message map functions
//{{AFX_MSG(CPreferencesDialog)
virtual BOOL OnInitDialog();
afx_msg void OnAutoArrangeRadio();
afx_msg void OnTileMethodRadio();
afx_msg void OnAutoMinimizeCheckbox();
afx_msg void OnArrangeOnStartupCheckbox();
afx_msg void OnUnhideOnExitCheckbox();
afx_msg void OnToolWindowCheckbox();
afx_msg void OnAlwaysOnTopCheckbox();
afx_msg void OnEmulateCopyPasteCheckbox();
afx_msg void OnCmdHistoryScrollThroughCheckbox();
afx_msg void OnTabCompletionCheckbox();
afx_msg void OnChangeTransition();
afx_msg void OnChangePostSendDelay();
afx_msg void OnSavePasswordCheckbox();
afx_msg void OnCheckForUpdatesCheckbox();
afx_msg void OnRunOnSystemStartupCheckbox();
afx_msg void OnOKButton();
afx_msg void OnMinimizeToSysTrayCheckbox();
afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnChangeCascadeHeightEdit();
afx_msg void OnChangeCascadeWidthEdit();
afx_msg void OnFindButton();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
void UpdateDialog();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PREFERENCESDLG_H__4CD996C9_091F_4F4D_BFE3_EDD9236AB74B__INCLUDED_)