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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [configtool/] [standalone/] [wxwin/] [buildoptionsdlg.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
// buildoptionsdlg.h :
23
//
24
//===========================================================================
25
//#####DESCRIPTIONBEGIN####
26
//
27
// Author(s):   julians
28
// Contact(s):  julians
29
// Date:        2000/09/27
30
// Version:     $Id: buildoptionsdlg.h,v 1.2 2001/03/23 13:38:04 julians Exp $
31
// Purpose:
32
// Description: Header file for ecBuildOptionsDialog
33
// Requires:
34
// Provides:
35
// See also:
36
// Known bugs:
37
// Usage:
38
//
39
//####DESCRIPTIONEND####
40
//
41
//===========================================================================
42
 
43
#ifndef _ECOS_BUILDOPTIONSDLG_H_
44
#define _ECOS_BUILDOPTIONSDLG_H_
45
 
46
#ifdef __GNUG__
47
#pragma interface "buildoptionsdlg.cpp"
48
#endif
49
 
50
#include "wx/treectrl.h"
51
#include "ecutils.h"
52
 
53
class ecBuildOptionsDialog : public ecDialog
54
{
55
public:
56
// Ctor(s)
57
    ecBuildOptionsDialog(wxWindow* parent);
58
    ~ecBuildOptionsDialog();
59
 
60
//// Event handlers
61
 
62
    void OnOK(wxCommandEvent& event);
63
    void OnCancel(wxCommandEvent& event);
64
    void OnSelCategory(wxCommandEvent& event);
65
    void OnSelTree(wxTreeEvent& event);
66
    void OnInitDialog(wxInitDialogEvent& event);
67
 
68
//// Operations
69
    void CreateControls(wxWindow* parent);
70
        void Redisplay (wxTreeItemId item);
71
    void CreateItems(ecConfigItem *pti, wxTreeItemId hParent);
72
 
73
protected:
74
    wxTreeCtrl*     m_treeCtrl;
75
    wxImageList     m_imageList;
76
 
77
    typedef std::vector<CdlBuildInfo_Loadable> EntriesArray;
78
    const EntriesArray& m_arEntries;
79
private:
80
    DECLARE_EVENT_TABLE()
81
};
82
 
83
class ecBuildOptionsData : public wxTreeItemData
84
{
85
public:
86
    ecBuildOptionsData(ecConfigItem* item) : m_configItem(item) { }
87
 
88
    ecConfigItem *GetConfigItem() const { return m_configItem; }
89
    void SetConfigItem(ecConfigItem *item) { m_configItem = item; }
90
 
91
private:
92
    ecConfigItem*   m_configItem;
93
};
94
 
95
 
96
#define ecID_BUILD_OPTIONS_CATEGORY 10054
97
#define ecID_BUILD_OPTIONS_PACKAGES_TREE 11000
98
#define ecID_BUILD_OPTIONS_FLAGS 10055
99
 
100
#endif
101
        // _ECOS_BUILDOPTIONSDLG_H_

powered by: WebSVN 2.1.0

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