{
i_runs = 0;
p_input = NULL;
- need_update = true;
+ b_need_update = true;
setWindowTitle( qtr( "Media information" ) );
resize( 600 , 300 );
IT->setCurrentIndex( i_tab );
}
-
-/**/
void MediaInfoDialog::editMeta()
{
saveMetaButton->show();
vlc_value_t oldval, vlc_value_t newval, void *param )
{
MediaInfoDialog *p_d = (MediaInfoDialog *)param;
- p_d->need_update = VLC_TRUE;
+ p_d->b_need_update = VLC_TRUE;
return VLC_SUCCESS;
}
vlc_object_yield( p_input );
- update( input_GetItem(p_input), need_update, need_update );
- need_update = false;
+ update( input_GetItem(p_input), b_need_update, b_need_update );
+ b_need_update = false;
vlc_object_release( p_input );
}
{
Q_OBJECT;
public:
- MediaInfoDialog( intf_thread_t *, bool stats = true,
- bool mainInput = false );
+ 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, true, true );
+ if( !instance) instance = new MediaInfoDialog( p_intf, true, true );
return instance;
}
static void killInstance()
}
virtual ~MediaInfoDialog();
- void showTab( int );
- bool need_update;
+ void showTab( int );
void setInput( input_item_t * );
- QLineEdit *uriLine;
+
+ bool b_need_update;
+
private:
input_thread_t *p_input;
- QTabWidget *IT;
static MediaInfoDialog *instance;
+
int i_runs;
bool mainInput;
bool stats;
+
+
+ QTabWidget *IT;
InputStatsPanel *ISP;
MetaPanel *MP;
InfoPanel *IP;
ExtraMetaPanel *EMP;
+
QPushButton *saveMetaButton;
+ QLineEdit *uriLine;
+
public slots:
void update();
void saveMeta();
void editMeta();
void update( input_item_t *, bool, bool );
+ void updateButtons( int i_tab );
+
+private slots:
void close();
void clear();
- void updateButtons( int i_tab );
};
#endif