Commit 1b978bf8 authored by François Cartegnie's avatar François Cartegnie 🤞

Qt: MediaInfo: name panels for public method usage

parent 50c97f0b
......@@ -60,15 +60,15 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
infoTabW = new QTabWidget;
MP = new MetaPanel( infoTabW, p_intf );
infoTabW->addTab( MP, qtr( "&General" ) );
infoTabW->insertTab( META_PANEL, MP, qtr( "&General" ) );
EMP = new ExtraMetaPanel( infoTabW );
infoTabW->addTab( EMP, qtr( "&Metadata" ) );
infoTabW->insertTab( EXTRAMETA_PANEL, EMP, qtr( "&Metadata" ) );
IP = new InfoPanel( infoTabW );
infoTabW->addTab( IP, qtr( "Co&dec" ) );
infoTabW->insertTab( INFO_PANEL, IP, qtr( "Co&dec" ) );
if( isMainInputInfo )
{
ISP = new InputStatsPanel( infoTabW );
infoTabW->addTab( ISP, qtr( "S&tatistics" ) );
infoTabW->insertTab( INPUTSTATS_PANEL, ISP, qtr( "S&tatistics" ) );
}
QGridLayout *layout = new QGridLayout( this );
......@@ -136,7 +136,7 @@ MediaInfoDialog::~MediaInfoDialog()
saveWidgetPosition( "Mediainfo" );
}
void MediaInfoDialog::showTab( int i_tab = 0 )
void MediaInfoDialog::showTab( panel i_tab = META_PANEL )
{
infoTabW->setCurrentIndex( i_tab );
show();
......
......@@ -38,7 +38,15 @@ public:
MediaInfoDialog( intf_thread_t *,
input_item_t * input = NULL );
void showTab( int );
enum panel
{
META_PANEL = 0,
EXTRAMETA_PANEL,
INFO_PANEL,
INPUTSTATS_PANEL
};
void showTab( panel );
#if 0
void setInput( input_item_t * );
#endif
......
......@@ -247,12 +247,12 @@ void DialogsProvider::aboutDialog()
void DialogsProvider::mediaInfoDialog()
{
MediaInfoDialog::getInstance( p_intf )->showTab( 0 );
MediaInfoDialog::getInstance( p_intf )->showTab( MediaInfoDialog::META_PANEL );
}
void DialogsProvider::mediaCodecDialog()
{
MediaInfoDialog::getInstance( p_intf )->showTab( 2 );
MediaInfoDialog::getInstance( p_intf )->showTab( MediaInfoDialog::INFO_PANEL );
}
void DialogsProvider::bookmarksDialog()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment