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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [configtool/] [standalone/] [wxwin/] [conflictwin.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
// propertywin.h :
23
//
24
//===========================================================================
25
//#####DESCRIPTIONBEGIN####
26
//
27
// Author(s):   julians
28
// Contact(s):  julians
29
// Date:        2000/09/04
30
// Version:     $Id: conflictwin.h,v 1.2 2001/04/06 15:29:40 julians Exp $
31
// Purpose:
32
// Description: Header file for ecConflictListCtrl
33
// Requires:
34
// Provides:
35
// See also:
36
// Known bugs:
37
// Usage:
38
//
39
//####DESCRIPTIONEND####
40
//
41
//===========================================================================
42
 
43
#ifndef _ECOS_CONFLICTWIN_H_
44
#define _ECOS_CONFLICTWIN_H_
45
 
46
#ifdef __GNUG__
47
#pragma interface "conflictwin.h"
48
#endif
49
 
50
#include "wx/listctrl.h"
51
 
52
class ecConfigItem;
53
 
54
/*
55
 * ecConflictListCtrl
56
 *
57
 * Displays conflicts. Equivalent to original configtool's CRulesList class.
58
 */
59
 
60
class ecConflictListCtrl : public wxListCtrl
61
{
62
public:
63
// Ctor(s)
64
    ecConflictListCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style);
65
    ~ecConflictListCtrl();
66
    bool IsSelected (int nIndex);
67
 
68
//// Event handlers
69
    void OnRightClick(wxMouseEvent& event);
70
    void OnLocate(wxCommandEvent& event);
71
    void OnResolve(wxCommandEvent& event);
72
    void OnLeftDClick(wxMouseEvent& event);
73
 
74
//// Operations
75
    void AddConflict (const CdlConflict& conflict);
76
    void AddConflicts (const std::list<CdlConflict>& conflicts);
77
    void AddConflicts (const std::vector<CdlConflict>& conflicts);
78
    ecConfigItem *AssociatedItem (int nRow,int nCol);
79
    void FillRules();
80
 
81
    wxMenu* GetContextMenu() const { return m_contextMenu; }
82
 
83
protected:
84
private:
85
    wxMenu* m_contextMenu;
86
    long    m_contextItem; // Item right-clicked over
87
    long    m_contextCol;  // Column clicked over
88
 
89
    DECLARE_EVENT_TABLE()
90
    DECLARE_CLASS(ecConflictListCtrl)
91
};
92
 
93
 
94
#endif
95
        // _ECOS_CONFLICTWIN_H_

powered by: WebSVN 2.1.0

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