]> git.sesse.net Git - vlc/blob - modules/gui/wxwidgets/dialogs/iteminfo.hpp
p( vlc.getInterfaces().getInterface( "wxwidgets" ).isBroken() ) = 1/2
[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: wxwidgets.h 12502 2005-09-09 19:38:01Z gbazin $
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., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 #ifndef _WXVLC_ITEMINFO_H_
25 #define _WXVLC_ITEMINFO_H_
26
27 #include "wxwidgets.hpp"
28
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 *InfoPanel( wxWindow* parent );
45     wxPanel *GroupPanel( wxWindow* parent );
46
47     /* Event handlers (these functions should _not_ be virtual) */
48     void OnOk( wxCommandEvent& event );
49     void OnCancel( wxCommandEvent& event );
50
51     void UpdateInfo();
52
53     DECLARE_EVENT_TABLE();
54
55     intf_thread_t *p_intf;
56     playlist_item_t *p_item;
57     wxWindow *p_parent;
58
59     /* Controls for the iteminfo dialog box */
60     wxPanel *info_subpanel;
61     wxPanel *info_panel;
62
63     wxPanel *group_subpanel;
64     wxPanel *group_panel;
65
66     wxTextCtrl *uri_text;
67     wxTextCtrl *name_text;
68
69     wxTreeCtrl *info_tree;
70     wxTreeItemId info_root;
71
72 };
73
74 };
75 #endif