infopanels.cpp File Reference

Include dependency graph for infopanels.cpp:


Defines

#define wxRB_SINGLE   0
#define ADD_META(string, widget)
#define UPDATE_META(meta, widget)
#define INPUT_ADD(txt, widget, dflt)
#define VIDEO_ADD(txt, widget, dflt)
#define SOUT_ADD(txt, widget, dflt)
#define AUDIO_ADD(txt, widget, dflt)
#define UPDATE(widget, format, calc...)

Functions

 BEGIN_EVENT_TABLE (MetaDataPanel, wxPanel) END_EVENT_TABLE() MetaDataPanel
 BEGIN_EVENT_TABLE (AdvancedInfoPanel, wxPanel) END_EVENT_TABLE() AdvancedInfoPanel
 BEGIN_EVENT_TABLE (InputStatsInfoPanel, wxPanel) END_EVENT_TABLE() InputStatsInfoPanel

Define Documentation

#define ADD_META ( string,
widget   ) 

Value:

{                                        \
        meta_sizer->Add( new wxStaticText( this, -1, wxU(_(string) ) ),1,   \
                         wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 0 );                \
        widget = new wxStaticText( this, -1, wxU( "" ) );                   \
        meta_sizer->Add( widget, 1, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 0 ); }

#define AUDIO_ADD ( txt,
widget,
dflt   ) 

Value:

{ audio_sizer->Add ( new wxStaticText( this, -1, wxU(_( txt ) ) ),   \
                         0, wxALIGN_LEFT|wxLEFT, 5  );          \
      audio_sizer->Add( 0, 0, wxEXPAND );                                \
      widget = new wxStaticText( this, -1, wxU( dflt ), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );                \
      audio_sizer->Add( widget, 0, wxALIGN_RIGHT|wxRIGHT, 5 );  \
    }

#define INPUT_ADD ( txt,
widget,
dflt   ) 

Value:

{ input_sizer->Add ( new wxStaticText( this, -1, wxU(_( txt ) ) ),   \
                         0, wxALIGN_LEFT|wxLEFT, 5 );           \
      input_sizer->Add( 0, 0, wxEXPAND );                                \
      widget = new wxStaticText( this, -1, wxU( dflt ), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );                \
      input_sizer->Add( widget, 0, wxALIGN_RIGHT|wxRIGHT, 5  ); \
    }

#define SOUT_ADD ( txt,
widget,
dflt   ) 

Value:

{ sout_sizer->Add ( new wxStaticText( this, -1, wxU(_( txt ) ) ),  \
                         0, wxALIGN_LEFT|wxLEFT, 5  );        \
      sout_sizer->Add( 0, 0, wxEXPAND );                                \
      widget = new wxStaticText( this, -1, wxU( dflt ), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );              \
      sout_sizer->Add( widget, 0,wxALIGN_RIGHT|wxRIGHT, 5 ); \
    }

#define UPDATE ( widget,
format,
calc...   ) 

Value:

{                                       \
    wxString formatted;                 \
    formatted.Printf(  wxString( wxT(format) ), ## calc ); \
    widget->SetLabel( formatted );                      \
}

#define UPDATE_META ( meta,
widget   ) 

Value:

{                                       \
    psz_meta = input_item_Get##meta( p_item );                        \
    if( psz_meta != NULL && *psz_meta)                                      \
    {                                                                       \
        widget->SetLabel( wxU( psz_meta ) );                                \
    }                                                                       \
    else { widget->SetLabel( wxU( "-" ) ); }                                \
    }                                                                       \
    free( psz_meta );

#define VIDEO_ADD ( txt,
widget,
dflt   ) 

Value:

{ video_sizer->Add ( new wxStaticText( this, -1, wxU(_( txt ) ) ),  \
                         0, wxALIGN_LEFT|wxLEFT , 5  );        \
      video_sizer->Add( 0, 0, wxEXPAND );                                \
      widget = new wxStaticText( this, -1, wxU( dflt ), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );               \
      video_sizer->Add( widget, 0, wxALIGN_RIGHT|wxRIGHT, 5 ); \
    }

#define wxRB_SINGLE   0


Function Documentation

BEGIN_EVENT_TABLE ( InputStatsInfoPanel  ,
wxPanel   
)

BEGIN_EVENT_TABLE ( AdvancedInfoPanel  ,
wxPanel   
)

BEGIN_EVENT_TABLE ( MetaDataPanel  ,
wxPanel   
)


Generated on Wed Aug 13 08:04:35 2008 for VLC by  doxygen 1.5.1