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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [configtool/] [standalone/] [wxwin/] [platformsdlg.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
// platformsdlg.h :
23
//
24
//===========================================================================
25
//#####DESCRIPTIONBEGIN####
26
//
27
// Author(s):   julians
28
// Contact(s):  julians
29
// Date:        2000/09/06
30
// Version:     $Id: platformsdlg.h,v 1.2 2001/03/23 13:38:04 julians Exp $
31
// Purpose:
32
// Description: Header file for ecPlatformsDialog
33
// Requires:
34
// Provides:
35
// See also:
36
// Known bugs:
37
// Usage:
38
//
39
//####DESCRIPTIONEND####
40
//
41
//===========================================================================
42
 
43
#ifndef _ECOS_PLATFORMSDLG_H_
44
#define _ECOS_PLATFORMSDLG_H_
45
 
46
#ifdef __GNUG__
47
#pragma interface "platformsdlg.cpp"
48
#endif
49
 
50
#include "wx/wx.h"
51
#include "wx/listctrl.h"
52
 
53
#include "eCosTest.h"
54
#include "ecutils.h"
55
 
56
/*
57
 * ecPlatformsListCtrl
58
 *
59
 * A list control for the platforms dialog
60
 */
61
 
62
class ecPlatformsListCtrl : public wxListCtrl
63
{
64
public:
65
// Ctor(s)
66
    ecPlatformsListCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style);
67
 
68
//// Event handlers
69
    void OnChar(wxKeyEvent& event);
70
    void OnDoubleLClick(wxMouseEvent& event);
71
 
72
//// Operations
73
 
74
protected:
75
private:
76
    DECLARE_EVENT_TABLE()
77
    DECLARE_CLASS(ecPlatformsListCtrl)
78
};
79
 
80
/*
81
 * ecPlatformsDialog
82
 *
83
 */
84
 
85
class ecPlatformsDialog : public ecDialog
86
{
87
public:
88
// Ctor(s)
89
    ecPlatformsDialog(wxWindow* parent);
90
    ~ecPlatformsDialog();
91
 
92
//// Event handlers
93
 
94
    void OnModify(wxCommandEvent& event);
95
    void OnAdd(wxCommandEvent& event);
96
    void OnDelete(wxCommandEvent& event);
97
    void OnOK(wxCommandEvent& event);
98
    void OnCancel(wxCommandEvent& event);
99
    void OnUpdateAny(wxUpdateUIEvent& event);
100
    void OnDoubleLClick();
101
    void OnDeleteKey();
102
 
103
//// Operations
104
    void CreateControls(wxWindow* parent);
105
 
106
    CeCosTestPlatform *Platform (int i) { return (CeCosTestPlatform *) m_arTargetInfo[i]; }
107
 
108
#if wxCHECK_VERSION(2, 6, 0)
109
    unsigned int PlatformCount() const { return m_arTargetInfo.GetCount(); }
110
#else
111
    unsigned int PlatformCount() const { return m_arTargetInfo.Number(); }
112
#endif
113
    void Add(const CeCosTestPlatform &ti);
114
    void Clear();
115
 
116
protected:
117
 
118
    ecPlatformsListCtrl*    m_listCtrl;
119
    wxList                  m_arTargetInfo;
120
    static const wxChar*    sm_arpszTypes[];
121
 
122
private:
123
    DECLARE_EVENT_TABLE()
124
};
125
 
126
#define ecID_PLATFORMS_ADD          4001
127
#define ecID_PLATFORMS_DELETE       4002
128
#define ecID_PLATFORMS_MODIFY       4003
129
#define ecID_PLATFORMS_LIST         4004
130
 
131
 
132
#endif
133
        // _ECOS_PLATFORMSDLG_H_

powered by: WebSVN 2.1.0

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