[vlc-commits] Qt: do not show open options in both normal and advanced UI
Jean-Baptiste Kempf
git at videolan.org
Thu Nov 17 02:25:58 CET 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Nov 17 02:25:15 2011 +0100| [cb41e1e0c305dc7c770af87b266779b427d0f5d9] | committer: Jean-Baptiste Kempf
Qt: do not show open options in both normal and advanced UI
Close #2908
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cb41e1e0c305dc7c770af87b266779b427d0f5d9
---
modules/gui/qt4/components/open_panels.cpp | 17 ++++++++++++++---
modules/gui/qt4/components/open_panels.hpp | 1 +
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp
index 9aae460..070e964 100644
--- a/modules/gui/qt4/components/open_panels.cpp
+++ b/modules/gui/qt4/components/open_panels.cpp
@@ -675,7 +675,6 @@ void CaptureOpenPanel::initialize()
{
if( isInitialized ) return;
- msg_Dbg( p_intf, "Initialization of Capture device panel" );
isInitialized = true;
ui.setupUi( this );
@@ -736,6 +735,7 @@ void CaptureOpenPanel::initialize()
CuMRL( vdevDshowW->combo, currentIndexChanged ( int ) );
CuMRL( adevDshowW->combo, currentIndexChanged ( int ) );
CuMRL( dshowVSizeLine, textChanged( const QString& ) );
+ configList << "dshow-vdev" << "dshow-adev" << "dshow-size";
}
#else /* WIN32 */
/*******
@@ -793,6 +793,7 @@ void CaptureOpenPanel::initialize()
CuMRL( v4l2AudioDevice->lineEdit(), textChanged( const QString& ) );
CuMRL( v4l2AudioDevice, currentIndexChanged ( int ) );
CuMRL( v4l2StdBox, currentIndexChanged ( int ) );
+ configList << "v4l2-standard" << "v4l2-dev";
}
/*******
@@ -837,6 +838,7 @@ void CaptureOpenPanel::initialize()
CuMRL( jackPace, stateChanged( int ) );
CuMRL( jackConnect, stateChanged( int ) );
CuMRL( jackPortsSelected, textChanged( const QString& ) );
+ configList << "jack-input-use-vlc-pace" << "jack-input-auto-connect";
}
/************
@@ -893,6 +895,8 @@ void CaptureOpenPanel::initialize()
CuMRL( pvrFreq, valueChanged ( int ) );
CuMRL( pvrBitr, valueChanged ( int ) );
CuMRL( pvrNormBox, currentIndexChanged ( int ) );
+ configList << "pvr-device" << "pvr-radio-device" << "pvr-norm"
+ << "pvr-frequency" << "pvr-bitrate";
}
#endif
/*************
@@ -1011,6 +1015,8 @@ void CaptureOpenPanel::initialize()
BUTTONACT( dvbs2, updateMRL() );
BUTTONACT( atsc, updateMRL() );
BUTTONACT( cqam, updateMRL() );
+ configList << "dvb-adapter" << "dvb-frequency" << "dvb-modulation"
+ << "dvb-bandwidth";
}
/**********
@@ -1253,9 +1259,15 @@ void CaptureOpenPanel::advancedDialog()
for( int n = 0; n < (int)i_confsize; n++ )
{
module_config_t *p_item = p_config + n;
+ QString name = p_item->psz_name;
+
+ if( name.isEmpty() || configList.contains( name ) )
+ continue;
+
+ msg_Err( p_intf, "%s", p_item->psz_name);
ConfigControl *config = ConfigControl::createControl(
VLC_OBJECT( p_intf ), p_item, advFrame, gLayout, n );
- if ( config )
+ if( config )
controls.append( config );
}
@@ -1307,7 +1319,6 @@ void CaptureOpenPanel::advancedDialog()
}
advMRL = tempMRL;
updateMRL();
- msg_Dbg( p_intf, "%s", qtu( advMRL ) );
}
qDeleteAll( controls );
delete adv;
diff --git a/modules/gui/qt4/components/open_panels.hpp b/modules/gui/qt4/components/open_panels.hpp
index bd714f7..d564e24 100644
--- a/modules/gui/qt4/components/open_panels.hpp
+++ b/modules/gui/qt4/components/open_panels.hpp
@@ -200,6 +200,7 @@ private:
bool isInitialized;
QString advMRL;
+ QStringList configList;
QDialog *adv;
#ifdef WIN32
StringListConfigControl *vdevDshowW, *adevDshowW;
More information about the vlc-commits
mailing list