1 //####COPYRIGHTBEGIN####
3 // ----------------------------------------------------------------------------
4 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
6 // This program is part of the eCos host tools.
8 // This program is free software; you can redistribute it and/or modify it
9 // under the terms of the GNU General Public License as published by the Free
10 // Software Foundation; either version 2 of the License, or (at your option)
13 // This program is distributed in the hope that it will be useful, but WITHOUT
14 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
18 // You should have received a copy of the GNU General Public License along with
19 // this program; if not, write to the Free Software Foundation, Inc.,
20 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 // ----------------------------------------------------------------------------
24 //####COPYRIGHTEND####
27 //===========================================================================
28 //#####DESCRIPTIONBEGIN####
31 // Contact(s): julians
33 // Version: $Id: configtoolview.h,v 1.4 2001/03/22 11:27:28 julians Exp $
35 // Description: Header file for ecConfigToolView
42 //####DESCRIPTIONEND####
44 //===========================================================================
46 #ifndef _ECOS_CONFIGTOOLVIEW_H_
47 #define _ECOS_CONFIGTOOLVIEW_H_
50 #pragma interface "configtoolview.h"
53 #include "wx/docview.h"
54 #include "wx/treectrl.h"
61 class ecConfigToolView: public wxView
63 DECLARE_DYNAMIC_CLASS(ecConfigToolView)
66 ~ecConfigToolView() {};
69 bool OnCreate(wxDocument *doc, long flags);
70 void OnDraw(wxDC *dc);
71 void OnUpdate(wxView *sender, wxObject *hint = (wxObject *) NULL);
72 bool OnClose(bool deleteWindow = TRUE);
73 void OnChangeFilename();
76 void Refresh(const wxString& macroName);
77 void Refresh (wxTreeItemId h);
78 ecConfigItem *DoFind(const wxString& what, wxWindow* parent) ;
81 bool IsWordChar(wxChar c);
86 void OnUpdateDisable(wxUpdateUIEvent& event);
91 wxTreeItemId m_expandedForFind;
97 * Hint to pass to UpdateAllViews
101 // Update hint symbols
104 #define ecNameFormatChanged 2
105 #define ecIntFormatChanged 3
107 #define ecValueChanged 5
108 #define ecExternallyChanged 6
109 #define ecSelChanged 7
110 #define ecFilenameChanged 8
111 #define ecMemLayoutChanged 9
114 class ecConfigToolHint: public wxObject
117 ecConfigToolHint(ecConfigItem* item, int op) { m_item = item; m_op = op; }
119 ecConfigItem* m_item;
125 // _ECOS_CONFIGTOOLVIEW_H_