00001 #if !defined(AFX_OPTIONS_H__D33EAC1F_01D6_4270_93F8_069D3BAFE231__INCLUDED_)
00002 #define AFX_OPTIONS_H__D33EAC1F_01D6_4270_93F8_069D3BAFE231__INCLUDED_
00003
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007
00008 #include "resource.h"
00009 #include "BON.h"
00010 #include <afxcmn.h>
00012
00013
00014 class Options : public CDialog
00015 {
00016
00017 public:
00018 Options(CWnd* pParent = NULL);
00019
00020
00021
00022 enum { IDD = IDD_OPTIONS };
00023 CSpinButtonCtrl m_spin;
00024 CString m_strRegCont;
00025 CString m_strFolCont;
00026 CString m_strConnect;
00027 BOOL m_dontask;
00028 CString m_strPriority;
00029
00030
00031
00032
00033
00034
00035 protected:
00036 virtual void DoDataExchange(CDataExchange* pDX);
00037
00038 void PASCAL DDV_HexNumber(CDataExchange* pDX, const CString& nmb);
00039
00040
00041 protected:
00042
00043
00044
00045 virtual BOOL OnInitDialog();
00046 afx_msg void OnButton1();
00047 afx_msg void OnButton2();
00048 afx_msg void OnButton3();
00049 afx_msg void OnDontAskClick();
00050 virtual void OnOK();
00051
00052 DECLARE_MESSAGE_MAP()
00053
00054 public:
00055 void setDefs( int regCont, int folCont, int conn, int prior);
00056 void getResults( int* v1, int* v2, int* v3, int* vp, bool* ask);
00057
00058 static bool fetchOpts( const BON::Project& proj, int* v1, int* v2, int* v3, int* vp);
00059 static void saveOpts( const BON::Project& proj, int v1, int v2, int v3, int vp, bool dont_ask);
00060
00061 static const std::string OptionsRegistrySubNode_str;
00062 static const std::string RegContMask_str;
00063 static const std::string FolContMask_str;
00064 static const std::string ConnectMask_str;
00065 static const std::string Priority_str;
00066 static const std::string DontAsk_str;
00067
00068 protected:
00069 int m_valRegContMask;
00070 int m_valFolContMask;
00071 int m_valConnectMask;
00072 int m_valPriority;
00073
00074 };
00075
00076
00077
00078
00079 #endif // !defined(AFX_OPTIONS_H__D33EAC1F_01D6_4270_93F8_069D3BAFE231__INCLUDED_)