1 /*****************************************************************************
2 * iteminfo.hpp: private wxWindows interface description
3 *****************************************************************************
4 * Copyright (C) 1999-2005 the VideoLAN team
5 * $Id: wxwidgets.h 12502 2005-09-09 19:38:01Z gbazin $
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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
24 #ifndef _WXVLC_ITEMINFO_H_
25 #define _WXVLC_ITEMINFO_H_
27 #include "wxwidgets.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 *InfoPanel( wxWindow* parent );
45 wxPanel *GroupPanel( wxWindow* parent );
47 /* Event handlers (these functions should _not_ be virtual) */
48 void OnOk( wxCommandEvent& event );
49 void OnCancel( wxCommandEvent& event );
53 DECLARE_EVENT_TABLE();
55 intf_thread_t *p_intf;
56 playlist_item_t *p_item;
59 /* Controls for the iteminfo dialog box */
60 wxPanel *info_subpanel;
63 wxPanel *group_subpanel;
67 wxTextCtrl *name_text;
69 wxTreeCtrl *info_tree;
70 wxTreeItemId info_root;