]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/info_panels.hpp
Qt: respect font sizes
[vlc] / modules / gui / qt4 / components / info_panels.hpp
index 6c78c830ee05b893ed41f294b96f3c06de99cfeb..d45d25e606f63b63dce3ca321a92f4eb9cee95fb 100644 (file)
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 #include <vlc_meta.h>
 
 #include <QWidget>
-#include <QLabel>
 
-#ifdef HAVE_LIMITS_H
-#   include <limits.h>
-#endif
+#include <limits.h>
 
 #define setSpinBounds( spinbox ) {               \
     spinbox->setRange( 0, INT_MAX );             \
@@ -51,13 +48,13 @@ class QTreeWidgetItem;
 class QTreeView;
 class QSpinBox;
 class QLineEdit;
+class CoverArtLabel;
 
 class MetaPanel: public QWidget
 {
     Q_OBJECT;
 public:
-    MetaPanel( QWidget *, intf_thread_t * );
-    virtual ~MetaPanel();
+    MetaPanel( QWidget *, struct intf_thread_t * );
     void saveMeta();
 
     bool isInEditMode();
@@ -65,7 +62,7 @@ public:
 
 private:
     input_item_t *p_input;
-    intf_thread_t *p_intf;
+    struct intf_thread_t *p_intf;
     bool b_inEditMode;
 
     QLineEdit *title_text;
@@ -82,7 +79,7 @@ private:
     QLineEdit *nowplaying_text;
     QLineEdit *publisher_text;
 //    QLineEdit *encodedby_text;
-    QLabel *art_cover;
+    CoverArtLabel *art_cover;
 
 public slots:
     void update( input_item_t * );
@@ -92,7 +89,7 @@ private slots:
     void enterEditMode();
 
 signals:
-    void uriSet( QString );
+    void uriSet( const QString& );
     void editing();
 };
 
@@ -100,10 +97,9 @@ class ExtraMetaPanel: public QWidget
 {
     Q_OBJECT;
 public:
-    ExtraMetaPanel( QWidget *, intf_thread_t * );
-    virtual  ~ExtraMetaPanel() {};
+    ExtraMetaPanel( QWidget *, struct intf_thread_t * );
 private:
-    intf_thread_t *p_intf;
+    struct intf_thread_t *p_intf;
     QTreeWidget *extraMetaTree;
 public slots:
     void update( input_item_t * );
@@ -114,10 +110,9 @@ class InputStatsPanel: public QWidget
 {
     Q_OBJECT;
 public:
-    InputStatsPanel( QWidget *, intf_thread_t * );
-    virtual ~InputStatsPanel();
+    InputStatsPanel( QWidget *, struct intf_thread_t * );
 private:
-    intf_thread_t *p_intf;
+    struct intf_thread_t *p_intf;
 
     QTreeWidget *StatsTree;
     QTreeWidgetItem *input;
@@ -125,6 +120,8 @@ private:
     QTreeWidgetItem *input_bitrate_stat;
     QTreeWidgetItem *demuxed_stat;
     QTreeWidgetItem *stream_bitrate_stat;
+    QTreeWidgetItem *corrupted_stat;
+    QTreeWidgetItem *discontinuity_stat;
 
     QTreeWidgetItem *video;
     QTreeWidgetItem *vdecoded_stat;
@@ -151,22 +148,13 @@ class InfoPanel: public QWidget
 {
     Q_OBJECT;
 public:
-    InfoPanel( QWidget *, intf_thread_t * );
-    virtual ~InfoPanel();
+    InfoPanel( QWidget *, struct intf_thread_t * );
 private:
-    intf_thread_t *p_intf;
+    struct intf_thread_t *p_intf;
     QTreeWidget *InfoTree;
 public slots:
     void update( input_item_t * );
     void clear();
 };
-class ArtCover : public QLabel
-{
-    Q_OBJECT
-    void mouseDoubleClickEvent( QMouseEvent *event )
-    {
-        fprintf(stderr, "**************************" );
-    }
-};
 
 #endif