1 //####COPYRIGHTBEGIN####
3 // ----------------------------------------------------------------------------
4 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
6 // This program is part of the eCos host tools.
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)
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
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.
22 // ----------------------------------------------------------------------------
24 //####COPYRIGHTEND####
25 // PkgAdminDlg.h : header file
28 #if !defined(AFX_PKGADMINDLG_H__9B4DD5E8_6113_11D3_8008_00A0C9554250__INCLUDED_)
29 #define AFX_PKGADMINDLG_H__9B4DD5E8_6113_11D3_8008_00A0C9554250__INCLUDED_
33 #endif // _MSC_VER > 1000
35 #pragma warning (push)
36 #pragma warning(disable:4018) // signed/unsigned mismatch
37 #pragma warning(disable:4100) // unreferenced formal parameter
38 #pragma warning(disable:4146) // unary minus operator applied to unsigned type, result still unsigned
39 #pragma warning(disable:4244) // conversion from 'unsigned int' to 'char', possible loss of data
40 #pragma warning(disable:4503) // decorated name length exceeded, name was truncated
41 #pragma warning(disable:4663) // C++ language change: to explicitly specialize class template...
43 // EXTERN will be (re)defined in tcl.h via cdl.hxx
49 #include "PkgAdminres.h"
50 #include "eCosDialog.h"
52 /////////////////////////////////////////////////////////////////////////////
53 // CPkgAdminDlg dialog
55 class CPkgAdminDlg : public CeCosDialog
59 CPkgAdminDlg(LPCTSTR pszRepository=NULL,LPCTSTR pszUserTools=NULL);
62 //{{AFX_DATA(CPkgAdminDlg)
63 enum { IDD = IDD_PKGADMIN_DIALOG };
65 CTreeCtrl m_ctrlPackageTree;
68 // ClassWizard generated virtual function overrides
69 //{{AFX_VIRTUAL(CPkgAdminDlg)
71 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
76 CString m_strRepository;
79 bool FindUserToolsPath();
80 static std::string UnicodeToStdStr (LPCTSTR str);
81 CImageList m_ilTreeIcons;
82 CString m_strUserTools;
83 bool RemovePackageVersion (HTREEITEM hTreeItem);
84 bool EvalTclFile (int nArgc, LPCTSTR pszArgv);
85 CdlPackagesDatabase m_CdlPkgData;
86 void ClearPackageTree ();
87 bool PopulatePackageTree (LPCTSTR pszPackageDatabase);
89 // Generated message map functions
90 //{{AFX_MSG(CPkgAdminDlg)
91 virtual BOOL OnInitDialog();
92 afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
93 afx_msg void OnPaint();
94 afx_msg HCURSOR OnQueryDragIcon();
95 afx_msg void OnPkgadminRemove();
96 afx_msg void OnDestroy();
97 afx_msg void OnPkgadminAdd();
98 afx_msg void OnPkgadminRepository();
99 afx_msg void OnSelchangedPkgadminTree(NMHDR* pNMHDR, LRESULT* pResult);
101 DECLARE_MESSAGE_MAP()
104 //{{AFX_INSERT_LOCATION}}
105 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
107 #endif // !defined(AFX_PKGADMINDLG_H__9B4DD5E8_6113_11D3_8008_00A0C9554250__INCLUDED_)