~psiphon-inc/+junk/psiphon-1.6

« back to all changes in this revision

Viewing changes to psiphonPanel/SetupDlg.h

  • Committer: jamyang
  • Date: 2009-05-14 20:59:48 UTC
  • Revision ID: jamyang@jamyangs-mac-mini.local-20090514205948-n3wp8io1e0uqwbp7
psiphon-1.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
////////////////////////////////////////////////////////////////////////////////
 
2
//      Copyright (c) CitizenLab, 2006. All Rights Reserved.
 
3
//      The latest version of this code is available at http://psiphon.civisec.org/
 
4
//
 
5
//      This software is open source; you can redistribute it and/or modify it 
 
6
//      under the terms of the GNU General Public License as published by the 
 
7
//      Free Software Foundation; either version 2 of the License, or (at your 
 
8
//      option) any later version.
 
9
//
 
10
//      This program is distributed WITHOUT ANY WARRANTY; without even the 
 
11
//      implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 
12
//      See the GNU General Public License for more details at:
 
13
//      http://psiphon.civisec.org/
 
14
//      
 
15
//      This General Public License does NOT permit incorporating this software 
 
16
//      into proprietary programs.
 
17
////////////////////////////////////////////////////////////////////////////////
 
18
 
 
19
#pragma once
 
20
 
 
21
 
 
22
 
 
23
class wxLinkDlg;
 
24
class wxPrefDlg;
 
25
class wxPsiphonDlg;
 
26
class wxCertDlg;
 
27
 
 
28
class wxSetupDlg : public wxDialog
 
29
{
 
30
        wxPsiphonDlg* m_pPsiphonDlg;
 
31
 
 
32
        wxLinkDlg* m_pSettingsDlg;
 
33
        wxPrefDlg* m_pPrefDlg;
 
34
        wxCertDlg* m_pCertDlg;
 
35
 
 
36
        bool m_bCertificateChanged;
 
37
        bool m_bLinkChanged;
 
38
 
 
39
public:
 
40
        wxSetupDlg();
 
41
        wxSetupDlg(wxPsiphonDlg* _pPsiphonDlg);
 
42
 
 
43
        bool Create(wxWindow* parent);
 
44
        void CreateControls();
 
45
        bool IsCertificateChanged()
 
46
        {
 
47
                return m_bCertificateChanged;
 
48
        }
 
49
        bool IsLinkChanged()
 
50
        {
 
51
                return m_bLinkChanged;
 
52
        }
 
53
 
 
54
protected:
 
55
        void OnInitDialog(wxInitDialogEvent& event);
 
56
        void OnOK(wxCommandEvent& event);
 
57
 
 
58
        DECLARE_DYNAMIC_CLASS(wxSetupDlg)
 
59
        DECLARE_EVENT_TABLE()
 
60
};
 
61