/*****************************************************************************
- * 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()
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