~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/embedding/tests/mfcembed/ProfilesDlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ***** BEGIN LICENSE BLOCK *****
 
2
 * Version: Mozilla-sample-code 1.0
 
3
 *
 
4
 * Copyright (c) 2002 Netscape Communications Corporation and
 
5
 * other contributors
 
6
 *
 
7
 * Permission is hereby granted, free of charge, to any person obtaining a
 
8
 * copy of this Mozilla sample software and associated documentation files
 
9
 * (the "Software"), to deal in the Software without restriction, including
 
10
 * without limitation the rights to use, copy, modify, merge, publish,
 
11
 * distribute, sublicense, and/or sell copies of the Software, and to permit
 
12
 * persons to whom the Software is furnished to do so, subject to the
 
13
 * following conditions:
 
14
 *
 
15
 * The above copyright notice and this permission notice shall be included
 
16
 * in all copies or substantial portions of the Software.
 
17
 *
 
18
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 
19
 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
20
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
 
21
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
22
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 
23
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 
24
 * DEALINGS IN THE SOFTWARE.
 
25
 *
 
26
 * Contributor(s):
 
27
 *
 
28
 * ***** END LICENSE BLOCK ***** */
 
29
 
 
30
#if !defined(AFX_PROFILESDLG_H__48358887_EBFA_11D4_9905_00B0D0235410__INCLUDED_)
 
31
#define AFX_PROFILESDLG_H__48358887_EBFA_11D4_9905_00B0D0235410__INCLUDED_
 
32
 
 
33
#if _MSC_VER > 1000
 
34
#pragma once
 
35
#endif // _MSC_VER > 1000
 
36
// ProfilesDlg.h : header file
 
37
//
 
38
 
 
39
/////////////////////////////////////////////////////////////////////////////
 
40
// CNewProfileDlg dialog
 
41
 
 
42
class CNewProfileDlg : public CDialog
 
43
{
 
44
// Construction
 
45
public:
 
46
    CNewProfileDlg(CWnd* pParent = NULL);   // standard constructor
 
47
 
 
48
// Dialog Data
 
49
    //{{AFX_DATA(CNewProfileDlg)
 
50
    enum { IDD = IDD_PROFILE_NEW };
 
51
    int        m_LocaleIndex;
 
52
    CString    m_Name;
 
53
    //}}AFX_DATA
 
54
 
 
55
 
 
56
// Overrides
 
57
    // ClassWizard generated virtual function overrides
 
58
    //{{AFX_VIRTUAL(CNewProfileDlg)
 
59
    protected:
 
60
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
 
61
    //}}AFX_VIRTUAL
 
62
 
 
63
// Implementation
 
64
protected:
 
65
 
 
66
    // Generated message map functions
 
67
    //{{AFX_MSG(CNewProfileDlg)
 
68
        // NOTE: the ClassWizard will add member functions here
 
69
    //}}AFX_MSG
 
70
    DECLARE_MESSAGE_MAP()
 
71
};
 
72
 
 
73
/////////////////////////////////////////////////////////////////////////////
 
74
// CRenameProfileDlg dialog
 
75
 
 
76
class CRenameProfileDlg : public CDialog
 
77
{
 
78
// Construction
 
79
public:
 
80
    CRenameProfileDlg(CWnd* pParent = NULL);   // standard constructor
 
81
 
 
82
// Dialog Data
 
83
    //{{AFX_DATA(CRenameProfileDlg)
 
84
    enum { IDD = IDD_PROFILE_RENAME };
 
85
    CString    m_NewName;
 
86
    //}}AFX_DATA
 
87
 
 
88
    CString     m_CurrentName;
 
89
 
 
90
// Overrides
 
91
    // ClassWizard generated virtual function overrides
 
92
    //{{AFX_VIRTUAL(CRenameProfileDlg)
 
93
    protected:
 
94
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
 
95
    //}}AFX_VIRTUAL
 
96
 
 
97
// Implementation
 
98
protected:
 
99
 
 
100
    // Generated message map functions
 
101
    //{{AFX_MSG(CRenameProfileDlg)
 
102
        // NOTE: the ClassWizard will add member functions here
 
103
    //}}AFX_MSG
 
104
    DECLARE_MESSAGE_MAP()
 
105
};
 
106
 
 
107
/////////////////////////////////////////////////////////////////////////////
 
108
// CProfilesDlg dialog
 
109
 
 
110
class CProfilesDlg : public CDialog
 
111
{
 
112
// Construction
 
113
public:
 
114
    CProfilesDlg(CWnd* pParent = NULL);   // standard constructor
 
115
 
 
116
// Dialog Data
 
117
    //{{AFX_DATA(CProfilesDlg)
 
118
    enum { IDD = IDD_PROFILES };
 
119
    CListBox    m_ProfileList;
 
120
    BOOL        m_bAtStartUp;
 
121
    BOOL        m_bAskAtStartUp;
 
122
    //}}AFX_DATA
 
123
 
 
124
    nsAutoString m_SelectedProfile;
 
125
 
 
126
// Overrides
 
127
    // ClassWizard generated virtual function overrides
 
128
    //{{AFX_VIRTUAL(CProfilesDlg)
 
129
    protected:
 
130
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
 
131
    //}}AFX_VIRTUAL
 
132
 
 
133
// Implementation
 
134
protected:
 
135
 
 
136
    // Generated message map functions
 
137
    //{{AFX_MSG(CProfilesDlg)
 
138
    virtual BOOL OnInitDialog();
 
139
    afx_msg void OnNewProfile();
 
140
    afx_msg void OnRenameProfile();
 
141
    afx_msg void OnDeleteProfile();
 
142
    afx_msg void OnDblclkProfile();
 
143
    //}}AFX_MSG
 
144
    DECLARE_MESSAGE_MAP()
 
145
};
 
146
 
 
147
//{{AFX_INSERT_LOCATION}}
 
148
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
 
149
 
 
150
#endif // !defined(AFX_PROFILESDLG_H__48358887_EBFA_11D4_9905_00B0D0235410__INCLUDED_)