-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathSSConfigure.h
56 lines (50 loc) · 1.54 KB
/
SSConfigure.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
#ifndef __SSCONFIGURE_H__
#define __SSCONFIGURE_H__
#include "LDViewPreferences.h"
#define DEFAULT_SS_SIZE 250
#define DEFAULT_SS_SPEED 5
#define DEFAULT_SS_ROT_SPEED 100
#define DEFAULT_SS_FILE_MODE 0
#define DEFAULT_SS_SLEEP_WORKAROUND false
#define DEFAULT_SS_RANDOM_PREF_SET false
class SSConfigure: public LDViewPreferences
{
public:
SSConfigure(HINSTANCE);
virtual INT_PTR run(void);
static ucstring defaultFilename(void);
static ucstring defaultDir(void);
static ucstring getInstallPath(void);
protected:
virtual ~SSConfigure(void);
virtual void dealloc(void);
void setupSSPage(void);
BOOL doDialogNotify(HWND hDlg, int controlId, LPNMHDR notification);
virtual bool applyChanges(void);
virtual bool doBrowseFilename(void);
virtual bool doBrowseDirectory(void);
virtual void setupPage(int pageNumber);
virtual void setupGeneralPage(void);
virtual void setupPrefSetsPage(void);
virtual void enableCutaway(void);
virtual void disableCutaway(void);
virtual void enableStereo(void);
virtual void disableStereo(void);
void loadDefaultSSSettings(void);
void loadSSSettings(void);
virtual DWORD getPageDialogID(HWND hDlg);
virtual DWORD doClick(HWND hPage, int controlId, HWND controlHWnd);
virtual void updateFileControls(bool includePaths = true);
static int CALLBACK pathBrowserCallback(HWND hwnd, UINT uMsg, LPARAM lParam,
LPARAM lpData);
HWND hSSPage;
ucstring ssFilename;
ucstring ssDirectory;
long ssSize;
long ssSpeed;
long ssRotationSpeed;
long ssFileMode;
bool ssSleepWorkaround;
bool ssRandomPrefSet;
};
#endif __SSCONFIGURE_H__