1 /*****************************************************************************
2 * iteminfo.hpp: private wxWindows interface description
3 *****************************************************************************
4 * Copyright (C) 1999-2005 the VideoLAN team
7 * Authors: Gildas Bazin <gbazin@videolan.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #ifndef _WXVLC_ITEMINFO_H_
25 #define _WXVLC_ITEMINFO_H_
27 #include "wxwidgets.hpp"
28 #include "dialogs/infopanels.hpp"
29 #include <wx/treectrl.h>
33 class ItemInfoDialog: public wxDialog
37 ItemInfoDialog( intf_thread_t *p_intf, playlist_item_t *_p_item,
39 virtual ~ItemInfoDialog();
41 wxArrayString GetOptions();
44 wxPanel *GroupPanel( wxWindow* parent );
46 /* Event handlers (these functions should _not_ be virtual) */
47 void OnOk( wxCommandEvent& event );
48 void OnCancel( wxCommandEvent& event );
52 DECLARE_EVENT_TABLE();
54 intf_thread_t *p_intf;
55 playlist_item_t *p_item;
58 /* Controls for the iteminfo dialog box */
59 wxPanel *info_subpanel;
60 MetaDataPanel *info_panel;
62 wxPanel *group_subpanel;
66 wxTextCtrl *name_text;
68 wxTreeCtrl *info_tree;
69 wxTreeItemId info_root;