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 |
|
|
#if !defined(AFX_PROPERTIESLIST_H__AEF48733_8D31_11D3_A535_00A0C949ADAC__INCLUDED_)
|
23 |
|
|
#define AFX_PROPERTIESLIST_H__AEF48733_8D31_11D3_A535_00A0C949ADAC__INCLUDED_
|
24 |
|
|
|
25 |
|
|
#if _MSC_VER > 1000
|
26 |
|
|
#pragma once
|
27 |
|
|
#endif // _MSC_VER > 1000
|
28 |
|
|
// PropertiesList.h : header file
|
29 |
|
|
//
|
30 |
|
|
|
31 |
|
|
#include "TTListCtrl.h"
|
32 |
|
|
|
33 |
|
|
#define INCLUDEFILE "cdl.hxx"
|
34 |
|
|
#include "IncludeSTL.h"
|
35 |
|
|
/////////////////////////////////////////////////////////////////////////////
|
36 |
|
|
// CRulesList window
|
37 |
|
|
class CConfigItem;
|
38 |
|
|
class CRulesList : public CTTListCtrl
|
39 |
|
|
{
|
40 |
|
|
// Construction
|
41 |
|
|
public:
|
42 |
|
|
CRulesList();
|
43 |
|
|
|
44 |
|
|
// Attributes
|
45 |
|
|
public:
|
46 |
|
|
|
47 |
|
|
// Operations
|
48 |
|
|
public:
|
49 |
|
|
void AddConflict (const CdlConflict& conflict);
|
50 |
|
|
void AddConflicts (const std::list<CdlConflict>& conflicts);
|
51 |
|
|
void AddConflicts (const std::vector<CdlConflict>& conflicts);
|
52 |
|
|
CConfigItem *AssociatedItem (int nRow,int nCol);
|
53 |
|
|
|
54 |
|
|
// Overrides
|
55 |
|
|
// ClassWizard generated virtual function overrides
|
56 |
|
|
//{{AFX_VIRTUAL(CRulesList)
|
57 |
|
|
//}}AFX_VIRTUAL
|
58 |
|
|
|
59 |
|
|
// Implementation
|
60 |
|
|
public:
|
61 |
|
|
virtual ~CRulesList();
|
62 |
|
|
// Generated message map functions
|
63 |
|
|
protected:
|
64 |
|
|
static int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort) {
|
65 |
|
|
return ((CRulesList*)lParamSort)->CompareFunc(lParam1,lParam2);
|
66 |
|
|
}
|
67 |
|
|
int CompareFunc(LPARAM lParam1, LPARAM lParam2);
|
68 |
|
|
|
69 |
|
|
double m_fWidth;
|
70 |
|
|
enum {NCOLS=3};
|
71 |
|
|
double m_f[NCOLS]; // relative proportions of columns
|
72 |
|
|
LPARAM m_nLastCol;
|
73 |
|
|
//{{AFX_MSG(CRulesList)
|
74 |
|
|
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
75 |
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
76 |
|
|
afx_msg void OnEndTrack(NMHEADER *pNMHeader, LRESULT* pResult) ;
|
77 |
|
|
afx_msg void OnColumnclick(NMHDR* pNMHDR, LRESULT* pResult);
|
78 |
|
|
afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
|
79 |
|
|
//}}AFX_MSG
|
80 |
|
|
|
81 |
|
|
DECLARE_MESSAGE_MAP()
|
82 |
|
|
};
|
83 |
|
|
|
84 |
|
|
/////////////////////////////////////////////////////////////////////////////
|
85 |
|
|
|
86 |
|
|
//{{AFX_INSERT_LOCATION}}
|
87 |
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
88 |
|
|
|
89 |
|
|
#endif // !defined(AFX_PROPERTIESLIST_H__AEF48733_8D31_11D3_A535_00A0C949ADAC__INCLUDED_)
|