+void ItemInfoDialog::UpdateInfo()
+{
+ if( !info_root )
+ {
+ info_root = info_tree->AddRoot( wxU( p_item->input.psz_name) );
+ }
+
+ /* Rebuild the tree */
+ for( int i = 0; i< p_item->input.i_categories ; i++)
+ {
+ if( !strcmp( p_item->input.pp_categories[i]->psz_name, _("Options") ) )
+ {
+ continue;
+ }
+ wxTreeItemId cat = info_tree->AppendItem( info_root,
+ wxU( p_item->input.pp_categories[i]->psz_name) );
+
+ for( int j = 0 ; j < p_item->input.pp_categories[i]->i_infos ; j++ )
+ {
+ info_tree->AppendItem( cat , (wxString)
+ wxU(p_item->input.pp_categories[i]->pp_infos[j]->psz_name) +
+ wxT(": ") +
+ wxU(p_item->input.pp_categories[i]->pp_infos[j]->psz_value) );
+ }
+
+ info_tree->Expand( cat );
+ }
+}
+