source: trunk/EraserDll/OptionPages.h @ 4

Revision 4, 4.2 KB checked in by lowjoel, 7 years ago (diff)

Added the source files from EraserDll? (SVN migration commit 2)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1// OptionPages.h
2//
3// Eraser. Secure data removal. For Windows.
4// Copyright © 1997-2001  Sami Tolvanen (sami@tolvanen.com).
5//
6// This program is free software; you can redistribute it and/or
7// modify it under the terms of the GNU General Public License
8// as published by the Free Software Foundation; either version 2
9// of the License, or (at your option) any later version.
10//
11// This program is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14// GNU General Public License for more details.
15//
16// You should have received a copy of the GNU General Public License
17// along with this program; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19// 02111-1307, USA.
20
21#ifndef __OPTIONPAGES_H__
22#define __OPTIONPAGES_H__
23
24#include "../shared/FlatListCtrl.h"
25
26/////////////////////////////////////////////////////////////////////////////
27// COptionsForFiles dialog
28
29class COptionsForFreeSpace;
30
31class COptionsForFilesData;
32struct LibrarySettings;
33
34class  ERASER_API COptionsForFiles : public CPropertyPage
35{
36    DECLARE_DYNCREATE(COptionsForFiles)
37   
38
39// Construction
40public:
41    void EnableButtons(BYTE);
42    COptionsForFiles();
43    ~COptionsForFiles();
44
45    void UpdateList();
46
47private:
48    COptionsForFilesData* m_pData;
49public:
50    static COptionsForFiles* create();
51    LibrarySettings* GetLibSettings();
52    void SetLibSettings(LibrarySettings* val);
53    COptionsForFreeSpace* GetFreeSpaceOpt();
54    void SetFreeSpaceOpt(COptionsForFreeSpace* val);
55    BYTE GetSelectedMethodId();
56    void SetSelectedMethodId(BYTE val);
57    int GetSelectedMethod();
58    void SetSelectedMethod(int val);
59    CFlatListCtrl& GetMethodList();
60    CString& GetSelectedStr();
61    void SetSelectedStr(CString val);
62    BOOL& GetFileClusterTips();
63    void SetFileClusterTips(BOOL val);
64    BOOL& GetFileNames();
65    void SetFileNames(BOOL val);
66    BOOL& GetFileAltDataStreams();
67    void SetFileAltDataStreams(BOOL val);
68
69   
70
71// Dialog Data
72    //{{AFX_DATA(COptionsForFiles)
73   
74    //}}AFX_DATA
75
76
77// Overrides
78    // ClassWizard generate virtual function overrides
79    //{{AFX_VIRTUAL(COptionsForFiles)
80    public:
81    virtual void OnOK();
82    protected:
83    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
84    //}}AFX_VIRTUAL
85
86// Implementation
87protected:
88
89    // Generated message map functions
90    //{{AFX_MSG(COptionsForFiles)
91    virtual BOOL OnInitDialog();
92    virtual BOOL OnSetActive();
93   
94/*  virtual BOOL OnKillActive( );
95*/
96    afx_msg void OnButtonDelete();
97    afx_msg void OnButtonEdit();
98    afx_msg void OnButtonNew();
99    afx_msg void OnItemchangedListMethod(NMHDR* pNMHDR, LRESULT* pResult);
100    afx_msg void OnDblclkListMethod(NMHDR* pNMHDR, LRESULT* pResult);
101    //}}AFX_MSG
102    DECLARE_MESSAGE_MAP()
103
104};
105
106
107/////////////////////////////////////////////////////////////////////////////
108// COptionsForFreeSpace dialog
109
110class COptionsForFreeSpace : public CPropertyPage
111{
112    DECLARE_DYNCREATE(COptionsForFreeSpace)
113
114// Construction
115public:
116    void EnableButtons(BYTE);
117    COptionsForFreeSpace();
118    ~COptionsForFreeSpace();
119
120    void UpdateList();
121
122    LibrarySettings *m_plsSettings;
123
124    COptionsForFiles *m_ppgFiles;
125    BYTE m_nSelectedMethodID;
126    int m_nSelectedMethod;
127
128// Dialog Data
129    //{{AFX_DATA(COptionsForFreeSpace)   
130    //enum { IDD = IDD_PAGE_FREESPACE };
131    CFlatListCtrl   m_lcMethod;
132    BOOL    m_bClusterTips;
133    BOOL    m_bDirectoryEntries;
134    BOOL    m_bFreeSpace;
135    CString m_strSelected;
136    //}}AFX_DATA
137
138// Overrides
139    // ClassWizard generate virtual function overrides
140    //{{AFX_VIRTUAL(COptionsForFreeSpace)
141    public:
142    virtual void OnOK();
143    protected:
144    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
145    //}}AFX_VIRTUAL
146
147// Implementation
148protected:
149
150    // Generated message map functions
151    //{{AFX_MSG(COptionsForFreeSpace)
152    virtual BOOL OnInitDialog();
153    afx_msg void OnButtonEdit();
154    afx_msg void OnButtonNew();
155    afx_msg void OnButtonDelete();
156    afx_msg void OnItemchangedListMethod(NMHDR* pNMHDR, LRESULT* pResult);
157    afx_msg void OnDblclkListMethod(NMHDR* pNMHDR, LRESULT* pResult);
158    //}}AFX_MSG
159   
160    DECLARE_MESSAGE_MAP()
161};
162
163
164
165#endif // __OPTIONPAGES_H__
Note: See TracBrowser for help on using the repository browser.