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
49476e0b
Commit
49476e0b
authored
Jan 21, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: add a QUIT button. Close #2387.
parent
3ae1f84c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
3 deletions
+18
-3
modules/gui/qt4/actions_manager.cpp
modules/gui/qt4/actions_manager.cpp
+2
-0
modules/gui/qt4/actions_manager.hpp
modules/gui/qt4/actions_manager.hpp
+1
-0
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+8
-0
modules/gui/qt4/components/controller.hpp
modules/gui/qt4/components/controller.hpp
+7
-3
No files found.
modules/gui/qt4/actions_manager.cpp
View file @
49476e0b
...
...
@@ -86,6 +86,8 @@ void ActionsManager::doAction( int id_action )
var_SetInteger
(
p_intf
->
p_libvlc
,
"key-pressed"
,
ACTIONID_JUMP_FORWARD_SHORT
);
break
;
case
QUIT_ACTION
:
THEDP
->
quit
();
break
;
default:
msg_Dbg
(
p_intf
,
"Action: %i"
,
id_action
);
break
;
...
...
modules/gui/qt4/actions_manager.hpp
View file @
49476e0b
...
...
@@ -50,6 +50,7 @@ typedef enum actionType_e
REVERSE_ACTION
,
SKIP_BACK_ACTION
,
SKIP_FW_ACTION
,
QUIT_ACTION
,
}
actionType_e
;
class
ActionsManager
:
public
QObject
...
...
modules/gui/qt4/components/controller.cpp
View file @
49476e0b
...
...
@@ -399,6 +399,14 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
widget
=
skipFwButton
;
}
break
;
case
QUIT_BUTTON
:
{
QToolButton
*
quitButton
=
new
QToolButton
;
setupButton
(
quitButton
);
CONNECT_MAP_SET
(
quitButton
,
QUIT_ACTION
);
BUTTON_SET_BAR
(
quitButton
);
widget
=
quitButton
;
}
break
;
default:
msg_Warn
(
p_intf
,
"This should not happen %i"
,
button
);
break
;
...
...
modules/gui/qt4/components/controller.hpp
View file @
49476e0b
...
...
@@ -79,6 +79,7 @@ typedef enum buttonType_e
REVERSE_BUTTON
,
SKIP_BACK_BUTTON
,
SKIP_FW_BUTTON
,
QUIT_BUTTON
,
BUTTON_MAX
,
SPLITTER
=
0x20
,
...
...
@@ -99,7 +100,8 @@ typedef enum buttonType_e
static
const
QString
nameL
[
BUTTON_MAX
]
=
{
"Play"
,
"Stop"
,
"Open"
,
"Previous"
,
"Next"
,
"Slower"
,
"Faster"
,
"Fullscreen"
,
"De-Fullscreen"
,
"Extended panel"
,
"Playlist"
,
"Snapshot"
,
"Record"
,
"A->B Loop"
,
"Frame By Frame"
,
"Reverse"
,
"Skip backward"
,
"Skip forward"
};
"Frame By Frame"
,
"Reverse"
,
"Skip backward"
,
"Skip forward"
,
"Quit"
};
static
const
QString
tooltipL
[
BUTTON_MAX
]
=
{
I_PLAY_TOOLTIP
,
_
(
"Stop playback"
),
_
(
"Open a media"
),
_
(
"Previous media in the playlist"
),
...
...
@@ -107,11 +109,13 @@ static const QString tooltipL[BUTTON_MAX] = { I_PLAY_TOOLTIP,
_
(
"Toggle the video in fullscreen"
),
_
(
"Toggle the video out fullscreen"
),
_
(
"Show extended settings"
),
_
(
"Show playlist"
),
_
(
"Take a snapshot"
),
_
(
"Record"
),
_
(
"Loop from point A to point B continuously."
),
_
(
"Frame by frame"
),
_
(
"Reverse"
),
_
(
"Skip backward"
),
_
(
"Skip forward"
)
};
_
(
"Frame by frame"
),
_
(
"Reverse"
),
_
(
"Skip backward"
),
_
(
"Skip forward"
),
_
(
"Quit"
)
};
static
const
QString
iconL
[
BUTTON_MAX
]
=
{
":/play_b"
,
":/stop_b"
,
":/eject"
,
":/previous_b"
,
":/next_b"
,
":/slower"
,
":/faster"
,
":/fullscreen"
,
":/defullscreen"
,
":/extended"
,
":/playlist"
,
":/snapshot"
,
":/record"
,
":/atob_nob"
,
":/frame"
,
":/reverse"
,
":/skip_back"
,
":/skip_fw"
};
":/atob_nob"
,
":/frame"
,
":/reverse"
,
":/skip_back"
,
":/skip_fw"
,
":/quit"
};
enum
{
...
...
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