[vlc-commits] [Git][videolan/vlc][master] 2 commits: qml/controlbarcontrols: Create ReverseButton
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sun Mar 13 14:24:22 UTC 2022
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
330f7ad1 by Benjamin Arnaud at 2022-03-13T14:13:24+00:00
qml/controlbarcontrols: Create ReverseButton
- - - - -
6f82cea3 by Benjamin Arnaud at 2022-03-13T14:13:24+00:00
qml/ControlbarControls: Add REVERSE_BUTTON to the controlList
- - - - -
6 changed files:
- modules/gui/qt/Makefile.am
- modules/gui/qt/player/control_list_model.hpp
- modules/gui/qt/player/qml/ControlbarControls.qml
- + modules/gui/qt/player/qml/controlbarcontrols/ReverseButton.qml
- modules/gui/qt/vlc.qrc
- po/POTFILES.in
Changes:
=====================================
modules/gui/qt/Makefile.am
=====================================
@@ -844,6 +844,7 @@ libqt_plugin_la_QML = \
gui/qt/player/qml/controlbarcontrols/QuitButton.qml \
gui/qt/player/qml/controlbarcontrols/RandomButton.qml \
gui/qt/player/qml/controlbarcontrols/RecordButton.qml \
+ gui/qt/player/qml/controlbarcontrols/ReverseButton.qml \
gui/qt/player/qml/controlbarcontrols/SkipBackButton.qml \
gui/qt/player/qml/controlbarcontrols/SkipForwardButton.qml \
gui/qt/player/qml/controlbarcontrols/SlowerButton.qml \
=====================================
modules/gui/qt/player/control_list_model.hpp
=====================================
@@ -72,6 +72,7 @@ public:
TELETEXT_BUTTONS,
ASPECT_RATIO_COMBOBOX,
DVD_MENUS_BUTTON,
+ REVERSE_BUTTON,
SPECIAL_MAX,
WIDGET_SPACER = 0x40,
=====================================
modules/gui/qt/player/qml/ControlbarControls.qml
=====================================
@@ -44,6 +44,7 @@ QtObject {
{ id: ControlListModel.RECORD_BUTTON, file: "RecordButton.qml", label: VLCIcons.record, text: I18n.qtr("Record") },
{ id: ControlListModel.ATOB_BUTTON, file: "AtoBButton.qml", label: VLCIcons.atob, text: I18n.qtr("A-B Loop") },
{ id: ControlListModel.FRAME_BUTTON, file: "FrameButton.qml", label: VLCIcons.frame_by_frame, text: I18n.qtr("Frame By Frame") },
+ { id: ControlListModel.REVERSE_BUTTON, file: "ReverseButton.qml", label: VLCIcons.play_reverse, text: I18n.qtr("Trickplay Reverse") },
{ id: ControlListModel.SKIP_BACK_BUTTON, file: "SkipBackButton.qml", label: VLCIcons.skip_back, text: I18n.qtr("Step backward") },
{ id: ControlListModel.SKIP_FW_BUTTON, file: "SkipForwardButton.qml", label: VLCIcons.skip_for, text: I18n.qtr("Step forward") },
{ id: ControlListModel.QUIT_BUTTON, file: "QuitButton.qml", label: VLCIcons.clear, text: I18n.qtr("Quit") },
=====================================
modules/gui/qt/player/qml/controlbarcontrols/ReverseButton.qml
=====================================
@@ -0,0 +1,37 @@
+/*****************************************************************************
+ * Copyright (C) 2022 VLC authors and VideoLAN
+ *
+ * Authors: Benjamin Arnaud <bunjee at omega.gg>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * ( at your option ) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
+
+import QtQuick 2.11
+
+import org.videolan.vlc 0.1
+
+import "qrc:///widgets/" as Widgets
+import "qrc:///style/"
+
+Widgets.IconControlButton {
+ size: VLCStyle.icon_medium
+
+ enabled: Player.rewindable
+
+ iconText: VLCIcons.play_reverse
+ text: I18n.qtr("Reverse")
+
+ onClicked: Player.reverse()
+}
=====================================
modules/gui/qt/vlc.qrc
=====================================
@@ -381,6 +381,7 @@
<file alias="QuitButton.qml">player/qml/controlbarcontrols/QuitButton.qml</file>
<file alias="RandomButton.qml">player/qml/controlbarcontrols/RandomButton.qml</file>
<file alias="RecordButton.qml">player/qml/controlbarcontrols/RecordButton.qml</file>
+ <file alias="ReverseButton.qml">player/qml/controlbarcontrols/ReverseButton.qml</file>
<file alias="SkipBackButton.qml">player/qml/controlbarcontrols/SkipBackButton.qml</file>
<file alias="SkipForwardButton.qml">player/qml/controlbarcontrols/SkipForwardButton.qml</file>
<file alias="SlowerButton.qml">player/qml/controlbarcontrols/SlowerButton.qml</file>
=====================================
po/POTFILES.in
=====================================
@@ -901,6 +901,7 @@ modules/gui/qt/player/qml/controlbarcontrols/PreviousButton.qml
modules/gui/qt/player/qml/controlbarcontrols/QuitButton.qml
modules/gui/qt/player/qml/controlbarcontrols/RandomButton.qml
modules/gui/qt/player/qml/controlbarcontrols/RecordButton.qml
+modules/gui/qt/player/qml/controlbarcontrols/ReverseButton.qml
modules/gui/qt/player/qml/controlbarcontrols/SkipBackButton.qml
modules/gui/qt/player/qml/controlbarcontrols/SkipForwardButton.qml
modules/gui/qt/player/qml/controlbarcontrols/SlowerButton.qml
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/e2a35909b45a742641fff280b2df4ce000d951cb...6f82cea3b7f542d557d4ea53adcd2d65aab9f002
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/e2a35909b45a742641fff280b2df4ce000d951cb...6f82cea3b7f542d557d4ea53adcd2d65aab9f002
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list