vlc_linux/vlc-3.0.16/modules/gui/qt/components/open_panels.cpp
/**
 * Update the Buttons (show/hide) for the GUI as all device type don't
 * use the same ui. elements.
 **/
Update the Buttons (show/hide) for the GUI as all device type don't
use the same ui. elements.
Update the Buttons ( show / hide ) for the GUI as all device type don ' t use the same ui . elements .
void CaptureOpenPanel::updateButtons()
{
    ui.optionsBox->show();
    ui.advancedButton->show();
    int i_devicetype = ui.deviceCombo->itemData(
                                ui.deviceCombo->currentIndex() ).toInt();
    switch( i_devicetype )
    {
    case DTV_DEVICE:
        dvbSrate->hide();
        dvbSrateLabel->hide();
        dvbQamBox->hide();
        dvbPskBox->hide();
        dvbModLabel->hide();
        dvbBandBox->hide();
        dvbBandLabel->hide();
        if( dvbc->isChecked() )
        {
            dvbSrate->show();
            dvbSrateLabel->show();
            dvbQamBox->show();
            dvbModLabel->show();
        }
        else if( dvbs->isChecked() )
        {
            dvbSrate->show();
            dvbSrateLabel->show();
        }
        else if( dvbs2->isChecked() )
        {
            dvbSrate->show();
            dvbSrateLabel->show();
            dvbPskBox->show();
            dvbModLabel->show();
        }
        else if( dvbt->isChecked() || dvbt2->isChecked() )
        {
            dvbBandBox->show();
            dvbBandLabel->show();
        }
        break;
    case SCREEN_DEVICE:
        ui.advancedButton->hide();
        break;
    }
    advMRL.clear();
}
void CaptureOpenPanel :: updateButtons ( ) { ui . optionsBox -> show ( ) ; ui . advancedButton -> show ( ) ; int i_devicetype = ui . deviceCombo -> itemData ( ui . deviceCombo -> currentIndex ( ) ) . toInt ( ) ; switch ( i_devicetype ) { case DTV_DEVICE : dvbSrate -> hide ( ) ; dvbSrateLabel -> hide ( ) ; dvbQamBox -> hide ( ) ; dvbPskBox -> hide ( ) ; dvbModLabel -> hide ( ) ; dvbBandBox -> hide ( ) ; dvbBandLabel -> hide ( ) ; if ( dvbc -> isChecked ( ) ) { dvbSrate -> show ( ) ; dvbSrateLabel -> show ( ) ; dvbQamBox -> show ( ) ; dvbModLabel -> show ( ) ; } else if ( dvbs -> isChecked ( ) ) { dvbSrate -> show ( ) ; dvbSrateLabel -> show ( ) ; } else if ( dvbs2 -> isChecked ( ) ) { dvbSrate -> show ( ) ; dvbSrateLabel -> show ( ) ; dvbPskBox -> show ( ) ; dvbModLabel -> show ( ) ; } else if ( dvbt -> isChecked ( ) || dvbt2 -> isChecked ( ) ) { dvbBandBox -> show ( ) ; dvbBandLabel -> show ( ) ; } break ; case SCREEN_DEVICE : ui . advancedButton -> hide ( ) ; break ; } advMRL . clear ( ) ; }
Update the Buttons (show/hide) for the GUI as all device type don't
 use the same ui.
Update the Buttons ( show / hide ) for the GUI as all device type don ' t use the same ui .
/*  Be sure to display the ui Elements in case they were hidden by
     *  some Device Type (like Screen://) */ /* Get the current Device Number */ //ui.optionsBox->hide();