Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
23c9bffb
Commit
23c9bffb
authored
Jan 23, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: use var_Inherit
parent
68684aa4
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
40 additions
and
42 deletions
+40
-42
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+2
-2
modules/gui/qt4/components/controller_widget.cpp
modules/gui/qt4/components/controller_widget.cpp
+3
-3
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+1
-1
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+5
-5
modules/gui/qt4/dialogs/bookmarks.cpp
modules/gui/qt4/dialogs/bookmarks.cpp
+1
-1
modules/gui/qt4/dialogs/extended.cpp
modules/gui/qt4/dialogs/extended.cpp
+1
-1
modules/gui/qt4/dialogs/external.cpp
modules/gui/qt4/dialogs/external.cpp
+1
-1
modules/gui/qt4/dialogs/firstrun.hpp
modules/gui/qt4/dialogs/firstrun.hpp
+1
-1
modules/gui/qt4/dialogs/messages.cpp
modules/gui/qt4/dialogs/messages.cpp
+1
-1
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs/open.cpp
+4
-7
modules/gui/qt4/dialogs/playlist.cpp
modules/gui/qt4/dialogs/playlist.cpp
+1
-1
modules/gui/qt4/dialogs/preferences.cpp
modules/gui/qt4/dialogs/preferences.cpp
+2
-1
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+2
-2
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+9
-9
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+1
-1
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+3
-3
modules/gui/qt4/recents.cpp
modules/gui/qt4/recents.cpp
+2
-2
No files found.
modules/gui/qt4/components/controller.cpp
View file @
23c9bffb
...
...
@@ -688,7 +688,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i, QWi
/* First Move */
QRect
rect1
=
getSettings
()
->
value
(
"FullScreen/screen"
).
toRect
();
QPoint
pos1
=
getSettings
()
->
value
(
"FullScreen/pos"
).
toPoint
();
int
number
=
config_GetInt
(
p_intf
,
"qt-fullscreen-screennumber"
);
int
number
=
var_InheritInteger
(
p_intf
,
"qt-fullscreen-screennumber"
);
if
(
number
==
-
1
||
number
>
QApplication
::
desktop
()
->
numScreens
()
)
number
=
QApplication
::
desktop
()
->
screenNumber
(
p_intf
->
p_sys
->
p_mi
);
...
...
@@ -746,7 +746,7 @@ void FullscreenControllerWidget::showFSC()
}
#if HAVE_TRANSPARENCY
setWindowOpacity
(
config_Ge
tFloat
(
p_intf
,
"qt-fs-opacity"
)
);
setWindowOpacity
(
var_Inheri
tFloat
(
p_intf
,
"qt-fs-opacity"
)
);
#endif
show
();
...
...
modules/gui/qt4/components/controller_widget.cpp
View file @
23c9bffb
...
...
@@ -87,15 +87,15 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
{
volumeSlider
=
new
SoundSlider
(
this
,
config_GetInt
(
p_intf
,
"volume-step"
),
config_GetInt
(
p_intf
,
"qt-volume-complete"
),
config_GetPsz
(
p_intf
,
"qt-slider-colours"
)
);
var_InheritInteger
(
p_intf
,
"qt-volume-complete"
),
var_InheritString
(
p_intf
,
"qt-slider-colours"
)
);
}
else
{
volumeSlider
=
new
QSlider
(
NULL
);
volumeSlider
->
setOrientation
(
b_special
?
Qt
::
Vertical
:
Qt
::
Horizontal
);
volumeSlider
->
setMaximum
(
config_GetInt
(
p_intf
,
"qt-volume-complete"
)
volumeSlider
->
setMaximum
(
var_InheritBool
(
p_intf
,
"qt-volume-complete"
)
?
400
:
200
);
}
if
(
volumeSlider
->
orientation
()
==
Qt
::
Horizontal
)
...
...
modules/gui/qt4/components/interface_widgets.cpp
View file @
23c9bffb
...
...
@@ -202,7 +202,7 @@ void VideoWidget::SetFullScreen( bool b_fs )
if
(
b_fs
)
{
/* Go full-screen */
int
numscreen
=
config_GetInt
(
p_intf
,
"qt-fullscreen-screennumber"
);
int
numscreen
=
var_InheritInteger
(
p_intf
,
"qt-fullscreen-screennumber"
);
/* if user hasn't defined screennumber, or screennumber that is bigger
* than current number of screens, take screennumber where current interface
* is
...
...
modules/gui/qt4/components/open_panels.cpp
View file @
23c9bffb
...
...
@@ -76,7 +76,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
QCompleter *fileCompleter = new QCompleter( fileCompleteList, this );
fileCompleter->setModel( new QDirModel( fileCompleter ) );
lineFileEdit->setCompleter( fileCompleter );*/
if
(
config_GetInt
(
p_intf
,
"qt-embedded-open"
)
)
if
(
var_InheritBool
(
p_intf
,
"qt-embedded-open"
)
)
{
ui
.
tempWidget
->
hide
();
BuildOldPanel
();
...
...
@@ -274,9 +274,9 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
ui
.
setupUi
(
this
);
/* Get the default configuration path for the devices */
psz_dvddiscpath
=
config_GetPsz
(
p_intf
,
"dvd"
);
psz_vcddiscpath
=
config_GetPsz
(
p_intf
,
"vcd"
);
psz_cddadiscpath
=
config_GetPsz
(
p_intf
,
"cd-audio"
);
psz_dvddiscpath
=
var_InheritString
(
p_intf
,
"dvd"
);
psz_vcddiscpath
=
var_InheritString
(
p_intf
,
"vcd"
);
psz_cddadiscpath
=
var_InheritString
(
p_intf
,
"cd-audio"
);
/* State to avoid overwritting the users changes with the configuration */
b_firstdvd
=
true
;
...
...
@@ -494,7 +494,7 @@ NetOpenPanel::NetOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
/* CONNECTs */
CONNECT
(
ui
.
urlText
,
textChanged
(
const
QString
&
),
this
,
updateMRL
());
if
(
config_GetInt
(
p_intf
,
"qt-recentplay"
)
)
if
(
var_InheritBool
(
p_intf
,
"qt-recentplay"
)
)
{
mrlList
=
new
QStringListModel
(
getSettings
()
->
value
(
"Open/netMRL"
).
toStringList
()
);
...
...
modules/gui/qt4/dialogs/bookmarks.cpp
View file @
23c9bffb
...
...
@@ -34,7 +34,7 @@
BookmarksDialog
::
BookmarksDialog
(
intf_thread_t
*
_p_intf
)
:
QVLCFrame
(
_p_intf
)
{
setWindowFlags
(
Qt
::
Tool
);
setWindowOpacity
(
config_Ge
tFloat
(
p_intf
,
"qt-opacity"
)
);
setWindowOpacity
(
var_Inheri
tFloat
(
p_intf
,
"qt-opacity"
)
);
setWindowTitle
(
qtr
(
"Edit Bookmarks"
)
);
setWindowRole
(
"vlc-bookmarks"
);
...
...
modules/gui/qt4/dialogs/extended.cpp
View file @
23c9bffb
...
...
@@ -36,7 +36,7 @@
ExtendedDialog
::
ExtendedDialog
(
intf_thread_t
*
_p_intf
)
:
QVLCFrame
(
_p_intf
)
{
setWindowFlags
(
Qt
::
Tool
);
setWindowOpacity
(
config_Ge
tFloat
(
p_intf
,
"qt-opacity"
)
);
setWindowOpacity
(
var_Inheri
tFloat
(
p_intf
,
"qt-opacity"
)
);
setWindowTitle
(
qtr
(
"Adjustments and Effects"
)
);
setWindowRole
(
"vlc-extended"
);
...
...
modules/gui/qt4/dialogs/external.cpp
View file @
23c9bffb
...
...
@@ -81,7 +81,7 @@ int DialogHandler::error (vlc_object_t *obj, const char *,
const
dialog_fatal_t
*
dialog
=
(
const
dialog_fatal_t
*
)
value
.
p_address
;
DialogHandler
*
self
=
static_cast
<
DialogHandler
*>
(
data
);
if
(
config_GetInt
(
obj
,
"qt-error-dialogs"
))
if
(
var_InheritBool
(
obj
,
"qt-error-dialogs"
))
emit
self
->
error
(
qfu
(
dialog
->
title
),
qfu
(
dialog
->
message
));
return
VLC_SUCCESS
;
}
...
...
modules/gui/qt4/dialogs/firstrun.hpp
View file @
23c9bffb
...
...
@@ -35,7 +35,7 @@ class FirstRun : public QWidget
{
if
(
getSettings
()
->
value
(
"IsFirstRun"
,
1
).
toInt
()
)
{
if
(
config_GetInt
(
p_intf
,
"qt-privacy-ask"
)
)
if
(
var_InheritBool
(
p_intf
,
"qt-privacy-ask"
)
)
{
new
FirstRun
(
_p
,
p_intf
);
}
...
...
modules/gui/qt4/dialogs/messages.cpp
View file @
23c9bffb
...
...
@@ -114,7 +114,7 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf)
verbosityBox
=
new
QSpinBox
();
verbosityBox
->
setRange
(
0
,
2
);
verbosityBox
->
setValue
(
config_GetInt
(
p_intf
,
"verbose"
)
);
verbosityBox
->
setValue
(
var_InheritInteger
(
p_intf
,
"verbose"
)
);
verbosityBox
->
setWrapping
(
true
);
verbosityBox
->
setMaximumWidth
(
50
);
...
...
modules/gui/qt4/dialogs/open.cpp
View file @
23c9bffb
...
...
@@ -167,7 +167,7 @@ OpenDialog::OpenDialog( QWidget *parent,
BUTTONACT
(
cancelButton
,
cancel
()
);
/* Hide the advancedPanel */
if
(
!
config_GetInt
(
p_intf
,
"qt-adv-options"
)
)
if
(
!
var_InheritBool
(
p_intf
,
"qt-adv-options"
)
)
ui
.
advancedFrame
->
hide
();
else
ui
.
advancedCheckBox
->
setChecked
(
true
);
...
...
@@ -406,11 +406,8 @@ void OpenDialog::updateMRL() {
if
(
ui
.
slaveCheckbox
->
isChecked
()
)
{
mrl
+=
" :input-slave="
+
ui
.
slaveText
->
text
();
}
int
i_cache
=
config_GetInt
(
p_intf
,
qtu
(
storedMethod
)
);
if
(
i_cache
!=
ui
.
cacheSpinBox
->
value
()
)
{
mrl
+=
QString
(
" :%1=%2"
).
arg
(
storedMethod
).
arg
(
ui
.
cacheSpinBox
->
value
()
);
}
mrl
+=
QString
(
" :%1=%2"
).
arg
(
storedMethod
).
arg
(
ui
.
cacheSpinBox
->
value
()
);
if
(
ui
.
startTimeDoubleSpinBox
->
value
()
)
{
mrl
+=
" :start-time="
+
QString
::
number
(
ui
.
startTimeDoubleSpinBox
->
value
()
);
}
...
...
@@ -422,7 +419,7 @@ void OpenDialog::newCachingMethod( const QString& method )
{
if
(
method
!=
storedMethod
)
{
storedMethod
=
method
;
int
i_value
=
config_GetInt
(
p_intf
,
qtu
(
storedMethod
)
);
int
i_value
=
var_InheritInteger
(
p_intf
,
qtu
(
storedMethod
)
);
ui
.
cacheSpinBox
->
setValue
(
i_value
);
}
}
...
...
modules/gui/qt4/dialogs/playlist.cpp
View file @
23c9bffb
...
...
@@ -40,7 +40,7 @@ PlaylistDialog::PlaylistDialog( intf_thread_t *_p_intf )
setCentralWidget
(
main
);
setWindowTitle
(
qtr
(
"Playlist"
)
);
setWindowRole
(
"vlc-playlist"
);
setWindowOpacity
(
config_Ge
tFloat
(
p_intf
,
"qt-opacity"
)
);
setWindowOpacity
(
var_Inheri
tFloat
(
p_intf
,
"qt-opacity"
)
);
QHBoxLayout
*
l
=
new
QHBoxLayout
(
centralWidget
()
);
...
...
modules/gui/qt4/dialogs/preferences.cpp
View file @
23c9bffb
...
...
@@ -115,7 +115,8 @@ PrefsDialog::PrefsDialog( QWidget *parent, intf_thread_t *_p_intf )
setMaximumHeight
(
p_intf
->
p_sys
->
i_screenHeight
);
for
(
int
i
=
0
;
i
<
SPrefsMax
;
i
++
)
simple_panels
[
i
]
=
NULL
;
if
(
config_GetInt
(
p_intf
,
"qt-advanced-pref"
)
||
config_GetInt
(
p_intf
,
"advanced"
)
)
if
(
var_InheritBool
(
p_intf
,
"qt-advanced-pref"
)
||
var_InheritBool
(
p_intf
,
"advanced"
)
)
setAdvanced
();
else
setSmall
();
...
...
modules/gui/qt4/input_manager.cpp
View file @
23c9bffb
...
...
@@ -834,7 +834,7 @@ void InputManager::setRate( int new_rate )
void
InputManager
::
jumpFwd
()
{
int
i_interval
=
config_GetInt
(
p_input
,
"short-jump-size"
);
int
i_interval
=
var_InheritInteger
(
p_input
,
"short-jump-size"
);
if
(
i_interval
>
0
)
{
mtime_t
val
=
(
mtime_t
)(
i_interval
)
*
1000000L
;
...
...
@@ -844,7 +844,7 @@ void InputManager::jumpFwd()
void
InputManager
::
jumpBwd
()
{
int
i_interval
=
config_GetInt
(
p_input
,
"short-jump-size"
);
int
i_interval
=
var_InheritInteger
(
p_input
,
"short-jump-size"
);
if
(
i_interval
>
0
)
{
mtime_t
val
=
-
1
*
(
mtime_t
)(
i_interval
)
*
1000000L
;
...
...
modules/gui/qt4/main_interface.cpp
View file @
23c9bffb
...
...
@@ -111,19 +111,19 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
setAcceptDrops
(
true
);
setWindowRole
(
"vlc-main"
);
setWindowIcon
(
QApplication
::
windowIcon
()
);
setWindowOpacity
(
config_Ge
tFloat
(
p_intf
,
"qt-opacity"
)
);
setWindowOpacity
(
var_Inheri
tFloat
(
p_intf
,
"qt-opacity"
)
);
/* Set The Video In emebedded Mode or not */
videoEmbeddedFlag
=
config_GetInt
(
p_intf
,
"embedded-video"
);
videoEmbeddedFlag
=
var_InheritBool
(
p_intf
,
"embedded-video"
);
/* Does the interface resize to video size or the opposite */
b_keep_size
=
!
config_GetInt
(
p_intf
,
"qt-video-autoresize"
);
b_keep_size
=
!
var_InheritBool
(
p_intf
,
"qt-video-autoresize"
);
/* Are we in the enhanced always-video mode or not ? */
i_visualmode
=
config_GetInt
(
p_intf
,
"qt-display-mode"
);
i_visualmode
=
var_InheritInteger
(
p_intf
,
"qt-display-mode"
);
/* Do we want anoying popups or not */
notificationEnabled
=
(
bool
)
config_GetInt
(
p_intf
,
"qt-notification"
);
notificationEnabled
=
(
bool
)
var_InheritBool
(
p_intf
,
"qt-notification"
);
/* Set the other interface settings */
settings
=
getSettings
();
...
...
@@ -190,7 +190,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
}
#endif
/* and title of the Main Interface*/
if
(
config_GetInt
(
p_intf
,
"qt-name-in-title"
)
)
if
(
var_InheritBool
(
p_intf
,
"qt-name-in-title"
)
)
{
CONNECT
(
THEMIM
->
getIM
(),
nameChanged
(
const
QString
&
),
this
,
setVLCWindowsTitle
(
const
QString
&
)
);
...
...
@@ -443,7 +443,7 @@ void MainInterface::createMainWidget( QSettings *settings )
if
(
depth
()
>
8
)
#endif
/* Create the FULLSCREEN CONTROLS Widget */
if
(
config_GetInt
(
p_intf
,
"qt-fs-controller"
)
)
if
(
var_InheritBool
(
p_intf
,
"qt-fs-controller"
)
)
{
fullscreenControls
=
new
FullscreenControllerWidget
(
p_intf
,
this
);
CONNECT
(
fullscreenControls
,
keyPressed
(
QKeyEvent
*
),
...
...
@@ -455,9 +455,9 @@ inline void MainInterface::initSystray()
{
#ifndef HAVE_MAEMO
bool
b_systrayAvailable
=
QSystemTrayIcon
::
isSystemTrayAvailable
();
bool
b_systrayWanted
=
config_GetInt
(
p_intf
,
"qt-system-tray"
);
bool
b_systrayWanted
=
var_InheritBool
(
p_intf
,
"qt-system-tray"
);
if
(
config_GetInt
(
p_intf
,
"qt-start-minimized"
)
>
0
)
if
(
var_InheritBool
(
p_intf
,
"qt-start-minimized"
)
)
{
if
(
b_systrayAvailable
)
{
...
...
modules/gui/qt4/menus.cpp
View file @
23c9bffb
...
...
@@ -325,7 +325,7 @@ QMenu *QVLCMenu::FileMenu( intf_thread_t *p_intf, QWidget *parent )
addDPStaticEntry
(
menu
,
qtr
(
"Open &Location from clipboard"
),
NULL
,
SLOT
(
openUrlDialog
()
),
"Ctrl+V"
);
if
(
config_GetInt
(
p_intf
,
"qt-recentplay"
)
)
if
(
var_InheritBool
(
p_intf
,
"qt-recentplay"
)
)
{
recentsMenu
=
new
QMenu
(
qtr
(
"&Recent Media"
),
menu
);
updateRecents
(
p_intf
);
...
...
modules/gui/qt4/qt4.cpp
View file @
23c9bffb
...
...
@@ -394,10 +394,10 @@ static void *Thread( void *obj )
#ifdef UPDATE_CHECK
/* Checking for VLC updates */
if
(
config_GetInt
(
p_intf
,
"qt-updates-notif"
)
&&
!
config_GetInt
(
p_intf
,
"qt-privacy-ask"
)
)
if
(
var_InheritBool
(
p_intf
,
"qt-updates-notif"
)
&&
!
var_InheritBool
(
p_intf
,
"qt-privacy-ask"
)
)
{
int
interval
=
config_GetInt
(
p_intf
,
"qt-updates-days"
);
int
interval
=
var_InheritInteger
(
p_intf
,
"qt-updates-days"
);
if
(
QDate
::
currentDate
()
>
getSettings
()
->
value
(
"updatedate"
).
toDate
().
addDays
(
interval
)
)
{
...
...
modules/gui/qt4/recents.cpp
View file @
23c9bffb
...
...
@@ -49,7 +49,7 @@ RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf )
playMRL
(
const
QString
&
)
);
/* Load the filter psz */
char
*
psz_tmp
=
config_GetPsz
(
p_intf
,
"qt-recentplay-filter"
);
char
*
psz_tmp
=
var_InheritString
(
p_intf
,
"qt-recentplay-filter"
);
if
(
psz_tmp
&&
*
psz_tmp
)
filter
=
new
QRegExp
(
psz_tmp
,
Qt
::
CaseInsensitive
);
else
...
...
@@ -57,7 +57,7 @@ RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf )
free
(
psz_tmp
);
load
();
isActive
=
config_GetInt
(
p_intf
,
"qt-recentplay"
);
isActive
=
var_InheritBool
(
p_intf
,
"qt-recentplay"
);
if
(
!
isActive
)
clear
();
}
...
...
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