OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [pkgadmin/] [win32/] [PkgAdminLicenseDlg.cpp] - Blame information for rev 790

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
// ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
2
// -------------------------------------------                              
3
// This file is part of the eCos host tools.                                
4
// Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.            
5
//
6
// This program is free software; you can redistribute it and/or modify     
7
// it under the terms of the GNU General Public License as published by     
8
// the Free Software Foundation; either version 2 or (at your option) any   
9
// later version.                                                           
10
//
11
// This program is distributed in the hope that it will be useful, but      
12
// WITHOUT ANY WARRANTY; without even the implied warranty of               
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU        
14
// General Public License for more details.                                 
15
//
16
// You should have received a copy of the GNU General Public License        
17
// along with this program; if not, write to the                            
18
// Free Software Foundation, Inc., 51 Franklin Street,                      
19
// Fifth Floor, Boston, MA  02110-1301, USA.                                
20
// -------------------------------------------                              
21
// ####ECOSHOSTGPLCOPYRIGHTEND####                                          
22
// PkgAdminLicenseDlg.cpp : implementation file
23
//
24
 
25
#include "stdafx.h"
26
#include "PkgAdmin.h"
27
#include "PkgAdminLicenseDlg.h"
28
 
29
#ifdef _DEBUG
30
#define new DEBUG_NEW
31
#undef THIS_FILE
32
static char THIS_FILE[] = __FILE__;
33
#endif
34
 
35
/////////////////////////////////////////////////////////////////////////////
36
// CPkgAdminLicenseDlg dialog
37
 
38
 
39
CPkgAdminLicenseDlg::CPkgAdminLicenseDlg(CWnd* pParent /*=NULL*/)
40
        : CeCosDialog(CPkgAdminLicenseDlg::IDD, pParent)
41
{
42
        //{{AFX_DATA_INIT(CPkgAdminLicenseDlg)
43
        m_strLicense = _T("");
44
        m_strCaption = _T("");
45
        //}}AFX_DATA_INIT
46
}
47
 
48
 
49
void CPkgAdminLicenseDlg::DoDataExchange(CDataExchange* pDX)
50
{
51
        CeCosDialog::DoDataExchange(pDX);
52
        //{{AFX_DATA_MAP(CPkgAdminLicenseDlg)
53
        DDX_Control(pDX, IDC_PKGADMIN_LICENSE, m_edtLicense);
54
        DDX_Text(pDX, IDC_PKGADMIN_LICENSE, m_strLicense);
55
        //}}AFX_DATA_MAP
56
}
57
 
58
 
59
BEGIN_MESSAGE_MAP(CPkgAdminLicenseDlg, CeCosDialog)
60
        //{{AFX_MSG_MAP(CPkgAdminLicenseDlg)
61
        //}}AFX_MSG_MAP
62
END_MESSAGE_MAP()
63
 
64
/////////////////////////////////////////////////////////////////////////////
65
// CPkgAdminLicenseDlg message handlers
66
 
67
 
68
BOOL CPkgAdminLicenseDlg::OnInitDialog()
69
{
70
        CeCosDialog::OnInitDialog();
71
 
72
        m_fontLicense.CreatePointFont (90, _T("Courier New")); // use monospaced font
73
        m_edtLicense.SetFont (&m_fontLicense, FALSE);
74
 
75
        if (! m_strCaption.IsEmpty ())
76
                SetWindowText (m_strCaption);
77
 
78
        return TRUE;  // return TRUE unless you set the focus to a control
79
                      // EXCEPTION: OCX Property Pages should return FALSE
80
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.