]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - tools/src/tools/pkgadmin/win32/PkgAdminDlg.h
Initial revision
[karo-tx-redboot.git] / tools / src / tools / pkgadmin / win32 / PkgAdminDlg.h
1 //####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 // PkgAdminDlg.h : header file
26 //
27
28 #if !defined(AFX_PKGADMINDLG_H__9B4DD5E8_6113_11D3_8008_00A0C9554250__INCLUDED_)
29 #define AFX_PKGADMINDLG_H__9B4DD5E8_6113_11D3_8008_00A0C9554250__INCLUDED_
30
31 #if _MSC_VER > 1000
32 #pragma once
33 #endif // _MSC_VER > 1000
34
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...
42
43     // EXTERN will be (re)defined in tcl.h via cdl.hxx
44     #undef EXTERN 
45         #include "cdl.hxx"
46     #undef EXTERN
47 #pragma warning (pop)
48
49 #include "PkgAdminres.h"
50 #include "eCosDialog.h"
51
52 /////////////////////////////////////////////////////////////////////////////
53 // CPkgAdminDlg dialog
54
55 class CPkgAdminDlg : public CeCosDialog
56 {
57 // Construction
58 public:
59         CPkgAdminDlg(LPCTSTR pszRepository=NULL,LPCTSTR pszUserTools=NULL);
60
61 // Dialog Data
62         //{{AFX_DATA(CPkgAdminDlg)
63         enum { IDD = IDD_PKGADMIN_DIALOG };
64         CButton m_btnRemove;
65         CTreeCtrl       m_ctrlPackageTree;
66         //}}AFX_DATA
67
68         // ClassWizard generated virtual function overrides
69         //{{AFX_VIRTUAL(CPkgAdminDlg)
70         protected:
71         virtual void DoDataExchange(CDataExchange* pDX);        // DDX/DDV support
72         //}}AFX_VIRTUAL
73
74 // Implementation
75 public:
76         CString m_strRepository;
77         HICON m_hIcon;
78 protected:
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);
88
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);
100         //}}AFX_MSG
101         DECLARE_MESSAGE_MAP()
102 };
103
104 //{{AFX_INSERT_LOCATION}}
105 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
106
107 #endif // !defined(AFX_PKGADMINDLG_H__9B4DD5E8_6113_11D3_8008_00A0C9554250__INCLUDED_)