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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [configtool/] [common/] [win32/] [CTPropertiesDialog.cpp] - Blame information for rev 786

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
//===========================================================================
23
//#####DESCRIPTIONBEGIN####
24
//
25
// Author(s):   sdf
26
// Contact(s):  sdf
27
// Date:                1998/08/11
28
// Version:             0.01
29
// Purpose:     
30
// Description: Implementation of the Properties Dialog
31
// Requires:    
32
// Provides:    
33
// See also:    
34
// Known bugs:  
35
// Usage:       
36
//
37
//####DESCRIPTIONEND####
38
//
39
//===========================================================================
40
 
41
#include "stdafx.h"
42
#include "CTPropertiesDialog.h"
43
#include "ConfigItem.h"
44
#include "ConfigToolDoc.h"
45
 
46
#ifdef _DEBUG
47
#define new DEBUG_NEW
48
#undef THIS_FILE
49
static char THIS_FILE[] = __FILE__;
50
#endif
51
 
52
 
53
/////////////////////////////////////////////////////////////////////////////
54
// CCTPropertiesDialog dialog
55
 
56
 
57
CCTPropertiesDialog::CCTPropertiesDialog(CConfigItem &ti)
58
        : CeCosDialog(IDD, NULL),
59
        m_ti(ti)
60
{
61
        //{{AFX_DATA_INIT(CCTPropertiesDialog)
62
                // NOTE: the ClassWizard will add member initialization here
63
        //}}AFX_DATA_INIT
64
}
65
 
66
 
67
void CCTPropertiesDialog::DoDataExchange(CDataExchange* pDX)
68
{
69
        CeCosDialog::DoDataExchange(pDX);
70
        //{{AFX_DATA_MAP(CCTPropertiesDialog)
71
        //DDX_Control(pDX, IDC_LIST, m_List);
72
        //}}AFX_DATA_MAP
73
}
74
 
75
 
76
BEGIN_MESSAGE_MAP(CCTPropertiesDialog, CeCosDialog)
77
        //{{AFX_MSG_MAP(CCTPropertiesDialog)
78
        //}}AFX_MSG_MAP
79
END_MESSAGE_MAP()
80
 
81
/////////////////////////////////////////////////////////////////////////////
82
// CCTPropertiesDialog message handlers
83
 
84
 
85
 
86
BOOL CCTPropertiesDialog::OnInitDialog()
87
{
88
  CeCosDialog::OnInitDialog();
89
  SetWindowText(m_ti.ItemNameOrMacro());
90
  CRect rect;
91
  GetDlgItem(IDC_VIEW_PROPERTIES_LIST)->GetWindowRect(rect);
92
  ScreenToClient(rect);
93
  m_List.CreateEx(WS_EX_CLIENTEDGE,WC_LISTVIEW,NULL,WS_HSCROLL|WS_VSCROLL|WS_VISIBLE|WS_CHILD,rect,this,IDC_VIEW_PROPERTIES_LIST);
94
  m_List.Fill(&m_ti);
95
 
96
        return TRUE;  // return TRUE unless you set the focus to a control
97
                      // EXCEPTION: OCX Property Pages should return FALSE
98
}

powered by: WebSVN 2.1.0

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