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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [configtool/] [standalone/] [wxwin/] [conflictsdlg.h] - Blame information for rev 790

Go to most recent revision | 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
// conflictsdlg.h :
23
//
24
//===========================================================================
25
//#####DESCRIPTIONBEGIN####
26
//
27
// Author(s):   julians
28
// Contact(s):  julians
29
// Date:        2000/09/06
30
// Version:     $Id: conflictsdlg.h,v 1.2 2001/03/23 13:38:04 julians Exp $
31
// Purpose:
32
// Description: Header file for ecResolveConflictsDialog
33
// Requires:
34
// Provides:
35
// See also:
36
// Known bugs:
37
// Usage:
38
//
39
//####DESCRIPTIONEND####
40
//
41
//===========================================================================
42
 
43
#ifndef _ECOS_CONFLICTSDLG_H_
44
#define _ECOS_CONFLICTSDLG_H_
45
 
46
#ifdef __GNUG__
47
#pragma interface "conflictsdlg.h"
48
#endif
49
 
50
#include "wx/wx.h"
51
#include "wx/listctrl.h"
52
 
53
#include "ecutils.h"
54
 
55
// Forward declarations
56
class ecConflictListCtrl;
57
class ecSolutionListCtrl;
58
 
59
class ecResolveConflictsDialog : public ecDialog
60
{
61
public:
62
// Ctor(s)
63
        ecResolveConflictsDialog(wxWindow* parent, std::list<CdlConflict> conflicts, CdlTransaction=NULL, wxList *parConflictsOfInterest=NULL);
64
    ~ecResolveConflictsDialog();
65
 
66
//// Event handlers
67
 
68
    void OnContinue(wxCommandEvent& event);
69
    void OnAll(wxCommandEvent& event);
70
    void OnNone(wxCommandEvent& event);
71
    void OnInitDialog(wxInitDialogEvent& event);
72
    void OnUpdateAll(wxUpdateUIEvent& event);
73
    void OnUpdateNone(wxUpdateUIEvent& event);
74
    void OnConflictSelected(wxListEvent& event) ;
75
    void OnConflictDeselected(wxListEvent& event) ;
76
 
77
//// Operations
78
    void CreateControls(wxWindow* parent);
79
 
80
protected:
81
    struct SolutionInfo {
82
        int nCount;
83
        enum {CHECKED=-1,UNCHECKED=-2};
84
        int arItem[1]; // real size==nCount.
85
        // Each element of nItem==item index (if selected) or accept bool (if not)
86
    };
87
 
88
    void SetButtons();
89
    void AddConflictSolutions (CdlConflict conflict);
90
    void RemoveConflictSolutions (CdlConflict conflict);
91
    void OnLocate();
92
    SolutionInfo & Info (const CdlConflict conflict);
93
    void SetAll (bool bOnOff);
94
 
95
//// Member variables
96
protected:
97
    //UINT m_idTimer;
98
    wxHashTable             m_Map; // maps conflicts to bool array representing fixes
99
    wxArrayString           m_arValues;
100
    const std::list<CdlConflict> m_conflicts;
101
    CdlTransactionBody*     m_Transaction;
102
    wxList*                 m_parConflictsOfInterest;
103
    int                     m_nContextItem;
104
    int                     m_nContextRow;
105
 
106
 
107
    ecConflictListCtrl* m_conflictsCtrl;
108
    ecSolutionListCtrl* m_solutionsCtrl;
109
 
110
private:
111
    DECLARE_EVENT_TABLE()
112
};
113
 
114
#define ecID_RESOLVE_CONFLICTS_DIALOG   2031
115
#define ecID_CONFLICTS_CONTINUE     3000
116
#define ecID_CONFLICTS_CONFLICTS    3005
117
#define ecID_CONFLICTS_NONE         3001
118
#define ecID_CONFLICTS_ALL          3002
119
#define ecID_CONFLICTS_SOLUTIONS    3004
120
#define ecID_CONFLICTS_MSG          3005
121
 
122
 
123
#endif
124
        // _ECOS_CONFLICTSDLG_H_

powered by: WebSVN 2.1.0

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