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
190e7875
Commit
190e7875
authored
Oct 20, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Qt] remove trailing spaces, set a default filter and add a LONGTEXT
parent
6b468738
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
14 deletions
+18
-14
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+0
-1
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+1
-1
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+1
-1
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+3
-2
modules/gui/qt4/menus.hpp
modules/gui/qt4/menus.hpp
+1
-1
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+8
-4
modules/gui/qt4/recents.cpp
modules/gui/qt4/recents.cpp
+3
-3
modules/gui/qt4/recents.hpp
modules/gui/qt4/recents.hpp
+1
-1
No files found.
modules/gui/qt4/components/simple_preferences.cpp
View file @
190e7875
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
#include <QToolButton>
#include <QToolButton>
#include <QButtonGroup>
#include <QButtonGroup>
#include <QVBoxLayout>
#include <QVBoxLayout>
#include <QSettings>
#include <QtAlgorithms>
#include <QtAlgorithms>
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
190e7875
...
@@ -651,7 +651,7 @@ void DialogsProvider::loadSubtitlesFile()
...
@@ -651,7 +651,7 @@ void DialogsProvider::loadSubtitlesFile()
**/
**/
void
DialogsProvider
::
playMRL
(
const
QString
&
mrl
)
void
DialogsProvider
::
playMRL
(
const
QString
&
mrl
)
{
{
input_item_t
*
p_input
=
input_item_New
(
p_intf
,
input_item_t
*
p_input
=
input_item_New
(
p_intf
,
qtu
(
mrl
),
NULL
);
qtu
(
mrl
),
NULL
);
playlist_AddInput
(
THEPL
,
p_input
,
PLAYLIST_GO
,
playlist_AddInput
(
THEPL
,
p_input
,
PLAYLIST_GO
,
PLAYLIST_END
,
true
,
pl_Unlocked
);
PLAYLIST_END
,
true
,
pl_Unlocked
);
...
...
modules/gui/qt4/input_manager.cpp
View file @
190e7875
...
@@ -153,7 +153,7 @@ void InputManager::addCallbacks()
...
@@ -153,7 +153,7 @@ void InputManager::addCallbacks()
var_AddCallback
(
p_input
,
"state"
,
ItemStateChanged
,
this
);
var_AddCallback
(
p_input
,
"state"
,
ItemStateChanged
,
this
);
/* src/input/es-out.c:552 */
/* src/input/es-out.c:552 */
var_AddCallback
(
p_input
,
"spu-es"
,
ChangeSPU
,
this
);
var_AddCallback
(
p_input
,
"spu-es"
,
ChangeSPU
,
this
);
/* emit UpdateStatus so that main_interface updates controls
/* emit UpdateStatus so that main_interface updates controls
* if there is new videotracks (mpeg-ts)*/
* if there is new videotracks (mpeg-ts)*/
var_AddCallback
(
p_input
,
"video-es"
,
ItemStateChanged
,
this
);
var_AddCallback
(
p_input
,
"video-es"
,
ItemStateChanged
,
this
);
/* src/input/es-out.c: */
/* src/input/es-out.c: */
...
...
modules/gui/qt4/main_interface.cpp
View file @
190e7875
...
@@ -133,12 +133,13 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
...
@@ -133,12 +133,13 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
* Menu Bar and Status Bar
* Menu Bar and Status Bar
**************************/
**************************/
QVLCMenu
::
createMenuBar
(
this
,
p_intf
,
visualSelectorEnabled
);
QVLCMenu
::
createMenuBar
(
this
,
p_intf
,
visualSelectorEnabled
);
/* StatusBar Creation */
/* StatusBar Creation */
createStatusBar
();
createStatusBar
();
/* Recents menu updates */
/* Recents menu updates */
CONNECT
(
RecentsMRL
::
getInstance
(
p_intf
),
updated
(),
this
,
updateRecentsMenu
()
);
CONNECT
(
RecentsMRL
::
getInstance
(
p_intf
),
updated
(),
this
,
updateRecentsMenu
()
);
/********************
/********************
* Input Manager *
* Input Manager *
...
...
modules/gui/qt4/menus.hpp
View file @
190e7875
...
@@ -117,7 +117,7 @@ private:
...
@@ -117,7 +117,7 @@ private:
static
int
CreateChoicesMenu
(
QMenu
*
,
const
char
*
,
vlc_object_t
*
,
bool
);
static
int
CreateChoicesMenu
(
QMenu
*
,
const
char
*
,
vlc_object_t
*
,
bool
);
static
QMenu
*
recentsMenu
;
static
QMenu
*
recentsMenu
;
public
slots
:
public
slots
:
static
void
updateRecents
(
intf_thread_t
*
);
static
void
updateRecents
(
intf_thread_t
*
);
};
};
class
MenuFunc
:
public
QObject
class
MenuFunc
:
public
QObject
...
...
modules/gui/qt4/qt4.cpp
View file @
190e7875
...
@@ -125,7 +125,10 @@ static void ShowDialog ( intf_thread_t *, int, int, intf_dialog_args_t * );
...
@@ -125,7 +125,10 @@ static void ShowDialog ( intf_thread_t *, int, int, intf_dialog_args_t * );
#define PRIVACY_TEXT N_( "Ask for network policy at start" )
#define PRIVACY_TEXT N_( "Ask for network policy at start" )
#define RECENTPLAY_TEXT N_( "Save the recently played items in the menu" )
#define RECENTPLAY_TEXT N_( "Save the recently played items in the menu" )
#define RECENTPLAY_FILTER_TEXT N_( "List of words separated by | to filter" )
#define RECENTPLAY_FILTER_TEXT N_( "List of words separated by | to filter" )
#define RECENTPLAY_FILTER_LONGTEXT N_( "Regular expression used to filter " \
"the recent items played in the player" )
#define SLIDERCOL_TEXT N_( "Define the colors of the volume slider " )
#define SLIDERCOL_TEXT N_( "Define the colors of the volume slider " )
#define SLIDERCOL_LONGTEXT N_( "Define the colors of the volume slider\n" \
#define SLIDERCOL_LONGTEXT N_( "Define the colors of the volume slider\n" \
...
@@ -195,6 +198,11 @@ vlc_module_begin();
...
@@ -195,6 +198,11 @@ vlc_module_begin();
change_autosave
();
change_autosave
();
change_internal
();
change_internal
();
add_bool
(
"qt-recentplay"
,
true
,
NULL
,
RECENTPLAY_TEXT
,
RECENTPLAY_TEXT
,
false
);
add_string
(
"qt-recentplay-filter"
,
"xxx|porn"
,
NULL
,
RECENTPLAY_FILTER_TEXT
,
RECENTPLAY_FILTER_LONGTEXT
,
false
);
add_bool
(
"qt-adv-options"
,
false
,
NULL
,
ADVANCED_OPTIONS_TEXT
,
add_bool
(
"qt-adv-options"
,
false
,
NULL
,
ADVANCED_OPTIONS_TEXT
,
ADVANCED_OPTIONS_LONGTEXT
,
true
);
ADVANCED_OPTIONS_LONGTEXT
,
true
);
add_bool
(
"qt-advanced-pref"
,
false
,
NULL
,
ADVANCED_PREFS_TEXT
,
add_bool
(
"qt-advanced-pref"
,
false
,
NULL
,
ADVANCED_PREFS_TEXT
,
...
@@ -213,10 +221,6 @@ vlc_module_begin();
...
@@ -213,10 +221,6 @@ vlc_module_begin();
add_bool
(
"qt-privacy-ask"
,
true
,
NULL
,
PRIVACY_TEXT
,
PRIVACY_TEXT
,
add_bool
(
"qt-privacy-ask"
,
true
,
NULL
,
PRIVACY_TEXT
,
PRIVACY_TEXT
,
false
);
false
);
add_bool
(
"qt-recentplay"
,
true
,
NULL
,
RECENTPLAY_TEXT
,
RECENTPLAY_TEXT
,
false
);
add_string
(
"qt-recentplay-filter"
,
NULL
,
NULL
,
RECENTPLAY_FILTER_TEXT
,
RECENTPLAY_FILTER_TEXT
,
false
);
change_internal
();
change_internal
();
set_callbacks
(
OpenDialogs
,
Close
);
set_callbacks
(
OpenDialogs
,
Close
);
...
...
modules/gui/qt4/recents.cpp
View file @
190e7875
...
@@ -37,7 +37,7 @@ RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf )
...
@@ -37,7 +37,7 @@ RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf )
{
{
stack
=
new
QList
<
QString
>
;
stack
=
new
QList
<
QString
>
;
signalMapper
=
new
QSignalMapper
(
this
);
signalMapper
=
new
QSignalMapper
(
this
);
isActive
=
config_GetInt
(
p_intf
,
"qt-recentplay"
);
isActive
=
config_GetInt
(
p_intf
,
"qt-recentplay"
);
filter
=
new
QRegExp
(
filter
=
new
QRegExp
(
qfu
(
config_GetPsz
(
p_intf
,
"qt-recentplay-filter"
)
),
qfu
(
config_GetPsz
(
p_intf
,
"qt-recentplay-filter"
)
),
...
@@ -57,7 +57,7 @@ void RecentsMRL::addRecent( const QString &mrl )
...
@@ -57,7 +57,7 @@ void RecentsMRL::addRecent( const QString &mrl )
{
{
if
(
!
isActive
||
filter
->
indexIn
(
mrl
)
>=
0
)
if
(
!
isActive
||
filter
->
indexIn
(
mrl
)
>=
0
)
return
;
return
;
if
(
stack
->
contains
(
mrl
)
)
if
(
stack
->
contains
(
mrl
)
)
{
{
stack
->
removeOne
(
mrl
);
stack
->
removeOne
(
mrl
);
...
@@ -90,7 +90,7 @@ QList<QString> RecentsMRL::recents()
...
@@ -90,7 +90,7 @@ QList<QString> RecentsMRL::recents()
void
RecentsMRL
::
load
()
void
RecentsMRL
::
load
()
{
{
QStringList
list
;
QStringList
list
;
getSettings
()
->
beginGroup
(
"RecentsMRL"
);
getSettings
()
->
beginGroup
(
"RecentsMRL"
);
list
=
getSettings
()
->
value
(
"list"
).
toStringList
();
list
=
getSettings
()
->
value
(
"list"
).
toStringList
();
getSettings
()
->
endGroup
();
getSettings
()
->
endGroup
();
...
...
modules/gui/qt4/recents.hpp
View file @
190e7875
...
@@ -56,7 +56,7 @@ public:
...
@@ -56,7 +56,7 @@ public:
virtual
~
RecentsMRL
();
virtual
~
RecentsMRL
();
void
addRecent
(
const
QString
&
);
void
addRecent
(
const
QString
&
);
QList
<
QString
>
recents
();
QList
<
QString
>
recents
();
QSignalMapper
*
signalMapper
;
QSignalMapper
*
signalMapper
;
private:
private:
...
...
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