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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [configtool/] [standalone/] [wxwin/] [propertywin.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: propertywin.h,v 1.4 2001/04/18 11:47:56 julians Exp $
31
// Purpose:
32
// Description: Header file for ecPropertyListCtrl
33
// Requires:
34
// Provides:
35
// See also:
36
// Known bugs:
37
// Usage:
38
//
39
//####DESCRIPTIONEND####
40
//
41
//===========================================================================
42
 
43
#ifndef _ECOS_PROPERTYWIN_H_
44
#define _ECOS_PROPERTYWIN_H_
45
 
46
#ifdef __GNUG__
47
#pragma interface "propertywin.h"
48
#endif
49
 
50
#include "wx/listctrl.h"
51
 
52
class ecConfigItem;
53
 
54
class ecPropertyListCtrl : public wxListCtrl
55
{
56
public:
57
    enum ecFieldType {ecType, ecValue, ecDefaultValue, ecMacro, ecFile, ecURL, ecEnabled, ecMAXFIELDTYPE};
58
 
59
// Ctor(s)
60
    ecPropertyListCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style);
61
 
62
//// Event handlers
63
 
64
    void OnRightClick(wxMouseEvent& event);
65
    void OnDoubleClick(wxMouseEvent& event);
66
 
67
//// Accessors
68
    int SetItem (ecFieldType f, const wxString& value);
69
    int SetItem (const wxString& item, const wxString& value,int nInsertAs,int nRepeat=1);
70
    int SetProperty (const wxString& value, CdlProperty prop);
71
        static bool PropertyInConflictsList (CdlProperty property, const std::list<CdlConflict> & conflicts);
72
 
73
//// Operations
74
 
75
    void Fill(ecConfigItem *pti);
76
    void AddColumns();
77
    void RefreshValue();
78
 
79
protected:
80
private:
81
    DECLARE_EVENT_TABLE()
82
    DECLARE_CLASS(ecPropertyListCtrl)
83
 
84
    double m_fWidth;
85
    enum {NCOLS=2};
86
    double m_f[NCOLS]; // relative proportions of columns
87
    int m_nLastCol;
88
    int m_nOnSizeRecursionCount;
89
    int m_nMaxValueWidth;
90
    int m_nFirstProperty;
91
    ecConfigItem *m_pti;
92
 
93
    static const std::string visible_properties [];
94
        static const wxChar* sm_fieldTypeImage[ecMAXFIELDTYPE];
95
};
96
 
97
 
98
#endif
99
        // _ECOS_PROPERTYWIN_H_

powered by: WebSVN 2.1.0

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