//####COPYRIGHTBEGIN####
|
//####COPYRIGHTBEGIN####
|
//
|
//
|
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
// Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
|
// Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
|
//
|
//
|
// This program is part of the eCos host tools.
|
// This program is part of the eCos host tools.
|
//
|
//
|
// This program is free software; you can redistribute it and/or modify it
|
// This program is free software; you can redistribute it and/or modify it
|
// under the terms of the GNU General Public License as published by the Free
|
// under the terms of the GNU General Public License as published by the Free
|
// Software Foundation; either version 2 of the License, or (at your option)
|
// Software Foundation; either version 2 of the License, or (at your option)
|
// any later version.
|
// any later version.
|
//
|
//
|
// This program is distributed in the hope that it will be useful, but WITHOUT
|
// This program is distributed in the hope that it will be useful, but WITHOUT
|
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
// more details.
|
// more details.
|
//
|
//
|
// You should have received a copy of the GNU General Public License along with
|
// You should have received a copy of the GNU General Public License along with
|
// this program; if not, write to the Free Software Foundation, Inc.,
|
// this program; if not, write to the Free Software Foundation, Inc.,
|
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
//
|
//
|
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
//
|
//
|
//####COPYRIGHTEND####
|
//####COPYRIGHTEND####
|
//===========================================================================
|
//===========================================================================
|
//#####DESCRIPTIONBEGIN####
|
//#####DESCRIPTIONBEGIN####
|
//
|
//
|
// Author(s): sdf
|
// Author(s): sdf
|
// Contact(s): sdf
|
// Contact(s): sdf
|
// Date: 1998/08/11
|
// Date: 1998/08/11
|
// Version: 0.01
|
// Version: 0.01
|
// Purpose:
|
// Purpose:
|
// Description: Implementation of the Properties Dialog
|
// Description: Implementation of the Properties Dialog
|
// Requires:
|
// Requires:
|
// Provides:
|
// Provides:
|
// See also:
|
// See also:
|
// Known bugs:
|
// Known bugs:
|
// Usage:
|
// Usage:
|
//
|
//
|
//####DESCRIPTIONEND####
|
//####DESCRIPTIONEND####
|
//
|
//
|
//===========================================================================
|
//===========================================================================
|
|
|
#include "stdafx.h"
|
#include "stdafx.h"
|
#include "CTPropertiesDialog.h"
|
#include "CTPropertiesDialog.h"
|
#include "ConfigItem.h"
|
#include "ConfigItem.h"
|
#include "ConfigToolDoc.h"
|
#include "ConfigToolDoc.h"
|
|
|
#ifdef _DEBUG
|
#ifdef _DEBUG
|
#define new DEBUG_NEW
|
#define new DEBUG_NEW
|
#undef THIS_FILE
|
#undef THIS_FILE
|
static char THIS_FILE[] = __FILE__;
|
static char THIS_FILE[] = __FILE__;
|
#endif
|
#endif
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
// CCTPropertiesDialog dialog
|
// CCTPropertiesDialog dialog
|
|
|
|
|
CCTPropertiesDialog::CCTPropertiesDialog(CConfigItem &ti)
|
CCTPropertiesDialog::CCTPropertiesDialog(CConfigItem &ti)
|
: CeCosDialog(IDD, NULL),
|
: CeCosDialog(IDD, NULL),
|
m_ti(ti)
|
m_ti(ti)
|
{
|
{
|
//{{AFX_DATA_INIT(CCTPropertiesDialog)
|
//{{AFX_DATA_INIT(CCTPropertiesDialog)
|
// NOTE: the ClassWizard will add member initialization here
|
// NOTE: the ClassWizard will add member initialization here
|
//}}AFX_DATA_INIT
|
//}}AFX_DATA_INIT
|
}
|
}
|
|
|
|
|
void CCTPropertiesDialog::DoDataExchange(CDataExchange* pDX)
|
void CCTPropertiesDialog::DoDataExchange(CDataExchange* pDX)
|
{
|
{
|
CeCosDialog::DoDataExchange(pDX);
|
CeCosDialog::DoDataExchange(pDX);
|
//{{AFX_DATA_MAP(CCTPropertiesDialog)
|
//{{AFX_DATA_MAP(CCTPropertiesDialog)
|
//DDX_Control(pDX, IDC_LIST, m_List);
|
//DDX_Control(pDX, IDC_LIST, m_List);
|
//}}AFX_DATA_MAP
|
//}}AFX_DATA_MAP
|
}
|
}
|
|
|
|
|
BEGIN_MESSAGE_MAP(CCTPropertiesDialog, CeCosDialog)
|
BEGIN_MESSAGE_MAP(CCTPropertiesDialog, CeCosDialog)
|
//{{AFX_MSG_MAP(CCTPropertiesDialog)
|
//{{AFX_MSG_MAP(CCTPropertiesDialog)
|
//}}AFX_MSG_MAP
|
//}}AFX_MSG_MAP
|
END_MESSAGE_MAP()
|
END_MESSAGE_MAP()
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
// CCTPropertiesDialog message handlers
|
// CCTPropertiesDialog message handlers
|
|
|
|
|
|
|
BOOL CCTPropertiesDialog::OnInitDialog()
|
BOOL CCTPropertiesDialog::OnInitDialog()
|
{
|
{
|
CeCosDialog::OnInitDialog();
|
CeCosDialog::OnInitDialog();
|
SetWindowText(m_ti.ItemNameOrMacro());
|
SetWindowText(m_ti.ItemNameOrMacro());
|
CRect rect;
|
CRect rect;
|
GetDlgItem(IDC_VIEW_PROPERTIES_LIST)->GetWindowRect(rect);
|
GetDlgItem(IDC_VIEW_PROPERTIES_LIST)->GetWindowRect(rect);
|
ScreenToClient(rect);
|
ScreenToClient(rect);
|
m_List.CreateEx(WS_EX_CLIENTEDGE,WC_LISTVIEW,NULL,WS_HSCROLL|WS_VSCROLL|WS_VISIBLE|WS_CHILD,rect,this,IDC_VIEW_PROPERTIES_LIST);
|
m_List.CreateEx(WS_EX_CLIENTEDGE,WC_LISTVIEW,NULL,WS_HSCROLL|WS_VSCROLL|WS_VISIBLE|WS_CHILD,rect,this,IDC_VIEW_PROPERTIES_LIST);
|
m_List.Fill(&m_ti);
|
m_List.Fill(&m_ti);
|
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
return TRUE; // return TRUE unless you set the focus to a control
|
// EXCEPTION: OCX Property Pages should return FALSE
|
// EXCEPTION: OCX Property Pages should return FALSE
|
}
|
}
|
|
|