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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [tools/] [src/] [tools/] [configtool/] [common/] [win32/] [CTPropertiesDialog.cpp] - Blame information for rev 321

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

Line No. Rev Author Line
1 26 unneback
//####COPYRIGHTBEGIN####
2
//                                                                          
3
// ----------------------------------------------------------------------------
4
// Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
5
//
6
// This program is part of the eCos host tools.
7
//
8
// This program is free software; you can redistribute it and/or modify it 
9
// under the terms of the GNU General Public License as published by the Free 
10
// Software Foundation; either version 2 of the License, or (at your option) 
11
// any later version.
12
// 
13
// This program is distributed in the hope that it will be useful, but WITHOUT 
14
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
15
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for 
16
// more details.
17
// 
18
// You should have received a copy of the GNU General Public License along with
19
// this program; if not, write to the Free Software Foundation, Inc., 
20
// 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21
//
22
// ----------------------------------------------------------------------------
23
//                                                                          
24
//####COPYRIGHTEND####
25
//===========================================================================
26
//#####DESCRIPTIONBEGIN####
27
//
28
// Author(s):   sdf
29
// Contact(s):  sdf
30
// Date:                1998/08/11
31
// Version:             0.01
32
// Purpose:     
33
// Description: Implementation of the Properties Dialog
34
// Requires:    
35
// Provides:    
36
// See also:    
37
// Known bugs:  
38
// Usage:       
39
//
40
//####DESCRIPTIONEND####
41
//
42
//===========================================================================
43
 
44
#include "stdafx.h"
45
#include "CTPropertiesDialog.h"
46
#include "ConfigItem.h"
47
#include "ConfigToolDoc.h"
48
 
49
#ifdef _DEBUG
50
#define new DEBUG_NEW
51
#undef THIS_FILE
52
static char THIS_FILE[] = __FILE__;
53
#endif
54
 
55
 
56
/////////////////////////////////////////////////////////////////////////////
57
// CCTPropertiesDialog dialog
58
 
59
 
60
CCTPropertiesDialog::CCTPropertiesDialog(CConfigItem &ti)
61
        : CeCosDialog(IDD, NULL),
62
        m_ti(ti)
63
{
64
        //{{AFX_DATA_INIT(CCTPropertiesDialog)
65
                // NOTE: the ClassWizard will add member initialization here
66
        //}}AFX_DATA_INIT
67
}
68
 
69
 
70
void CCTPropertiesDialog::DoDataExchange(CDataExchange* pDX)
71
{
72
        CeCosDialog::DoDataExchange(pDX);
73
        //{{AFX_DATA_MAP(CCTPropertiesDialog)
74
        //DDX_Control(pDX, IDC_LIST, m_List);
75
        //}}AFX_DATA_MAP
76
}
77
 
78
 
79
BEGIN_MESSAGE_MAP(CCTPropertiesDialog, CeCosDialog)
80
        //{{AFX_MSG_MAP(CCTPropertiesDialog)
81
        //}}AFX_MSG_MAP
82
END_MESSAGE_MAP()
83
 
84
/////////////////////////////////////////////////////////////////////////////
85
// CCTPropertiesDialog message handlers
86
 
87
 
88
 
89
BOOL CCTPropertiesDialog::OnInitDialog()
90
{
91
  CeCosDialog::OnInitDialog();
92
  SetWindowText(m_ti.ItemNameOrMacro());
93
  CRect rect;
94
  GetDlgItem(IDC_VIEW_PROPERTIES_LIST)->GetWindowRect(rect);
95
  ScreenToClient(rect);
96
  m_List.CreateEx(WS_EX_CLIENTEDGE,WC_LISTVIEW,NULL,WS_HSCROLL|WS_VSCROLL|WS_VISIBLE|WS_CHILD,rect,this,IDC_VIEW_PROPERTIES_LIST);
97
  m_List.Fill(&m_ti);
98
 
99
        return TRUE;  // return TRUE unless you set the focus to a control
100
                      // EXCEPTION: OCX Property Pages should return FALSE
101
}

powered by: WebSVN 2.1.0

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