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
0f3df12e
Commit
0f3df12e
authored
Apr 22, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt, add a playback buttons group, with prev/play/next in the same deck
parent
9d390b3a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
3 deletions
+34
-3
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+18
-3
modules/gui/qt4/components/controller.hpp
modules/gui/qt4/components/controller.hpp
+1
-0
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/dialogs/toolbar.cpp
+15
-0
No files found.
modules/gui/qt4/components/controller.cpp
View file @
0f3df12e
...
...
@@ -32,6 +32,9 @@
#include "components/controller.hpp"
#include "components/controller_widget.hpp"
#include "components/interface_widgets.hpp"
#include "util/buttons/DeckButtonsLayout.hpp"
#include "util/buttons/BrowseButton.hpp"
#include "util/buttons/RoundButton.hpp"
#include "dialogs_provider.hpp"
/* Opening Dialogs */
#include "actions_manager.hpp"
/* *_ACTION */
...
...
@@ -132,8 +135,7 @@ void AbstractController::parseAndCreate( const QString& config,
{
msg_Warn
(
p_intf
,
"Parsing error 3. Please, report this."
);
continue
;
}
}
}
}
createAndAddWidget
(
controlLayout
,
-
1
,
i_type
,
i_option
);
}
...
...
@@ -221,7 +223,6 @@ void AbstractController::createAndAddWidget( QBoxLayout *controlLayout,
QWidget
*
AbstractController
::
createWidget
(
buttonType_e
button
,
int
options
)
{
bool
b_flat
=
options
&
WIDGET_FLAT
;
bool
b_big
=
options
&
WIDGET_BIG
;
bool
b_shiny
=
options
&
WIDGET_SHINY
;
...
...
@@ -433,6 +434,20 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
NORMAL_BUTTON
(
INFO
);
}
break
;
case
PLAYBACK_BUTTONS
:{
widget
=
new
QWidget
;
DeckButtonsLayout
*
layout
=
new
DeckButtonsLayout
(
widget
);
BrowseButton
*
prev
=
new
BrowseButton
(
widget
,
BrowseButton
::
Backward
);
BrowseButton
*
next
=
new
BrowseButton
(
widget
);
RoundButton
*
play
=
new
RoundButton
(
widget
);
layout
->
setBackwardButton
(
prev
);
layout
->
setForwardButton
(
next
);
layout
->
setRoundButton
(
play
);
CONNECT_MAP_SET
(
prev
,
PREVIOUS_ACTION
);
CONNECT_MAP_SET
(
next
,
NEXT_ACTION
);
CONNECT_MAP_SET
(
play
,
PLAY_ACTION
);
}
break
;
default:
msg_Warn
(
p_intf
,
"This should not happen %i"
,
button
);
break
;
...
...
modules/gui/qt4/components/controller.hpp
View file @
0f3df12e
...
...
@@ -96,6 +96,7 @@ typedef enum buttonType_e
MENU_BUTTONS
,
TELETEXT_BUTTONS
,
ADVANCED_CONTROLLER
,
PLAYBACK_BUTTONS
,
SPECIAL_MAX
,
WIDGET_SPACER
=
0x40
,
...
...
modules/gui/qt4/dialogs/toolbar.cpp
View file @
0f3df12e
...
...
@@ -31,6 +31,9 @@
#include "util/input_slider.hpp"
#include "util/customwidgets.hpp"
#include "components/interface_widgets.hpp"
#include "util/buttons/DeckButtonsLayout.hpp"
#include "util/buttons/BrowseButton.hpp"
#include "util/buttons/RoundButton.hpp"
#include <QScrollArea>
#include <QGroupBox>
...
...
@@ -415,6 +418,18 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
}
widgetItem
->
setText
(
qtr
(
"Advanced Buttons"
)
);
break
;
case
PLAYBACK_BUTTONS
:
{
widget
=
new
QWidget
;
DeckButtonsLayout
*
layout
=
new
DeckButtonsLayout
(
widget
);
BrowseButton
*
prev
=
new
BrowseButton
(
widget
,
BrowseButton
::
Backward
);
BrowseButton
*
next
=
new
BrowseButton
(
widget
);
RoundButton
*
play
=
new
RoundButton
(
widget
);
layout
->
setBackwardButton
(
prev
);
layout
->
setForwardButton
(
next
);
layout
->
setRoundButton
(
play
);
}
break
;
default:
msg_Warn
(
p_intf
,
"This should not happen %i"
,
i
);
break
;
...
...
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