21 #ifndef GUI_CONTROLSBASE_H
22 #define GUI_CONTROLSBASE_H
24 #include "Interfaces/Engine/CoverDataReceiver.h"
26 #include "Gui/InfoDialog/InfoDialogContainer.h"
27 #include "Gui/Utils/Widgets/Widget.h"
28 #include "Gui/Utils/Icons.h"
30 #include "Utils/MetaData/RadioMode.h"
31 #include "Utils/Pimpl.h"
61 virtual QLabel* labSayonara()
const = 0;
62 virtual QLabel* labTitle()
const = 0;
63 virtual QLabel* labVersion()
const = 0;
64 virtual QLabel* labAlbum()
const = 0;
65 virtual QLabel* labArtist()
const = 0;
66 virtual QLabel* labWrittenBy()
const = 0;
67 virtual QLabel* labBitrate()
const = 0;
68 virtual QLabel* labFilesize()
const = 0;
69 virtual QLabel* labCopyright()
const = 0;
70 virtual QLabel* labCurrentTime()
const = 0;
71 virtual QLabel* labMaxTime()
const = 0;
73 virtual QWidget* widgetDetails()
const = 0;
77 virtual QPushButton* btnMute()
const = 0;
78 virtual QPushButton* btnPlay()
const = 0;
79 virtual QPushButton* btnRecord()
const = 0;
80 virtual QPushButton* btnPrevious()
const = 0;
81 virtual QPushButton* btnNext()
const = 0;
82 virtual QPushButton* btnStop()
const = 0;
85 virtual QSize buttonSize()
const final;
86 virtual bool isExternResizeAllowed()
const = 0;
95 void setCoverLocation(
const MetaData& md);
96 void setStandardCover();
99 void checkRecordButtonVisible();
101 void setupVolumeButton(
int percent);
102 void increaseVolume();
103 void decreaseVolume();
105 void refreshCurrentPosition(
int val);
106 void setTotalTimeLabel(MilliSeconds totalTimeMs);
108 void setupShortcuts();
109 void setupConnections();
112 void changeVolumeByDelta(
int val);
113 void setCoverData(
const QByteArray& coverData,
const QString& mimeType)
override;
114 bool isActive()
const override;
117 void playstateChanged(PlayState state);
119 void recordChanged(
bool b);
121 void buffering(
int progress);
123 void currentPositionChanged(MilliSeconds posMs);
124 void progressMoved(
int val);
125 void progressHovered(
int val);
127 void volumeChanged(
int val);
128 void muteChanged(
bool muted);
130 void currentTrackChanged(
const MetaData& track);
131 void metadataChanged();
133 void refreshLabels(
const MetaData& md);
134 void refreshCurrentTrack();
137 void coverClickRejected();
139 void streamRecorderActiveChanged();
144 QWidget* getParentWidget()
override;
146 void resizeEvent(QResizeEvent* e)
override;
147 void showEvent(QShowEvent* e)
override;
148 void contextMenuEvent(QContextMenuEvent* e)
override;
149 void skinChanged()
override;
Definition: CoverDataProvider.h:28
Definition: CoverDataReceiver.h:27
Definition: GUI_ControlsBase.h:52
MetaDataList infoDialogData() const override
get the metadata that should be used for the info dialog So for lists, the selected tracks are used h...
MD::Interpretation metadataInterpretation() const override
get the interpretation for the metadata. Maybe a list of metadata should be intrepeted as albums whil...
This class is used for the actual editing of a RatingLabel While the RatingLabel class is used in pai...
Definition: RatingLabel.h:97
A slider as it is used by the progress bar You can also set a different value by calling set_bufferin...
Definition: SearchSlider.h:41
An interface used to abstract the usage of the info dialog. An implementing class has to return the i...
Definition: InfoDialogContainer.h:64
Global handler for current playback state (Singleton)
Definition: PlayManager.h:36
IconName
The IconName enum.
Definition: Icons.h:59