Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
91c06c7d
Commit
91c06c7d
authored
Jan 19, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: actions_manager: Change constructor and inline some functions.
parent
f011c163
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
16 deletions
+14
-16
modules/gui/qt4/actions_manager.cpp
modules/gui/qt4/actions_manager.cpp
+11
-13
modules/gui/qt4/actions_manager.hpp
modules/gui/qt4/actions_manager.hpp
+3
-3
No files found.
modules/gui/qt4/actions_manager.cpp
View file @
91c06c7d
...
...
@@ -37,15 +37,13 @@
ActionsManager
*
ActionsManager
::
instance
=
NULL
;
ActionsManager
::
ActionsManager
(
intf_thread_t
*
_p_i
,
QObject
*
_parent
)
:
QObject
(
_parent
)
:
QObject
(
_parent
)
{
p_intf
=
_p_i
;
}
ActionsManager
::~
ActionsManager
()
{
}
//* Actions */
ActionsManager
::~
ActionsManager
(){}
void
ActionsManager
::
doAction
(
int
id_action
)
{
switch
(
id_action
)
...
...
@@ -92,7 +90,7 @@ void ActionsManager::doAction( int id_action )
}
}
void
ActionsManager
::
stop
()
inline
void
ActionsManager
::
stop
()
{
THEMIM
->
stop
();
}
...
...
@@ -108,12 +106,12 @@ void ActionsManager::play()
THEMIM
->
togglePlayPause
();
}
void
ActionsManager
::
prev
()
inline
void
ActionsManager
::
prev
()
{
THEMIM
->
prev
();
}
void
ActionsManager
::
next
()
inline
void
ActionsManager
::
next
()
{
THEMIM
->
next
();
}
...
...
@@ -146,27 +144,27 @@ void ActionsManager::snapshot()
}
}
void
ActionsManager
::
extSettings
()
inline
void
ActionsManager
::
extSettings
()
{
THEDP
->
extendedDialog
();
}
void
ActionsManager
::
reverse
()
inline
void
ActionsManager
::
reverse
()
{
THEMIM
->
getIM
()
->
reverse
();
}
void
ActionsManager
::
slower
()
inline
void
ActionsManager
::
slower
()
{
THEMIM
->
getIM
()
->
slower
();
}
void
ActionsManager
::
faster
()
inline
void
ActionsManager
::
faster
()
{
THEMIM
->
getIM
()
->
faster
();
}
void
ActionsManager
::
playlist
()
inline
void
ActionsManager
::
playlist
()
{
if
(
p_intf
->
p_sys
->
p_mi
)
p_intf
->
p_sys
->
p_mi
->
togglePlaylist
();
}
...
...
modules/gui/qt4/actions_manager.hpp
View file @
91c06c7d
...
...
@@ -57,10 +57,10 @@ class ActionsManager : public QObject
Q_OBJECT
public:
static
ActionsManager
*
getInstance
(
intf_thread_t
*
_p_intf
)
static
ActionsManager
*
getInstance
(
intf_thread_t
*
_p_intf
,
QObject
*
_parent
=
0
)
{
if
(
!
instance
)
instance
=
new
ActionsManager
(
_p_intf
);
instance
=
new
ActionsManager
(
_p_intf
,
_parent
);
return
instance
;
}
static
void
killInstance
()
...
...
@@ -71,7 +71,7 @@ public:
private:
static
ActionsManager
*
instance
;
ActionsManager
(
intf_thread_t
*
_p_i
,
QObject
*
_parent
=
0
);
ActionsManager
(
intf_thread_t
*
_p_i
,
QObject
*
_parent
);
intf_thread_t
*
p_intf
;
protected
slots
:
...
...
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