]> git.sesse.net Git - vlc/blob - modules/gui/qt4/components/infopanels.hpp
*Qt4: InfoTree for files. The timer does not function correctly yet. :D
[vlc] / modules / gui / qt4 / components / infopanels.hpp
1 /*****************************************************************************
2  * infopanels.hpp : Panels for the information dialogs
3  ****************************************************************************
4  * Copyright (C) 2006 the VideoLAN team
5  * $Id$
6  *
7  * Authors: ClĂ©ment Stenac <zorglub@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 _INFOPANELS_H_
25 #define _INFOPANELS_H_
26
27 #include <vlc/vlc.h>
28 #include <vlc_meta.h>
29
30 #include <QWidget>
31
32 #include "ui/input_stats.h"
33
34
35 class QTreeWidget;
36 class QTreeWidgetItem;
37
38 class InputStatsPanel: public QWidget
39 {
40     Q_OBJECT;
41 public:
42     InputStatsPanel( QWidget *, intf_thread_t * );
43     virtual ~InputStatsPanel();
44 private:
45     intf_thread_t *p_intf;
46     Ui::InputStats ui;
47
48 public slots:
49     void Update( input_item_t * );
50     void Clear();
51 };
52
53 class MetaPanel: public QWidget
54 {
55     Q_OBJECT;
56 public:
57     MetaPanel( QWidget *, intf_thread_t * );
58     virtual ~MetaPanel();
59 private:
60     intf_thread_t *p_intf;
61
62 public slots:
63     void Update( input_item_t * );
64     void Clear();
65
66     char* GetURI();
67     char* GetName();
68 };
69
70 class InfoPanel: public QWidget
71 {
72     Q_OBJECT;
73 public:
74     InfoPanel( QWidget *, intf_thread_t * );
75     virtual ~InfoPanel();
76 private:
77     intf_thread_t *p_intf;
78     QTreeWidget *InfoTree;
79
80 public slots:
81     void Update( input_item_t * );
82     void Clear();
83 };
84
85 #endif