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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [pkgadmin/] [win32/] [PkgAdminDlg.h] - Blame information for rev 790

Go to most recent revision | 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
// PkgAdminDlg.h : header file
23
//
24
 
25
#if !defined(AFX_PKGADMINDLG_H__9B4DD5E8_6113_11D3_8008_00A0C9554250__INCLUDED_)
26
#define AFX_PKGADMINDLG_H__9B4DD5E8_6113_11D3_8008_00A0C9554250__INCLUDED_
27
 
28
#if _MSC_VER > 1000
29
#pragma once
30
#endif // _MSC_VER > 1000
31
 
32
#pragma warning (push)
33
    #pragma warning(disable:4018) // signed/unsigned mismatch
34
    #pragma warning(disable:4100) // unreferenced formal parameter
35
    #pragma warning(disable:4146) // unary minus operator applied to unsigned type, result still unsigned
36
    #pragma warning(disable:4244) // conversion from 'unsigned int' to 'char', possible loss of data
37
    #pragma warning(disable:4503) // decorated name length exceeded, name was truncated
38
    #pragma warning(disable:4663) // C++ language change: to explicitly specialize class template...
39
 
40
    // EXTERN will be (re)defined in tcl.h via cdl.hxx
41
    #undef EXTERN 
42
        #include "cdl.hxx"
43
    #undef EXTERN
44
#pragma warning (pop)
45
 
46
#include "PkgAdminres.h"
47
#include "eCosDialog.h"
48
 
49
/////////////////////////////////////////////////////////////////////////////
50
// CPkgAdminDlg dialog
51
 
52
class CPkgAdminDlg : public CeCosDialog
53
{
54
// Construction
55
public:
56
        CPkgAdminDlg(LPCTSTR pszRepository=NULL,LPCTSTR pszUserTools=NULL);
57
 
58
// Dialog Data
59
        //{{AFX_DATA(CPkgAdminDlg)
60
        enum { IDD = IDD_PKGADMIN_DIALOG };
61
        CButton m_btnRemove;
62
        CTreeCtrl       m_ctrlPackageTree;
63
        //}}AFX_DATA
64
 
65
        // ClassWizard generated virtual function overrides
66
        //{{AFX_VIRTUAL(CPkgAdminDlg)
67
        protected:
68
        virtual void DoDataExchange(CDataExchange* pDX);        // DDX/DDV support
69
        //}}AFX_VIRTUAL
70
 
71
// Implementation
72
public:
73
        CString m_strRepository;
74
        HICON m_hIcon;
75
protected:
76
        bool FindUserToolsPath();
77
        static std::string UnicodeToStdStr (LPCTSTR str);
78
        CImageList m_ilTreeIcons;
79
        CString m_strUserTools;
80
        bool RemovePackageVersion (HTREEITEM hTreeItem);
81
        bool EvalTclFile (int nArgc, LPCTSTR pszArgv);
82
        CdlPackagesDatabase m_CdlPkgData;
83
        void ClearPackageTree ();
84
        bool PopulatePackageTree (LPCTSTR pszPackageDatabase);
85
 
86
        // Generated message map functions
87
        //{{AFX_MSG(CPkgAdminDlg)
88
        virtual BOOL OnInitDialog();
89
        afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
90
        afx_msg void OnPaint();
91
        afx_msg HCURSOR OnQueryDragIcon();
92
        afx_msg void OnPkgadminRemove();
93
        afx_msg void OnDestroy();
94
        afx_msg void OnPkgadminAdd();
95
        afx_msg void OnPkgadminRepository();
96
        afx_msg void OnSelchangedPkgadminTree(NMHDR* pNMHDR, LRESULT* pResult);
97
        //}}AFX_MSG
98
        DECLARE_MESSAGE_MAP()
99
};
100
 
101
//{{AFX_INSERT_LOCATION}}
102
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
103
 
104
#endif // !defined(AFX_PKGADMINDLG_H__9B4DD5E8_6113_11D3_8008_00A0C9554250__INCLUDED_)

powered by: WebSVN 2.1.0

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