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
1bcf6df4
Commit
1bcf6df4
authored
Apr 21, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt, provide new combo-buttons for next/fwd, prev/bckwd
parent
b306b3a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
3 deletions
+25
-3
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+18
-0
modules/gui/qt4/components/controller.hpp
modules/gui/qt4/components/controller.hpp
+7
-3
No files found.
modules/gui/qt4/components/controller.cpp
View file @
1bcf6df4
...
...
@@ -266,6 +266,24 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
ENABLE_ON_INPUT
(
FASTERButton
);
}
break
;
case
PREV_SLOW_BUTTON
:{
QToolButtonExt
*
but
=
new
QToolButtonExt
;
setupButton
(
but
);
BUTTON_SET_BAR
(
but
);
CONNECT
(
but
,
shortClicked
(),
THEMIM
,
prev
()
);
CONNECT
(
but
,
longClicked
(),
THEAM
,
skipBackward
()
);
widget
=
but
;
}
break
;
case
NEXT_FAST_BUTTON
:{
QToolButtonExt
*
but
=
new
QToolButtonExt
;
setupButton
(
but
);
BUTTON_SET_BAR
(
but
);
CONNECT
(
but
,
shortClicked
(),
THEMIM
,
next
()
);
CONNECT
(
but
,
longClicked
(),
THEAM
,
skipForward
()
);
widget
=
but
;
}
break
;
case
FRAME_BUTTON
:
{
NORMAL_BUTTON
(
FRAME
);
ENABLE_ON_VIDEO
(
FRAMEButton
);
...
...
modules/gui/qt4/components/controller.hpp
View file @
1bcf6df4
...
...
@@ -83,6 +83,8 @@ typedef enum buttonType_e
RANDOM_BUTTON
,
LOOP_BUTTON
,
INFO_BUTTON
,
PREV_SLOW_BUTTON
,
NEXT_FAST_BUTTON
,
BUTTON_MAX
,
SPLITTER
=
0x20
,
...
...
@@ -106,7 +108,7 @@ static const char* const nameL[BUTTON_MAX] = { N_("Play"), N_("Stop"), N_("Open"
N_
(
"De-Fullscreen"
),
N_
(
"Extended panel"
),
N_
(
"Playlist"
),
N_
(
"Snapshot"
),
N_
(
"Record"
),
N_
(
"A->B Loop"
),
N_
(
"Frame By Frame"
),
N_
(
"Trickplay Reverse"
),
N_
(
"Step backward"
),
N_
(
"Step forward"
),
N_
(
"Quit"
),
N_
(
"Random"
),
N_
(
"Loop/Repeat mode"
),
N_
(
"Information"
)
};
N_
(
"Loop/Repeat mode"
),
N_
(
"Information"
)
,
N_
(
"Previous"
),
N_
(
"Next"
)
};
static
const
char
*
const
tooltipL
[
BUTTON_MAX
]
=
{
I_PLAY_TOOLTIP
,
N_
(
"Stop playback"
),
N_
(
"Open a medium"
),
N_
(
"Previous media in the playlist"
),
...
...
@@ -116,7 +118,8 @@ static const char* const tooltipL[BUTTON_MAX] = { I_PLAY_TOOLTIP,
N_
(
"Take a snapshot"
),
N_
(
"Record"
),
N_
(
"Loop from point A to point B continuously."
),
N_
(
"Frame by frame"
),
N_
(
"Reverse"
),
N_
(
"Step backward"
),
N_
(
"Step forward"
),
N_
(
"Quit"
),
N_
(
"Random"
),
N_
(
"Change the loop and repeat modes"
),
N_
(
"Information"
)
};
N_
(
"Random"
),
N_
(
"Change the loop and repeat modes"
),
N_
(
"Information"
),
N_
(
"Previous media or slower"
),
N_
(
"Next media or faster"
)};
static
const
QString
iconL
[
BUTTON_MAX
]
=
{
":/toolbar/play_b"
,
":/toolbar/stop_b"
,
":/toolbar/eject"
,
":/toolbar/previous_b"
,
":/toolbar/next_b"
,
":/toolbar/slower"
,
":/toolbar/faster"
,
":/toolbar/fullscreen"
,
...
...
@@ -124,7 +127,8 @@ static const QString iconL[BUTTON_MAX] ={ ":/toolbar/play_b", ":/toolbar/stop_b"
":/toolbar/snapshot"
,
":/toolbar/record"
,
":/toolbar/atob_nob"
,
":/toolbar/frame"
,
":/toolbar/reverse"
,
":/toolbar/skip_back"
,
":/toolbar/skip_fw"
,
":/toolbar/clear"
,
":/buttons/playlist/shuffle_on"
,
":/buttons/playlist/repeat_all"
,
":/menu/info"
};
":/buttons/playlist/repeat_all"
,
":/menu/info"
,
":/toolbar/previous_b"
,
":/toolbar/next_b"
,
};
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