]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/mediainfo.hpp
Qt4 - More Help.
[vlc] / modules / gui / qt4 / dialogs / mediainfo.hpp
index e31dc7401aee3560b33b95b089e52210381c31c0..3dc463113b619d6774a5cf263880661fa5fb2862 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
- * streaminfo.hpp : Information about a stream
+ * mediainfo.hpp : Information about a stream
  ****************************************************************************
- * Copyright (C) 2006 the VideoLAN team
+ * Copyright (C) 2006-2007 the VideoLAN team
  * $Id$
  *
  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
 #define _MEDIAINFO_DIALOG_H_
 
 #include "util/qvlcframe.hpp"
-#include <QTabWidget>
-#include <QBoxLayout>
+#include "components/infopanels.hpp"
 
+class QTabWidget;
 class InfoTab;
+class QLineEdit;
 
 class MediaInfoDialog : public QVLCFrame
 {
     Q_OBJECT;
 public:
+    MediaInfoDialog( intf_thread_t *, bool stats = true,
+                    bool mainInput = false );
     static MediaInfoDialog * getInstance( intf_thread_t *p_intf )
     {
         if( !instance)
-            instance = new MediaInfoDialog( p_intf);
+            instance = new MediaInfoDialog( p_intf, true, true );
         return instance;
     }
     static void killInstance()
@@ -47,16 +50,33 @@ public:
         instance= NULL;
     }
     virtual ~MediaInfoDialog();
+
+    void showTab( int );
     bool need_update;
+    void setInput( input_item_t * );
+    QLineEdit *uriLine;
 private:
-    MediaInfoDialog( intf_thread_t * );
     input_thread_t *p_input;
-    InfoTab *IT;
+    QTabWidget *IT;
     static MediaInfoDialog *instance;
     int i_runs;
+    bool mainInput;
+    bool stats;
+    bool in_edit;
+    InputStatsPanel *ISP;
+    MetaPanel *MP;
+    InfoPanel *IP;
+    ExtraMetaPanel *EMP;
+    QPushButton *saveMetaButton;
+    QPushButton *editMetaButton;
 public slots:
     void update();
+    void saveMeta();
+    void editMeta();
+    void update( input_item_t *, bool, bool );
     void close();
+    void clear();
+    void updateButtons( int i_tab );
 };
 
 #endif