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 // buildoptionsdlg.h :
27 //===========================================================================
28 //#####DESCRIPTIONBEGIN####
31 // Contact(s): julians
35 // Description: Header file for ecBuildOptionsDialog
42 //####DESCRIPTIONEND####
44 //===========================================================================
46 #ifndef _ECOS_BUILDOPTIONSDLG_H_
47 #define _ECOS_BUILDOPTIONSDLG_H_
50 #pragma interface "buildoptionsdlg.cpp"
53 #include "wx/treectrl.h"
56 class ecBuildOptionsDialog : public ecDialog
60 ecBuildOptionsDialog(wxWindow* parent);
61 ~ecBuildOptionsDialog();
65 void OnOK(wxCommandEvent& event);
66 void OnCancel(wxCommandEvent& event);
67 void OnSelCategory(wxCommandEvent& event);
68 void OnSelTree(wxTreeEvent& event);
69 void OnInitDialog(wxInitDialogEvent& event);
72 void CreateControls(wxWindow* parent);
73 void Redisplay (wxTreeItemId item);
74 void CreateItems(ecConfigItem *pti, wxTreeItemId hParent);
77 wxTreeCtrl* m_treeCtrl;
78 wxImageList m_imageList;
80 typedef std::vector<CdlBuildInfo_Loadable> EntriesArray;
81 const EntriesArray& m_arEntries;
86 class ecBuildOptionsData : public wxTreeItemData
89 ecBuildOptionsData(ecConfigItem* item) : m_configItem(item) { }
91 ecConfigItem *GetConfigItem() const { return m_configItem; }
92 void SetConfigItem(ecConfigItem *item) { m_configItem = item; }
95 ecConfigItem* m_configItem;
99 #define ecID_BUILD_OPTIONS_CATEGORY 10054
100 #define ecID_BUILD_OPTIONS_PACKAGES_TREE 11000
101 #define ecID_BUILD_OPTIONS_FLAGS 10055
104 // _ECOS_BUILDOPTIONSDLG_H_