Back to index

lightning-sunbird  0.9+nobinonly
ProfilesDlg.h
Go to the documentation of this file.
00001 /* ***** BEGIN LICENSE BLOCK *****
00002  * Version: Mozilla-sample-code 1.0
00003  *
00004  * Copyright (c) 2002 Netscape Communications Corporation and
00005  * other contributors
00006  *
00007  * Permission is hereby granted, free of charge, to any person obtaining a
00008  * copy of this Mozilla sample software and associated documentation files
00009  * (the "Software"), to deal in the Software without restriction, including
00010  * without limitation the rights to use, copy, modify, merge, publish,
00011  * distribute, sublicense, and/or sell copies of the Software, and to permit
00012  * persons to whom the Software is furnished to do so, subject to the
00013  * following conditions:
00014  *
00015  * The above copyright notice and this permission notice shall be included
00016  * in all copies or substantial portions of the Software.
00017  *
00018  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00019  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00020  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
00021  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00022  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00023  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00024  * DEALINGS IN THE SOFTWARE.
00025  *
00026  * Contributor(s):
00027  *
00028  * ***** END LICENSE BLOCK ***** */
00029 
00030 #if !defined(AFX_PROFILESDLG_H__48358887_EBFA_11D4_9905_00B0D0235410__INCLUDED_)
00031 #define AFX_PROFILESDLG_H__48358887_EBFA_11D4_9905_00B0D0235410__INCLUDED_
00032 
00033 #if _MSC_VER > 1000
00034 #pragma once
00035 #endif // _MSC_VER > 1000
00036 // ProfilesDlg.h : header file
00037 //
00038 
00040 // CNewProfileDlg dialog
00041 
00042 class CNewProfileDlg : public CDialog
00043 {
00044 // Construction
00045 public:
00046     CNewProfileDlg(CWnd* pParent = NULL);   // standard constructor
00047 
00048 // Dialog Data
00049     //{{AFX_DATA(CNewProfileDlg)
00050     enum { IDD = IDD_PROFILE_NEW };
00051     int        m_LocaleIndex;
00052     CString    m_Name;
00053     //}}AFX_DATA
00054 
00055 
00056 // Overrides
00057     // ClassWizard generated virtual function overrides
00058     //{{AFX_VIRTUAL(CNewProfileDlg)
00059     protected:
00060     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00061     //}}AFX_VIRTUAL
00062 
00063 // Implementation
00064 protected:
00065 
00066     // Generated message map functions
00067     //{{AFX_MSG(CNewProfileDlg)
00068         // NOTE: the ClassWizard will add member functions here
00069     //}}AFX_MSG
00070     DECLARE_MESSAGE_MAP()
00071 };
00072 
00074 // CRenameProfileDlg dialog
00075 
00076 class CRenameProfileDlg : public CDialog
00077 {
00078 // Construction
00079 public:
00080     CRenameProfileDlg(CWnd* pParent = NULL);   // standard constructor
00081 
00082 // Dialog Data
00083     //{{AFX_DATA(CRenameProfileDlg)
00084     enum { IDD = IDD_PROFILE_RENAME };
00085     CString    m_NewName;
00086     //}}AFX_DATA
00087 
00088     CString     m_CurrentName;
00089 
00090 // Overrides
00091     // ClassWizard generated virtual function overrides
00092     //{{AFX_VIRTUAL(CRenameProfileDlg)
00093     protected:
00094     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00095     //}}AFX_VIRTUAL
00096 
00097 // Implementation
00098 protected:
00099 
00100     // Generated message map functions
00101     //{{AFX_MSG(CRenameProfileDlg)
00102         // NOTE: the ClassWizard will add member functions here
00103     //}}AFX_MSG
00104     DECLARE_MESSAGE_MAP()
00105 };
00106 
00108 // CProfilesDlg dialog
00109 
00110 class CProfilesDlg : public CDialog
00111 {
00112 // Construction
00113 public:
00114     CProfilesDlg(CWnd* pParent = NULL);   // standard constructor
00115 
00116 // Dialog Data
00117     //{{AFX_DATA(CProfilesDlg)
00118     enum { IDD = IDD_PROFILES };
00119     CListBox    m_ProfileList;
00120     BOOL        m_bAtStartUp;
00121     BOOL        m_bAskAtStartUp;
00122     //}}AFX_DATA
00123 
00124     nsEmbedString m_SelectedProfile;
00125 
00126 // Overrides
00127     // ClassWizard generated virtual function overrides
00128     //{{AFX_VIRTUAL(CProfilesDlg)
00129     protected:
00130     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00131     //}}AFX_VIRTUAL
00132 
00133 // Implementation
00134 protected:
00135 
00136     // Generated message map functions
00137     //{{AFX_MSG(CProfilesDlg)
00138     virtual BOOL OnInitDialog();
00139     afx_msg void OnNewProfile();
00140     afx_msg void OnRenameProfile();
00141     afx_msg void OnDeleteProfile();
00142     afx_msg void OnDblclkProfile();
00143     //}}AFX_MSG
00144     DECLARE_MESSAGE_MAP()
00145 };
00146 
00147 //{{AFX_INSERT_LOCATION}}
00148 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00149 
00150 #endif // !defined(AFX_PROFILESDLG_H__48358887_EBFA_11D4_9905_00B0D0235410__INCLUDED_)