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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [configtool/] [common/] [win32/] [FailingRulesDialog.h] - 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
#if !defined(AFX_FAILINGRULESDIALOG_H__E264B972_8875_11D2_BF54_00A0C949ADAC__INCLUDED_)
23
#define AFX_FAILINGRULESDIALOG_H__E264B972_8875_11D2_BF54_00A0C949ADAC__INCLUDED_
24
 
25
#if _MSC_VER >= 1000
26
#pragma once
27
#endif // _MSC_VER >= 1000
28
// FailingRulesDialog.h : header file
29
//
30
 
31
#include "resource.h"
32
#include "RulesList.h"
33
#include "eCosDialog.h"
34
#include "TTListCtrl.h"
35
 
36
/////////////////////////////////////////////////////////////////////////////
37
// CFailingRulesDialog dialog
38
class CConfigItem;
39
class CdlConflictBody;
40
class CdlTransactionBody;
41
class CFailingRulesDialog : public CeCosDialog
42
{
43
// Construction
44
public:
45
        CFailingRulesDialog (std::list<CdlConflict> conflicts,CdlTransaction=NULL,CPtrArray *parConflictsOfInterest=NULL);
46
  virtual ~CFailingRulesDialog();
47
  bool IsSelected (int nIndex);
48
// Dialog Data
49
        //{{AFX_DATA(CFailingRulesDialog)
50
        enum { IDD = IDD_RESOLVE_CONFLICTS_DIALOG };
51
        CTTListCtrl m_List;
52
        CRulesList  m_RulesList;
53
        //}}AFX_DATA
54
 
55
 
56
// Overrides
57
        // ClassWizard generated virtual function overrides
58
        //{{AFX_VIRTUAL(CFailingRulesDialog)
59
        public:
60
        protected:
61
        virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
62
        //}}AFX_VIRTUAL
63
 
64
// Implementation
65
protected:
66
        void SetButtons();
67
  struct SolutionInfo {
68
    int nCount;
69
    enum {CHECKED=-1,UNCHECKED=-2};
70
    int arItem[1]; // real size==nCount.
71
    // Each element of nItem==item index (if selected) or accept bool (if not)
72
  };
73
        SolutionInfo & Info (const CdlConflict conflict);
74
        UINT m_idTimer;
75
        void SetAll (bool bOnOff);
76
        CMapPtrToPtr m_Map; // maps conficts to bool array representing fixes
77
        void AddConflictSolutions (CdlConflict conflict);
78
        void RemoveConflictSolutions (CdlConflict conflict);
79
  CStringArray m_arValues;
80
  const std::list<CdlConflict> m_conflicts;
81
  CdlTransactionBody *m_Transaction;
82
  CPtrArray *m_parConflictsOfInterest;
83
  void OnLocate();
84
  int m_nContextItem;
85
  int m_nContextRow;
86
  BOOL OnNotify( WPARAM wParam, LPARAM lParam, LRESULT* pResult );
87
 
88
        // Generated message map functions
89
        //{{AFX_MSG(CFailingRulesDialog)
90
        virtual BOOL OnInitDialog();
91
        virtual void OnOK();
92
        virtual void OnCancel();
93
  afx_msg void OnReset();
94
  afx_msg BOOL OnItemChanged(UINT, LPNMLISTVIEW pnmv, LRESULT* pResult);
95
  afx_msg BOOL OnClick(UINT,LPNMLISTVIEW pnmv, LRESULT* pResult);
96
  afx_msg BOOL OnSolutionItemChanged(UINT,LPNMLISTVIEW pnmv, LRESULT* pResult);
97
        afx_msg void OnConflictsNone();
98
  afx_msg BOOL OnRClick(UINT,LPNMITEMACTIVATE pnmv, LRESULT* pResult);
99
        //}}AFX_MSG
100
        DECLARE_MESSAGE_MAP()
101
};
102
 
103
//{{AFX_INSERT_LOCATION}}
104
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
105
 
106
#endif // !defined(AFX_FAILINGRULESDIALOG_H__E264B972_8875_11D2_BF54_00A0C949ADAC__INCLUDED_)

powered by: WebSVN 2.1.0

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