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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [tools/] [src/] [tools/] [configtool/] [standalone/] [wxwin/] [configtoolview.h] - Rev 174

Compare with Previous | Blame | View Log

//####COPYRIGHTBEGIN####
//
// ----------------------------------------------------------------------------
// Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
//
// This program is part of the eCos host tools.
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2 of the License, or (at your option)
// any later version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along with
// this program; if not, write to the Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
// ----------------------------------------------------------------------------
//
//####COPYRIGHTEND####
// configtoolview.h :
//
//===========================================================================
//#####DESCRIPTIONBEGIN####
//
// Author(s):   julians
// Contact(s):  julians
// Date:        2000/10/05
// Version:     $Id: configtoolview.h,v 1.1.1.1 2004-02-14 13:28:49 phoenix Exp $
// Purpose:
// Description: Header file for ecConfigToolView
// Requires:
// Provides:
// See also:
// Known bugs:
// Usage:
//
//####DESCRIPTIONEND####
//
//===========================================================================
 
#ifndef _ECOS_CONFIGTOOLVIEW_H_
#define _ECOS_CONFIGTOOLVIEW_H_
 
#ifdef __GNUG__
#pragma interface "configtoolview.h"
#endif
 
#include "wx/docview.h"
#include "wx/treectrl.h"
 
/*
 * ecConfigToolView
 */
 
class ecConfigItem;
class ecConfigToolView: public wxView
{
    DECLARE_DYNAMIC_CLASS(ecConfigToolView)
public:
    ecConfigToolView();
    ~ecConfigToolView() {};
 
//// Overrides
    bool OnCreate(wxDocument *doc, long flags);
    void OnDraw(wxDC *dc);
    void OnUpdate(wxView *sender, wxObject *hint = (wxObject *) NULL);
    bool OnClose(bool deleteWindow = TRUE);
    void OnChangeFilename();
 
//// Operations
    void Refresh(const wxString& macroName);
    void Refresh (wxTreeItemId h);
    ecConfigItem *DoFind(const wxString& what, wxWindow* parent) ;
 
//// Helpers
    bool IsWordChar(wxChar c);
 
//// Event handlers
 
    // General disabler
    void OnUpdateDisable(wxUpdateUIEvent& event);
 
DECLARE_EVENT_TABLE()
 
protected:
    wxTreeItemId m_expandedForFind;
};
 
/*
 * ecConfigToolHint
 *
 * Hint to pass to UpdateAllViews
 *
 */
 
// Update hint symbols
#define ecNoHint                0
#define ecAllSaved              1
#define ecNameFormatChanged     2
#define ecIntFormatChanged      3
#define ecClear                 4
#define ecValueChanged          5
#define ecExternallyChanged     6
#define ecSelChanged            7
#define ecFilenameChanged       8
#define ecMemLayoutChanged      9
 
class ecConfigItem;
class ecConfigToolHint: public wxObject
{
public:
    ecConfigToolHint(ecConfigItem* item, int op) { m_item = item; m_op = op; }
 
    ecConfigItem*   m_item;
    int             m_op;
};
 
 
#endif
        // _ECOS_CONFIGTOOLVIEW_H_
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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