root/trunk/EventsPage.h

Revision 5, 2.1 kB (checked in by qbert, 6 years ago)

Initial ( and last :( ) commit

Line 
1 #if !defined(AFX_EVENTSPAGE_H__705C4A77_D0CB_4241_8822_999F513692B8__INCLUDED_)
2 #define AFX_EVENTSPAGE_H__705C4A77_D0CB_4241_8822_999F513692B8__INCLUDED_
3
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // EventsPage.h : header file
8 //
9 #include "GUIComponents/GenericChildDialog.h"
10 /////////////////////////////////////////////////////////////////////////////
11 // CEventsPage dialog
12
13
14 // 972-315-9118
15
16 class CEventsPage : public CRHGenericChildDialog
17 {
18 // Construction
19 public:
20     CEventsPage(CWnd* pParent = NULL);   // standard constructor
21     virtual int CRHGetDialogID() { return IDD;
22     }
23     void Save() {
24         UpdateData();
25
26         Globals::settings->scriptSettings->SetCache("onStartup",m_startup.GetBuffer(0) );
27         Globals::settings->scriptSettings->SetCache("onclos",m_close.GetBuffer(0) );
28         Globals::settings->scriptSettings->SetCache("onFileOpen",m_fileOpen.GetBuffer(0) );
29         Globals::settings->scriptSettings->SetCache("onFileClose",m_fileClose.GetBuffer(0) );
30         Globals::settings->scriptSettings->SetCache("onDoubleClick",m_doubleClick.GetBuffer(0) );
31
32     }
33 // Dialog Data
34     //{{AFX_DATA(CEventsPage)
35     enum { IDD = IDD_SCRIPTEVENTS_PAGE };
36     CXTButton   m_b3;
37     CXTButton   m_b5;
38     CXTButton   m_b4;
39     CXTButton   m_b2;
40     CXTButton   m_b1;
41     CString m_startup;
42     CString m_close;
43     CString m_fileOpen;
44     CString m_fileClose;
45     CString m_doubleClick;
46     //}}AFX_DATA
47
48
49 // Overrides
50     // ClassWizard generated virtual function overrides
51     //{{AFX_VIRTUAL(CEventsPage)
52     protected:
53     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
54     //}}AFX_VIRTUAL
55
56 // Implementation
57 protected:
58
59     // Generated message map functions
60     //{{AFX_MSG(CEventsPage)
61     virtual BOOL OnInitDialog();
62     afx_msg void OnButton1();
63     afx_msg void OnButton3();
64     afx_msg void OnButton5();
65     afx_msg void OnButton7();
66     afx_msg void OnButton8();
67     //}}AFX_MSG
68     DECLARE_MESSAGE_MAP()
69 };
70
71 //{{AFX_INSERT_LOCATION}}
72 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
73
74 #endif // !defined(AFX_EVENTSPAGE_H__705C4A77_D0CB_4241_8822_999F513692B8__INCLUDED_)
Note: See TracBrowser for help on using the browser.