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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [configtool/] [standalone/] [wxwin/] [configtoolview.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
// configtoolview.h :
23
//
24
//===========================================================================
25
//#####DESCRIPTIONBEGIN####
26
//
27
// Author(s):   julians
28
// Contact(s):  julians
29
// Date:        2000/10/05
30
// Version:     $Id: configtoolview.h,v 1.4 2001/03/22 11:27:28 julians Exp $
31
// Purpose:
32
// Description: Header file for ecConfigToolView
33
// Requires:
34
// Provides:
35
// See also:
36
// Known bugs:
37
// Usage:
38
//
39
//####DESCRIPTIONEND####
40
//
41
//===========================================================================
42
 
43
#ifndef _ECOS_CONFIGTOOLVIEW_H_
44
#define _ECOS_CONFIGTOOLVIEW_H_
45
 
46
#ifdef __GNUG__
47
#pragma interface "configtoolview.h"
48
#endif
49
 
50
#include "wx/docview.h"
51
#include "wx/treectrl.h"
52
 
53
/*
54
 * ecConfigToolView
55
 */
56
 
57
class ecConfigItem;
58
class ecConfigToolView: public wxView
59
{
60
    DECLARE_DYNAMIC_CLASS(ecConfigToolView)
61
public:
62
    ecConfigToolView();
63
    ~ecConfigToolView() {};
64
 
65
//// Overrides
66
    bool OnCreate(wxDocument *doc, long flags);
67
    void OnDraw(wxDC *dc);
68
    void OnUpdate(wxView *sender, wxObject *hint = (wxObject *) NULL);
69
    bool OnClose(bool deleteWindow = TRUE);
70
    void OnChangeFilename();
71
 
72
//// Operations
73
    void Refresh(const wxString& macroName);
74
    void Refresh (wxTreeItemId h);
75
    ecConfigItem *DoFind(const wxString& what, wxWindow* parent) ;
76
 
77
//// Helpers
78
    bool IsWordChar(wxChar c);
79
 
80
//// Event handlers
81
 
82
    // General disabler
83
    void OnUpdateDisable(wxUpdateUIEvent& event);
84
 
85
DECLARE_EVENT_TABLE()
86
 
87
protected:
88
    wxTreeItemId m_expandedForFind;
89
};
90
 
91
/*
92
 * ecConfigToolHint
93
 *
94
 * Hint to pass to UpdateAllViews
95
 *
96
 */
97
 
98
// Update hint symbols
99
#define ecNoHint                0
100
#define ecAllSaved              1
101
#define ecNameFormatChanged     2
102
#define ecIntFormatChanged      3
103
#define ecClear                 4
104
#define ecValueChanged          5
105
#define ecExternallyChanged     6
106
#define ecSelChanged            7
107
#define ecFilenameChanged       8
108
#define ecMemLayoutChanged      9
109
 
110
class ecConfigItem;
111
class ecConfigToolHint: public wxObject
112
{
113
public:
114
    ecConfigToolHint(ecConfigItem* item, int op) { m_item = item; m_op = op; }
115
 
116
    ecConfigItem*   m_item;
117
    int             m_op;
118
};
119
 
120
 
121
#endif
122
        // _ECOS_CONFIGTOOLVIEW_H_

powered by: WebSVN 2.1.0

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