* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
-#include "components/infopanels.hpp"
#include "qt4.hpp"
+#include "components/infopanels.hpp"
#include <QTreeWidget>
+#include <QListView>
#include <QPushButton>
#include <QHeaderView>
#include <QList>
+#include <QStringList>
#include <QGridLayout>
-
+#include <QLineEdit>
+#include <QLabel>
+#include <QSpinBox>
+#include <QTabWidget>
/************************************************************************
* Single panels
************************************************************************/
-/* First Panel - Meta Info */
-
-MetaPanel::MetaPanel( QWidget *parent, intf_thread_t *_p_intf ) :
- QWidget( parent ), p_intf( _p_intf )
+/**
+ * First Panel - Meta Info
+ * All the usual MetaData are displayed and can be changed.
+ **/
+MetaPanel::MetaPanel( QWidget *parent,
+ intf_thread_t *_p_intf )
+ : QWidget( parent ), p_intf( _p_intf )
{
- int line = 0;
QGridLayout *l = new QGridLayout( this );
-#define ADD_META( string, widget ) { \
- l->addWidget( new QLabel( qtr( string ) ), line, 0 ); \
- widget = new QLabel( "" ); \
- l->addWidget( widget, line, 1 ); \
+ int line = 0; /* Counter for GridLayout */
+ p_input = NULL;
+
+#define ADD_META( string, widget ) { \
+ l->addWidget( new QLabel( qtr( string ) + " :" ), line, 0 ); \
+ widget = new QLineEdit; \
+ l->addWidget( widget, line, 1, 1, 9 ); \
line++; }
- ADD_META( qtr( "Name" ), name_text );
- ADD_META( qtr( "URI" ), uri_text );
- ADD_META( VLC_META_ARTIST, artist_text );
- ADD_META( VLC_META_GENRE, genre_text );
- ADD_META( VLC_META_COPYRIGHT, copyright_text );
- ADD_META( VLC_META_COLLECTION, collection_text );
- ADD_META( VLC_META_SEQ_NUM, seqnum_text );
- ADD_META( VLC_META_DESCRIPTION, description_text );
- ADD_META( VLC_META_RATING, rating_text );
- ADD_META( VLC_META_DATE, date_text );
- ADD_META( VLC_META_LANGUAGE, language_text );
+
+ /* Title, artist and album*/
+ ADD_META( VLC_META_TITLE, title_text ); /* OK */
+ ADD_META( VLC_META_ARTIST, artist_text ); /* OK */
+ ADD_META( VLC_META_COLLECTION, collection_text ); /* OK */
+
+ /* Genre Name */
+ /* FIXME List id3genres.h is not includable yet ? */
+ genre_text = new QLineEdit;
+ l->addWidget( new QLabel( qtr( VLC_META_GENRE ) + " :" ), line, 0 );
+ l->addWidget( genre_text, line, 1, 1, 6 );
+
+ /* Date (Should be in years) */
+ date_text = new QSpinBox; setSpinBounds( date_text );
+ l->addWidget( new QLabel( qtr( VLC_META_DATE ) + " :" ), line, 7 );
+ l->addWidget( date_text, line, 8, 1, 2 );
+ line++;
+
+ /* Number and Rating */
+ l->addWidget( new QLabel( qtr( "Track number/Position" ) + " :" ),
+ line, 0 );
+ seqnum_text = new QSpinBox; setSpinBounds( seqnum_text );
+ l->addWidget( seqnum_text, line, 1, 1, 4 );
+
+ l->addWidget( new QLabel( qtr( VLC_META_RATING ) + " :" ), line, 5 );
+ rating_text = new QSpinBox; setSpinBounds( rating_text) ;
+ l->addWidget( rating_text, line, 6, 1, 4 );
+ line++;
+
+ /* Now Playing ? */
ADD_META( VLC_META_NOW_PLAYING, nowplaying_text );
- ADD_META( VLC_META_PUBLISHER, publisher_text );
- ADD_META( VLC_META_SETTING, setting_text );
+
+ /* Language and settings */
+ l->addWidget( new QLabel( qfu( VLC_META_LANGUAGE ) + " :" ), line, 0 );
+ language_text = new QLineEdit;
+ l->addWidget( language_text, line, 1, 1, 4 );
+ l->addWidget( new QLabel( qtr( VLC_META_SETTING ) + " :" ), line, 5 );
+ setting_text = new QLineEdit;
+ l->addWidget( setting_text, line, 6, 1, 4 );
+ line++;
+
+ /* ART_URL */
+ art_cover = new QLabel( "" );
+ art_cover->setMinimumHeight( 128 );
+ art_cover->setMinimumWidth( 128 );
+ art_cover->setMaximumHeight( 128 );
+ art_cover->setMaximumWidth( 128 );
+ art_cover->setScaledContents( true );
+ art_cover->setPixmap( QPixmap( ":/noart.png" ) );
+ l->addWidget( art_cover, line, 8, 4, 2 );
+
+#define ADD_META_2( string, widget ) { \
+ l->addWidget( new QLabel( qtr( string ) + " :" ), line, 0 ); \
+ widget = new QLineEdit; \
+ l->addWidget( widget, line, 1, 1, 7 ); \
+ line++; }
+
+ ADD_META_2( VLC_META_COPYRIGHT, copyright_text );
+ ADD_META_2( VLC_META_PUBLISHER, publisher_text );
+
+ ADD_META_2( VLC_META_ENCODED_BY, publisher_text );
+ ADD_META_2( VLC_META_DESCRIPTION, description_text );
+
+ /* ADD_META( TRACKID ) Useless ? */
+ /* ADD_URI - DO not show it, done outside */
+
+#undef ADD_META
+#undef ADD_META_2
}
-MetaPanel::~MetaPanel()
+MetaPanel::~MetaPanel(){}
+
+/**
+ * Save the MetaData, triggered by parent->save Button
+ **/
+void MetaPanel::saveMeta()
{
+ playlist_t *p_playlist;
+ char psz[5];
+
+ meta_export_t p_export;
+ p_export.p_item = p_input;
+
+ if( p_input == NULL )
+ return;
+
+ /* we can write meta data only in a file */
+ if( ( p_input->i_type == ITEM_TYPE_AFILE ) || \
+ ( p_input->i_type == ITEM_TYPE_VFILE ) )
+ /* some audio files are detected as video files */
+ {
+ char *psz_uri = p_input->psz_uri;
+ if( !strncmp( psz_uri, "file://", 7 ) )
+ psz_uri += 7; /* strlen("file://") = 7 */
+
+ p_export.psz_file = strndup( psz_uri, PATH_MAX );
+ }
+ else
+ return;
+
+ /* now we read the modified meta data */
+ input_item_SetArtist( p_input, qtu( artist_text->text() ) );
+ input_item_SetAlbum( p_input, qtu( collection_text->text() ) );
+ input_item_SetGenre( p_input, qtu( genre_text->text() ) );
+
+ snprintf( psz, sizeof(psz), "%d", date_text->value() );
+ input_item_SetDate( p_input, psz );
+
+ snprintf( psz, sizeof(psz), "%d", seqnum_text->value() );
+ input_item_SetTrackNum( p_input, psz );
+
+ input_item_SetTitle( p_input, qtu( title_text->text() ) );
+
+ p_playlist = pl_Yield( p_intf );
+
+ PL_LOCK;
+ p_playlist->p_private = &p_export;
+
+ module_t *p_mod = module_Need( p_playlist, "meta writer", NULL, 0 );
+ if( p_mod )
+ module_Unneed( p_playlist, p_mod );
+ PL_UNLOCK;
+ pl_Release( p_playlist );
}
+/**
+ * Update all the MetaData and art on an "item-changed" event
+ **/
void MetaPanel::update( input_item_t *p_item )
{
+ char *psz_meta;
#define UPDATE_META( meta, widget ) { \
- char* psz_meta = p_item->p_meta->psz_##meta; \
+ psz_meta = input_item_Get##meta( p_item ); \
if( !EMPTY_STR( psz_meta ) ) \
widget->setText( qfu( psz_meta ) ); \
else \
- widget->setText( "" ); }
-
- if( !EMPTY_STR( p_item->psz_name ) )
- name_text->setText( qfu( p_item->psz_name ) );
- else name_text->setText( "" );
- if( !EMPTY_STR( p_item->psz_uri ) )
- uri_text->setText( qfu( p_item->psz_uri ) );
- else uri_text->setText( "" );
- UPDATE_META( artist, artist_text );
- UPDATE_META( genre, genre_text );
- UPDATE_META( copyright, copyright_text );
- UPDATE_META( album, collection_text );
- UPDATE_META( tracknum, seqnum_text );
- UPDATE_META( description, description_text );
- UPDATE_META( rating, rating_text );
- UPDATE_META( date, date_text );
- UPDATE_META( language, language_text );
- UPDATE_META( nowplaying, nowplaying_text );
- UPDATE_META( publisher, publisher_text );
- UPDATE_META( setting, setting_text );
+ widget->setText( "" ); } \
+ free( psz_meta );
+#define UPDATE_META_INT( meta, widget ) { \
+ psz_meta = input_item_Get##meta( p_item ); \
+ if( !EMPTY_STR( psz_meta ) ) \
+ widget->setValue( atoi( psz_meta ) ); } \
+ free( psz_meta );
+
+
+ /* Name / Title */
+ psz_meta = input_item_GetTitle( p_item );
+ if( !EMPTY_STR( psz_meta ) )
+ title_text->setText( qfu( psz_meta ) );
+ else if( !EMPTY_STR( p_item->psz_name ) )
+ title_text->setText( qfu( p_item->psz_name ) );
+ else title_text->setText( "" );
+ free( psz_meta );
+
+ /* URL / URI */
+ psz_meta = input_item_GetURL( p_item );
+ if( !EMPTY_STR( psz_meta ) )
+ emit uriSet( QString( psz_meta ) );
+ else if( !EMPTY_STR( p_item->psz_uri ) )
+ emit uriSet( QString( p_item->psz_uri ) );
+ free( psz_meta );
+
+ /* Other classic though */
+ UPDATE_META( Artist, artist_text );
+ UPDATE_META( Genre, genre_text );
+ UPDATE_META( Copyright, copyright_text );
+ UPDATE_META( Album, collection_text );
+ UPDATE_META( Description, description_text );
+ UPDATE_META( Language, language_text );
+ UPDATE_META( NowPlaying, nowplaying_text );
+ UPDATE_META( Publisher, publisher_text );
+ UPDATE_META( Setting, setting_text );
+
+ UPDATE_META_INT( Date, date_text );
+ UPDATE_META_INT( TrackNum, seqnum_text );
+ UPDATE_META_INT( Rating, rating_text );
+
+#undef UPDATE_META_INT
#undef UPDATE_META
+
+ /* Art Urls */
+ psz_meta = input_item_GetArtURL( p_item );
+ if( psz_meta && !strncmp( psz_meta, "file://", 7 ) )
+ {
+ QString artUrl = qfu( psz_meta ).replace( "file://",QString("" ) );
+ art_cover->setPixmap( QPixmap( artUrl ) );
+ }
+ else
+ art_cover->setPixmap( QPixmap( ":/noart.png" ) );
+ free( psz_meta );
}
-void MetaPanel::clear()
+/*
+ * Clear all the metadata widgets
+ * Unused yet
+ */
+void MetaPanel::clear(){}
+
+/**
+ * Second Panel - Shows the extra metadata in a tree, non editable.
+ **/
+ExtraMetaPanel::ExtraMetaPanel( QWidget *parent,
+ intf_thread_t *_p_intf )
+ : QWidget( parent ), p_intf( _p_intf )
{
+ QGridLayout *layout = new QGridLayout(this);
+
+ QLabel *topLabel = new QLabel( qtr( "Extra metadata and other information"
+ " are shown in this list.\n" ) );
+ topLabel->setWordWrap( true );
+ layout->addWidget( topLabel, 0, 0 );
+
+ extraMetaTree = new QTreeWidget( this );
+ extraMetaTree->setAlternatingRowColors( true );
+ extraMetaTree->setColumnCount( 2 );
+ extraMetaTree->header()->hide();
+/* QStringList headerList = ( QStringList() << qtr( "Type" )
+ * << qtr( "Value" ) );
+ * Useless, add this header if you think it would help the user **
+ */
+
+ layout->addWidget( extraMetaTree, 1, 0 );
+}
+
+/**
+ * Update the Extra Metadata from p_meta->i_extras
+ **/
+void ExtraMetaPanel::update( input_item_t *p_item )
+{
+ vlc_meta_t *p_meta = p_item->p_meta;
+ if( !p_meta )
+ return;
+ QStringList tempItem;
+
+ QList<QTreeWidgetItem *> items;
+ vlc_dictionary_t * p_dict = &p_meta->extra_tags;
+ char ** ppsz_allkey = vlc_dictionary_all_keys( p_dict );
+ for (int i = 0; ppsz_allkey[i] ; i++ )
+ {
+ const char * psz_value = (const char *)vlc_dictionary_value_for_key(
+ p_dict, ppsz_allkey[i] );
+ tempItem.append( qfu( ppsz_allkey[i] ) + " : ");
+ tempItem.append( qfu( psz_value ) );
+ items.append( new QTreeWidgetItem ( extraMetaTree, tempItem ) );
+ free( ppsz_allkey[i] );
+ }
+ free( ppsz_allkey );
+ extraMetaTree->addTopLevelItems( items );
}
-/* Second Panel - Stats */
+/**
+ * Clear the ExtraMetaData Tree
+ **/
+void ExtraMetaPanel::clear()
+{
+ extraMetaTree->clear();
+}
-InputStatsPanel::InputStatsPanel( QWidget *parent, intf_thread_t *_p_intf ) :
- QWidget( parent ), p_intf( _p_intf )
+/**
+ * Third panel - Stream info
+ * Display all codecs and muxers info that we could gather.
+ **/
+InfoPanel::InfoPanel( QWidget *parent,
+ intf_thread_t *_p_intf )
+ : QWidget( parent ), p_intf( _p_intf )
{
QGridLayout *layout = new QGridLayout(this);
- StatsTree = new QTreeWidget(this);
+
QList<QTreeWidgetItem *> items;
- layout->addWidget(StatsTree, 0, 0 );
+ QLabel *topLabel = new QLabel( qtr( "Information about what your media or"
+ " stream is made of.\n Muxer, Audio and Video Codecs, Subtitles "
+ "are shown." ) );
+ topLabel->setWordWrap( true );
+ layout->addWidget( topLabel, 0, 0 );
+
+ InfoTree = new QTreeWidget(this);
+ InfoTree->setColumnCount( 1 );
+ InfoTree->header()->hide();
+ layout->addWidget(InfoTree, 1, 0 );
+}
+
+InfoPanel::~InfoPanel()
+{
+}
+
+/**
+ * Update the Codecs information on parent->update()
+ **/
+void InfoPanel::update( input_item_t *p_item)
+{
+ InfoTree->clear();
+ QTreeWidgetItem *current_item = NULL;
+ QTreeWidgetItem *child_item = NULL;
+
+ for( int i = 0; i< p_item->i_categories ; i++)
+ {
+ current_item = new QTreeWidgetItem();
+ current_item->setText( 0, qfu(p_item->pp_categories[i]->psz_name) );
+ InfoTree->addTopLevelItem( current_item );
+
+ for( int j = 0 ; j < p_item->pp_categories[i]->i_infos ; j++ )
+ {
+ child_item = new QTreeWidgetItem ();
+ child_item->setText( 0,
+ qfu(p_item->pp_categories[i]->pp_infos[j]->psz_name)
+ + ": "
+ + qfu(p_item->pp_categories[i]->pp_infos[j]->psz_value));
+
+ current_item->addChild(child_item);
+ }
+ InfoTree->setItemExpanded( current_item, true);
+ }
+}
+
+/**
+ * Clear the tree
+ **/
+void InfoPanel::clear()
+{
+ InfoTree->clear();
+}
+
+/**
+ * Save all the information to a file
+ * Not yet implemented.
+ **/
+/*
+void InfoPanel::saveCodecsInfo()
+{
+
+}
+*/
+
+/**
+ * Fourth Panel - Stats
+ * Displays the Statistics for reading/streaming/encoding/displaying in a tree
+ */
+InputStatsPanel::InputStatsPanel( QWidget *parent,
+ intf_thread_t *_p_intf )
+ : QWidget( parent ), p_intf( _p_intf )
+{
+ QGridLayout *layout = new QGridLayout(this);
+
+ QList<QTreeWidgetItem *> items;
+
+ QLabel *topLabel = new QLabel( qtr( "Various statistics about the current"
+ " media or stream.\n Played and streamed info are shown." ) );
+ topLabel->setWordWrap( true );
+ layout->addWidget( topLabel, 0, 0 );
+
+ StatsTree = new QTreeWidget(this);
StatsTree->setColumnCount( 3 );
StatsTree->header()->hide();
#define CREATE_TREE_ITEM( itemName, itemText, itemValue, unit ) { \
- itemName = \
- new QTreeWidgetItem((QStringList () << itemText << itemValue << unit )); \
+ itemName = \
+ new QTreeWidgetItem((QStringList () << itemText << itemValue << unit )); \
itemName->setTextAlignment( 1 , Qt::AlignRight ) ; }
-
#define CREATE_CATEGORY( catName, itemText ) { \
CREATE_TREE_ITEM( catName, itemText , "", "" ); \
catName->setExpanded( true ); \
StatsTree->addTopLevelItem( catName ); }
-#define CREATE_AND_ADD_TO_CAT( itemName, itemText, itemValue, catName, unit ) { \
- CREATE_TREE_ITEM( itemName, itemText, itemValue, unit ); \
+#define CREATE_AND_ADD_TO_CAT( itemName, itemText, itemValue, catName, unit ){ \
+ CREATE_TREE_ITEM( itemName, itemText, itemValue, unit ); \
catName->addChild( itemName ); }
+ /* Create the main categories */
CREATE_CATEGORY( input, qtr("Input") );
CREATE_CATEGORY( video, qtr("Video") );
CREATE_CATEGORY( streaming, qtr("Streaming") );
CREATE_CATEGORY( audio, qtr("Audio") );
-
- CREATE_AND_ADD_TO_CAT( read_media_stat, qtr("Read at media"), "0", input , "kB") ;
- CREATE_AND_ADD_TO_CAT( input_bitrate_stat, qtr("Input bitrate"), "0", input, "kb/s") ;
+ CREATE_AND_ADD_TO_CAT( read_media_stat, qtr("Read at media"),
+ "0", input , "kB" );
+ CREATE_AND_ADD_TO_CAT( input_bitrate_stat, qtr("Input bitrate"),
+ "0", input, "kb/s" );
CREATE_AND_ADD_TO_CAT( demuxed_stat, qtr("Demuxed"), "0", input, "kB") ;
- CREATE_AND_ADD_TO_CAT( stream_bitrate_stat, qtr("Stream bitrate"), "0", input, "kb/s") ;
-
- CREATE_AND_ADD_TO_CAT( vdecoded_stat, qtr("Decoded blocks"), "0", video, "" ) ;
- CREATE_AND_ADD_TO_CAT( vdisplayed_stat, qtr("Displayed frames"), "0", video, "") ;
- CREATE_AND_ADD_TO_CAT( vlost_frames_stat, qtr("Lost frames"), "0", video, "") ;
-
- CREATE_AND_ADD_TO_CAT( send_stat, qtr("Sent packets"), "0", streaming, "") ;
- CREATE_AND_ADD_TO_CAT( send_bytes_stat, qtr("Sent bytes"), "0", streaming, "kB") ;
- CREATE_AND_ADD_TO_CAT( send_bitrate_stat, qtr("Sent bitrates"), "0", streaming, "kb/s") ;
-
- CREATE_AND_ADD_TO_CAT( adecoded_stat, qtr("Decoded blocks"), "0", audio, "") ;
- CREATE_AND_ADD_TO_CAT( aplayed_stat, qtr("Played buffers"), "0", audio, "") ;
- CREATE_AND_ADD_TO_CAT( alost_stat, qtr("Lost buffers"), "0", audio, "") ;
+ CREATE_AND_ADD_TO_CAT( stream_bitrate_stat, qtr("Stream bitrate"),
+ "0", input, "kb/s" );
+
+ CREATE_AND_ADD_TO_CAT( vdecoded_stat, qtr("Decoded blocks"),
+ "0", video, "" );
+ CREATE_AND_ADD_TO_CAT( vdisplayed_stat, qtr("Displayed frames"),
+ "0", video, "" );
+ CREATE_AND_ADD_TO_CAT( vlost_frames_stat, qtr("Lost frames"),
+ "0", video, "" );
+
+ CREATE_AND_ADD_TO_CAT( send_stat, qtr("Sent packets"), "0", streaming, "" );
+ CREATE_AND_ADD_TO_CAT( send_bytes_stat, qtr("Sent bytes"),
+ "0", streaming, "kB" );
+ CREATE_AND_ADD_TO_CAT( send_bitrate_stat, qtr("Sent bitrates"),
+ "0", streaming, "kb/s" );
+
+ CREATE_AND_ADD_TO_CAT( adecoded_stat, qtr("Decoded blocks"),
+ "0", audio, "" );
+ CREATE_AND_ADD_TO_CAT( aplayed_stat, qtr("Played buffers"),
+ "0", audio, "" );
+ CREATE_AND_ADD_TO_CAT( alost_stat, qtr("Lost buffers"), "0", audio, "" );
input->setExpanded( true );
video->setExpanded( true );
StatsTree->resizeColumnToContents( 0 );
StatsTree->setColumnWidth( 1 , 100 );
+
+ layout->addWidget(StatsTree, 1, 0 );
}
InputStatsPanel::~InputStatsPanel()
{
}
+/**
+ * Update the Statistics
+ **/
void InputStatsPanel::update( input_item_t *p_item )
{
vlc_mutex_lock( &p_item->p_stats->lock );
#define UPDATE( widget, format, calc... ) \
{ QString str; widget->setText( 1 , str.sprintf( format, ## calc ) ); }
- UPDATE( read_media_stat, "%8.0f", (float)(p_item->p_stats->i_read_bytes)/1000);
+ UPDATE( read_media_stat, "%8.0f",
+ (float)(p_item->p_stats->i_read_bytes)/1000);
UPDATE( input_bitrate_stat, "%6.0f",
(float)(p_item->p_stats->f_input_bitrate * 8000 ));
UPDATE( demuxed_stat, "%8.0f",
{
}
-/* Third panel - Stream info */
-
-InfoPanel::InfoPanel( QWidget *parent, intf_thread_t *_p_intf ) :
- QWidget( parent ), p_intf( _p_intf )
-{
- QGridLayout *layout = new QGridLayout(this);
- InfoTree = new QTreeWidget(this);
- QList<QTreeWidgetItem *> items;
-
- layout->addWidget(InfoTree, 0, 0 );
- InfoTree->setColumnCount( 1 );
- InfoTree->header()->hide();
-}
-
-InfoPanel::~InfoPanel()
-{
-}
-
-void InfoPanel::update( input_item_t *p_item)
-{
- InfoTree->clear();
- QTreeWidgetItem *current_item = NULL;
- QTreeWidgetItem *child_item = NULL;
-
- for( int i = 0; i< p_item->i_categories ; i++)
- {
- current_item = new QTreeWidgetItem();
- current_item->setText( 0, qfu(p_item->pp_categories[i]->psz_name) );
- InfoTree->addTopLevelItem( current_item );
-
- for( int j = 0 ; j < p_item->pp_categories[i]->i_infos ; j++ )
- {
- child_item = new QTreeWidgetItem ();
- child_item->setText( 0,
- qfu(p_item->pp_categories[i]->pp_infos[j]->psz_name)
- + ": "
- + qfu(p_item->pp_categories[i]->pp_infos[j]->psz_value));
-
- current_item->addChild(child_item);
- }
- InfoTree->setItemExpanded( current_item, true);
- }
-}
-
-void InfoPanel::clear()
-{
- InfoTree->clear();
-}
-
-/***************************************************************************
- * Tab widget
- ***************************************************************************/
-InfoTab::InfoTab( QWidget *parent, intf_thread_t *_p_intf, bool _stats ) :
- QTabWidget( parent ), stats( _stats ), p_intf( _p_intf )
-{
-// setGeometry(0, 0, 400, 500);
-
- MP = new MetaPanel(NULL, p_intf);
- addTab(MP, qtr("&General"));
- IP = new InfoPanel(NULL, p_intf);
- addTab(IP, qtr("&Details"));
- if( stats )
- {
- ISP = new InputStatsPanel( NULL, p_intf );
- addTab(ISP, qtr("&Stats"));
- }
-}
-
-InfoTab::~InfoTab()
-{
-}
-
-/* This function should be called approximately twice a second.
- * p_item should be locked
- * Stats will always be updated */
-void InfoTab::update( input_item_t *p_item, bool update_info,
- bool update_meta )
-{
- if( update_info )
- IP->update( p_item );
- if( update_meta )
- MP->update( p_item );
- if( stats )
- ISP->update( p_item );
-}
-
-void InfoTab::clear()
-{
- IP->clear();
- MP->clear();
- if( stats ) ISP->clear();
-}