]> git.sesse.net Git - vlc/blob - modules/gui/wxwidgets/dialogs/iteminfo.hpp
* Show meta-information separately
[vlc] / modules / gui / wxwidgets / dialogs / iteminfo.hpp
1 /*****************************************************************************
2  * iteminfo.hpp: private wxWindows interface description
3  *****************************************************************************
4  * Copyright (C) 1999-2005 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Gildas Bazin <gbazin@videolan.org>
8  *
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.
13  *
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.
18  *
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  *****************************************************************************/
23
24 #ifndef _WXVLC_ITEMINFO_H_
25 #define _WXVLC_ITEMINFO_H_
26
27 #include "wxwidgets.hpp"
28 #include "dialogs/infopanels.hpp"
29 #include <wx/treectrl.h>
30
31 namespace wxvlc
32 {
33 class ItemInfoDialog: public wxDialog
34 {
35 public:
36     /* Constructor */
37     ItemInfoDialog( intf_thread_t *p_intf, playlist_item_t *_p_item,
38                     wxWindow *p_parent );
39     virtual ~ItemInfoDialog();
40
41     wxArrayString GetOptions();
42
43 private:
44     wxPanel *GroupPanel( wxWindow* parent );
45
46     /* Event handlers (these functions should _not_ be virtual) */
47     void OnOk( wxCommandEvent& event );
48     void OnCancel( wxCommandEvent& event );
49
50     void UpdateInfo();
51
52     DECLARE_EVENT_TABLE();
53
54     intf_thread_t *p_intf;
55     playlist_item_t *p_item;
56     wxWindow *p_parent;
57
58     /* Controls for the iteminfo dialog box */
59     wxPanel *info_subpanel;
60     MetaDataPanel *info_panel;
61
62     wxPanel *group_subpanel;
63     wxPanel *group_panel;
64
65     wxTextCtrl *uri_text;
66     wxTextCtrl *name_text;
67
68     wxTreeCtrl *info_tree;
69     wxTreeItemId info_root;
70
71 };
72
73 };
74 #endif