vlcframe_ui.py 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. # -*- coding: utf-8 -*-
  2. # Form implementation generated from reading ui file 'widgets/vlcframe.ui'
  3. #
  4. # Created by: PyQt5 UI code generator 5.15.2
  5. #
  6. # WARNING: Any manual changes made to this file will be lost when pyuic5 is
  7. # run again. Do not edit this file unless you know what you are doing.
  8. from PyQt5 import QtCore, QtGui, QtWidgets
  9. class Ui_VlcFrame(object):
  10. def setupUi(self, VlcFrame):
  11. VlcFrame.setObjectName("VlcFrame")
  12. VlcFrame.resize(524, 78)
  13. VlcFrame.setMinimumSize(QtCore.QSize(524, 78))
  14. self.horizontalLayout_2 = QtWidgets.QHBoxLayout(VlcFrame)
  15. self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
  16. self.horizontalLayout_2.setSpacing(0)
  17. self.horizontalLayout_2.setObjectName("horizontalLayout_2")
  18. self.verticalLayout_2 = QtWidgets.QVBoxLayout()
  19. self.verticalLayout_2.setSpacing(0)
  20. self.verticalLayout_2.setObjectName("verticalLayout_2")
  21. self.horizontalLayout = QtWidgets.QHBoxLayout()
  22. self.horizontalLayout.setContentsMargins(12, 12, 12, 12)
  23. self.horizontalLayout.setSpacing(12)
  24. self.horizontalLayout.setObjectName("horizontalLayout")
  25. self.btnPlayPause = QtWidgets.QToolButton(VlcFrame)
  26. self.btnPlayPause.setMinimumSize(QtCore.QSize(56, 28))
  27. self.btnPlayPause.setMaximumSize(QtCore.QSize(56, 28))
  28. icon = QtGui.QIcon()
  29. icon.addPixmap(QtGui.QPixmap(":/img/rsc/play.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  30. self.btnPlayPause.setIcon(icon)
  31. self.btnPlayPause.setObjectName("btnPlayPause")
  32. self.horizontalLayout.addWidget(self.btnPlayPause)
  33. self.lblPosition = QtWidgets.QLabel(VlcFrame)
  34. self.lblPosition.setMinimumSize(QtCore.QSize(50, 0))
  35. self.lblPosition.setMaximumSize(QtCore.QSize(50, 16777215))
  36. self.lblPosition.setText("")
  37. self.lblPosition.setObjectName("lblPosition")
  38. self.horizontalLayout.addWidget(self.lblPosition)
  39. self.progressionSlider = ClickableSlider(VlcFrame)
  40. self.progressionSlider.setMinimumSize(QtCore.QSize(150, 28))
  41. self.progressionSlider.setMaximum(1000)
  42. self.progressionSlider.setOrientation(QtCore.Qt.Horizontal)
  43. self.progressionSlider.setObjectName("progressionSlider")
  44. self.horizontalLayout.addWidget(self.progressionSlider)
  45. self.lblDuration = QtWidgets.QLabel(VlcFrame)
  46. self.lblDuration.setMinimumSize(QtCore.QSize(50, 0))
  47. self.lblDuration.setMaximumSize(QtCore.QSize(50, 16777215))
  48. self.lblDuration.setText("")
  49. self.lblDuration.setObjectName("lblDuration")
  50. self.horizontalLayout.addWidget(self.lblDuration)
  51. self.btnMute = QtWidgets.QToolButton(VlcFrame)
  52. self.btnMute.setMinimumSize(QtCore.QSize(28, 28))
  53. self.btnMute.setMaximumSize(QtCore.QSize(28, 28))
  54. icon1 = QtGui.QIcon()
  55. icon1.addPixmap(QtGui.QPixmap(":/img/rsc/volume.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  56. self.btnMute.setIcon(icon1)
  57. self.btnMute.setObjectName("btnMute")
  58. self.horizontalLayout.addWidget(self.btnMute)
  59. self.volumeSlider = ClickableSlider(VlcFrame)
  60. self.volumeSlider.setMinimumSize(QtCore.QSize(100, 28))
  61. self.volumeSlider.setMaximumSize(QtCore.QSize(100, 16777215))
  62. self.volumeSlider.setProperty("value", 50)
  63. self.volumeSlider.setOrientation(QtCore.Qt.Horizontal)
  64. self.volumeSlider.setObjectName("volumeSlider")
  65. self.horizontalLayout.addWidget(self.volumeSlider)
  66. self.verticalLayout_2.addLayout(self.horizontalLayout)
  67. self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
  68. self.horizontalLayout_3.setContentsMargins(12, -1, 12, -1)
  69. self.horizontalLayout_3.setSpacing(12)
  70. self.horizontalLayout_3.setObjectName("horizontalLayout_3")
  71. self.btnPrevious = QtWidgets.QToolButton(VlcFrame)
  72. self.btnPrevious.setEnabled(False)
  73. icon2 = QtGui.QIcon()
  74. icon2.addPixmap(QtGui.QPixmap(":/img/rsc/rewind.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  75. self.btnPrevious.setIcon(icon2)
  76. self.btnPrevious.setObjectName("btnPrevious")
  77. self.horizontalLayout_3.addWidget(self.btnPrevious)
  78. self.btnNext = QtWidgets.QToolButton(VlcFrame)
  79. self.btnNext.setEnabled(False)
  80. icon3 = QtGui.QIcon()
  81. icon3.addPixmap(QtGui.QPixmap(":/img/rsc/fast-forward.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  82. self.btnNext.setIcon(icon3)
  83. self.btnNext.setObjectName("btnNext")
  84. self.horizontalLayout_3.addWidget(self.btnNext)
  85. self.lblTrack = QtWidgets.QLabel(VlcFrame)
  86. self.lblTrack.setMinimumSize(QtCore.QSize(0, 14))
  87. self.lblTrack.setText("")
  88. self.lblTrack.setTextFormat(QtCore.Qt.PlainText)
  89. self.lblTrack.setAlignment(QtCore.Qt.AlignCenter)
  90. self.lblTrack.setWordWrap(True)
  91. self.lblTrack.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
  92. self.lblTrack.setObjectName("lblTrack")
  93. self.horizontalLayout_3.addWidget(self.lblTrack)
  94. self.verticalLayout_2.addLayout(self.horizontalLayout_3)
  95. self.horizontalLayout_2.addLayout(self.verticalLayout_2)
  96. self.retranslateUi(VlcFrame)
  97. QtCore.QMetaObject.connectSlotsByName(VlcFrame)
  98. def retranslateUi(self, VlcFrame):
  99. _translate = QtCore.QCoreApplication.translate
  100. VlcFrame.setWindowTitle(_translate("VlcFrame", "Frame"))
  101. self.btnPlayPause.setText(_translate("VlcFrame", "Lire"))
  102. self.btnMute.setText(_translate("VlcFrame", "Vol."))
  103. self.btnPrevious.setToolTip(_translate("VlcFrame", "Revenir au morceau précédent"))
  104. self.btnPrevious.setText(_translate("VlcFrame", "..."))
  105. self.btnNext.setToolTip(_translate("VlcFrame", "Aller au morceau suivant"))
  106. self.btnNext.setText(_translate("VlcFrame", "..."))
  107. from .clickable_slider import ClickableSlider
  108. from .. import rsc_rc