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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [configtool/] [standalone/] [wxwin/] [admindlg.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
// admindlg.h :
23
//
24
//===========================================================================
25
//#####DESCRIPTIONBEGIN####
26
//
27
// Author(s):   julians
28
// Contact(s):  julians
29
// Date:        2000/09/28
30
// Version:     $Id: admindlg.h,v 1.3 2001/08/22 16:50:32 julians Exp $
31
// Purpose:
32
// Description: Header file for ecAdminDialog
33
// Requires:
34
// Provides:
35
// See also:
36
// Known bugs:
37
// Usage:
38
//
39
//####DESCRIPTIONEND####
40
//
41
//===========================================================================
42
 
43
#ifndef _ECOS_ADMINDLG_H_
44
#define _ECOS_ADMINDLG_H_
45
 
46
#ifdef __GNUG__
47
#pragma interface "admindlg.cpp"
48
#endif
49
 
50
#include "ecutils.h"
51
 
52
class ecAdminDialog : public ecDialog
53
{
54
public:
55
// Ctor(s)
56
    ecAdminDialog(wxWindow* parent, const wxString& repository = wxEmptyString, const wxString& userTools = wxEmptyString);
57
    ~ecAdminDialog();
58
 
59
//// Event handlers
60
 
61
    void OnClose(wxCommandEvent& event);
62
    void OnAdd(wxCommandEvent& event);
63
    void OnRemove(wxCommandEvent& event);
64
    void OnInitDialog(wxInitDialogEvent& event);
65
 
66
//// Operations
67
    void CreateControls(wxWindow* parent);
68
        bool FindUserToolsPath();
69
        bool RemovePackageVersion (wxTreeItemId hTreeItem);
70
        bool EvalTclFile (int nargc, const wxString& argv, const wxString& msg);
71
        void ClearPackageTree ();
72
        bool PopulatePackageTree (const wxString& packageDatabase);
73
 
74
protected:
75
    wxTreeCtrl* m_treeCtrl;
76
    wxImageList m_imageList;
77
 
78
private:
79
    DECLARE_EVENT_TABLE()
80
 
81
        wxString m_strRepository;
82
        wxString m_strUserTools;
83
        CdlPackagesDatabase m_CdlPkgData;
84
};
85
 
86
// Data to associate with each item
87
class ecAdminItemData : public wxTreeItemData
88
{
89
public:
90
    ecAdminItemData(const wxString& str) : m_string(str) { }
91
 
92
    wxString m_string;
93
};
94
 
95
 
96
#define ecID_ADMIN_DIALOG_TREE 10400
97
#define ecID_ADMIN_DIALOG_ADD 10064
98
#define ecID_ADMIN_DIALOG_REMOVE 10065
99
 
100
#endif
101
        // _ECOS_ADMINDLG_H_

powered by: WebSVN 2.1.0

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