Back to index

lightning-sunbird  0.9+nobinonly
Preferences.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: Mozilla-sample-code 1.0
00004  *
00005  * Copyright (c) 2002 Netscape Communications Corporation and
00006  * other contributors
00007  *
00008  * Permission is hereby granted, free of charge, to any person obtaining a
00009  * copy of this Mozilla sample software and associated documentation files
00010  * (the "Software"), to deal in the Software without restriction, including
00011  * without limitation the rights to use, copy, modify, merge, publish,
00012  * distribute, sublicense, and/or sell copies of the Software, and to permit
00013  * persons to whom the Software is furnished to do so, subject to the
00014  * following conditions:
00015  *
00016  * The above copyright notice and this permission notice shall be included
00017  * in all copies or substantial portions of the Software.
00018  *
00019  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00020  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00021  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
00022  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00023  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00024  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00025  * DEALINGS IN THE SOFTWARE.
00026  *
00027  * Contributor(s):
00028  *   Chak Nanga <chak@netscape.com>
00029  *
00030  * ***** END LICENSE BLOCK ***** */
00031 
00032 
00033 #ifndef _PREFERENCES_H_
00034 #define _PREFERENCES_H_
00035 
00036 #include "resource.h"
00037 
00038 #if _MSC_VER > 1000
00039 #pragma once
00040 #endif // _MSC_VER > 1000
00041 
00043 // CStartupPrefsPage dialog
00044 
00045 class CStartupPrefsPage : public CPropertyPage
00046 {
00047     DECLARE_DYNCREATE(CStartupPrefsPage)
00048 
00049 // Construction
00050 public:
00051     CStartupPrefsPage();
00052     ~CStartupPrefsPage();
00053 
00054 // Dialog Data
00055     //{{AFX_DATA(CStartupPrefsPage)
00056     enum { IDD = IDD_PREFS_START_PAGE };
00057     CEdit    m_HomePage;
00058     CString    m_strHomePage;
00059     int        m_iStartupPage;
00060     //}}AFX_DATA
00061 
00062 
00063 // Overrides
00064     // ClassWizard generate virtual function overrides
00065     //{{AFX_VIRTUAL(CStartupPrefsPage)
00066     protected:
00067     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00068     //}}AFX_VIRTUAL
00069 
00070 // Implementation
00071 protected:
00072     // Generated message map functions
00073     //{{AFX_MSG(CStartupPrefsPage)
00074     //}}AFX_MSG
00075     DECLARE_MESSAGE_MAP()
00076 
00077 };
00078 
00080 // CPreferences
00081 
00082 class CPreferences : public CPropertySheet
00083 {
00084     DECLARE_DYNAMIC(CPreferences)
00085 
00086 // Construction
00087 public:
00088     CPreferences(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
00089 
00090 // Attributes
00091 public:
00092     CStartupPrefsPage m_startupPage;
00093 
00094 // Operations
00095 public:
00096 
00097 // Overrides
00098     // ClassWizard generated virtual function overrides
00099     //{{AFX_VIRTUAL(CPreferences)
00100     public:
00101     virtual BOOL OnInitDialog();
00102     //}}AFX_VIRTUAL
00103 
00104 // Implementation
00105 public:
00106     virtual ~CPreferences();
00107 
00108     // Generated message map functions
00109 protected:
00110     //{{AFX_MSG(CPreferences)
00111         // NOTE - the ClassWizard will add and remove member functions here.
00112     //}}AFX_MSG
00113     DECLARE_MESSAGE_MAP()
00114 };
00115 
00116 //{{AFX_INSERT_LOCATION}}
00117 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00118 
00119 #endif // _PREFERENCES_H_