summaryrefslogtreecommitdiff
path: root/hammer/optgeneral.h
blob: 4499c85b1cdca7cd8e190860dbf88a0d7f59973d (plain) (blame)
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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $Workfile:     $
// $Date:         $
//
//-----------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//=============================================================================//

#ifndef OPTGENERAL_H
#define OPTGENERAL_H
#pragma once

#include "Resource.h"


class COPTGeneral : public CPropertyPage
{
	DECLARE_DYNCREATE(COPTGeneral)

// Construction
public:
	COPTGeneral();
	~COPTGeneral();

// Dialog Data
	//{{AFX_DATA(COPTGeneral)
	enum { IDD = IDD_OPTIONS_MAIN };
	CButton	m_cLoadWinPos;
	CButton	m_cIndependentWin;
	CButton m_cEnableAutosave;
	CStatic	m_cAutosaveTimeLabel;
	CEdit	m_cAutosaveTime;
	CStatic m_cAutosaveSpaceLabel;
	CEdit	m_cAutosaveSpace;
	CStatic m_cAutosaveIterationLabel;
	CEdit	m_cAutosaveIterations;
	CStatic	m_cAutosaveDirectoryLabel;
	CButton m_cAutosaveBrowseButton;
	CSpinButtonCtrl	m_UndoSpin;
	int		m_iUndoLevels;
	int    	m_nMaxCameras;
	int		m_iMaxAutosavesPerMap;
	int 	m_iMaxAutosaveSpace;
	int		m_iTimeBetweenSaves;
	CEdit	m_cAutosaveDir;
	//}}AFX_DATA

// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(COPTGeneral)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(COPTGeneral)
	virtual BOOL OnInitDialog(void);
	afx_msg void OnIndependentwindows(void);
	afx_msg void OnEnableAutosave(void);
	afx_msg void OnBrowseAutosaveDir(void);
	//}}AFX_MSG

	BOOL BrowseForFolder(char *pszTitle, char *pszDirectory);
	BOOL OnApply();
	
	DECLARE_MESSAGE_MAP()

	
	
};


#endif // OPTGENERAL_H