Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
e31e525e
Commit
e31e525e
authored
Dec 10, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Qt] Remove access filters from Preferences.
Timeshift and record are automatic now.
parent
54b49f69
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
63 deletions
+2
-63
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+1
-29
modules/gui/qt4/components/simple_preferences.hpp
modules/gui/qt4/components/simple_preferences.hpp
+1
-1
modules/gui/qt4/ui/sprefs_input.ui
modules/gui/qt4/ui/sprefs_input.ui
+0
-33
No files found.
modules/gui/qt4/components/simple_preferences.cpp
View file @
e31e525e
...
@@ -383,17 +383,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -383,17 +383,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
#else
#else
ui
.
systemCodecBox
->
hide
();
ui
.
systemCodecBox
->
hide
();
#endif
#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
.
DVDDevice
);
optionWidgets
.
append
(
ui
.
cachingCombo
);
optionWidgets
.
append
(
ui
.
cachingCombo
);
...
@@ -617,23 +606,6 @@ void SPrefsPanel::apply()
...
@@ -617,23 +606,6 @@ void SPrefsPanel::apply()
config_PutPsz
(
p_intf
,
"cd-audio"
,
psz_devicepath
);
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 CaCi( name, int ) config_PutInt( p_intf, name, int * i_comboValue )
#define CaC( name ) CaCi( name, 1 )
#define CaC( name ) CaCi( name, 1 )
/* Caching */
/* Caching */
...
@@ -677,7 +649,7 @@ void SPrefsPanel::apply()
...
@@ -677,7 +649,7 @@ void SPrefsPanel::apply()
if
(
qobject_cast
<
QRadioButton
*>
(
optionWidgets
[
skinRB
])
->
isChecked
()
)
if
(
qobject_cast
<
QRadioButton
*>
(
optionWidgets
[
skinRB
])
->
isChecked
()
)
config_PutPsz
(
p_intf
,
"intf"
,
"skins2"
);
config_PutPsz
(
p_intf
,
"intf"
,
"skins2"
);
if
(
qobject_cast
<
QRadioButton
*>
(
optionWidgets
[
qtRB
])
->
isChecked
()
)
if
(
qobject_cast
<
QRadioButton
*>
(
optionWidgets
[
qtRB
])
->
isChecked
()
)
config_PutPsz
(
p_intf
,
"intf"
,
"qt
4
"
);
config_PutPsz
(
p_intf
,
"intf"
,
"qt"
);
break
;
break
;
}
}
...
...
modules/gui/qt4/components/simple_preferences.hpp
View file @
e31e525e
...
@@ -72,7 +72,7 @@ enum {
...
@@ -72,7 +72,7 @@ enum {
audioOutCoB
,
audioOutCoB
,
normalizerChB
,
normalizerChB
,
volLW
};
volLW
};
enum
{
dumpChB
,
bandwidthChB
,
timeshiftChB
,
inputLE
,
cachingCoB
};
enum
{
inputLE
,
cachingCoB
};
enum
{
skinRB
,
qtRB
};
enum
{
skinRB
,
qtRB
};
class
ConfigControl
;
class
ConfigControl
;
...
...
modules/gui/qt4/ui/sprefs_input.ui
View file @
e31e525e
...
@@ -175,36 +175,6 @@
...
@@ -175,36 +175,6 @@
</layout>
</layout>
</widget>
</widget>
</item>
</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>
</layout>
</widget>
</widget>
<tabstops>
<tabstops>
...
@@ -217,9 +187,6 @@
...
@@ -217,9 +187,6 @@
<tabstop>AviRepair</tabstop>
<tabstop>AviRepair</tabstop>
<tabstop>RTSP_TCPBox</tabstop>
<tabstop>RTSP_TCPBox</tabstop>
<tabstop>systemCodecBox</tabstop>
<tabstop>systemCodecBox</tabstop>
<tabstop>timeshiftBox</tabstop>
<tabstop>dumpBox</tabstop>
<tabstop>bandwidthBox</tabstop>
</tabstops>
</tabstops>
<resources/>
<resources/>
<connections/>
<connections/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment