Browse Source

qml/controlbarcontrols: Create ReverseButton

pull/134/head
Benjamin Arnaud 4 years ago
committed by Jean-Baptiste Kempf
parent
commit
330f7ad1f6
  1. 1
      modules/gui/qt/Makefile.am
  2. 1
      modules/gui/qt/player/control_list_model.hpp
  3. 37
      modules/gui/qt/player/qml/controlbarcontrols/ReverseButton.qml
  4. 1
      modules/gui/qt/vlc.qrc
  5. 1
      po/POTFILES.in

1
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 \

1
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,

37
modules/gui/qt/player/qml/controlbarcontrols/ReverseButton.qml

@ -0,0 +1,37 @@
/*****************************************************************************
* Copyright (C) 2022 VLC authors and VideoLAN
*
* Authors: Benjamin Arnaud <bunjee@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()
}

1
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>

1
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

Loading…
Cancel
Save