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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [tools/] [src/] [tools/] [configtool/] [standalone/] [wxwin/] [platformsdlg.h] - Blame information for rev 438

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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