[vlc-devel] commit: [Qt] Remove access filters from Preferences. (Jean-Baptiste Kempf )

git version control git at videolan.org
Wed Dec 10 09:15:41 CET 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Dec 10 09:13:44 2008 +0100| [e31e525e203bec361cce8a4815def02a69a586c1] | committer: Jean-Baptiste Kempf 

[Qt] Remove access filters from Preferences.

Timeshift and record are automatic now.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e31e525e203bec361cce8a4815def02a69a586c1
---

 modules/gui/qt4/components/simple_preferences.cpp |   30 +------------------
 modules/gui/qt4/components/simple_preferences.hpp |    2 +-
 modules/gui/qt4/ui/sprefs_input.ui                |   33 ---------------------
 3 files changed, 2 insertions(+), 63 deletions(-)

diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp
index 3dd6f14..d2da05c 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -383,17 +383,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
 #else
             ui.systemCodecBox->hide();
 #endif
-            /* Access Filters */
-            char* psz = config_GetPsz( p_intf, "access-filter" );
-            qs_filter = qfu( psz );
-            free( psz );
-            ui.timeshiftBox->setChecked( qs_filter.contains( "timeshift" ) );
-            ui.dumpBox->setChecked( qs_filter.contains( "dump" ) );
-            ui.bandwidthBox->setChecked( qs_filter.contains( "bandwidth" ) );
-
-            optionWidgets.append( ui.dumpBox );
-            optionWidgets.append( ui.bandwidthBox );
-            optionWidgets.append( ui.timeshiftBox );
             optionWidgets.append( ui.DVDDevice );
             optionWidgets.append( ui.cachingCombo );
 
@@ -617,23 +606,6 @@ void SPrefsPanel::apply()
             config_PutPsz( p_intf, "cd-audio", psz_devicepath );
         }
 
-        /* Access filters */
-#define saveBox( name, box ) {\
-        if( box->isChecked() ) { \
-            if( b_first ) { \
-                qs_filter.append( name ); \
-                b_first = false; \
-            } \
-            else qs_filter.append( ":" ).append( name ); \
-        } }
-
-        bool b_first = true;
-        qs_filter.clear();
-        saveBox( "dump", qobject_cast<QCheckBox *>(optionWidgets[dumpChB]) );
-        saveBox( "timeshift", qobject_cast<QCheckBox *>(optionWidgets[timeshiftChB]) );
-        saveBox( "bandwidth", qobject_cast<QCheckBox *>(optionWidgets[bandwidthChB] ) );
-        config_PutPsz( p_intf, "access-filter", qtu( qs_filter ) );
-
 #define CaCi( name, int ) config_PutInt( p_intf, name, int * i_comboValue )
 #define CaC( name ) CaCi( name, 1 )
         /* Caching */
@@ -677,7 +649,7 @@ void SPrefsPanel::apply()
         if( qobject_cast<QRadioButton *>(optionWidgets[skinRB])->isChecked() )
             config_PutPsz( p_intf, "intf", "skins2" );
         if( qobject_cast<QRadioButton *>(optionWidgets[qtRB])->isChecked() )
-            config_PutPsz( p_intf, "intf", "qt4" );
+            config_PutPsz( p_intf, "intf", "qt" );
         break;
     }
 
diff --git a/modules/gui/qt4/components/simple_preferences.hpp b/modules/gui/qt4/components/simple_preferences.hpp
index 51e0268..1b1db4c 100644
--- a/modules/gui/qt4/components/simple_preferences.hpp
+++ b/modules/gui/qt4/components/simple_preferences.hpp
@@ -72,7 +72,7 @@ enum {
        audioOutCoB,
        normalizerChB,
        volLW };
-enum { dumpChB, bandwidthChB, timeshiftChB, inputLE, cachingCoB };
+enum { inputLE, cachingCoB };
 enum { skinRB, qtRB };
 
 class ConfigControl;
diff --git a/modules/gui/qt4/ui/sprefs_input.ui b/modules/gui/qt4/ui/sprefs_input.ui
index 835b065..fbf1029 100644
--- a/modules/gui/qt4/ui/sprefs_input.ui
+++ b/modules/gui/qt4/ui/sprefs_input.ui
@@ -175,36 +175,6 @@
      </layout>
     </widget>
    </item>
-   <item>
-    <widget class="QGroupBox" name="groupBox_4" >
-     <property name="title" >
-      <string>_("Access Filter")</string>
-     </property>
-     <layout class="QHBoxLayout" >
-      <item>
-       <widget class="QCheckBox" name="timeshiftBox" >
-        <property name="text" >
-         <string>_("Timeshift")</string>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QCheckBox" name="dumpBox" >
-        <property name="text" >
-         <string>_("Dump")</string>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QCheckBox" name="bandwidthBox" >
-        <property name="text" >
-         <string>_("Bandwidth limiter")</string>
-        </property>
-       </widget>
-      </item>
-     </layout>
-    </widget>
-   </item>
   </layout>
  </widget>
  <tabstops>
@@ -217,9 +187,6 @@
   <tabstop>AviRepair</tabstop>
   <tabstop>RTSP_TCPBox</tabstop>
   <tabstop>systemCodecBox</tabstop>
-  <tabstop>timeshiftBox</tabstop>
-  <tabstop>dumpBox</tabstop>
-  <tabstop>bandwidthBox</tabstop>
  </tabstops>
  <resources/>
  <connections/>




More information about the vlc-devel mailing list